:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #64748b;
  --border: #dfe4ea;
  --accent: #1a73e8;
  --green: #1e8e3e;
  --red: #d93025;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 14px;
}
.card.login { margin-top: 8vh; }
h1 { font-size: 22px; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.ok { color: var(--green); font-weight: 700; }
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 12px 0 6px;
}
input, select, textarea, button {
  width: 100%;
  font-size: 17px;
  font-family: inherit;
}
input, select, textarea {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
button {
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:active { opacity: .9; }
.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}
.flash.error { background: #fce8e6; color: var(--red); }
.flash.ok, .flash.success { background: #e6f4ea; color: var(--green); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}
.brand { font-weight: 800; font-size: 18px; }
.logout {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
