/* Product registration v2. Load after product_form.css; keep all behavior IDs intact. */
.product-form-inline.pf-v2.cfl-ds2 {
    --pf-bg: #f7f3ec;
    --pf-surface: #fffdf9;
    --pf-ink: #24352d;
    --pf-muted: #59675e;
    --pf-line: #ebe4d9;
    --pf-control: #7b887d;
    --pf-green: #3e634a;
    --pf-sage: #e8f0df;
    --primary: var(--pf-green);
    --primary-deep: var(--pf-ink);
    --primary-soft: var(--pf-sage);
    --primary-light: #537655;
    --text-primary: var(--pf-ink);
    --text-tertiary: var(--pf-muted);
    --border-default: var(--pf-line);
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    margin: 0 auto;
    color: var(--pf-ink);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
}
.pf-v2.cfl-ds2 *, .pf-v2.cfl-ds2 *::before, .pf-v2.cfl-ds2 *::after { box-sizing: border-box; }
.pf-v2.cfl-ds2 [hidden] { display: none !important; }
.pf-v2.cfl-ds2 :is(button, input, select, textarea) { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.pf-v2.cfl-ds2 :is(button, a, summary, input, select, textarea):focus-visible {
    outline: 3px solid #537655;
    outline-offset: 3px;
    box-shadow: none;
}
.pf-v2.cfl-ds2 :is(input, select, textarea):disabled { opacity: .6; cursor: not-allowed; }
.pf-v2.cfl-ds2 :is(.form-input, .form-select, textarea, .cfl-su input:not([type=checkbox]), .cfl-su select) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--pf-control);
    border-radius: 10px;
    background: var(--pf-surface);
    color: var(--pf-ink);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}
