* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0c0c0f;
  color: #ccccd8;
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2a2a38;
  margin-bottom: 28px;
}

.logo {
  color: #5b8def;
  font-size: 20px;
  line-height: 1;
}

h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 0;
  flex: 1;
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #141418;
}

.profile-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.profile-name {
  font-family: monospace;
  font-size: 11px;
  color: #ccccd8;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: #8888a0;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-logout:hover:not(:disabled) {
  color: #ef4444;
  border-color: #2a2a38;
  background: rgba(239, 68, 68, 0.06);
}

.btn-logout:disabled {
  opacity: 0.5;
  cursor: default;
}

#login {
  padding: 60px 0;
  text-align: center;
}

.login-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  color: #55556a;
  font-family: monospace;
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2a38;
}

.btn-login {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #2a2a38;
  background: #141418;
  color: #ccccd8;
  text-decoration: none;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}

.btn-login:hover:not(:disabled) {
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.08);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: default;
}

.bot-status {
  margin: 0;
  font-family: monospace;
  font-size: 11px;
  color: #8888a0;
  text-align: center;
}

.bot-status.err {
  color: #d4a84f;
}

.login-hint {
  margin: -8px 0 0;
  max-width: 280px;
  font-family: monospace;
  font-size: 11px;
  color: #55556a;
  text-align: center;
  line-height: 1.4;
}

#notice {
  margin-bottom: 18px;
}

.notice {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #4a3a1a;
  background: rgba(212, 168, 79, 0.08);
  color: #d4a84f;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
}

#apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  background: #141418;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.card:hover {
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.06);
}

.card:active {
  transform: translateY(1px);
}

.card-marker {
  font-size: 20px;
  color: #5b8def;
  line-height: 1.2;
  flex-shrink: 0;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card p {
  margin: 0;
  font-size: 12px;
  color: #8888a0;
  line-height: 1.4;
}

.err {
  color: #ef4444;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
  padding: 40px 0;
}
