/* The three top-level screens (login gate, pending gate, app) and the app shell. */

/* --- Full-screen gate (login / access-pending) --- */
.gate { flex: 1; display: none; align-items: center; justify-content: center; padding: 24px; }
.gate.show { display: flex; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; width: min(440px, 92vw); text-align: center; display: flex;
  flex-direction: column; gap: 16px;
}
.card h1 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--discord); border-color: var(--discord); color: #fff; font-weight: 600;
  padding: 12px 18px; font-size: 15px; border: 1px solid var(--discord); border-radius: 8px;
  text-decoration: none; cursor: pointer;
}
.idbox {
  display: flex; gap: 6px; align-items: center; justify-content: center;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.idbox span { flex: 1; text-align: left; overflow-x: auto; }

/* --- App shell --- */
#app { flex: 1; display: none; flex-direction: column; min-height: 0; }
#app.show { display: flex; }
header {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--panel); border-bottom: 1px solid var(--border);
}
header h1 { font-size: 16px; margin: 0; font-weight: 600; }
header .spacer { flex: 1; }
.whoami { display: flex; align-items: center; gap: 8px; }
.whoami img { width: 28px; height: 28px; border-radius: 50%; background: var(--panel2); }

/* --- Management layout --- */
.layout {
  flex: 1; min-height: 0; overflow: auto; padding: 20px;
  display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-content: start;
}
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.col-left { min-width: 0; }
.col-detail { min-width: 0; }
