:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #1c2823;
  background: #f5f7f3;
  --border: #d9e1d9;
  --green: #12634b;
  --muted: #516159;
}
* { box-sizing: border-box; }
body { margin: 0; }
.frame { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.top { background: #172b24; color: #eaf3eb; }
nav { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { font-weight: 800; letter-spacing: .03em; }
.brand span { color: #b5cec0; font-weight: 500; }
.intro { margin: 42px 0 28px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; margin: 4px 0; }
h2 { font-size: 1.15rem; margin: 0; }
.intro p:last-child { color: var(--muted); margin: 10px 0; max-width: 65ch; }
.card { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.backend { margin: 5px 0 0; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.pill { background: #edf3ee; color: #2d5846; padding: 4px 9px; border-radius: 20px; font-size: .8rem; white-space: nowrap; }
#messages { height: 310px; overflow: auto; padding: 16px 20px; }
#messages:has(.empty-state) { height: auto; min-height: 205px; }
.empty { margin: 0; color: var(--muted); max-width: 53ch; line-height: 1.55; }
.empty-state { margin: 4px 0; padding: 18px; border-radius: 9px; background: #f2f6f3; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.03rem; }
.empty + .empty { margin-top: 8px; }
.entry { padding: 10px 0; border-bottom: 1px solid #edf1ed; overflow-wrap: anywhere; }
.entry small { color: var(--muted); }
.entry p { margin: 5px 0; white-space: pre-wrap; }
.entry img { display: block; max-width: min(100%, 340px); max-height: 280px; border-radius: 8px; }
form { border-top: 1px solid var(--border); padding: 15px 20px 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled input { background: #f4f6f4; }
.form-line, .send-line { display: flex; align-items: end; gap: 12px; margin-bottom: 10px; }
label { min-width: 0; flex: 1; font-size: .83rem; font-weight: 650; }
input { display: block; width: 100%; font: inherit; margin-top: 5px; padding: 9px; min-height: 42px; border: 1px solid #bfcac2; border-radius: 7px; }
input[type=file] { padding: 7px; }
button { padding: 10px 13px; min-height: 42px; border-radius: 7px; border: 0; background: var(--green); color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { background: #dae3dc; color: #4a5b51; cursor: default; }
#form-status { min-height: 1.3em; font-size: .84rem; color: var(--muted); margin: 0; }
a { color: var(--green); }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible, #messages:focus-visible {
  outline: 2px solid #16805f; outline-offset: 2px;
}
.content { padding: 20px; margin-bottom: 32px; }
.content ul { padding-left: 22px; line-height: 1.8; }
#nginx-check-files { overflow-wrap: anywhere; }
.config-found { color: var(--green); font-weight: 650; }
pre { background: #eef3ee; color: #20382b; padding: 14px; border-radius: 7px; overflow: auto; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
@media (max-width: 820px) {
  .intro { margin-top: 28px; }
  #messages { height: 250px; }
}
@media (max-width: 390px) {
  .brand span { display: none; }
  .form-line { flex-direction: column; align-items: stretch; }
}

.chat-frame { width: min(820px, calc(100% - 36px)); padding-bottom: 32px; }
#stand-meter { display: block; width: min(340px, 100%); margin: 0 0 14px; accent-color: var(--green); }
#stand-files { margin-bottom: 14px; }
.stand-table { min-width: 660px; }
.stand-table td:last-child { white-space: normal; min-width: 230px; }

#stand-files summary { color: var(--green); cursor: pointer; font-weight: 650; }
.lab-ready { text-align: right; font-size: .82rem; line-height: 1.3; max-width: 55%; }
.lab-ready strong { display: block; }
.lab-ready small { color: #b5cec0; font-size: .76rem; }
