/* Page layouts matched to live screenshots */
.pc-with-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 991px) {
  .pc-with-sidebar { grid-template-columns: 1fr; }
  .pc-peptide-sidebar .List-of-Peptides { max-height: 240px; }
}
.pc-peptide-sidebar {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 12px 10px 8px;
  position: sticky;
  top: 80px;
}
.pc-peptide-sidebar .List-of-Peptides { max-height: 70vh; overflow: auto; }
.pc-peptide-sidebar .peptides-list-text { margin: 0 8px 8px; }

/* Homepage how-to + calc */
.pc-home-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.5rem; align-items: start; }
@media (max-width: 991px) { .pc-home-split { grid-template-columns: 1fr; } }
.pc-howto-card {
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1rem 1rem 4.5rem;
  position: relative;
  margin-bottom: .85rem;
  min-height: 88px;
}
.pc-howto-card .wm {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 2.6rem; font-weight: 800; color: rgba(26,63,96,.12); line-height: 1;
}
.pc-howto-card h3 { font-size: 1rem; font-weight: 700; color: #1A3F60; margin: 0 0 .25rem; }
.pc-howto-card p { margin: 0; color: #6b7280; font-size: .9rem; }

/* Saved calculation cards */
.pc-saved-card {
  background: #eaf4ff;
  border-radius: 16px;
  padding: 1rem 1.1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #d5e7f8;
}
.pc-saved-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.pc-saved-card .idx { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #1A3F60; }
.pc-saved-card .badge-saved {
  background: #d9f5e3; color: #1f8f4e; border-radius: 999px; padding: .2rem .7rem;
  font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem;
}
.pc-saved-card .actions { display: flex; align-items: center; gap: .55rem; }
.pc-saved-card .actions button { border: 0; background: transparent; padding: 0; }
.pc-saved-card .actions .del { color: #e53935; }
.pc-saved-card .actions .edit { color: #334155; }
.pc-saved-card .footer { display: flex; justify-content: space-between; align-items: center; margin-top: .85rem; }
.pc-saved-card .units-btn {
  background: linear-gradient(180deg, #4a8bc2, #1A3F60);
  color: #fff; border: 0; border-radius: 10px; padding: .45rem 1rem; font-weight: 700;
}
.pc-saved-card ul { margin: .75rem 0 0; padding-left: 1.1rem; color: #3d5a73; }

/* Calendar */
.pc-cal-today-card {
  background: #eaf4ff; border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid #d5e7f8;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem;
}
.pc-cal-today-card.taken { opacity: .75; }
.pc-cal-today-card .taken-btn {
  background: #1A3F60; color: #fff; border: 0; border-radius: 10px; padding: .5rem 1.1rem; font-weight: 700;
}
.pc-cal-panel {
  background: linear-gradient(180deg, #2D587B, #52A1E1); border-radius: 16px; padding: 1rem; color: #fff;
}
.pc-cal-panel .bar {
  background: #d9ebfb; color: #1A3F60; border-radius: 10px; padding: .65rem .9rem;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.pc-cal-panel .add-btn {
  background: #22c55e; color: #fff; border: 0; border-radius: 8px; padding: .4rem .8rem; font-weight: 700;
}
.pc-cal-item {
  border: 1px solid rgba(255,255,255,.55); border-radius: 10px; padding: .75rem .9rem;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem;
}

/* Dosages admin-like table */
.pc-dosages-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 1rem; }
.pc-dosages-toolbar .btn-tool {
  background: #fff; border: 1px solid #cfd8e3; border-radius: 8px; padding: .4rem .75rem; font-size: .875rem;
}
.pc-btn-green { background: #22c55e !important; color: #fff !important; border: 0 !important; border-radius: 8px; padding: .5rem .9rem; font-weight: 700; }
.pc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.pc-table th { background: #1A3F60; color: #fff; padding: .7rem .75rem; font-size: .875rem; }
.pc-table td { padding: .7rem .75rem; border-bottom: 1px solid #e5eaf0; font-size: .9rem; }
.pc-table tr:nth-child(even) td { background: #f7fafc; }
.pc-icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #cfd8e3; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-right: .25rem;
}
.pc-icon-btn.danger { border-color: #f5a8a8; color: #e53935; }

/* Dosage chart panels */
.pc-chart-panel {
  background: #e8f2fb; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.pc-chart-panel h3 { color: #1A3F60; font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.pc-chart-toggle {
  background: #fff; border: 0; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: .65rem 1rem; font-weight: 700; color: #1A3F60; width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
}
.pc-chart-body { margin-top: .85rem; display: none; }
.pc-chart-body.open { display: block; }

/* Reverse / order / query / intranasal panels */
.pc-calc-panel {
  background: linear-gradient(180deg, #2D587B 0%, #52A1E1 100%);
  border-radius: 20px; color: #fff; padding: 1.4rem 1.35rem;
}
.pc-calc-panel .field-label { font-size: .85rem; opacity: .95; margin-bottom: .15rem; }
.pc-calc-panel .field-title { font-weight: 700; margin-bottom: .35rem; }
.pc-pill-input {
  display: flex; align-items: center; background: #254f73; border-radius: 999px;
  padding: .35rem .85rem; box-shadow: inset 0 6px 14px rgba(0,0,0,.12);
}
.pc-pill-input input, .pc-pill-input select {
  background: transparent; border: 0; color: #fff; outline: none; width: 100%;
  text-align: center; font-weight: 700; font-size: 1.05rem;
}
.pc-pill-input .unit { opacity: .9; font-weight: 600; margin-left: .35rem; white-space: nowrap; }
.pc-result-box {
  background: #eaf4ff; color: #1A3F60; border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1rem;
}
.pc-result-box strong { font-weight: 800; }
.pc-navy-box {
  background: #1e3a5f; border-radius: 14px; padding: 1rem; color: #fff;
}
.pc-light-info {
  background: #d9ebff; color: #1A3F60; border-radius: 12px; padding: .85rem 1rem; margin-top: .75rem;
}

/* BMI */
.pc-bmi-wrap {
  background: linear-gradient(180deg, #427294, #5aa0d0); border-radius: 18px; padding: 1.25rem; color: #fff;
}
.pc-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; overflow: hidden; }
.pc-toggle button {
  background: transparent; color: #fff; border: 0; padding: .4rem .9rem; font-weight: 600;
}
.pc-toggle button.active { background: #fff; color: #1A3F60; }
.pc-bmi-input {
  background: #1e2d3d; border: 0; border-radius: 12px; color: #fff; width: 100%;
  padding: .7rem .85rem; font-weight: 700; margin-top: .35rem;
}
.pc-bmi-result {
  background: #eef6ff; color: #1A3F60; border-radius: 14px; padding: 1rem; height: 100%;
}
.pc-bmi-gauge { width: 100%; max-width: 280px; margin: 0 auto; }
.pc-calc-btn-white {
  background: #fff; color: #1A3F60; border: 0; border-radius: 10px; padding: .55rem 1.2rem; font-weight: 700;
}

/* Query page light panel */
.pc-query-panel {
  background: #e1f0ff; border-radius: 16px; padding: 1.25rem; color: #1A3F60;
}
.pc-query-panel .pc-pill-input { background: #1e3a5f; }
.pc-query-panel table th { background: #1e3a5f; }
.pc-query-panel table td { background: #f3f9ff; }

.pc-page-title { font-size: 1.75rem; font-weight: 800; color: #111; margin-bottom: 1rem; }
