* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --text: #111111;
  --text-soft: #555555;
  --line: #111111;
  --line-soft: #d7d7d7;
  --success-bg: #111111;
  --success-text: #ffffff;
  --warn-bg: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus {
  border-color: var(--line);
  outline: none;
}

.install-shell {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.install-card {
  width: min(100%, 980px);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.install-card-narrow {
  width: min(100%, 520px);
}

.install-header,
.brand,
.check-row,
.notice,
.primary-link,
.ghost-link,
.primary-button {
  display: flex;
  align-items: center;
}

.install-header {
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 14px;
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.brand p,
.muted,
.check-text span {
  color: var(--text-soft);
}

.install-icon,
.install-icon svg {
  width: 22px;
  height: 22px;
}

.install-section {
  display: grid;
  gap: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.section-title span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.check-list,
.install-form {
  display: grid;
  gap: 14px;
}

.check-row {
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}

.check-row em {
  margin-left: auto;
  font-style: normal;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
}

.check-row.failed em {
  border-color: var(--line);
}

.check-text strong {
  display: block;
  margin-bottom: 4px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 14px;
}

.notice,
.feedback {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  gap: 10px;
}

.notice.ok,
.feedback.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.feedback.error,
.notice.warn {
  background: var(--warn-bg);
}

.primary-button,
.primary-link,
.ghost-link {
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  border: 1px solid var(--line);
}

.primary-button,
.primary-link {
  background: #111111;
  color: #ffffff;
}

.primary-button {
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost-link {
  background: #ffffff;
  color: var(--text);
}

@media (max-width: 760px) {
  .install-shell {
    padding: 16px;
  }

  .install-card {
    padding: 20px;
  }

  .install-header {
    align-items: flex-start;
    flex-direction: column;
  }

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