.input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.hidden {
  display: none !important;
}

.setup-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.setup-step {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 10px 11px;
  background: #f8fafc;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.setup-step-heading {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.setup-step.active {
  border-color: #5eead4;
  background: #f0fdfa;
}

.setup-step.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5f6f3;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.step-title {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.step-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.setup-step .btn {
  width: 100%;
}

.settings-overlay-body {
  display: grid;
  gap: 10px;
}

.settings-version-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--muted);
}

.settings-version-card span,
.settings-version-card small {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.settings-version-card strong {
  margin-left: auto;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.warning-note {
  margin: 0;
  color: #7a4a12;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.password-help-note {
  margin: 0;
  color: #7a4a12;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.inline-guide {
  margin-top: 10px;
  border: 1px solid #99e3da;
  border-radius: var(--control-radius);
  padding: 9px 11px;
  background: #f0fdfa;
}

.inline-guide-title {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.guide-text {
  margin: 0;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.55;
}

.pwa-install-button {
  margin-top: 8px;
}

.guide-steps {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.5;
}

.guide-steps strong {
  color: var(--primary-dark);
}

.settings-panel.collapsed .settings-body {
  display: none;
}

.settings-panel.collapsed {
  padding: 9px 12px;
}

.settings-panel.collapsed .panel-heading {
  margin-bottom: 0;
}

.settings-panel.collapsed .panel-heading-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.settings-panel.collapsed .hint {
  white-space: nowrap;
}

.settings-panel.collapsed .btn {
  min-height: 34px;
  width: auto;
  padding: 6px 10px;
  white-space: nowrap;
}
