.pfc {
  --pfc-radius: 20px;
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  color: var(--ink);
}

.pfc-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.pfc-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.pfc-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 640px;
}

.pfc-byline {
  font-size: 14px;
  color: var(--muted);
}

.pfc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.pfc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.pfc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--pfc-radius);
  padding: 28px;
}

.pfc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.pfc-card-titles {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pfc-step {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-text);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pfc .pfc-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 2px;
}

.pfc-card-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.pfc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pfc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.pfc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pfc-label-row label {
  cursor: pointer;
}

.pfc-input-wrap {
  position: relative;
  display: block;
}

.pfc-input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  appearance: none;
}

select.pfc-input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.pfc-input-wrap .pfc-input {
  padding-right: 44px;
}

.pfc-input::-webkit-outer-spin-button,
.pfc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pfc-input:hover {
  border-color: #d1d5db;
}

.pfc-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.22);
}

.pfc-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.pfc-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.pfc-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.pfc-error {
  font-size: 12.5px;
  color: #b91c1c;
}

.pfc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pfc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pfc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pfc-chip {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pfc-chip:hover {
  border-color: var(--coral);
}

.pfc-chip[aria-checked="true"] {
  background: var(--coral-text);
  border-color: var(--coral-text);
  color: var(--white);
}

.pfc-switch {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.pfc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pfc-switch-ui {
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.pfc-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.2);
  transition: transform 0.2s ease;
}

.pfc-switch input:checked + .pfc-switch-ui {
  background: var(--coral-text);
}

.pfc-switch input:checked + .pfc-switch-ui::after {
  transform: translateX(18px);
}

.pfc-switch input:focus-visible + .pfc-switch-ui {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.pfc-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.pfc-switch-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.pfc-summary {
  position: sticky;
  top: 96px;
}

.pfc-summary-inner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--pfc-radius);
  padding: 28px 24px 22px;
}

.pfc .pfc-summary-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.pfc-empty p {
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 18px 0 24px;
}

.pfc-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pfc-hero-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.pfc-hero-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-text);
}

.pfc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
}

.pfc-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.pfc-stats dt {
  font-size: 12px;
  color: var(--footer-text);
}

.pfc-stats dd {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 2px 0 0;
}

.pfc-small {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 14px;
}

.pfc-article {
  max-width: 780px;
  margin: 56px auto 0;
}

.pfc-article h2:first-child {
  margin-top: 0;
}

.pfc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .pfc-layout {
    grid-template-columns: 1fr;
  }
  .pfc-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .pfc {
    padding-top: 32px;
  }
  .pfc-card {
    padding: 20px 16px;
  }
  .pfc-grid-2 {
    grid-template-columns: 1fr;
  }
  .pfc-hero-num {
    font-size: 38px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .pfc-layout {
    display: block;
  }
  .pfc-summary {
    position: static;
  }
  .pfc-summary-inner {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
  }
  .pfc-stats div {
    background: #f9fafb;
  }
}

.pfc-segment {
  display: inline-flex;
  background: var(--placeholder);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.pfc-segment-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pfc-segment-btn[aria-checked="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.pfc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pfc-grid-2.pfc-gap-top {
  margin-top: 18px;
}

.pfc-span-2 {
  grid-column: span 2;
}

.pfc-hint-gap {
  display: block;
  margin-top: 10px;
}






.pfc-switch + .pfc-switch {
  margin-top: 10px;
}









.pfc-diagram {
  margin: 0;
  border-radius: 16px;
  background: #f6f3ef;
  overflow: hidden;
}

.pfc-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
}

@media (max-width: 720px) {
  .pfc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfc-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  .pfc-grid-3,
  .pfc-grid-4 {
    grid-template-columns: 1fr;
  }
}

.pfc-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.pfc-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.pfc-rotate {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pfc-rotate:hover {
  border-color: var(--coral);
  color: var(--coral-text);
}

.pfc-chip,
.pfc-segment-btn,
.pfc-mini,
.pfc-btn,
.pfc-rotate {
  font-family: var(--sans);
}

.pfc-chip:focus-visible,
.pfc-segment-btn:focus-visible,
.pfc-mini:focus-visible,
.pfc-btn:focus-visible,
.pfc-rotate:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.pfc-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pfc-mini {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pfc-mini:hover {
  border-color: var(--coral);
}

.pfc-mini[aria-pressed="true"] {
  background: var(--coral-tint);
  border-color: var(--coral-text);
  color: var(--coral-text);
}

.pfc-notes-row {
  margin-top: 8px;
}

.pfc-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pfc-field[hidden],
#pfc-mat-block[hidden],
.pfc-switch[hidden] {
  display: none;
}

.pfc-gap-top {
  margin-top: 18px;
}

.pfc-grid-2.pfc-gap-top:has(> [hidden]:first-child):has(> [hidden]:last-child) {
  display: none;
}

.pfc-stats dd {
  font-size: 17px;
  line-height: 1.3;
}

.pfc-stat-sub {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
  margin-top: 3px;
}

.pfc-notes {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pfc-note {
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 12px 10px 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.pfc-note::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pfc-note.is-info {
  color: var(--footer-text);
}

.pfc-note.is-warn {
  color: #fde68a;
}

.pfc-note.is-bad {
  color: #fca5a5;
}

.pfc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-border);
}

.pfc-btn {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--coral);
  background: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pfc-btn:hover {
  background: var(--coral-large);
  border-color: var(--coral-large);
}

.pfc-btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--footer-border);
}

.pfc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #6b7280;
}

.pfc-summary .pfc-btn:focus-visible {
  outline-color: var(--white);
}

.pfc-copy-status {
  font-size: 13px;
  color: #86efac;
}

.pfc-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.pfc-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.pfc-legend li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pfc-legend strong {
  color: var(--ink);
  font-weight: 600;
}

.pfc-swatch {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  margin-top: 2px;
}

.pfc-swatch-dash {
  border: 1.5px dashed var(--coral-text);
  background: transparent;
}

.pfc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pfc-stock {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pfc-stock th,
.pfc-stock td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pfc-stock th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
}

.pfc-stock tr.is-best td {
  background: var(--coral-tint);
  font-weight: 700;
}

.pfc-best {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-text);
  margin-top: 2px;
}

.pfc-stock[hidden] {
  display: none;
}

.pfc-article .pfc-table-wrap table {
  min-width: 520px;
}

@media (max-width: 1024px) {
  .pfc-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pfc-legend {
    grid-template-columns: 1fr;
  }
  .pfc-card-head .pfc-segment {
    width: 100%;
  }
  .pfc-card-head .pfc-segment-btn {
    flex: 1 1 0;
    padding: 8px 10px;
  }
  .pfc-row-split .pfc-segment {
    width: 100%;
  }
  .pfc-row-split .pfc-segment-btn {
    flex: 1 1 0;
  }
  .pfc-article {
    padding: 28px 20px;
  }
}

@media (max-width: 400px) {
  .pfc-size-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }
  .pfc-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfc *,
  .pfc *::after {
    transition: none !important;
  }
}

.pfc ::selection {
  background: var(--coral-tint-2);
  color: var(--ink);
}

.pfc-hint,
.pfc-card-sub,
.pfc-lead,
.pfc-article p,
.pfc-article li {
  text-wrap: pretty;
}

.pfc-article h2,
.pfc-article h3,
.pfc-title {
  text-wrap: balance;
}

.pfc-stats dd,
.pfc-hero-num,
.pfc-stock td,
.pfc-input {
  font-variant-numeric: tabular-nums;
}

.pfc-input::placeholder {
  color: #6b7280;
}
