:root {
  --bg: #060809;
  --sidebar: #020304;
  --topbar: #080b0e;
  --panel: #0d1216;
  --panel-2: #111820;
  --panel-3: #151d25;
  --field: #0a0f13;
  --ink: #edf6f3;
  --muted: #8f9ca3;
  --soft: #65727b;
  --line: #24303a;
  --line-strong: #354653;
  --green: #58e36f;
  --green-deep: #17a942;
  --green-soft: rgba(88, 227, 111, 0.12);
  --cyan: #25d9ff;
  --cyan-soft: rgba(37, 217, 255, 0.12);
  --amber: #f5b932;
  --amber-soft: rgba(245, 185, 50, 0.12);
  --red: #ff5e5e;
  --red-soft: rgba(255, 94, 94, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(37, 217, 255, 0.09), transparent 28%),
    linear-gradient(180deg, #080b0e 0%, var(--bg) 34%, #050607 100%);
  color: var(--ink);
}

.seo-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #080b0e, #050607);
}

.seo-wrap {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.seo-wrap a {
  color: var(--green);
  font-weight: 850;
}

.seo-wrap h1 {
  margin: 24px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.seo-wrap h2 {
  margin: 28px 0 8px;
  color: #edf6f3;
}

.seo-wrap p,
.seo-wrap li {
  color: #b5c1c8;
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mono {
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

.is-hidden {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 227, 111, 0.08), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(37, 217, 255, 0.11), transparent 28%),
    linear-gradient(180deg, #070a0d, #030405 76%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.coming-soon-panel {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 420px);
  gap: 24px;
  align-items: center;
}

.coming-copy {
  padding: 20px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(88, 227, 111, 0.38);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coming-copy h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.coming-copy p {
  max-width: 660px;
  color: #b5c1c8;
  font-size: 16px;
  line-height: 1.6;
}

.launch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.launch-stats div,
.login-card,
.admin-metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 19, 0.86);
  box-shadow: var(--shadow);
}

.launch-stats div {
  padding: 14px;
}

.launch-stats strong {
  display: block;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.launch-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.login-card {
  padding: 20px;
}

.login-card h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.login-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-message {
  min-height: 22px;
  margin: 10px 0 14px;
  color: var(--cyan) !important;
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

.login-message.is-error {
  color: var(--red) !important;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px minmax(690px, 1fr) 292px;
  grid-template-rows: 68px 1fr;
  grid-template-areas:
    "sidebar topbar topbar"
    "sidebar workspace inspector";
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background:
    radial-gradient(circle at 88% 2%, rgba(37, 217, 255, 0.08), transparent 25%),
    linear-gradient(180deg, #080b0e, #050607);
}

.admin-sidebar {
  min-height: 100vh;
  background: rgba(2, 3, 4, 0.96);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  gap: 16px;
}

.admin-main {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.94), rgba(10, 15, 19, 0.94));
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h1 {
  font-size: 22px;
  margin-bottom: 5px;
}

.admin-topbar p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metrics article {
  padding: 14px;
}

.admin-metrics span,
.admin-metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-metrics strong {
  display: block;
  margin: 6px 0;
  color: var(--amber);
  font-size: 30px;
  line-height: 1;
}

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

.admin-panel {
  min-width: 0;
}

.admin-list,
.support-table,
.credit-admin {
  display: grid;
  gap: 9px;
}

.admin-list div,
.support-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d11;
  padding: 11px;
}

.admin-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
}

.admin-list span,
.support-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.admin-list button {
  grid-row: span 2;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.credit-admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coupon-admin,
.redeem-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.coupon-admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coupon-output {
  grid-column: span 2;
  margin: 0;
  color: var(--green);
  font-size: 11px;
  line-height: 1.45;
}

.support-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.support-row p {
  grid-column: 2 / 5;
}

.admin-activity ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.admin-activity li {
  border-left: 3px solid var(--green);
  padding: 8px 10px;
  background: rgba(88, 227, 111, 0.06);
  color: #dce8e4;
  font-size: 12px;
}

.sidebar {
  grid-area: sidebar;
  min-height: 100vh;
  background: rgba(2, 3, 4, 0.96);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  gap: 16px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
}

.brand-mark path,
.brand-mark circle {
  stroke-width: 2;
}

.brand-mark path:first-child {
  fill: #080c10;
  stroke: var(--line-strong);
}

.brand-mark circle {
  fill: var(--green);
  stroke: none;
}

.nav-list {
  display: grid;
  gap: 3px;
}

.nav-item {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 6px;
  color: #c3cdd2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav-item svg {
  color: #aab6bd;
  width: 19px;
  height: 19px;
}

.nav-item.is-active {
  color: #eaffed;
  background: linear-gradient(90deg, rgba(88, 227, 111, 0.18), rgba(88, 227, 111, 0.03));
  box-shadow: inset 3px 0 0 var(--green);
}

.plan-box {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #06090c;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.plan-box > span,
.version-note {
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-box strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 17px;
}

.plan-box dl {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.plan-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.plan-box dd,
.plan-box dt {
  margin: 0;
}

.plan-box dd {
  color: #d7e0e4;
  text-align: right;
}

.version-note {
  margin: 2px 8px 0;
  text-transform: none;
  letter-spacing: 0;
}

.topbar {
  grid-area: topbar;
  background: rgba(8, 11, 14, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.button,
.icon-button,
.user-menu,
.credit-box {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.button:hover,
.icon-button:hover,
.user-menu:hover,
.credit-box:hover {
  border-color: #617485;
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: linear-gradient(180deg, #1fc94f, #149d3b);
  border-color: #1dbc4a;
  color: #041007;
  box-shadow: 0 0 0 1px rgba(88, 227, 111, 0.18), 0 12px 30px rgba(23, 169, 66, 0.22);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: #dce6e9;
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.icon-button {
  width: 38px;
  padding: 0;
  color: #d9e3e7;
}

.credit-box {
  min-width: 138px;
  display: grid;
  justify-items: start;
  gap: 1px;
  padding: 8px 12px;
  background: #090d11;
}

.credit-box small,
.env-pill small,
.user-menu small {
  color: var(--muted);
  font-size: 11px;
}

.credit-box strong,
.env-pill strong {
  color: var(--ink);
  font-size: 14px;
}

.credit-box strong {
  color: var(--amber);
}

.env-pill {
  display: grid;
  grid-template-columns: 9px auto;
  column-gap: 8px;
  align-items: center;
}

.env-pill span {
  grid-row: span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(88, 227, 111, 0.6);
}

.user-menu {
  display: grid;
  grid-template-columns: auto 18px;
  grid-template-rows: auto auto;
  justify-items: start;
  gap: 0 10px;
  min-width: 142px;
  padding: 7px 10px 7px 14px;
}

.user-menu svg {
  grid-row: span 2;
  align-self: center;
}

.workspace {
  grid-area: workspace;
  min-width: 0;
  padding: 12px 12px 24px;
}

.wizard-header,
.panel,
.queue-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.92), rgba(10, 15, 19, 0.94));
  box-shadow: var(--shadow);
}

.wizard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
}

.wizard-header p,
.panel-heading p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
}

.wizard-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.stepper {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
  position: relative;
}

.stepper li::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.stepper li:last-child::after {
  display: none;
}

.stepper span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
}

.stepper .is-active {
  color: #eaf6ed;
}

.stepper .is-active span {
  background: var(--green-deep);
  border-color: var(--green);
  color: #041007;
  font-weight: 850;
}

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

.panel {
  padding: 14px;
}

.account-panel {
  margin-bottom: 10px;
  border-color: rgba(37, 217, 255, 0.28);
}

.account-header,
.trouble-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.account-header p,
.trouble-header p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.account-status,
.issue-severity {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 185, 50, 0.45);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.account-status.is-ready {
  color: var(--green);
  border-color: rgba(88, 227, 111, 0.48);
  background: var(--green-soft);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.consent-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d11;
  padding: 11px;
  display: grid;
  gap: 9px;
}

.consent-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 0;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e5f0ec;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 720;
}

.check-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.panel-heading.inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.app-profile-panel {
  grid-row: span 2;
}

.select-shell,
.search-field,
.field {
  display: grid;
  gap: 6px;
}

.select-shell span,
.field span {
  color: #c7d2d7;
  font-size: 11px;
  font-weight: 760;
}

.search-field {
  position: relative;
  margin: 10px 0;
}

.search-field svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--soft);
  transform: translateY(-50%);
  pointer-events: none;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  color: #e8f2f5;
  padding: 0 10px;
  outline: none;
  font-size: 13px;
}

select {
  color-scheme: dark;
}

input::placeholder {
  color: #5f6d76;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 227, 111, 0.13);
}

.search-field input {
  padding-left: 32px;
}

.compact-select {
  width: 114px;
}

.profile-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}

