/* Console pages on top of the terminal UI's stylesheet (/static/style.css). */

body.console #show-sidebar { display: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; padding-left: 4px; }
.me-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.other-item.active { background: var(--hover); color: var(--text); }

/* --- sign-in ------------------------------------------------------------------------------ */

.login { min-height: var(--app-h); display: grid; place-items: center; padding: 24px; background: var(--term); }
.login-card {
  width: min(380px, 100%); display: grid; gap: 12px; padding: 28px; border-radius: 14px;
  background: var(--side); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.login-card img { margin-bottom: 2px; }
.login-card h1 { margin: 0; font-size: 19px; }
.login-card p { margin: 0 0 6px; font-size: 13px; }
label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"] {
  height: 36px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: #161616; color: var(--text); font: 13px var(--ui);
}
input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #2a93ff; }
.btn.wide { width: 100%; height: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; text-decoration: none; }
.btn .icon { width: 14px; height: 14px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.form-error { margin: 0; color: var(--halt); font-size: 12.5px; }

/* --- content ------------------------------------------------------------------------------ */

.console-content { flex: 1; overflow: auto; padding: 26px 30px 40px; }
.page { max-width: 860px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 20px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(255, 255, 255, .06); color: var(--muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.running { color: var(--live); background: rgba(50, 215, 75, .1); }
.pill.suspended, .pill.suspending { color: #ffd60a; background: rgba(255, 214, 10, .1); }
.pill.pending, .pill.terminating { color: var(--accent); background: var(--accent-soft); }

.card { border: 1px solid var(--line); border-radius: 12px; background: var(--side); margin-bottom: 16px; }
.card h2 { margin: 0; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px; padding: 14px 16px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card .body { padding: 14px 16px; font-size: 13px; color: var(--muted); }
.card .body p { margin: 0 0 8px; }

.launch {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(10, 132, 255, .16), rgba(10, 132, 255, .04)); border: 1px solid rgba(10, 132, 255, .35);
}
.launch > .icon { width: 22px; height: 22px; color: var(--accent); }
.launch div { flex: 1; }
.launch strong { display: block; font-size: 14px; }
.launch div > span { font-size: 12.5px; color: var(--muted); }

.form-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 14px 16px; }
.form-row label { flex: 1; min-width: 200px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); height: 36px; }

.users { width: 100%; border-collapse: collapse; font-size: 13px; }
.users td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.users td:first-child { display: flex; align-items: center; gap: 10px; }
.users td:last-child { text-align: right; width: 1%; white-space: nowrap; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; margin-left: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.tag.admin { background: var(--accent-soft); color: #7ab8ff; }
.tag.off { background: rgba(255, 69, 58, .12); color: var(--halt); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state img { margin-bottom: 14px; }
.empty-state h2 { color: var(--text); font-size: 16px; margin: 0 0 6px; }
.empty-state p { margin: 0 0 16px; }

@media (max-width: 760px) {
  body.console #show-sidebar { display: inline-grid; }
  .console-content { padding: 18px 16px 32px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .users td:nth-child(2) { display: none; }
}
