* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1d21;
  background: #f5f6f8;
}
main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
h1 { font-size: 1.3rem; }
code { background: #eceef1; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #14181d; color: #fff; padding: 0.7rem 1.2rem;
}
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.topbar a { color: #cfd6dd; text-decoration: none; }
.topbar a:hover { color: #fff; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid #e6e8eb; font-size: 0.92rem; }
th { background: #eef0f3; font-weight: 600; }
tr.queue-only td { color: #7a828c; font-style: italic; }
td.actions { white-space: nowrap; }

form label { display: block; margin: 0.8rem 0; font-weight: 600; font-size: 0.9rem; }
form input, form textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.5rem 0.6rem;
  border: 1px solid #c6ccd2; border-radius: 6px; font-size: 0.95rem; font-weight: 400;
}
form textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

button, .btn {
  display: inline-block; background: #2062d4; color: #fff; border: none;
  padding: 0.55rem 1.2rem; border-radius: 6px; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: #184ea9; }
.btn-small { padding: 0.25rem 0.7rem; font-size: 0.85rem; }
.btn-approve { background: #1d8a3e; }
.btn-approve:hover { background: #166b30; }
button.link { background: none; color: #cfd6dd; padding: 0; font-size: 0.95rem; }
button.link:hover { background: none; color: #fff; text-decoration: underline; }
form.inline { display: inline; margin: 0; }
form.inline label { display: inline; }

.notice { background: #e4f3e8; border: 1px solid #b4dcbf; padding: 0.6rem 0.9rem; border-radius: 6px; }
.error { background: #fbe7e7; border: 1px solid #eab7b7; padding: 0.6rem 0.9rem; border-radius: 6px; color: #8f2020; }
.hint { color: #5c646d; font-size: 0.85rem; }

.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box {
  background: #fff; padding: 2rem 2.5rem; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); width: 100%; max-width: 380px; margin: 1rem;
}
.login-box h1 { margin-top: 0; font-size: 1.15rem; }
.login-box button { width: 100%; margin-top: 0.5rem; }

@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  table { display: block; overflow-x: auto; }
}
