/* Operator console — minimal, CSP-clean (external file; no inline styles). */
:root {
  --bg: #08090B; --panel: #0d1117; --line: #161d27;
  --text: #EAF2F0; --muted: #8b97a3; --green: #3FE0A0; --danger: #ff6b6b;
}
* { box-sizing: border-box; }
body.admin {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
/* .bar is space-between over exactly two children, so the mark and the title
   must group into one child or the title drifts to centre. */
.bar-brand { display: flex; align-items: center; gap: 12px; }
/* KX mark: micro K+X ligature in a pixel frame. Letters stay flat so the
   counters hold at this size; only the frame carries the bloom. overflow must
   stay visible or the drop-shadow clips at the viewBox edge. Fills use
   --green so the mark matches the console chrome beside it. */
.kx-logo { height: 28px; width: auto; flex: none; overflow: visible; display: block; }
.kx-logo .kx-letters { fill: var(--green); }
.kx-logo .kx-frame {
  fill: var(--green);
  filter: drop-shadow(0 0 3px rgba(63, 224, 160, 0.85))
          drop-shadow(0 0 8px rgba(63, 224, 160, 0.45));
  animation: kx-breathe 5s ease-in-out infinite;
}
@keyframes kx-breathe {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kx-logo .kx-frame { animation: none; opacity: 0.92; }
}
main { max-width: 980px; margin: 0 auto; padding: 28px 20px; }
.card {
  max-width: 380px; margin: 8vh auto; padding: 28px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
}
.brand { font-size: .72rem; letter-spacing: .22em; color: var(--green); margin: 0 0 10px; font-weight: 600; }
h1 { font-size: 1.2rem; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: .85rem; margin: 0 0 18px; }
/* Sign-in / form failures. This is the operator's only feedback that a submit was rejected, so it
   reads as a bordered alert rather than a line of small print -- an unstyled fallback (a stylesheet
   that never loads) still shows the text, and role="alert" announces it to screen readers. */
.error {
  color: var(--danger); font-size: .9rem; margin: 0 0 14px;
  padding: 10px 12px; border: 1px solid var(--danger); border-radius: 8px;
  background: rgba(255, 107, 107, .1);
}
label { display: block; margin: 0 0 14px; font-size: .8rem; color: var(--muted); }
input {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  background: #0a0e14; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; resize: vertical;
  background: #0a0e14; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit;
}
textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
button {
  padding: 10px 16px; background: var(--green); color: #04130d; border: 0;
  border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
.inline { display: inline; }
/* Invite form: email field + button on one line (the field is display:block/width:100%,
   which otherwise collides with the button). Flex row keeps them side by side with a gap. */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.row input { width: auto; flex: 1 1 240px; margin-top: 0; }
.row button { flex: 0 0 auto; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .85rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
a { color: var(--green); text-decoration: none; }
.warn { color: #ffcf5c; }
.bar-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Dashboard launcher: an outlined green pill so it reads as a primary launch action, distinct from
   the plain nav links yet not competing with the filled Sign-out button. */
.bar-launch {
  display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid var(--green);
  border-radius: 8px; color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bar-launch:hover { background: rgba(63, 224, 160, .12); }
.search { max-width: 460px; margin: 0 0 14px; }
.btn-open {
  display: inline-block; padding: 9px 16px; background: var(--green); color: #04130d;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.pk-or { margin: 14px 0; opacity: .8; }
.pref-form { margin: 8px 0 4px; }
.pref-opt { display: block; margin: 8px 0; color: var(--text); font-size: .9rem; }
.pref-opt input { display: inline; width: auto; margin: 0 8px 0 0; }
