.auth-screen {
  display: flex;
  min-height: 100dvh;
  padding: 20px 20px 22px;
  flex-direction: column;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0c0b08;
  background: var(--gold-strong);
  border: 1px solid #f0dc9f;
  border-radius: 8px;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.brand-name {
  font-size: 19px;
  font-weight: 740;
}

.brand-version {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.local-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--muted-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
}

.auth-heading {
  margin: 54px 0 24px;
}

.auth-heading.compact {
  margin-top: 34px;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-strong);
  font-size: 11px;
  font-weight: 650;
}

.auth-heading h1 {
  margin: 9px 0 7px;
  font-size: 27px;
  font-weight: 720;
  line-height: 1.25;
}

.auth-heading p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 560;
}

.input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 46px 0 14px;
  color: var(--text);
  caret-color: var(--gold-strong);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 15px;
}

.field input::placeholder {
  color: #6f6f6a;
}

.field input:focus {
  border-color: var(--gold);
}

.input-action {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.strength-row {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.strength-row i {
  height: 3px;
  background: #2b2b29;
  border-radius: 3px;
}

.strength-row i.active {
  background: var(--gold);
}

.strength-row span {
  margin-left: 4px;
  color: var(--gold-strong);
  font-size: 10px;
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

.auth-actions {
  display: grid;
  margin-top: 20px;
  gap: 8px;
}

.auth-form-error {
  min-height: 20px;
  margin: 0;
  color: #ff8f84;
  font-size: 13px;
  line-height: 1.5;
}

.auth-footer {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.step-line {
  display: grid;
  margin: 22px 0 4px;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.step-line span {
  height: 3px;
  background: #292924;
  border-radius: 3px;
}

.step-line span.active {
  background: var(--gold);
}

.setup-screen {
  min-height: 100dvh;
  padding-bottom: 20px;
}

.setup-content {
  padding: 16px;
}

.setup-intro h1 {
  margin: 6px 0;
  font-size: 23px;
}

.setup-intro p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.config-panel {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 14px;
}

.key-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

.key-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #0b0c0d;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.key-row button {
  min-height: 46px;
  padding: 0 10px;
  font-size: 12px;
}

.check-list {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.check-list li {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.check-list li strong {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 580;
}

.check-list li small {
  color: var(--muted);
  font-size: 9px;
}

.segmented {
  display: grid;
  padding: 3px;
  grid-template-columns: 1fr 1fr;
  background: #0b0c0d;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.segmented button {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
}

.segmented button.active {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.probe-row {
  margin-top: 14px;
}

.probe-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.probe-meta strong {
  color: var(--gold-strong);
  font-size: 12px;
}

.progress-track {
  height: 6px;
  margin: 9px 0 7px;
  overflow: hidden;
  background: #292821;
  border-radius: 4px;
}

.progress-value {
  width: 42%;
  height: 100%;
  background: var(--gold);
}

.setup-actions {
  display: grid;
  margin-top: 16px;
  gap: 8px;
}