.pf-v2.cfl-ds2 :is(.form-input, .form-select, textarea):focus { border-color: var(--pf-green); box-shadow: none; }
.pf-v2.cfl-ds2 :is(input, textarea)::placeholder { color: #758078; opacity: 1; }
.pf-v2.cfl-ds2 textarea { resize: vertical; line-height: 1.8; }
.pf-v2.cfl-ds2 .num-input { width: 100% !important; font-variant-numeric: tabular-nums; }
.pf-v2.cfl-ds2 input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.pf-v2.cfl-ds2 input[type=number]::-webkit-inner-spin-button { appearance: none; }
.pf-v2.cfl-ds2 :is(.btn, .cfl-su button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: none;
}
.pf-v2.cfl-ds2 .btn-primary { color: var(--pf-surface); background: var(--pf-green); border: 1px solid var(--pf-green); }
.pf-v2.cfl-ds2 .btn-primary:hover { color: var(--pf-surface); background: #2e4f3a; border-color: #2e4f3a; }
.pf-v2.cfl-ds2 .btn-outline { color: var(--pf-green); background: var(--pf-surface); border: 1px solid var(--pf-control); }
.pf-v2.cfl-ds2 .btn-link { min-height: 44px; padding: 8px 0; border: 0; border-radius: 6px; background: transparent; font-size: .875rem; }
.pf-v2.cfl-ds2 .pf-action-ai.btn-link { color: var(--pf-green) !important; }
.pf-v2.cfl-ds2 .btn:disabled { opacity: .6; cursor: not-allowed; }
.pf-v2.cfl-ds2 .pf-v2-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 28px; }
.pf-v2.cfl-ds2 .pf-v2-heading h1 { margin: 0; color: var(--pf-ink); font-size: 1.75rem; line-height: 1.3; letter-spacing: -.04em; font-weight: 700; }
.pf-v2.cfl-ds2 :is(.pf-v2-lead, .pf-v2-heading .lead) { margin: 10px 0 0; color: var(--pf-muted); font-size: 1rem; line-height: 1.65; }
.pf-v2.cfl-ds2 .pf-v2-eyebrow { margin: 0 0 8px; color: var(--pf-green); font-size: .875rem; }
.pf-v2.cfl-ds2 :is(.pf-v2-required-note, .pf-v2-heading > small) { color: var(--pf-muted); font-size: .8125rem; white-space: nowrap; }
.pf-v2.cfl-ds2 .pf-v2-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 232px; align-items: start; gap: 32px; }
.pf-v2.cfl-ds2 .pf-v2-workspace > .care2-registration-back { grid-column: 1 / -1; margin-bottom: -12px; color: var(--pf-green); font-size: .875rem; }
.pf-v2.cfl-ds2 #productForm { width: 100%; min-width: 0; margin: 0; }
.pf-v2.cfl-ds2 :is(.section-card, .cfl-su) {
    width: 100%;
    min-width: 0;
    margin: 0 0 20px;
    padding: 28px;
    border: 1px solid var(--pf-line);
    border-radius: 20px;
    background: var(--pf-surface);
    color: var(--pf-ink);
    box-shadow: none;
    scroll-margin-top: 96px;
}
.pf-v2.cfl-ds2 .section-card.highlight-card { border-color: var(--pf-line); background: var(--pf-surface); box-shadow: none; }
.pf-v2.cfl-ds2 :is(.card-title, .cfl-su h2) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; border: 0; color: var(--pf-ink); font-size: 1.375rem; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.pf-v2.cfl-ds2 .card-title > i { color: #6e8168; font-size: 1rem; }
.pf-v2.cfl-ds2 .pf-v2-section-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.pf-v2.cfl-ds2 .pf-v2-section-top .card-title { margin-bottom: 0; }
.pf-v2.cfl-ds2 :is(.pf-v2-section-number, .pf-v2-section-top > span) { color: #6e8168; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-v2.cfl-ds2 .pf-v2-section-caption { color: var(--pf-muted); font-size: .75rem; white-space: nowrap; }
.pf-v2.cfl-ds2 :is(.form-col, .form-group, .input-col, .brand-autocomplete-wrapper) { min-width: 0; }
.pf-v2.cfl-ds2 .form-group { margin: 0 0 24px; }
.pf-v2.cfl-ds2 .section-card > .form-group:last-child { margin-bottom: 0; }
.pf-v2.cfl-ds2 .form-label { margin: 0 0 8px; color: var(--pf-ink); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.pf-v2.cfl-ds2 .form-label.required::after { color: #6a7760; }
.pf-v2.cfl-ds2 :is(.anno, .card-desc, .pf-v2-help, .pf-v2-field-help, .cfl-su-muted) { color: var(--pf-muted); font-size: .8125rem; font-weight: 400; line-height: 1.65; }
.pf-v2.cfl-ds2 .card-desc { margin: -12px 0 20px; }
.pf-v2.cfl-ds2 .pf-v2-field-help { margin: 8px 0 16px; }
.pf-v2.cfl-ds2 .pf-v2-identity-fields .pf-v2-field-help { margin-bottom: 0; }
.pf-v2.cfl-ds2 .form-group-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }

/* URL import and product identity. */
.pf-v2.cfl-ds2 .section-card.pfu-ai-card { padding: 24px; margin-bottom: 24px; border-color: #bccbb8 !important; background: #eef2e6 !important; box-shadow: none !important; }
.pf-v2.cfl-ds2 .pfu-ai-card .card-title { gap: 10px; margin-bottom: 6px; color: var(--pf-ink); font-size: 1.125rem; }
.pf-v2.cfl-ds2 .pfu-ai-card__badge { margin-left: auto; padding: 5px 9px; border-radius: 6px; background: #fffdf9a8; color: var(--pf-green); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.pf-v2.cfl-ds2 .pfu-ai-card__desc { margin: 0 0 20px; color: var(--pf-muted); font-size: .875rem; }
.pf-v2.cfl-ds2 :is(.pfu-ai-card__desc strong, .pfu-ai-card__hint strong, .pfu-ai-card__hint i) { color: var(--pf-green); font-weight: 600; }
.pf-v2.cfl-ds2 .pfu-ai-card__urlrow { margin-bottom: 0; }
.pf-v2.cfl-ds2 .pf-v2-direct { display: flex; margin: 6px 0 -8px auto; color: var(--pf-green); }
.pf-v2.cfl-ds2 .pfu-url-input { display: flex; gap: 8px; }
.pf-v2.cfl-ds2 .pfu-url-input .form-input { flex: 1; min-width: 0; }
.pf-v2.cfl-ds2 .pfu-url-input__btn { flex: 0 0 auto; height: auto; }
.pf-v2.cfl-ds2 .pfu-ai-card__hint { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--pf-muted); font-size: .8125rem; line-height: 1.65; }
.pf-v2.cfl-ds2 :is(.pf-v2-import-footer, .pf-v2-ai-footer) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pf-v2.cfl-ds2 .pf-v2-identity { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: start; gap: 24px; margin-bottom: 24px; }
.pf-v2.cfl-ds2 .pf-v2-identity-fields { display: grid; min-width: 0; gap: 16px; }
.pf-v2.cfl-ds2 .pf-v2-identity-fields :is(.form-group, .form-group-row) { display: block; margin: 0; }
.pf-v2.cfl-ds2 .pf-v2-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 0; }
.pf-v2.cfl-ds2 .pf-v2-photo { min-width: 0; margin: 0; }
.pf-v2.cfl-ds2 .pf-v2-photo .file-upload-box { position: relative; display: block; min-width: 0; }
.pf-v2.cfl-ds2 .pf-v2-photo .file-upload-label { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 100%; min-height: 170px; padding: 16px; border: 1px dashed #8a9786; border-radius: 14px; background: #f9f7f2; color: var(--pf-muted); font-size: .875rem; font-weight: 500; text-align: center; }
.pf-v2.cfl-ds2 .pf-v2-photo .file-upload-label > i { color: #6c8261; font-size: 1.5rem; }
.pf-v2.cfl-ds2 .pf-v2-photo #imagePreview { display: none; }
.pf-v2.cfl-ds2 .pf-v2-photo #imagePreview[style*="background-image"] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 170px; border: 1px solid var(--pf-line); border-radius: 14px; background-color: var(--pf-surface); background-size: contain; pointer-events: none; }
.pf-v2.cfl-ds2 .pf-v2-photo #productImage { display: block !important; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; }
.pf-v2.cfl-ds2 .pf-v2-photo:focus-within .file-upload-label { outline: 3px solid #537655; outline-offset: 3px; }
.pf-v2.cfl-ds2 .suggestions-list { max-width: 100%; border-color: var(--pf-line); border-radius: 10px; background: var(--pf-surface); box-shadow: 0 10px 24px #24352d12; }
.pf-v2.cfl-ds2 .suggestions-list > div { min-height: 44px; color: var(--pf-ink); font-size: .875rem; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .suggestions-list > div:hover { color: var(--pf-green); background: var(--pf-sage); }

/* Keep the existing ingredient chips and image-based texture controls. */
.pf-v2.cfl-ds2 .ingredient-input-box { align-content: flex-start; align-items: flex-start; gap: 8px; min-height: 160px; margin-top: 12px; padding: 12px; border-color: var(--pf-control); background: var(--pf-surface); }
.pf-v2.cfl-ds2 .ingredient-input-box:focus-within { outline: 3px solid #537655; outline-offset: 3px; }
.pf-v2.cfl-ds2 .ingredient-chip { max-width: 100%; border-radius: 8px; background: var(--pf-bg); color: var(--pf-muted); font-size: .8125rem; font-weight: 400; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .chip-remove { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; margin: -4px -4px -4px 4px; flex-shrink: 0; opacity: .8; }
.pf-v2.cfl-ds2 .transparent-input { min-width: min(140px, 100%); max-width: 100%; min-height: 48px; padding: 8px 4px; border: 0; background: transparent; color: var(--pf-ink); font-size: 1rem; line-height: 1.5; }
.pf-v2.cfl-ds2 .transparent-input:focus-visible { outline: 0; }
.pf-v2.cfl-ds2 .pe-texture-card .anno-inline { margin-left: 0; color: var(--pf-muted); font-size: .8125rem; }
.pf-v2.cfl-ds2 .pe-texture-desc { background: #f5f3ec; color: var(--pf-muted); font-size: .8125rem; line-height: 1.7; }
.pf-v2.cfl-ds2 .pe-texture-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf-v2.cfl-ds2 .pe-texture-col { min-width: 0; }
.pf-v2.cfl-ds2 .pe-texture-heading { padding: 6px 10px; border-radius: 8px; background: var(--pf-sage); color: var(--pf-green); font-size: .875rem; font-weight: 600; }
.pf-v2.cfl-ds2 .pe-texture-option__inner { min-height: 84px; padding: 12px; border: 1px solid #bdc8b8; background: var(--pf-surface); }
.pf-v2.cfl-ds2 .pe-texture-option:hover .pe-texture-option__inner { border-color: var(--pf-green); background: #f4f6ef; }
.pf-v2.cfl-ds2 .pe-texture-option input:checked ~ .pe-texture-option__inner { border-color: var(--pf-green); background: var(--pf-sage); box-shadow: none; }
.pf-v2.cfl-ds2 .pe-texture-option input:focus-visible ~ .pe-texture-option__inner { outline: 3px solid #537655; outline-offset: 3px; }
.pf-v2.cfl-ds2 .pe-texture-option input:checked ~ .pe-texture-option__inner::after { background-color: var(--pf-green); }
.pf-v2.cfl-ds2 .pe-texture-option__media { border-color: var(--pf-line); background: #f5f3ec; }
.pf-v2.cfl-ds2 .pe-texture-option__label { color: var(--pf-ink); font-size: .875rem; font-weight: 600; }
.pf-v2.cfl-ds2 .pe-texture-option__tag { background: #f5f3ec; color: var(--pf-muted); font-size: .75rem; font-weight: 400; }
.pf-v2.cfl-ds2 .pe-texture-option input:checked ~ .pe-texture-option__inner .pe-texture-option__tag { background: #fffdf9b3; color: var(--pf-green); }
.pf-v2.cfl-ds2 .pe-texture-disabled-hint { background: #f5f3ec; border-color: #b5bea9; color: var(--pf-muted); font-weight: 400; }
.pf-v2.cfl-ds2 .pe-texture-disabled-hint i { color: var(--pf-green); }

/* One active basis per nutrient; moisture remains editable in either basis. */
.pf-v2.cfl-ds2 #pfiLabelTypeGroup { margin-bottom: 28px; }
.pf-v2.cfl-ds2 #pfiLabelTypeSeg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-v2.cfl-ds2 #pfiLabelTypeSeg .lt-opt { min-width: 0; min-height: 72px; padding: 12px 10px; border: 1px solid var(--pf-control); border-radius: 12px; background: var(--pf-surface); color: var(--pf-ink); font-size: .875rem; font-weight: 600; line-height: 1.5; text-align: left; cursor: pointer; }
.pf-v2.cfl-ds2 #pfiLabelTypeSeg .lt-opt span { display: block; margin-top: 4px; color: var(--pf-muted); font-size: .75rem; font-weight: 400; line-height: 1.5; opacity: 1; }
.pf-v2.cfl-ds2 #pfiLabelTypeSeg .lt-opt.is-on { border-color: var(--pf-green); background: var(--pf-sage); color: var(--pf-green); }
.pf-v2.cfl-ds2 #pfiLabelTypeGroup > p { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #f5f3ec; color: var(--pf-muted); font-size: .8125rem; line-height: 1.7; }
.pf-v2.cfl-ds2 .tip-box { padding: 12px 14px; border: 0; background: #f5f3ec; color: var(--pf-muted); font-size: .8125rem; }
.pf-v2.cfl-ds2 .tip-box .pf-icon-box { width: 24px; height: 24px; flex: 0 0 24px; border: 0; background: transparent; color: var(--pf-green); }
.pf-v2.cfl-ds2 .basis-toggle-group { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.pf-v2.cfl-ds2 .basis-toggle-group > .form-label { margin: 0; }
.pf-v2.cfl-ds2 .radio-group-styled { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid #bcc7b5; background: #f5f3ec; border-radius: 12px; }
.pf-v2.cfl-ds2 .radio-group-styled input[type=radio] { display: block; position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; clip-path: inset(50%); overflow: hidden; opacity: 0; }
.pf-v2.cfl-ds2 .radio-label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; color: var(--pf-muted); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.pf-v2.cfl-ds2 .radio-group-styled input:checked + .radio-label { color: var(--pf-green); background: var(--pf-sage); box-shadow: none; }
.pf-v2.cfl-ds2 .radio-group-styled input:focus-visible + .radio-label { outline: 3px solid #537655; outline-offset: 2px; }
.pf-v2.cfl-ds2 .nutrient-table-styled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.pf-v2.cfl-ds2 .nutrient-table-styled .table-head { display: none; }
.pf-v2.cfl-ds2 .nutrient-table-styled > .table-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.pf-v2.cfl-ds2 .nutrient-table-styled .label-col { display: block; flex: none; margin: 0; color: var(--pf-ink); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.pf-v2.cfl-ds2 .nutrient-table-styled .label-col { display: flex; align-items: baseline; gap: 6px; }
.pf-v2.cfl-ds2 .pf-v2-bound { margin-left: auto; color: var(--pf-muted); font-size: .75rem; font-weight: 400; white-space: nowrap; }
.pf-v2.cfl-ds2 .pf-v2-bound:empty { display: none; }
.pf-v2.cfl-ds2 .nutrient-table-styled .input-col { display: flex; align-items: center; gap: 8px; min-height: 48px; border: 1px solid var(--pf-control); border-radius: 10px; background: var(--pf-surface); color: var(--pf-ink); }
.pf-v2.cfl-ds2 .nutrient-table-styled .input-col::after { content: '%'; flex: 0 0 auto; padding-right: 13px; color: var(--pf-muted); font-size: .875rem; }
.pf-v2.cfl-ds2 .nutrient-table-styled .input-col .form-input { flex: 1; min-height: 46px; padding-right: 0; border: 0; border-radius: 10px; background: transparent; }
.pf-v2.cfl-ds2 .nutrient-table-styled .input-col:focus-within { outline: 3px solid #537655; outline-offset: 3px; }
.pf-v2.cfl-ds2 .nutrient-table-styled .input-col .form-input:focus-visible { outline: 0; }
.pf-v2.cfl-ds2.pf-v2-basis-af .nutrient-table-styled .dm-col,
.pf-v2.cfl-ds2.pf-v2-basis-dm .nutrient-table-styled .table-row:not(.moisture-row) .as-fed-col,
.pf-v2.cfl-ds2 .nutrient-table-styled .moisture-row .dm-col { display: none; }
.pf-v2.cfl-ds2 .readonly-field { color: var(--pf-muted); background: #f5f3ec; }
.pf-v2.cfl-ds2 .calc-result-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 12px 14px; background: #f5f3ec; color: var(--pf-muted); }
.pf-v2.cfl-ds2 .calc-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 0; }
.pf-v2.cfl-ds2 .calc-label { color: var(--pf-muted); font-size: .8125rem; font-weight: 400; }
.pf-v2.cfl-ds2 .calc-val { color: var(--pf-green); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .calc-divider { display: none; }
.pf-v2.cfl-ds2 button.calc-item { min-height: 48px; border: 0; background: transparent; font: inherit; text-align: left; }
.pf-v2.cfl-ds2 .pf-v2-calculated { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--pf-line); }
.pf-v2.cfl-ds2 .pf-v2-calculated > summary { min-height: 48px; padding: 14px 0; color: var(--pf-muted); font-size: .875rem; cursor: pointer; }
.pf-v2.cfl-ds2 .pf-v2-calculated .calc-result-box { margin: 12px 0 0; }
.pf-v2.cfl-ds2 .clickable-calc:hover { background: var(--pf-sage); }
.pf-v2.cfl-ds2 .pf-v2-calorie { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pf-line); }
.pf-v2.cfl-ds2 .pf-v2-calorie h3 { margin: 0 0 16px; color: var(--pf-ink); font-size: 1.125rem; font-weight: 600; }
.pf-v2.cfl-ds2 .pf-v2-calorie-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 12px; }
.pf-v2.cfl-ds2 .pf-v2-calorie-row:has(> #pfiCalorieWeightGroup[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-v2.cfl-ds2 .pf-v2-calorie-row > * { min-width: 0; margin-bottom: 0; }
.pf-v2.cfl-ds2 .input-with-unit { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-v2.cfl-ds2 .input-with-unit > .unit { flex: 0 0 auto; color: var(--pf-muted); font-size: .875rem; }
.pf-v2.cfl-ds2 .pf-v2-calorie-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--pf-sage); color: var(--pf-green); }
.pf-v2.cfl-ds2 .pf-v2-calorie-result > span { font-size: .8125rem; }
.pf-v2.cfl-ds2 .pf-v2-calorie-result output { max-width: 100%; color: var(--pf-green); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .pf-v2-calorie-result strong { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-v2.cfl-ds2 .pf-v2-calorie-result small { font-size: .8125rem; font-weight: 500; }

/* Optional nutrients, the existing supplement editor, and review. */
.pf-v2.cfl-ds2 .pf-v2-advanced { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--pf-line); }
.pf-v2.cfl-ds2 .pf-v2-advanced > summary { min-height: 48px; padding: 14px 0; color: var(--pf-ink); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.pf-v2.cfl-ds2 .pf-v2-advanced-section > .pf-v2-advanced { margin: 0; padding: 0; border: 0; }
.pf-v2.cfl-ds2 .pf-v2-advanced-section > .pf-v2-advanced > summary { min-height: 44px; padding: 4px 0; }
.pf-v2.cfl-ds2 .pf-v2-advanced > summary > span:last-child { display: block; margin: 4px 0 0 16px; color: var(--pf-muted); font-size: .8125rem; font-weight: 400; }
.pf-v2.cfl-ds2 .pf-v2-advanced-body { padding-top: 12px; }
.pf-v2.cfl-ds2 .pf-v2-advanced > summary::marker { color: var(--pf-green); }
.pf-v2.cfl-ds2 .pf-v2-advanced > summary :is(small, .anno) { color: var(--pf-muted); font-size: .8125rem; font-weight: 400; }
.pf-v2.cfl-ds2 .pf-v2-advanced .card-desc { margin: 0 0 16px; }
.pf-v2.cfl-ds2 .pf-v2-advanced .pf-stack-panel { margin-top: 16px; padding: 0; border: 0; background: transparent; }
.pf-v2.cfl-ds2 .pf-v2-advanced-body > .pf-stack-panel { margin-top: 0; }
.pf-v2.cfl-ds2 .pf-stack-panel__hint { flex-basis: 100%; margin: 0; }
.pf-v2.cfl-ds2 .nutrient-row.dynamic-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) 44px; align-items: center; gap: 12px; margin-bottom: 12px; padding: 0; border-radius: 0; background: transparent; }
.pf-v2.cfl-ds2 .dynamic-row > .label-col { color: var(--pf-ink); font-size: .875rem; font-weight: 600; }
.pf-v2.cfl-ds2 .dynamic-row .input-col { display: flex; gap: 8px; }
.pf-v2.cfl-ds2 .unit-select { width: 88px !important; padding: 11px 8px; flex: 0 0 88px; font-size: 1rem; }
.pf-v2.cfl-ds2 .btn-remove-nutrient { display: flex; justify-content: center; align-items: center; width: 44px; min-width: 44px; height: 48px; margin: 0; border: 1px solid #c8b7ac; border-radius: 10px; background: var(--pf-surface); color: #945045; }
.pf-v2.cfl-ds2 .add-nutrient-box { gap: 8px; margin-top: 16px; padding-top: 0; border: 0; }
.pf-v2.cfl-ds2 .grow-select { min-width: 0; }
.pf-v2.cfl-ds2 .cfl-su h2 { margin-bottom: 8px; }
.pf-v2.cfl-ds2 .cfl-su h3 { margin: 0 0 12px; color: var(--pf-ink); font-size: 1rem; font-weight: 600; }
.pf-v2.cfl-ds2 .cfl-su-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0 24px; }
.pf-v2.cfl-ds2 .cfl-su button { border: 1px solid var(--pf-control); background: var(--pf-surface); color: var(--pf-green); }
.pf-v2.cfl-ds2 .cfl-su button[aria-pressed=true], .pf-v2.cfl-ds2 .cfl-su-add button { background: var(--pf-sage); border-color: var(--pf-green); color: var(--pf-green); }
.pf-v2.cfl-ds2 .cfl-su-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pf-v2.cfl-ds2 .cfl-su-basis { gap: 16px; }
.pf-v2.cfl-ds2 .cfl-su-field { color: var(--pf-ink); font-size: .875rem; }
.pf-v2.cfl-ds2 .cfl-su-row { grid-template-columns: minmax(0, 1fr) minmax(80px, 100px) 44px; gap: 12px; }
.pf-v2.cfl-ds2 .cfl-su-row .cfl-su-remove { min-width: 44px; min-height: 48px; padding: 0; color: #945045; }
.pf-v2.cfl-ds2 .cfl-su-preview { padding: 16px; border-color: #c5d2bd; border-radius: 12px; background: var(--pf-sage); }
.pf-v2.cfl-ds2 .cfl-su-preview-basis { color: var(--pf-green); }
.pf-v2.cfl-ds2 .cfl-su-preview-row { border-color: #cfdbc8; font-size: .875rem; }
.pf-v2.cfl-ds2 .cfl-su-confirm { min-height: 48px; color: var(--pf-ink); font-size: .875rem; }
.pf-v2.cfl-ds2 .cfl-su-confirm input { accent-color: var(--pf-green); }
.pf-v2.cfl-ds2 .pf-v2-review-grid { margin: 0; }
.pf-v2.cfl-ds2 .pf-v2-review-grid > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; margin: 12px 0; font-size: .875rem; }
.pf-v2.cfl-ds2 .pf-v2-review-grid dt { color: var(--pf-muted); }
.pf-v2.cfl-ds2 .pf-v2-review-grid dd { margin: 0; color: var(--pf-ink); font-weight: 500; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .pf-v2-review-help { margin: 20px 0 0; padding: 20px 0; border-top: 1px solid var(--pf-line); color: var(--pf-muted); font-size: .875rem; line-height: 1.7; }
.pf-v2.cfl-ds2 .form-actions { margin-top: 20px; }
.pf-v2.cfl-ds2 .pf-submit-wide { justify-content: space-between; width: 100%; max-width: none; min-height: 52px; padding-inline: 20px; font-size: 1rem; }
.pf-v2.cfl-ds2 .pfi-points-banner { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--pf-line); border-radius: 0; background: transparent; box-shadow: none; }
.pf-v2.cfl-ds2 .pfi-points-banner__icon { display: none; }
.pf-v2.cfl-ds2 .pfi-points-banner__body { min-width: 0; }
.pf-v2.cfl-ds2 .pfi-points-banner__title { margin-bottom: 4px; color: var(--pf-muted); font-size: .8125rem; font-weight: 600; }
.pf-v2.cfl-ds2 .pfi-points-banner__title em { color: var(--pf-green); font-style: normal; }
.pf-v2.cfl-ds2 :is(.pfi-points-banner__desc, .pfi-points-banner__warn) { margin: 4px 0; color: var(--pf-muted); font-size: .75rem; line-height: 1.65; }
.pf-v2.cfl-ds2 .pfi-points-banner__warn { padding: 0; border: 0; background: transparent; }

/* Desktop product summary. */
.pf-v2.cfl-ds2 .pf-v2-sidebar { position: sticky; top: 96px; min-width: 0; padding-top: 20px; }
.pf-v2.cfl-ds2 .pf-v2-sidebar-title { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid #dddccf; color: var(--pf-muted); font-size: .8125rem; font-weight: 400; }
.pf-v2.cfl-ds2 :is(.pf-v2-sidebar-brand, .pf-v2-summary-brand) { margin: 0 0 5px; color: var(--pf-muted); font-size: .875rem; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .pf-v2-sidebar h2 { margin: 0 0 14px; color: var(--pf-ink); font-size: 1.25rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 :is(.pf-v2-tag, .pf-v2-summary-category) { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: var(--pf-sage); color: var(--pf-green); font-size: .75rem; overflow-wrap: anywhere; }
.pf-v2.cfl-ds2 .pf-v2-summary-category:empty { display: none; }
.pf-v2.cfl-ds2 .pf-v2-sidebar-tip p { margin: 8px 0 0; }
.pf-v2.cfl-ds2 .pf-v2-section-nav { display: grid; gap: 8px; margin: 16px 0 0; padding: 24px 0; border-top: 1px solid #dddccf; }
.pf-v2.cfl-ds2 .pf-v2-section-nav a { display: flex; gap: 12px; min-height: 44px; padding: 10px 0; color: var(--pf-muted); font-size: .875rem; text-decoration: none; }
.pf-v2.cfl-ds2 .pf-v2-section-nav a:hover { color: var(--pf-green); }
.pf-v2.cfl-ds2 .pf-v2-section-nav a > span { color: #76846e; font-size: .75rem; }
.pf-v2.cfl-ds2 .pf-v2-sidebar-tip { margin: 0; padding-top: 24px; border-top: 1px solid #dddccf; color: var(--pf-muted); font-size: .8125rem; line-height: 1.8; }
.pf-v2.cfl-ds2 .pf-v2-sidebar-tip strong { color: var(--pf-green); font-weight: 600; }

/* Shared dialogs are siblings of the form, so scope them through their page. */
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) { color: #24352d; font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .pf-smart-modal__backdrop { background: #24352d73; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .pf-smart-modal__dialog { box-sizing: border-box; width: min(600px, 100%); max-height: min(90dvh, 760px); padding: 24px; border: 1px solid #ebe4d9; border-radius: 20px; background: #fffdf9; box-shadow: 0 24px 64px #24352d26; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .pf-smart-modal__title { color: #24352d; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .pf-smart-modal__desc { color: #59675e; font-size: .875rem; line-height: 1.7; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) :is(input, textarea, select) { box-sizing: border-box; max-width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #7b887d; border-radius: 10px; background: #fffdf9; color: #24352d; font-family: inherit; font-size: 1rem; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) textarea { min-height: 160px; line-height: 1.8; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .btn { min-height: 48px; padding: 11px 18px; border-radius: 10px; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.4; box-shadow: none; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .btn-primary { border-color: #3e634a; background: #3e634a; color: #fffdf9; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) .btn-outline { border: 1px solid #7b887d; background: #fffdf9; color: #3e634a; }
body:has(.product-form-inline.pf-v2.cfl-ds2) :is(#smartParseModal, #pfuAnalyzeModal) :is(button, input, textarea, select):focus-visible { outline: 3px solid #537655; outline-offset: 3px; box-shadow: none; }
body:has(.product-form-inline.pf-v2.cfl-ds2) #pfuAnalyzeModal :is(.pfu-modal__title-icon, .pfu-loader, .pfu-progress__stage, .pfu-progress__percent) { color: #3e634a; }
body:has(.product-form-inline.pf-v2.cfl-ds2) #pfuAnalyzeModal .pfu-progress__fill { background: #3e634a; }
body:has(.product-form-inline.pf-v2.cfl-ds2) #pfuAnalyzeModal :is(.pfu-cached-notice, .tag-pill.blue, .tag-pill.gray, .tag-pill.outline) { border-color: #c5d2bd; background: #e8f0df; color: #3e634a; }
body:has(.product-form-inline.pf-v2.cfl-ds2) #pfuAnalyzeModal .pfu-result-card { border-color: #ebe4d9; background: #f7f3ec; }

/* The standalone page supplies its own gutter; embedded explorer already has one. */
.product-form-page.pf-v2-page { display: block; width: 100%; min-height: auto; background: #f7f3ec; }
.product-form-page.pf-v2-page > .brand-panel { display: none; }
.product-form-page.pf-v2-page > .form-panel { display: block; width: 100%; padding: 24px 32px 64px; background: transparent; }
.product-form-page.pf-v2-page .form-container-max { width: 100%; max-width: 1040px; margin: 0 auto; }

@media (max-width: 900px) {
    .pf-v2.cfl-ds2 .pf-v2-workspace { grid-template-columns: minmax(0, 1fr); }
    .pf-v2.cfl-ds2 .pf-v2-sidebar { display: none; }
    .pf-v2.cfl-ds2 :is(.section-card, .cfl-su) { padding: 24px; }
    .pf-v2.cfl-ds2 .pf-v2-section-caption { display: none; }
}
@media (max-width: 600px) {
    .product-form-page.pf-v2-page > .form-panel { padding: 16px 16px 32px !important; }
    .pf-v2.cfl-ds2 .pf-v2-heading { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .pf-v2.cfl-ds2 .pf-v2-heading h1 { font-size: 1.625rem; }
    .pf-v2.cfl-ds2 :is(.pf-v2-lead, .pf-v2-heading .lead) { margin-top: 8px; font-size: .875rem; }
    .pf-v2.cfl-ds2 .pf-v2-eyebrow { font-size: .75rem; }
    .pf-v2.cfl-ds2 :is(.pf-v2-required-note, .pf-v2-heading > small) { padding-top: 7px; font-size: .75rem; }
    .pf-v2.cfl-ds2 :is(.section-card, .cfl-su) { margin: 0 0 16px; padding: 20px 16px; border-radius: 20px; }
    .pf-v2.cfl-ds2 .card-title, .pf-v2.cfl-ds2 .cfl-su h2 { margin-bottom: 20px; font-size: 1.1875rem; }
    .pf-v2.cfl-ds2 .pf-v2-section-top { margin-bottom: 20px; }
    .pf-v2.cfl-ds2 .pf-v2-section-number { font-size: .8125rem; }
    .pf-v2.cfl-ds2 .section-card.pfu-ai-card { margin-bottom: 16px; padding: 20px 16px; }
    .pf-v2.cfl-ds2 .pfu-ai-card .card-title { margin-bottom: 8px; font-size: 1.125rem; }
    .pf-v2.cfl-ds2 .pfu-ai-card__badge { margin-left: 0; font-size: .6875rem; }
    .pf-v2.cfl-ds2 .pfu-ai-card__desc { margin-bottom: 16px; font-size: .8125rem; }
    .pf-v2.cfl-ds2 .pfu-url-input { flex-direction: column; }
    .pf-v2.cfl-ds2 .pfu-url-input__btn { width: 100%; }
    .pf-v2.cfl-ds2 .pf-v2-identity { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
    .pf-v2.cfl-ds2 .pf-v2-identity-fields { gap: 12px; }
    .pf-v2.cfl-ds2 .pf-v2-photo .file-upload-label { min-height: 112px; padding: 8px; font-size: .75rem; }
    .pf-v2.cfl-ds2 .pf-v2-photo #imagePreview[style*="background-image"] { min-height: 112px; }
    .pf-v2.cfl-ds2 .pf-v2-categories, .pf-v2.cfl-ds2 .form-group-row { gap: 12px; }
    .pf-v2.cfl-ds2 .form-label { font-size: .875rem; }
    .pf-v2.cfl-ds2 .form-label .anno { display: block; margin: 4px 0 0; }
    .pf-v2.cfl-ds2 .pe-texture-tracks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pf-v2.cfl-ds2 .pe-texture-card .anno-inline { width: 100%; }
    .pf-v2.cfl-ds2 #pfiLabelTypeSeg { grid-template-columns: minmax(0, 1fr); }
    .pf-v2.cfl-ds2 #pfiLabelTypeSeg .lt-opt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; padding: 12px; }
    .pf-v2.cfl-ds2 #pfiLabelTypeSeg .lt-opt span { margin-top: 0; text-align: right; }
    .pf-v2.cfl-ds2 .basis-toggle-group { align-items: flex-start; gap: 12px; }
    .pf-v2.cfl-ds2 .basis-toggle-group .radio-group-styled { width: 100%; }
    .pf-v2.cfl-ds2 .nutrient-table-styled { gap: 16px 12px; }
    .pf-v2.cfl-ds2 .nutrient-table-styled .label-col { font-size: .8125rem; }
    .pf-v2.cfl-ds2 .pf-v2-calorie h3 { font-size: 1rem; }
    .pf-v2.cfl-ds2 .pf-v2-calorie-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-v2.cfl-ds2 .pf-v2-calorie-row > :last-child { grid-column: 1 / -1; }
    .pf-v2.cfl-ds2 .pf-v2-calorie-result { flex-wrap: wrap; padding: 12px; }
    .pf-v2.cfl-ds2 .pf-v2-calorie-result strong { font-size: 1.25rem; }
    .pf-v2.cfl-ds2 .nutrient-row.dynamic-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
    .pf-v2.cfl-ds2 .dynamic-row > .label-col { grid-column: 1 / -1; }
    .pf-v2.cfl-ds2 .add-nutrient-box { flex-wrap: wrap; }
    .pf-v2.cfl-ds2 .add-nutrient-box .grow-select { flex: 1 1 150px; }
    .pf-v2.cfl-ds2 .pf-add-nutrient-btn { flex: 0 0 auto; }
    .pf-v2.cfl-ds2 .cfl-su-modes { grid-template-columns: minmax(0, 1fr); }
    .pf-v2.cfl-ds2 .cfl-su-basis { gap: 12px; }
    .pf-v2.cfl-ds2 .cfl-su-row { grid-template-columns: minmax(0, 1fr) 80px 44px; gap: 8px; }
    .pf-v2.cfl-ds2 .pf-v2-review-grid > div { grid-template-columns: 74px minmax(0, 1fr); font-size: .8125rem; }
    .pf-v2.cfl-ds2 .pf-v2-review-help { font-size: .8125rem; }
    .pf-v2.cfl-ds2 .pfi-points-banner { margin: 16px 0 0; }
}
@media (max-width: 360px) {
    .pf-v2.cfl-ds2 .pf-v2-heading { display: block; }
    .pf-v2.cfl-ds2 .pf-v2-required-note { display: block; margin-top: 8px; }
    .pf-v2.cfl-ds2 .pf-v2-identity { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .pf-v2.cfl-ds2 .nutrient-table-styled { grid-template-columns: minmax(0, 1fr); }
    .pf-v2.cfl-ds2 .cfl-su-row { grid-template-columns: minmax(0, 1fr) 72px 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-v2.cfl-ds2 *, .pf-v2.cfl-ds2 *::before, .pf-v2.cfl-ds2 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* The explorer content panel already supplies the mobile page gutter. */
.fe-v2 .mq-tab-panel[data-tab="product"] .fe-prod-panel[data-prod-panel="register"] { padding-inline: 0; }
.fe-v2 .fe-prod-panel[data-prod-panel="register"]:has(.product-form-inline.pf-v2) > .fe-info-banner { display: none; }
