:root {
  color-scheme: light;
  font: 16px/1.5 Lato, Arial, sans-serif;
  color: #302339;
  background: #f7f5f9;
  --purple: #4b006e;
  --orange: #ff6b00;
  --border: #ded4e4;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1080px; margin: 0 auto; padding: 24px; }
header { border-bottom: 3px solid var(--orange); margin-bottom: 16px; }
h1, h2, a { color: var(--purple); }
h1 { margin: 8px 0 12px; }
h2 { margin: 0 0 12px; font-size: 1.25rem; }
p { margin: 0 0 12px; }
#feedback:not(:empty) { margin: 0 0 16px; }
#feedback.error { color: #982938; }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
#hosting small, .installation-check small {
  display: block;
  color: #62546a;
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.35;
}
.installation-checks {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.installation-check {
  background: #faf8fc;
  border: 1px solid var(--border);
  border-left: 4px solid #8c7895;
  border-radius: 8px;
  padding: 10px 12px;
}
.installation-check[data-tone="ok"] { border-left-color: var(--purple); }
.installation-check[data-tone="action"] { border-left-color: var(--orange); }
.installation-check dt { color: var(--purple); }
@media (max-width: 540px) {
  #hosting { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
}
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  align-items: end;
}
label { display: grid; gap: 4px; font-weight: 700; }
label.checkbox { display: flex; align-items: center; padding: 8px 0; }
input, select, button {
  min-width: 0;
  font: inherit;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  background: #fff;
}
button {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.user { border-top: 1px solid var(--border); padding: 12px 0; }
.user-name { font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 8px; }
th { color: var(--purple); }
summary { cursor: pointer; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 40ch; max-height: 20rem; overflow: auto; }
@media (max-width: 540px) {
  main { padding: 14px; }
  form { grid-template-columns: minmax(0, 1fr); }
}

.role-help {
  margin: 14px 0 10px;
  padding: 10px 12px;
  background: #f5eef8;
  color: #392644;
  border-radius: 6px;
}
.role-help h3 { margin: 0 0 8px; font-size: 1rem; }
.role-legend { margin-top: 10px; }
.role-legend summary { color: var(--purple); font-weight: 700; }
.role-legend .table-wrap { margin-top: 10px; }
.role-legend th[scope="row"] { white-space: nowrap; }
@media (max-width: 540px) {
  .role-help dl { grid-template-columns: 1fr; gap: 4px; }
  .role-help dd { margin-bottom: 5px; }
}
