:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #617080;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b514c;
  --warn: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 16px; color: var(--muted); }
main { max-width: 1180px; margin: 0 auto; padding: 24px; }
.band, .login, article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}
.intro {
  min-height: 150px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eaf7f4, #ffffff 55%, #fff7ed);
}
h1, h2 { margin: 0 0 8px; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 18px; }
p { color: var(--muted); margin: 0 0 14px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tool-card { min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; }
form { display: grid; gap: 10px; }
.inline { display: flex; align-items: center; gap: 8px; }
input[type="file"], input[type="email"], input[type="password"], input[type="number"], input[name="name"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: white;
}
button {
  border: 0;
  border-radius: 6px;
  padding: 9px 13px;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
button:hover { background: var(--accent-dark); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
pre {
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
}
pre.error, .errorline { color: var(--warn); }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.row, .admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
footer { max-width: 1180px; margin: 0 auto; padding: 18px 24px 28px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .topbar, .row, .admin-head { align-items: flex-start; flex-direction: column; height: auto; padding: 16px; }
  main { padding: 14px; }
  h1 { font-size: 26px; }
  .grid-two { grid-template-columns: 1fr; }
}
