.pc-calculator,
.pc-calculator * {
  box-sizing: border-box;
}

.pc-calculator [hidden] {
  display: none !important;
}

.pc-calculator {
  --pc-bg: #eef3f8;
  --pc-surface: #ffffff;
  --pc-surface-soft: #f5f8fc;
  --pc-border: #d9e3ef;
  --pc-border-strong: #c7d4e4;
  --pc-text: #23324a;
  --pc-muted: #64748b;
  --pc-primary: #3b82f6;
  --pc-blue: #3b82f6;
  --pc-green: #22c9bc;
  --pc-indigo: #6e63ff;
  --pc-purple: #8b5cf6;
  --pc-pink: #ec4899;
  color: var(--pc-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: inherit;
}

.pc-layout--compact {
  padding: 18px;
}

.pc-layout--premium {
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.pc-intro {
  margin-bottom: 18px;
}

.pc-intro__copy,
.pc-mode-card,
.pc-card,
.pc-result-card,
.pc-help-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.pc-intro__copy {
  padding: 56px 24px 64px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(circle at top center, rgba(56, 189, 248, 0.16), transparent 22%),
    linear-gradient(180deg, #111a2f 0%, #151f34 100%);
  box-shadow: none;
  text-align: center;
}

.pc-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  color: #e6f5ff;
  background: rgba(28, 53, 79, 0.9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pc-intro__title {
  margin: 20px 0 0;
  color: #ffffff;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.pc-intro__subtitle {
  margin: 16px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.75;
}

.pc-mode-card {
  margin-bottom: 22px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.pc-mode-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.pc-theme-toggle-btn:hover {
  transform: scale(1.06);
  border-color: var(--pc-primary);
  color: var(--pc-primary);
}

.pc-theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.pc-theme--light .pc-theme-icon--sun {
  display: none !important;
}
.pc-theme--light .pc-theme-icon--moon {
  display: block !important;
  color: #475569;
}

.pc-theme--dark .pc-theme-icon--sun {
  display: block !important;
  color: #f59e0b;
}
.pc-theme--dark .pc-theme-icon--moon {
  display: none !important;
}

.pc-mode-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4efff;
  color: #8b5cf6;
  border: 1px solid #eadcff;
}

.pc-mode-card__icon svg {
  width: 18px;
  height: 18px;
}

.pc-mode-card__copy h3 {
  margin: 0;
  color: #24334b;
  font-size: 16px;
  font-weight: 800;
}

.pc-mode-card__copy p {
  margin: 2px 0 0;
  color: var(--pc-muted);
  font-size: 12px;
}

.pc-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pc-switch__track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #e8edf5;
  border: 1px solid #dde6f0;
  transition: background-color 0.2s ease;
}

.pc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.pc-switch input:checked + .pc-switch__track {
  background: linear-gradient(135deg, #18c7cf, #46b7ff);
  border-color: rgba(24, 199, 207, 0.45);
}

.pc-switch input:checked + .pc-switch__track .pc-switch__thumb {
  transform: translateX(24px);
}

.pc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pc-grid__left,
.pc-grid__right,
.pc-basic-flow,
.pc-advanced-flow {
  display: grid;
  gap: 18px;
  align-content: start;
}

.pc-card {
  position: relative;
  overflow: visible;
}

.pc-card__accent {
  display: none;
}

.pc-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 6px;
  border-radius: 18px 18px 0 0;
  pointer-events: none;
  z-index: 1;
}

.pc-card--blue::before {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.pc-card--green::before {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}

.pc-card--indigo::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.pc-card--purple::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.pc-card--pink::before {
  background: linear-gradient(90deg, #ec4899, #fb7185);
}

.pc-card__body,
.pc-result-card,
.pc-help-card {
  padding: 22px;
}

.pc-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.pc-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--pc-blue);
  font-size: 13px;
  font-weight: 800;
}

.pc-step--green {
  background: rgba(20, 184, 166, 0.12);
  color: var(--pc-green);
}

.pc-step--indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--pc-indigo);
}

.pc-step--purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--pc-purple);
}

.pc-step--pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--pc-pink);
}