.profile-tools .button {
  min-height: 31px;
  white-space: nowrap;
}

.profile-tools .button svg {
  width: 16px;
  height: 16px;
}

.detect-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}

.detect-status.is-success {
  color: var(--green);
  border-color: rgba(88, 227, 111, 0.38);
  background: var(--green-soft);
}

.detect-status.is-error {
  color: var(--red);
  border-color: rgba(255, 94, 94, 0.45);
  background: var(--red-soft);
}

.check-ok.is-error {
  color: var(--red);
}

.app-list {
  display: grid;
  gap: 5px;
}

.app-choice {
  min-height: 33px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: #d8e3e7;
  text-align: left;
}

.app-choice strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.app-choice small {
  color: var(--muted);
  font-size: 11px;
}

.app-choice.is-active {
  border-color: var(--green);
  background: rgba(88, 227, 111, 0.1);
  box-shadow: inset 0 0 0 1px rgba(88, 227, 111, 0.18);
}

.app-icon,
.app-mini {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #041007;
  font-size: 10px;
  font-weight: 900;
}

.app-mini {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}

.wp { background: #43a9ff; }
.magento { background: #ff6f2c; }
.joomla { background: #f3c14a; }
.drupal { background: #4ad4ff; }
.presta { background: #ff7aa8; }
.cart { background: #00d5d5; }
.php { background: #a7b4ff; font-size: 8px; }
.cloud { background: #58b8ff; }
.forum { background: #d5bd6d; }
.matomo { background: #70e3b2; }
.node { background: #62e875; }
.custom { background: #c7d2d7; }

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

.span-2 {
  grid-column: span 2;
}

.endpoint-save-box {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(37, 217, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(37, 217, 255, 0.055);
  padding: 10px;
}

.endpoint-save-box p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 0;
}

.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.check-ok {
  color: var(--green);
  font-size: 11px;
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

.route-panel {
  grid-column: 2 / 4;
}

.domain-panel {
  grid-column: 2 / 4;
  border-color: rgba(37, 217, 255, 0.24);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

.domain-option {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(88, 227, 111, 0.25);
  border-radius: var(--radius);
  background: rgba(88, 227, 111, 0.055);
  padding: 10px;
}

.domain-option p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 0;
}

.route-summary-box {
  margin-top: 12px;
  border: 1px solid rgba(37, 217, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(37, 217, 255, 0.07);
  color: #dff8ff;
  padding: 11px;
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.route-map {
  display: grid;
  grid-template-columns: 130px minmax(120px, 1fr) 140px 140px;
  align-items: center;
  gap: 12px;
}

.server-node,
.no-custody-node {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1015;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 10px;
  padding: 9px;
}

.server-node svg,
.no-custody-node svg {
  grid-row: span 2;
  align-self: center;
  color: #d8e5e9;
}

.server-node strong,
.no-custody-node strong {
  font-size: 12px;
}

.server-node span,
.no-custody-node span {
  color: var(--muted);
  font-size: 11px;
}

.route-link {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 11px;
  text-align: center;
}

.route-link::before,
.route-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1px dashed rgba(37, 217, 255, 0.75);
}

.route-link::before {
  top: 19px;
}

.route-link::after {
  bottom: 19px;
  border-color: rgba(88, 227, 111, 0.6);
}

.route-link strong {
  display: block;
  color: var(--cyan);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

.no-custody-node {
  border-color: rgba(88, 227, 111, 0.35);
}

.no-custody-node svg {
  color: var(--green);
}

.script-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.script-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d11;
  padding: 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px 9px;
}

.script-card > span {
  grid-row: span 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 217, 255, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 11px;
  font-weight: 900;
}

.script-card strong {
  font-size: 12px;
}

.script-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.script-card .button {
  justify-self: start;
}

.queue-panel {
  margin-top: 10px;
  overflow: hidden;
}

.troubleshooting-panel {
  margin-top: 10px;
  border-color: rgba(37, 217, 255, 0.24);
}

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

.issue-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d11;
  padding: 12px;
  display: grid;
  gap: 7px;
  align-content: start;
}

.issue-card:hover {
  border-color: var(--line-strong);
}

.issue-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.issue-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 3px;
}

.issue-severity {
  justify-self: start;
  border-radius: 5px;
}

.issue-severity.bad {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(255, 94, 94, 0.45);
}

.issue-severity.info {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: rgba(37, 217, 255, 0.45);
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(36, 48, 58, 0.78);
  text-align: left;
  font-size: 12px;
}

th {
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.14);
}

td {
  color: #dbe5e9;
}

td small {
  color: var(--muted);
  margin-left: 3px;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 24px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.badge.good {
  color: var(--green);
  border-color: rgba(88, 227, 111, 0.45);
  background: var(--green-soft);
}

.badge.info {
  color: var(--cyan);
  border-color: rgba(37, 217, 255, 0.45);
  background: var(--cyan-soft);
}

.badge.warn,
.scan-pill {
  color: var(--amber);
  border-color: rgba(245, 185, 50, 0.45);
  background: var(--amber-soft);
}

.progress {
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #27333c;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.progress.cyan i {
  background: var(--cyan);
}

.progress.muted i {
  background: var(--soft);
}

.table-action {
  min-height: 30px;
  width: 30px;
}

.inspector {
  grid-area: inspector;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 12px 24px 0;
}

.runtime-list,
.price-lines {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.runtime-list div,
.price-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.runtime-list dt,
.runtime-list dd,
.price-lines dt,
.price-lines dd {
  margin: 0;
}

.runtime-list dd,
.price-lines dd {
  color: #e2ecef;
  text-align: right;
  font-weight: 760;
}

.runtime-list dd span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(88, 227, 111, 0.6);
}

.credit-card {
  border-color: rgba(245, 185, 50, 0.4);
}

.credit-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 14px;
}

.credit-total strong {
  color: var(--amber);
  font-size: 42px;
  line-height: 1;
}

.credit-total span {
  color: #d9e1e5;
  font-weight: 760;
}

.scan-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(245, 185, 50, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.scan-pill.is-scanned {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(88, 227, 111, 0.45);
}

.discount-line dd {
  color: var(--green);
}

.balance-line {
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.balance-line strong {
  color: var(--amber);
  font-size: 17px;
}

.balance-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.balance-note strong {
  color: var(--green);
}

.no-custody-card {
  border-color: rgba(88, 227, 111, 0.35);
}

.no-custody-card h2 {
  color: var(--green);
}

.no-custody-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.control-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
}

.control-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7e6dc;
  font-size: 12px;
  font-weight: 720;
}

.control-list span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: radial-gradient(circle, var(--green) 28%, transparent 31%);
}

.purchase-modal {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.purchase-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.purchase-modal form {
  padding: 20px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  margin-bottom: 16px;
}

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

.pack {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #090d11;
  cursor: pointer;
}

.pack.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.pack input {
  position: absolute;
  opacity: 0;
}

.pack strong {
  font-size: 24px;
  line-height: 1;
}

.pack span {
  font-size: 13px;
  font-weight: 760;
}

.pack small {
  color: var(--muted);
  font-size: 12px;
}

.tos-modal,
.script-modal,
.fix-modal {
  width: min(720px, calc(100vw - 32px));
}

.legal-copy {
  max-height: min(54vh, 440px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d11;
  padding: 14px;
  margin-bottom: 12px;
}

.legal-copy h3 {
  margin-bottom: 5px;
  color: #e9f5f0;
  font-size: 13px;
}

.legal-copy p,
.modal-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.legal-copy p:last-child,
.modal-summary {
  margin-bottom: 0;
}

.modal-check {
  border: 1px solid rgba(88, 227, 111, 0.28);
  border-radius: var(--radius);
  background: var(--green-soft);
  padding: 10px;
  margin-bottom: 14px;
}

.code-preview {
  max-height: min(48vh, 380px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05080a;
  color: #dcefe5;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.fix-steps {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
  padding-left: 22px;
}

.fix-steps li {
  color: #dce7ea;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1260px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "sidebar topbar"
      "sidebar workspace"
      "sidebar inspector";
  }

  .brand span:last-child,
  .nav-item,
  .plan-box,
  .version-note {
    font-size: 0;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .inspector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 12px 24px;
  }

  .account-grid,
  .issue-grid,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-sidebar .brand span:last-child,
  .admin-sidebar .nav-item,
  .admin-sidebar .plan-box {
    font-size: 0;
  }

  .admin-sidebar .brand,
  .admin-sidebar .nav-item {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 1380px) and (min-width: 981px) {
  .app-shell {
    grid-template-columns: 216px minmax(0, 1fr) 280px;
  }

  .main-grid {
    grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .route-map,
  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .script-strip {
    grid-template-columns: 1fr;
  }

  .profile-tools {
    grid-template-columns: 1fr;
  }

  .profile-tools .button {
    width: 100%;
  }

  .route-link::before,
  .route-link::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
    max-width: 100vw;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .brand span:last-child {
    font-size: 17px;
  }

  .nav-list {
    display: flex;
    min-width: max-content;
  }

  .nav-item {
    width: 42px;
  }

  .plan-box,
  .version-note {
    display: none;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    padding: 12px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .main-grid,
  .inspector,
  .account-grid,
  .issue-grid,
  .admin-grid,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .coming-soon-panel,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar .nav-list {
    display: flex;
    min-width: max-content;
  }

  .admin-sidebar .plan-box {
    display: none;
  }

  .admin-topbar,
  .support-row {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .support-row p {
    grid-column: auto;
  }

  .route-panel,
  .domain-panel {
    grid-column: auto;
  }

  .route-map,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .script-strip {
    grid-template-columns: 1fr;
  }

  .route-link::before,
  .route-link::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .workspace,
  .inspector {
    padding: 10px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .wizard-header,
  .panel-heading.inline,
  .field-grid,
  .domain-grid,
  .profile-tools,
  .stepper,
  .account-header,
  .trouble-header,
  .pack-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .wizard-actions {
    justify-content: stretch;
  }

  .wizard-actions .button {
    width: 100%;
  }

  .topbar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topbar-left {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-actions .button {
    width: 100%;
  }

  .env-pill,
  .user-menu {
    display: none;
  }

  .credit-box {
    min-width: 0;
  }

  .auth-gate,
  .admin-main {
    padding: 12px;
  }

  .coming-soon-panel {
    gap: 12px;
  }

  .coming-copy h1 {
    font-size: 34px;
  }

  .launch-stats,
  .auth-actions,
  .credit-admin {
    grid-template-columns: 1fr;
  }
}
