:root {
  --gb-blue: #0f5ea8;
  --gb-blue-dark: #0b3f73;
  --gb-blue-soft: #e8f2fb;
  --gb-ink: #102033;
  --gb-line: #dbe5ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gb-ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-visual {
  background:
    radial-gradient(circle at 22% 18%, rgba(80, 166, 232, 0.18), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(16, 185, 129, 0.13), transparent 26%),
    linear-gradient(145deg, #0c3563 0%, #0f5ea8 58%, #1877ba 100%);
}

.bio-grid {
  background-color: #0f5ea8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(80, 166, 232, 0.18), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(16, 185, 129, 0.13), transparent 26%),
    linear-gradient(145deg, #0c3563 0%, #0f5ea8 58%, #1877ba 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.molecule-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.molecule-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.34);
}

.app-card {
  border: 1px solid rgba(219, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 42, 72, 0.06);
}

.soft-card {
  border: 1px solid rgba(219, 229, 239, 0.86);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 42, 72, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.soft-card:hover {
  border-color: rgba(15, 94, 168, 0.24);
  box-shadow: 0 18px 38px rgba(15, 42, 72, 0.08);
  transform: translateY(-2px);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--gb-blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 94, 168, 0.2);
}

.btn-primary:hover {
  background: var(--gb-blue-dark);
  box-shadow: 0 16px 30px rgba(15, 94, 168, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--gb-line);
  background: #ffffff;
  color: #17324f;
}

.btn-secondary:hover {
  border-color: rgba(15, 94, 168, 0.32);
  background: #f8fbff;
  color: var(--gb-blue-dark);
}

.btn-ghost {
  color: #4b637c;
}

.btn-ghost:hover {
  background: #eef6fd;
  color: var(--gb-blue-dark);
}

.icon-button {
  width: 2.5rem;
  border: 1px solid var(--gb-line);
  background: #ffffff;
  color: #476078;
}

.icon-button:hover {
  border-color: rgba(15, 94, 168, 0.26);
  color: var(--gb-blue);
  background: #f7fbff;
}

.input-field {
  width: 100%;
  border: 1px solid var(--gb-line);
  border-radius: 0.875rem;
  background: #ffffff;
  padding: 0.72rem 0.95rem;
  color: #12263d;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input-field:focus {
  border-color: rgba(15, 94, 168, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 94, 168, 0.11);
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.09) !important;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  padding: 0.72rem 0.85rem;
  color: #526b84;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-link:hover {
  background: #eef6fd;
  color: var(--gb-blue-dark);
}

.sidebar-link.is-active {
  background: var(--gb-blue-soft);
  color: var(--gb-blue-dark);
}

.sidebar-link svg,
.nav-icon,
[data-lucide] {
  width: 1.08rem;
  height: 1.08rem;
  stroke-width: 2;
}

.page-title {
  letter-spacing: 0;
}

.section-title {
  color: #12263d;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--gb-blue);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--gb-line);
  border-radius: 1rem;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f9fc;
  color: #556b82;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 0.95rem 1rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 140ms ease;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 760;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

.status-blue {
  background: #e8f2fb;
  color: #0f5ea8;
}

.status-amber {
  background: #fff7e6;
  color: #b45309;
}

.status-green {
  background: #e9f8f0;
  color: #047857;
}

.status-slate {
  background: #edf2f7;
  color: #475569;
}

.status-red {
  background: #fff1f2;
  color: #be123c;
}

.metric-icon {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
}

.toast {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 90;
  display: none;
  max-width: min(28rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(219, 229, 239, 0.95);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 42, 72, 0.18);
}

.toast.is-visible {
  display: block;
}

.notice-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
}

.notice-inner::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--gb-blue);
}

.notice-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: #e8f2fb;
  color: var(--gb-blue);
}

.notice-title {
  color: #102033;
  font-weight: 800;
}

.notice-message {
  margin-top: 0.2rem;
  color: #526b84;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice-close {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  color: #7890a8;
}

.notice-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.notice-success .notice-inner::before {
  background: #059669;
}

.notice-success .notice-icon {
  background: #e9f8f0;
  color: #047857;
}

.notice-error .notice-inner::before {
  background: #e11d48;
}

.notice-error .notice-icon {
  background: #fff1f2;
  color: #be123c;
}

.notice-warning .notice-inner::before {
  background: #d97706;
}

.notice-warning .notice-icon {
  background: #fff7e6;
  color: #b45309;
}

.notice-info .notice-inner::before {
  background: var(--gb-blue);
}

.account-trigger {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--gb-line);
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.35rem 0.6rem;
  color: #12263d;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: rgba(15, 94, 168, 0.28);
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(15, 42, 72, 0.06);
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 50;
  width: min(18rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--gb-line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 42, 72, 0.14);
}

.account-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: left;
}

.account-menu-item:hover {
  background: #f8fbff;
  color: var(--gb-blue-dark);
}

.progress-track {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gb-blue);
}

.step-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.9rem;
  border: 1px solid var(--gb-line);
  background: #ffffff;
  padding: 0.65rem 0.75rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 760;
}

.step-pill span {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf2f7;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 900;
}

.step-pill.is-active {
  border-color: rgba(15, 94, 168, 0.26);
  background: #eef6fd;
  color: var(--gb-blue-dark);
}

.step-pill.is-active span,
.step-pill.is-complete span {
  background: var(--gb-blue);
  color: #ffffff;
}

.step-pill.is-complete {
  color: #047857;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 32, 51, 0.48);
  padding: 1rem;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(15, 32, 51, 0.42);
}

.mobile-overlay.is-visible {
  display: block;
}

.drawer-mobile {
  display: block !important;
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

.drawer-mobile.is-open {
  transform: translateX(0);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gb-line);
  border-radius: 0.8rem;
  background: #ffffff;
}

.quantity-control button {
  width: 2rem;
  height: 2rem;
  color: #48637c;
}

.quantity-control button:hover {
  background: #eef6fd;
  color: var(--gb-blue);
}

.quantity-control input {
  width: 3rem;
  border: 0;
  text-align: center;
  outline: 0;
}

.timeline-dot {
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--gb-blue);
  box-shadow: 0 0 0 3px #d9ebfa;
}

.segmented {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid var(--gb-line);
  border-radius: 0.9rem;
  background: #f7fafc;
  padding: 0.25rem;
}

.segmented button,
.segmented a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 0 0.8rem;
  color: #536a82;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.segmented .is-active {
  background: #ffffff;
  color: var(--gb-blue-dark);
  box-shadow: 0 4px 12px rgba(15, 42, 72, 0.07);
}

@media (max-width: 767px) {
  .data-table th,
  .data-table td {
    padding: 0.82rem 0.85rem;
  }

  .page-title {
    font-size: 1.7rem;
  }
}

@media print {
  #sidebar,
  #topbar,
  .no-print {
    display: none !important;
  }

  .lg\:pl-72 {
    padding-left: 0 !important;
  }

  body {
    background: #ffffff !important;
  }
}