.pc-card__title,
.pc-result-card__title,
.pc-help-card__head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.pc-field {
  margin-bottom: 16px;
}

.pc-field:last-child {
  margin-bottom: 0;
}

.pc-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #23324a;
  font-size: 13px;
  font-weight: 600;
}

.pc-label-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.pc-label-row--between {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pc-label-row .pc-label {
  margin-bottom: 0;
  flex: 0 1 auto;
}

.pc-info-button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ced8e5;
  border-radius: 999px;
  background: #ffffff;
  color: #74839a;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  transition: background-color 0.18s ease, color 0.18s ease;
  flex: 0 0 auto;
}

.pc-info-button:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--pc-primary);
}

.pc-field__hint {
  margin: 8px 0 0;
  color: var(--pc-muted);
  font-size: 11px;
}

.pc-inline-toggle {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.06);
  color: #db2777;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  width: fit-content;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pc-inline-toggle:hover {
  border-color: rgba(236, 72, 153, 0.34);
  background: rgba(236, 72, 153, 0.1);
  color: #be185d;
}

.pc-inline-toggle.is-active {
  border-color: rgba(236, 72, 153, 0.36);
  background: rgba(236, 72, 153, 0.14);
  color: #9d174d;
}

.pc-kicker {
  margin-bottom: 10px;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pc-input,
.pc-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--pc-text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pc-input::placeholder {
  color: #94a3b8;
}

.pc-input:focus,
.pc-select:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pc-input:disabled,
.pc-select:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.pc-select {
  appearance: none;
  padding-right: 44px;
}

.pc-select-wrap {
  position: relative;
}

.pc-native-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.pc-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.pc-select-wrap--inline::after {
  right: 14px;
}

.pc-select-wrap--enhanced::after {
  display: none;
}

.pc-input--picker {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.pc-picker-wrap {
  position: relative;
}

.pc-combobox {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--pc-text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pc-combobox:hover {
  border-color: var(--pc-border-strong);
}

.pc-combobox:focus-visible {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.pc-combobox:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.pc-combobox__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-combobox.is-placeholder .pc-combobox__label {
  color: #94a3b8;
}

.pc-combobox__chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.pc-select-wrap.is-open .pc-combobox__chevron,
.pc-picker-wrap.is-open .pc-combobox__chevron {
  transform: rotate(-135deg);
}

.pc-combobox__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: 248px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.pc-combobox__menu--picker {
  gap: 8px;
}

.pc-combobox__option,
.pc-picker-option {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pc-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.pc-combobox__option:hover,
.pc-picker-option:hover {
  background: #f3f7ff;
}

.pc-combobox__option.is-active,
.pc-picker-option.is-active {
  background: #eaf1ff;
  color: #3b5fa8;
}

.pc-combobox__option.is-placeholder {
  color: var(--pc-muted);
}

.pc-picker-search {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--pc-text);
  font: inherit;
  outline: none;
}

.pc-picker-search:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pc-picker-options {
  display: grid;
  gap: 6px;
}

.pc-picker-option__title {
  font-size: 14px;
  font-weight: 700;
}

.pc-picker-option__meta,
.pc-picker-empty {
  color: var(--pc-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pc-picker-option--custom {
  border: 1px dashed rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
}

.pc-picker-empty {
  padding: 6px 4px 2px;
}

.pc-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pc-split-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 0;
}

.pc-split-input .pc-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.pc-select--inline {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.pc-vial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pc-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pc-radio-pill span,
.pc-custom-pill {
  min-height: 50px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.pc-radio-pill {
  position: relative;
}

.pc-radio-pill input:checked + span {
  border-color: rgba(34, 201, 188, 0.5);
  color: #16a394;
  background: rgba(34, 201, 188, 0.08);
}

.pc-custom-pill {
  justify-content: space-between;
  gap: 10px;
  padding-right: 6px;
}

.pc-custom-pill.is-active {
  border-color: rgba(34, 201, 188, 0.5);
  background: rgba(34, 201, 188, 0.08);
}

.pc-input--inline {
  min-height: 38px;
  max-width: 84px;
  padding: 0 10px;
  font-size: 13px;
}

.pc-chip-row,
.pc-action-row,
.pc-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-chip-button,
.pc-primary,
.pc-secondary,
.pc-ingredient-row__remove {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.pc-chip-button:hover,
.pc-primary:hover,
.pc-secondary:hover,
.pc-ingredient-row__remove:hover {
  transform: translateY(-1px);
}

.pc-chip-button {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--pc-border);
  color: #475569;
  font-size: 11px;
  font-weight: 500;
}

.pc-chip-button.is-active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: #346edb;
}

.pc-primary {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.pc-secondary {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--pc-border);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.pc-secondary--icon {
  min-width: 80px;
}

.pc-ingredient-stack {
  display: grid;
  gap: 14px;
}

.pc-advanced-flow .pc-ingredient-stack {
  gap: 10px;
}

.pc-ingredient-row {
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: #fbfdff;
}

.pc-advanced-flow .pc-ingredient-row {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pc-ingredient-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pc-advanced-flow .pc-ingredient-row__head {
  display: none;
}

.pc-ingredient-row__label {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--pc-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-ingredient-row__remove {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
}

.pc-advanced-flow .pc-field {
  margin-bottom: 14px;
}

.pc-advanced-flow .pc-field:last-child {
  margin-bottom: 0;
}

.pc-advanced-flow .pc-info-button {
  display: none;
}

.pc-advanced-flow .pc-label-row {
  margin-bottom: 10px;
}

.pc-advanced-flow .pc-two-col {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.pc-advanced-flow .pc-two-col .pc-field:last-child .pc-label {
  margin-bottom: 8px;
}

.pc-two-col--advanced-recon,
.pc-two-col--advanced-dose {
  gap: 14px 10px;
}

.pc-advanced-flow .pc-two-col--advanced-recon {
  grid-template-columns: minmax(0, 1fr) 152px;
}

.pc-advanced-flow .pc-two-col--advanced-dose {
  grid-template-columns: minmax(0, 1fr) 357px;
}

.pc-field--advanced-vial .pc-input--advanced-vial {
  display: none;
  width: 100%;
  max-width: none;
}

.pc-field--advanced-custom .pc-input--advanced-custom {
  width: 100%;
}

.pc-field--advanced-custom {
  align-self: start;
}

.pc-advanced-flow .pc-action-row {
  display: flex;
  gap: 10px;
}

.pc-advanced-flow .pc-action-row .pc-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  background: #ffffff;
  color: #41536c;
}

.pc-advanced-flow .pc-secondary[data-pc-action="add-ingredient"] {
  border: 1px dashed #8f99aa;
}

.pc-advanced-flow .pc-secondary[data-pc-action="remove-ingredient"] {
  border: 1px solid var(--pc-border);
}

.pc-advanced-flow .pc-secondary[data-pc-action="add-ingredient"]::before {
  content: "+";
  margin-right: 10px;
  font-size: 18px;
  line-height: 1;
}

.pc-advanced-flow .pc-secondary[data-pc-action="remove-ingredient"]::before {
  content: "−";
  margin-right: 10px;
  font-size: 16px;
  line-height: 1;
}

.pc-result-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 22px 24px 18px;
  margin: -22px -22px 18px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #121c31, #151f34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-result-card {
  overflow: visible;
  background: #ffffff;
  border-color: var(--pc-border);
}

.pc-result-card__title {
  color: #ffffff;
}

.pc-result-card__subtitle {
  color: #bfcbdb;
  font-size: 13px;
  line-height: 1.5;
}

.pc-result-card__actions {
  position: relative;
}

.pc-icon-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pc-icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.pc-icon-button svg {
  width: 20px;
  height: 20px;
}

.pc-share-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 228px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: #1f2937;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.42);
}

.pc-share-menu__title {
  padding: 10px 14px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.pc-share-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pc-share-menu__item:last-child {
  border-bottom: 0;
}

.pc-share-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pc-share-menu__icon {
  width: 20px;
  color: #cbd5e1;
  font-size: 15px;
  text-align: center;
}

.pc-help-card__head p {
  margin: 10px 0 0;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.pc-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #9a3412;
  font-size: 12px;
  line-height: 1.6;
}

.pc-empty-state {
  padding: 56px 24px 60px;
  text-align: center;
}

.pc-empty-state__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #94a4bb;
}

.pc-empty-state__icon svg {
  width: 28px;
  height: 28px;
}

.pc-empty-state h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #24334b;
}

.pc-empty-state p {
  margin: 10px auto 0;
  max-width: 320px;
  color: #6f8099;
  font-size: 13px;
  line-height: 1.7;
}

.pc-result-card__content {
  display: grid;
  gap: 16px;
}

.pc-recipe-steps {
  display: grid;
  gap: 12px;
}

.pc-recipe-step {
  padding: 16px 16px 15px;
  border: 1px solid rgba(197, 210, 226, 0.72);
  border-radius: 14px;
  background: #ffffff;
}

.pc-recipe-step__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--pc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-recipe-step h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #23324a;
}

.pc-recipe-step p {
  margin: 0;
  color: #6f8099;
  font-size: 13px;
  line-height: 1.65;
}

.pc-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pc-stat {
  padding: 13px 12px;
  border-radius: 14px;
  border: 1px solid var(--pc-border);
  background: #fbfdff;
}

.pc-stat span {
  display: block;
  color: #8a9ab1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-stat strong {
  display: block;
  margin-top: 9px;
  color: #23324a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pc-syringe-card {
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  background: #fbfdff;
}

.pc-syringe-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #23324a;
}

.pc-syringe-card__head p {
  margin: 8px 0 0;
  color: #6f8099;
  font-size: 12px;
}

.pc-syringe-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 108px;
  margin-top: 12px;
}

.pc-syringe-visual__needle {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.pc-syringe-visual__barrel {
  position: relative;
  flex: 1;
  height: 56px;
  border-radius: 0 10px 10px 0;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  overflow: hidden;
}

.pc-syringe-visual__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.5));
  border-right: 2px solid rgba(14, 165, 233, 0.8);
  transition: width 0.28s ease;
}

.pc-syringe-visual__ticks {
  position: absolute;
  inset: 0;
}

.pc-syringe-visual__plunger {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 32px;
  background: #94a3b8;
  border-radius: 4px;
  transform: translateY(-50%);
  transition: left 0.28s ease;
}

.pc-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
}

