* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0f1117;
  color: #e0e0e0;
  min-height: 100vh;
  padding: 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2d3a;
}

.logo-area h1 {
  font-size: 22px;
  font-weight: 700;
  color: #64b5f6;
  letter-spacing: 0.5px;
}

.logo-area p {
  font-size: 13px;
  color: #888;
  margin-top: 3px;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.header-auth-user {
  font-size: 12px;
  color: #888;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.breadcrumbs a {
  color: #64b5f6;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #444;
}

.breadcrumb-current {
  color: #aaa;
}

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  background: #161a24;
  border: 1px solid #2a2d3a;
  border-radius: 10px;
  text-align: center;
}

.auth-card h2 {
  font-size: 1.25rem;
  color: #64b5f6;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 1px solid #3a3d4a;
  background: #1a5a9a;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.auth-btn:hover {
  background: #1e6bb8;
  border-color: #64b5f6;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background: transparent;
  color: #bbb;
}

.auth-btn-secondary:hover {
  background: #2a2d3a;
  color: #e0e0e0;
}

#auth-status {
  padding: 0.75rem 1rem;
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  background: #0f1117;
  color: #888;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

#auth-status.logged-in { color: #4caf50; }
#auth-status.error { color: #ef5350; }

.is-hidden { display: none !important; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: #161a24;
  border: 1px solid #2a2d3a;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.tool-card:hover {
  border-color: #64b5f6;
  transform: translateY(-2px);
}

.tool-card h2 {
  font-size: 1rem;
  color: #90caf9;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.45;
}

.tool-card .tool-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.no-tools-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}
