html,
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.9rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.nav-item:hover {
  background: #f8fafc;
}

.nav-item:active {
  transform: translateY(1px);
}

.nav-item.is-active {
  background: #eff6ff;
  border-color: rgba(30, 58, 138, 0.18);
}

.nav-icon {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.card-value {
  margin-top: 0.35rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.card-sub {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
}

.pager-btn {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background-color 120ms ease, transform 80ms ease;
}

.pager-btn:hover {
  background: #f8fafc;
}

.pager-btn:active {
  transform: translateY(1px);
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.tab-btn:hover {
  background: #f8fafc;
}

.tab-btn:active {
  transform: translateY(1px);
}

.tab-btn.is-active {
  background: #eff6ff;
  border-color: rgba(30, 58, 138, 0.25);
  color: #1e3a8a;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #0f172a;
  transition: background-color 120ms ease, transform 80ms ease;
}

.icon-btn:hover {
  background: #f8fafc;
}

.icon-btn:active {
  transform: translateY(1px);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.suggestions {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: white;
  box-shadow: 0 12px 30px -18px rgba(2, 6, 23, 0.45);
  overflow: hidden;
  z-index: 40;
}

.suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: #0f172a;
  background: white;
}

.suggestion-item:hover {
  background: #f8fafc;
}

.suggestion-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.quick-chip {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  color: #0f172a;
  transition: background-color 120ms ease, transform 80ms ease;
}

.quick-chip:hover {
  background: #f8fafc;
}

.quick-chip:active {
  transform: translateY(1px);
}

.label {
  width: 320px;
  border-radius: 1rem;
  border: 2px solid #0f172a;
  background: white;
  overflow: hidden;
}

.label-top {
  padding: 0.85rem 0.9rem;
  background: #0f172a;
  color: white;
}

.label-title {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.label-sub {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

.label-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.label-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.label-field {
  display: grid;
  gap: 0.15rem;
}

.label-k {
  font-size: 0.7rem;
  font-weight: 900;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label-v {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.label-qr {
  margin-top: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  border: 1px dashed #cbd5e1;
  padding: 0.75rem;
  background: #f8fafc;
}

@media print {
  body {
    background: white !important;
  }
  header,
  aside,
  #toasts,
  .modal-backdrop,
  .modal-header,
  .quick-chip,
  button {
    display: none !important;
  }
  .modal {
    position: static;
    padding: 0 !important;
    display: block !important;
  }
  .modal-panel {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }
}

