:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --panel-2: #171b21;
  --border: #282e37;
  --text: #f4f5f7;
  --muted: #9199a6;
  --accent: #e6b84a;
  --danger: #e46f6f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.topbar {
  height: 70px;
  padding: 0 28px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border-bottom:
    1px solid var(--border);
}

.brand {
  font-weight: 900;
  letter-spacing: 2px;
}

.back-link,
.language-button {
  color: var(--muted);
}

.back-link {
  text-decoration: none;
}

.language-button {
  justify-self: end;

  border: 0;
  background: transparent;
}

.back-link:hover,
.language-button:hover {
  color: var(--text);
}

.shell {
  width:
    min(
      1080px,
      calc(100% - 32px)
    );

  margin: 0 auto;
  padding: 42px 0 80px;
}

.eyebrow {
  color: var(--accent);

  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

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

.muted,
.field-help {
  color: var(--muted);
}

.muted {
  line-height: 1.55;
}

.field-help {
  display: block;

  margin-top: 7px;

  font-size: 12px;
  line-height: 1.45;
}

.status-card,
.empty-state,
.wizard,
.setup-card {
  border:
    1px solid var(--border);

  border-radius: 14px;

  background: var(--panel);
}

.status-card {
  max-width: 680px;
  margin: 45px auto;
  padding: 28px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 22px;
}

.page-heading h1 {
  margin:
    7px 0 8px;
}

.primary-button,
.ghost-button,
.danger-button,
.primary-link,
.secondary-link {
  min-height: 42px;
  padding: 0 14px;

  border-radius: 8px;

  font-weight: 800;

  text-decoration: none;
}

.primary-button,
.primary-link {
  border:
    1px solid var(--accent);

  background: var(--accent);
  color: #181308;
}

.ghost-button,
.secondary-link {
  border:
    1px solid var(--border);

  background: transparent;
  color: var(--muted);
}

.danger-button {
  border:
    1px solid
    rgba(228, 111, 111, 0.5);

  background:
    rgba(228, 111, 111, 0.06);

  color: #efa5a5;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;

  margin-top: 8px;
}

.empty-state {
  padding: 26px;

  text-align: center;
}

.setup-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );

  gap: 14px;
}

.setup-card {
  padding: 18px;
}

.setup-card h3 {
  margin:
    6px 0 5px;
}

.setup-card-meta {
  display: grid;
  gap: 7px;

  margin-top: 17px;
}

.setup-card-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  padding-bottom: 7px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.05);
}

.setup-card-meta span {
  color: var(--muted);
  font-size: 12px;
}

.setup-card-actions {
  display: flex;
  gap: 8px;

  margin-top: 15px;
}

.wizard {
  margin-top: 22px;
  padding: 24px;
}

.wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.wizard-head h2 {
  margin:
    6px 0 0;
}

.progress-track {
  height: 5px;
  margin:
    18px 0 24px;

  overflow: hidden;

  border-radius: 999px;

  background: #1e232a;
}

.progress-bar {
  width: 20%;
  height: 100%;

  background: var(--accent);

  transition:
    width 0.2s ease;
}

.form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;
}

.form-grid .full {
  grid-column:
    1 / -1;
}

label > span {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.1px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;

  border:
    1px solid var(--border);

  border-radius: 8px;

  outline: none;

  background: #0f1216;
  color: var(--text);
}

input:focus,
select:focus {
  border-color:
    var(--accent);
}

.input-with-unit {
  display: grid;
  grid-template-columns:
    1fr auto;

  align-items: center;
}

.input-with-unit input {
  border-radius:
    8px 0 0 8px;
}

.unit {
  min-width: 54px;
  min-height: 44px;
  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid var(--border);

  border-left: 0;
  border-radius:
    0 8px 8px 0;

  background: var(--panel-2);
  color: var(--muted);

  font-size: 12px;
  font-weight: 800;
}

.advanced-box,
.help-card,
.review-card {
  margin-top: 15px;
  padding: 14px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background:
    rgba(255,255,255,0.015);
}

.advanced-box summary,
.help-card summary {
  cursor: pointer;

  font-weight: 800;
}

.advanced-content {
  margin-top: 14px;
}

.help-grid {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.help-card p {
  margin-bottom: 0;

  color: var(--muted);

  line-height: 1.55;
  font-size: 13px;
}

.custom-click-fields {
  grid-column:
    1 / -1;

  display: grid;
  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  margin-top: 24px;
}

.wizard-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-message {
  color: var(--muted);

  font-size: 12px;
}

.form-message.error {
  color: #ef9e9e;
}

.review-grid {
  display: grid;
  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.review-section {
  padding: 12px;

  border:
    1px solid var(--border);

  border-radius: 8px;
}

.review-section h3 {
  margin-bottom: 8px;
}

.review-section p {
  margin:
    4px 0;

  color: var(--muted);

  font-size: 13px;
}

@media (
  max-width: 760px
) {
  .page-heading,
  .wizard-head,
  .wizard-actions {
    flex-direction: column;
  }

  .form-grid,
  .help-grid,
  .custom-click-fields,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .wizard-actions-right {
    width: 100%;
    justify-content: flex-end;
  }
}