.pc-tick--major {
  width: 2px;
  height: 14px;
  background: #0f172a;
}

.pc-tick--major::after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: #475569;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.pc-tick--minor {
  width: 1px;
  height: 8px;
  background: #94a3b8;
}

.pc-extra-card {
  padding: 18px;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  background: #fbfdff;
}

.pc-extra-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.pc-extra-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pc-extra-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 14px;
}

.pc-extra-card__list strong {
  color: var(--pc-text);
}

.pc-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pc-help-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--pc-border);
  background: #fbfdff;
}

.pc-help-item__num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--pc-primary);
  font-size: 18px;
  font-weight: 800;
}

.pc-help-item h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.pc-help-item p,
.pc-disclaimer {
  margin: 0;
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pc-disclaimer {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
}

@media (max-width: 1120px) {
  .pc-intro,
  .pc-grid,
  .pc-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pc-calculator {
    padding: 16px;
    border-radius: 20px;
  }

  .pc-card__body,
  .pc-result-card,
  .pc-help-card,
  .pc-intro__copy {
    padding: 18px;
  }

  .pc-card__head,
  .pc-result-card__header,
  .pc-mode-card,
  .pc-ingredient-row__head {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-two-col,
  .pc-vial-grid,
  .pc-split-input {
    grid-template-columns: 1fr;
  }

  .pc-select--inline {
    border-left: 1px solid var(--pc-border);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
  }

  .pc-syringe-visual__needle {
    width: 40px;
  }

  .pc-result-card__actions .pc-primary,
  .pc-result-card__actions .pc-secondary,
  .pc-action-row .pc-secondary {
    width: 100%;
  }
}

/* === Dark Theme === */
.pc-calculator.pc-theme--dark {
  --pc-bg: #131820;
  --pc-surface: #1b222d;
  --pc-surface-soft: #232b38;
  --pc-border: #263140;
  --pc-border-strong: #364459;
  --pc-text: #f9fafb;
  --pc-muted: #a6b0bf;
  --pc-primary: #1ac3e6;
  --pc-blue: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-intro__copy,
.pc-calculator.pc-theme--dark .pc-mode-card,
.pc-calculator.pc-theme--dark .pc-card,
.pc-calculator.pc-theme--dark .pc-result-card,
.pc-calculator.pc-theme--dark .pc-help-card,
.pc-calculator.pc-theme--dark .pc-combobox__menu,
.pc-calculator.pc-theme--dark .pc-radio-pill span,
.pc-calculator.pc-theme--dark .pc-custom-pill,
.pc-calculator.pc-theme--dark .pc-chip-button,
.pc-calculator.pc-theme--dark .pc-info-button {
  background: var(--pc-surface);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-input,
.pc-calculator.pc-theme--dark .pc-select,
.pc-calculator.pc-theme--dark .pc-combobox {
  background: var(--pc-bg);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-select-wrap::after,
.pc-calculator.pc-theme--dark .pc-combobox__chevron {
  border-color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-ingredient-row,
.pc-calculator.pc-theme--dark .pc-extra-card,
.pc-calculator.pc-theme--dark .pc-help-item,
.pc-calculator.pc-theme--dark .pc-secondary,
.pc-calculator.pc-theme--dark .pc-step,
.pc-calculator.pc-theme--dark .pc-picker-search {
  background: var(--pc-surface-soft);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-disclaimer,
.pc-calculator.pc-theme--dark .pc-input:disabled,
.pc-calculator.pc-theme--dark .pc-select:disabled,
.pc-calculator.pc-theme--dark .pc-combobox:disabled {
  background: #151a23;
  color: #6c798e;
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-mode-card__copy h3,
.pc-calculator.pc-theme--dark .pc-label,
.pc-calculator.pc-theme--dark .pc-input,
.pc-calculator.pc-theme--dark .pc-select,
.pc-calculator.pc-theme--dark .pc-combobox,
.pc-calculator.pc-theme--dark .pc-radio-pill span,
.pc-calculator.pc-theme--dark .pc-custom-pill,
.pc-calculator.pc-theme--dark .pc-picker-search,
.pc-calculator.pc-theme--dark .pc-combobox__option,
.pc-calculator.pc-theme--dark .pc-picker-option,
.pc-calculator.pc-theme--dark .pc-secondary,
.pc-calculator.pc-theme--dark .pc-extra-card__list,
.pc-calculator.pc-theme--dark .pc-help-item h3 {
  color: var(--pc-text);
}

.pc-calculator.pc-theme--dark .pc-input::placeholder,
.pc-calculator.pc-theme--dark .pc-combobox.is-placeholder .pc-combobox__label,
.pc-calculator.pc-theme--dark .pc-chip-button,
.pc-calculator.pc-theme--dark .pc-info-button,
.pc-calculator.pc-theme--dark .pc-tick--major::after {
  color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-intro__copy {
  background: radial-gradient(circle at top center, rgba(26, 195, 230, 0.1), transparent 30%), linear-gradient(180deg, #131820 0%, #1b222d 100%);
}
.pc-calculator.pc-theme--dark .pc-intro__eyebrow {
  background: rgba(26, 195, 230, 0.15);
  border-color: rgba(26, 195, 230, 0.3);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-mode-card__icon {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.pc-calculator.pc-theme--dark .pc-step {
  background: rgba(26, 195, 230, 0.15);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-combobox__option:hover,
.pc-calculator.pc-theme--dark .pc-picker-option:hover {
  background: var(--pc-surface-soft);
}
.pc-calculator.pc-theme--dark .pc-combobox__option.is-active,
.pc-calculator.pc-theme--dark .pc-picker-option.is-active {
  background: rgba(26, 195, 230, 0.1);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-radio-pill input:checked + span,
.pc-calculator.pc-theme--dark .pc-custom-pill.is-active {
  background: rgba(26, 195, 230, 0.1);
  border-color: rgba(26, 195, 230, 0.5);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-chip-button.is-active {
  background: rgba(26, 195, 230, 0.15);
  border-color: rgba(26, 195, 230, 0.3);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-inline-toggle {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

.pc-calculator.pc-theme--dark .pc-inline-toggle.is-active {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.4);
  color: #fbcfe8;
}

.pc-calculator.pc-theme--dark .pc-primary {
  background: var(--pc-primary);
  color: #000000;
}

.pc-calculator.pc-theme--dark .pc-switch__track {
  background: #2a3544;
  border-color: #364459;
}
.pc-calculator.pc-theme--dark .pc-switch__thumb {
  background: #a6b0bf;
}
.pc-calculator.pc-theme--dark .pc-switch input:checked + .pc-switch__track {
  background: linear-gradient(135deg, #1ac3e6, #0e85a1);
  border-color: rgba(26, 195, 230, 0.45);
}
.pc-calculator.pc-theme--dark .pc-switch input:checked + .pc-switch__track .pc-switch__thumb {
  background: #ffffff;
}

.pc-calculator.pc-theme--dark .pc-syringe-visual__barrel {
  border-color: var(--pc-border);
  background: var(--pc-surface-soft);
}
.pc-calculator.pc-theme--dark .pc-syringe-visual__fill {
  background: linear-gradient(90deg, rgba(26, 195, 230, 0.22), rgba(26, 195, 230, 0.5));
  border-right-color: rgba(26, 195, 230, 0.8);
}
.pc-calculator.pc-theme--dark .pc-tick--major {
  background: var(--pc-text);
}
.pc-calculator.pc-theme--dark .pc-tick--minor {
  background: var(--pc-border-strong);
}
.pc-calculator.pc-theme--dark .pc-syringe-visual__plunger {
  background: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-select-wrap::after,
.pc-calculator.pc-theme--dark .pc-combobox__chevron {
  border-color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-ingredient-row__remove {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pc-calculator.pc-theme--dark .pc-ingredient-row__label {
  background: rgba(139, 92, 246, 0.15);
}

.pc-calculator.pc-theme--dark .pc-card__title,
.pc-calculator.pc-theme--dark .pc-result-card__title,
.pc-calculator.pc-theme--dark .pc-help-card__head h2,
.pc-calculator.pc-theme--dark .pc-syringe-card__head h3,
.pc-calculator.pc-theme--dark .pc-extra-card h3,
.pc-calculator.pc-theme--dark .pc-empty-state h3 {
  color: var(--pc-text);
}

.pc-calculator.pc-theme--dark .pc-recipe-step {
  background: var(--pc-surface-soft);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-recipe-step h3 {
  color: var(--pc-text);
}

.pc-calculator.pc-theme--dark .pc-recipe-step p,
.pc-calculator.pc-theme--dark .pc-syringe-card__head p,
.pc-calculator.pc-theme--dark .pc-empty-state p,
.pc-calculator.pc-theme--dark .pc-help-item p,
.pc-calculator.pc-theme--dark .pc-help-card__head p,
.pc-calculator.pc-theme--dark .pc-mode-card__copy p,
.pc-calculator.pc-theme--dark .pc-combobox__option.is-placeholder,
.pc-calculator.pc-theme--dark .pc-picker-option__meta,
.pc-calculator.pc-theme--dark .pc-picker-empty,
.pc-calculator.pc-theme--dark .pc-field__hint,
.pc-calculator.pc-theme--dark .pc-kicker {
  color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-stat {
  background: var(--pc-surface-soft);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-stat span {
  color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-stat strong,
.pc-calculator.pc-theme--dark .pc-extra-card__list strong,
.pc-calculator.pc-theme--dark .pc-extra-card__list li {
  color: var(--pc-text);
}

.pc-calculator.pc-theme--dark .pc-syringe-card {
  background: var(--pc-surface-soft);
  border-color: var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-syringe-visual__needle {
  background: linear-gradient(90deg, #364459, #4a5d76);
}

.pc-calculator.pc-theme--dark .pc-empty-state__icon {
  background: var(--pc-surface-soft);
  color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-alert {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.pc-calculator.pc-theme--dark .pc-recipe-step__tag {
  background: rgba(26, 195, 230, 0.12);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-step--green {
  background: rgba(34, 201, 188, 0.15);
}

.pc-calculator.pc-theme--dark .pc-step--indigo {
  background: rgba(99, 102, 241, 0.15);
}

.pc-calculator.pc-theme--dark .pc-step--purple {
  background: rgba(139, 92, 246, 0.15);
}

.pc-calculator.pc-theme--dark .pc-step--pink {
  background: rgba(236, 72, 153, 0.15);
}

.pc-calculator.pc-theme--dark .pc-help-item__num {
  background: rgba(26, 195, 230, 0.12);
  color: #1ac3e6;
}

.pc-calculator.pc-theme--dark .pc-input:focus,
.pc-calculator.pc-theme--dark .pc-select:focus,
.pc-calculator.pc-theme--dark .pc-combobox:focus-visible,
.pc-calculator.pc-theme--dark .pc-picker-search:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(26, 195, 230, 0.15);
}

.pc-calculator.pc-theme--dark .pc-combobox__menu {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

.pc-calculator.pc-theme--dark .pc-picker-option--custom {
  border-color: rgba(26, 195, 230, 0.3);
  background: rgba(26, 195, 230, 0.06);
}

.pc-calculator.pc-theme--dark .pc-result-card__content .pc-result-card {
  background: var(--pc-surface);
}

.pc-calculator.pc-theme--dark .pc-card__body {
  background: transparent;
}

.pc-calculator.pc-theme--dark .pc-combobox:hover {
  border-color: var(--pc-border-strong);
}

.pc-calculator.pc-theme--dark .pc-info-button:hover {
  background: rgba(26, 195, 230, 0.12);
  color: var(--pc-primary);
}

.pc-calculator.pc-theme--dark .pc-advanced-flow .pc-secondary {
  background: var(--pc-surface);
  color: var(--pc-muted);
}

.pc-calculator.pc-theme--dark .pc-advanced-flow .pc-secondary[data-pc-action="add-ingredient"] {
  border: 1px dashed var(--pc-border-strong);
}

.pc-calculator.pc-theme--dark .pc-advanced-flow .pc-secondary[data-pc-action="remove-ingredient"] {
  border: 1px solid var(--pc-border);
}

.pc-calculator.pc-theme--dark .pc-advanced-flow .pc-ingredient-row {
  background: transparent !important;
  border: 0;
  padding: 0;
}

.pc-calculator.pc-theme--light {
  /* Uses default styles */
}

@media print {
  .pc-mode-card,
  .pc-help-card,
  .pc-result-card__actions {
    display: none !important;
  }

  .pc-calculator {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
  }
}

/* Transition effects for theme & mode toggles */
.pc-calculator,
.pc-intro__copy,
.pc-mode-card,
.pc-card,
.pc-stat,
.pc-recipe-step,
.pc-syringe-card,
.pc-input,
.pc-select,
.pc-combobox,
.pc-secondary,
.pc-theme-toggle-btn {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

/* === Admin Settings Page === */
.pc-admin-wrap .pc-admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}
.pc-admin-wrap .pc-admin-tab {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pc-admin-wrap .pc-admin-tab:hover {
  color: #334155;
}
.pc-admin-wrap .pc-admin-tab.is-active {
  color: #1e40af;
  border-bottom-color: #3b82f6;
}
.pc-admin-wrap .pc-admin-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pc-admin-wrap .pc-admin-field {
  margin-bottom: 4px;
}
.pc-admin-wrap .pc-admin-reset {
  background: #f87171;
  border-color: #f87171;
  color: white;
}
.pc-admin-wrap .pc-admin-tab-content {
  display: none;
}
.pc-admin-wrap .pc-admin-tab-content.is-active {
  display: block;
}
.pc-admin-wrap .pc-admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.pc-admin-wrap .pc-admin-reset {
  background: transparent;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0 16px;
  height: 36px;
  line-height: 34px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pc-admin-wrap .pc-admin-reset:hover {
  background: #fef2f2;
  border-color: #f87171;
}
.pc-admin-wrap .pc-admin-section h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}
.pc-admin-wrap .pc-admin-section > .description {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}
