:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #555555;
  --green: #8EBC6B;
  --surface: #ffffff;
  --background: #f5f5f5;
  --line: #d5d5d5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
header {
  padding: 1.75rem max(1rem, calc((100vw - 70rem) / 2));
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 70rem; margin: 0 auto; }
.brand-name, header > span {
  display: block;
  margin: 0 0 .9rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.site-context > p, header > p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
}
main {
  width: 100%;
  max-width: 48rem;
  flex: 1;
  margin: 2.5rem auto;
  padding: 0 1rem;
  min-width: 0;
}
main:has(table) { max-width: 72rem; }
body:has(.panel > form input[autocomplete="username"]):not(:has(table)) main,
body:has(.panel > form input[autocomplete="new-password"]):not(:has(table)) main { max-width: 32rem; }
.panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .375rem;
  box-shadow: 0 .25rem 1.25rem rgb(0 0 0 / 3%);
}
h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 650; line-height: 1.3; }
h3 { margin: 1.75rem 0 .75rem; font-size: 1.125rem; line-height: 1.4; }
p { overflow-wrap: anywhere; }
form { max-width: 36rem; margin: 1.25rem 0; }
label { display: block; margin: 1.25rem 0 .375rem; font-weight: 600; }
input, select, button { font: inherit; border-radius: .25rem; }
input, select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .6875rem .75rem;
  border: 1px solid #777777;
  background: var(--surface);
  color: var(--ink);
}
button, .button {
  display: inline-block;
  max-width: 100%;
  min-height: 3rem;
  margin: 1.25rem .5rem .25rem 0;
  padding: .6875rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: .25rem;
  background: var(--green);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--ink); color: #ffffff; }
button.secondary, .button.secondary { background: #ffffff; color: var(--ink); border-color: #777777; }
button.secondary:hover, .button.secondary:hover { background: #eeeeee; }
button:disabled { background: #e8e8e8; color: #555555; border-color: #aaaaaa; cursor: not-allowed; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.message {
  margin: 1rem 0;
  padding: .875rem 1rem;
  border: 1px solid #bbbbbb;
  border-left: 3px solid var(--ink);
  background: #f5f5f5;
  color: var(--ink);
}
.hint { color: var(--muted); font-size: .9375rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #000000; padding: .75rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--ink); color: #ffffff; }
tbody tr:nth-child(even) { background: #f2f2f2; }
td form { min-width: 14rem; margin: 0; }
footer { padding: 1.25rem 1rem; color: var(--muted); font-size: .875rem; text-align: center; }
@media (max-width: 40rem) {
  header { padding: 1.25rem 1rem; }
  .brand-name, header > span { margin-bottom: .75rem; font-size: 1.75rem; }
  main { margin: 1.5rem auto; }
  .panel { padding: 1.25rem; }
  th, td { padding: .5rem; }
}
