:root {
  color-scheme: light;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --line: #dbe4f0;
  --surface: #f8fbff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 8% -10%, #dcecff 0%, transparent 50%),
    radial-gradient(1000px 640px at 100% 0%, #e7e2ff 0%, transparent 45%),
    var(--bg);
  color: var(--text);
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
}

.app-shell {
  width: 100%;
  max-width: 980px;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 360px;
  height: 360px;
  background: #8db8ff;
  top: -140px;
  left: -80px;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: #bca8ff;
  bottom: -140px;
  right: -90px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(4px);
}

.signin-panel {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.panel-head {
  display: grid;
  gap: 0.35rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.25;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.signin-actions {
  display: grid;
  gap: 0.8rem;
}

.hint {
  margin: 0;
  color: var(--muted);
  min-height: 1.25rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-title h2 {
  font-size: 1.6rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #f3f7ff 100%);
  padding: 0.75rem 0.85rem;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.stat-value {
  margin: 0.25rem 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff 0%, var(--surface) 100%);
  padding: 0.9rem;
  font-weight: 600;
  min-height: 88px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.tool-link:hover {
  border-color: #93c5fd;
  background: #edf5ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  flex-shrink: 0;
}

.tool-copy {
  display: grid;
  gap: 0.12rem;
}

.tool-name {
  font-size: 0.95rem;
  line-height: 1.2;
}

.tool-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 500;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 1rem;
  }

  .panel {
    padding: 1.2rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-chip {
    font-size: 0.7rem;
  }
}