* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login */
.login-container {
  width: 100%;
  max-width: 360px;
  padding: 2rem;
}

.login-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.login-container p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.form-group input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #444;
}

.btn {
  width: 100%;
  padding: 0.625rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }

.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.75rem;
  display: none;
}

/* Dashboard */
.dashboard {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.logout-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.logout-btn:hover { border-color: #555; color: #ccc; }

.mission-card {
  background: linear-gradient(135deg, #161616 0%, #101010 100%);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.mission-header {
  margin-bottom: 0.65rem;
}

.mission-titles {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mission-title-item {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.mission-status {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: #7e7e7e;
  line-height: 1.5;
}

.chat-assistant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, #171717 0%, #111111 100%);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.chat-assistant-copy {
  max-width: 460px;
}

.chat-assistant-copy h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0.6rem 0 0.4rem;
}

.chat-assistant-copy p {
  font-size: 0.84rem;
  color: #8a8a8a;
  line-height: 1.5;
}

.chat-assistant-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.chat-btn {
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

.chat-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.625rem 0.9rem;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  color: #d1d1d1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s;
}

.secondary-btn:hover {
  border-color: #4a4a4a;
  color: #fff;
}

.chat-assistant-unavailable {
  opacity: 0.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.1s;
}

.service-card:hover {
  border-color: #444;
  transform: translateY(-1px);
}

.service-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.375rem;
}

.service-card p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.service-card .service-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-top: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.service-tags .service-tag {
  margin-top: 0;
}

.service-card.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.service-card.planned {
  background: #1a1a1a;
  border-color: #2a2a2a;
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.service-card.planned:hover {
  border-color: #2a2a2a;
  transform: none;
}

.service-card.planned p {
  color: #666;
}

.todo-panel {
  background: linear-gradient(135deg, #161616 0%, #101010 100%);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.todo-panel.planned {
  opacity: 0.4;
}

.todo-panel-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0.6rem 0 0.4rem;
}

.todo-panel-header p {
  font-size: 0.84rem;
  color: #8a8a8a;
  line-height: 1.5;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.todo-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.1s;
}

.todo-item:hover {
  border-color: #444;
  transform: translateY(-1px);
}

.todo-date {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b7b7b;
}

.todo-title {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e5e5e5;
}

.placeholder-shell {
  width: 100%;
  max-width: 760px;
  padding: 2rem;
}

.placeholder-card {
  background: linear-gradient(135deg, #171717 0%, #0f0f0f 100%);
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 2rem;
}

.placeholder-card h1 {
  font-size: 1.8rem;
  line-height: 1.15;
  color: #fff;
  margin: 0.8rem 0 0.75rem;
}

.placeholder-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a2a2a2;
  max-width: 54ch;
}

.placeholder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

@media (max-width: 720px) {
  body {
    align-items: flex-start;
  }

  .dashboard {
    padding: 1rem;
  }

  .dashboard-header,
  .chat-assistant-card,
  .chat-assistant-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-info {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .chat-btn,
  .secondary-btn {
    width: 100%;
  }

  .todo-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .placeholder-shell {
    padding: 1rem;
  }

  .placeholder-card {
    padding: 1.5rem;
  }

  .placeholder-card h1 {
    font-size: 1.45rem;
  }
}
