/* Admin control room — utilitarian but on-brand (orange/blue, mono accents). */
body.admin { background: var(--paper); }

.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--knicks-blue); color: #fff; border-bottom: 5px solid var(--ink);
  padding: 12px 16px; flex-wrap: wrap;
}
.admin-top h1 { font-family: "Anton", sans-serif; font-size: 1.5rem; margin: 0; letter-spacing: 1px; }
.admin-top h1 span { font-family: "VT323", monospace; font-size: 1rem; color: var(--knicks-orange); margin-left: 6px; }
.admin-top-right { display: flex; align-items: center; gap: 12px; font-family: "VT323", monospace; }
.admin-top .link { color: #cfe6ff; text-decoration: none; }
#who { color: var(--knicks-orange); }

.btn {
  font-family: "VT323", monospace; font-size: 1.05rem; letter-spacing: 1px;
  background: var(--knicks-orange); color: #fff; border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm); padding: 6px 14px; cursor: pointer;
}
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.sm { font-size: 0.95rem; padding: 3px 9px; border-width: 2px; }
.btn.ghost { background: transparent; color: #fff; }
.btn.danger { background: #c0392b; }
.btn.run { background: #1c7c3c; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.run-err { color: #c0392b; max-width: 260px; font-size: 0.78rem; white-space: normal; }

/* login */
.login { display: flex; justify-content: center; padding: 60px 16px; }
.login-card {
  background: var(--paper-2); border: 3px solid var(--ink); box-shadow: var(--shadow);
  padding: 24px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px;
}
.login-card h2 { margin: 0 0 4px; font-family: "Anton", sans-serif; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-family: "VT323", monospace; font-size: 1.05rem; }
.login-card input { padding: 9px; border: 3px solid var(--ink); font-size: 1rem; }
.err { color: #c0392b; font-family: "VT323", monospace; margin: 0; }

/* app */
.admin-app { max-width: 1100px; margin: 0 auto; padding: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab {
  font-family: "VT323", monospace; font-size: 1.05rem; padding: 5px 13px;
  border: 3px solid var(--ink); background: var(--paper-2); cursor: pointer; box-shadow: var(--shadow-sm);
}
.tab.is-on { background: var(--knicks-blue); color: #fff; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tab-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.tab-tools input, .tab-tools select {
  font-size: 0.95rem; padding: 6px 9px; border: 3px solid var(--ink); background: #fff;
}
.tab-tools input { min-width: 200px; }
.panel-head .btn { margin-left: 0; }
.panel-head h2 { font-family: "Anton", sans-serif; text-transform: capitalize; margin: 0; }
.panel-head small { font-family: "VT323", monospace; color: #5a6672; }

.table-wrap { overflow-x: auto; border: 3px solid var(--ink); background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { border: 1px solid var(--silver); padding: 5px 7px; text-align: left; vertical-align: middle; }
th { background: var(--knicks-blue); color: #fff; font-family: "VT323", monospace; letter-spacing: 1px; position: sticky; top: 0; }
td input[type="text"], td input:not([type]), td input[type="number"], td input[type="date"], td select {
  width: 100%; min-width: 80px; padding: 5px 6px; border: 2px solid var(--silver); font-size: 0.9rem; background: #fff;
}
td input[type="checkbox"] { width: 20px; height: 20px; }
.row-actions { white-space: nowrap; display: flex; gap: 5px; }

/* settings */
.settings-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
fieldset { border: 3px solid var(--ink); background: var(--paper-2); padding: 14px; }
legend { font-family: "Anton", sans-serif; padding: 0 8px; }
fieldset label { display: flex; flex-direction: column; gap: 4px; font-family: "VT323", monospace; font-size: 1.05rem; margin-bottom: 10px; }
fieldset label.row { flex-direction: row; align-items: center; gap: 8px; }
fieldset input { padding: 8px; border: 3px solid var(--ink); font-size: 1rem; }
.hint { font-size: 0.82rem; color: #5a6672; margin: 8px 0 0; }
.hint code { background: #eee; padding: 1px 4px; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--knicks-blue); color: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow);
  font-family: "VT323", monospace; font-size: 1.1rem; padding: 8px 18px; z-index: 50;
}
.toast.bad { background: #c0392b; }
