:root {
  color-scheme: dark;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080B11;
  color: #F3F4F6;
  min-height: 100vh;
}

body {
  margin: 0;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 4px;
  color: #60A5FA;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

h3 {
  margin-top: 0;
}

input, select, textarea, button {
  min-height: 40px;
  border-radius: 8px;
  font: inherit;
}

input, select, textarea {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.55);
  color: white;
  padding: 0 14px;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

button {
  border: none;
  background: #2563EB;
  color: white;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.panel, .auth-panel {
  background: rgba(16, 22, 37, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 22px;
}

.auth-panel {
  max-width: 440px;
  margin: 80px auto 0;
}

.auth-panel form, .tenant-form {
  display: grid;
  gap: 12px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.auth-actions a {
  color: #93C5FD;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-actions a:hover {
  color: #BFDBFE;
  text-decoration: underline;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.session {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.session-badge, .status-badge {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #BFDBFE;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.tasks {
  display: grid;
  gap: 14px;
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: rgba(17, 24, 39, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.card.selected {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.12);
}

.title {
  font-weight: 800;
}

.muted, .meta {
  color: #9CA3AF;
  font-size: 13px;
}

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
}

.notice.success {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #A7F3D0;
}

.notice.error {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
}

.editor-panel {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edit-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edit-rows label {
  display: grid;
  gap: 8px;
}

.edit-rows span {
  color: #9CA3AF;
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.loader-container {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
}

.loader-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #60A5FA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  color: #9CA3AF;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
