.rdfc-app,
.rdfc-app * {
    box-sizing: border-box;
}

.rdfc-app {
    --rdfc-bg: #fff7e7;
    --rdfc-card: #fffdf7;
    --rdfc-ink: #17202b;
    --rdfc-muted: #697385;
    --rdfc-line: rgba(50, 32, 22, .13);
    --rdfc-red: #a92525;
    --rdfc-red-2: #d53b32;
    --rdfc-orange: #f09a36;
    --rdfc-cream: #fff0cc;
    --rdfc-green: #1f7a4d;
    --rdfc-shadow: 0 24px 70px rgba(91, 42, 18, .14);
    max-width: 1240px;
    margin: 0 auto;
    color: var(--rdfc-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rdfc-stage-section,
.rdfc-host-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.rdfc-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: 26px;
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid rgba(95, 46, 24, .12);
    border-radius: 38px;
    background:
        radial-gradient(circle at 17% 16%, rgba(255, 244, 205, .96) 0, rgba(255, 244, 205, 0) 34%),
        linear-gradient(135deg, #fff7e6 0%, #ffe1a7 45%, #b7352f 100%);
    box-shadow: var(--rdfc-shadow);
}

.rdfc-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rdfc-orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
    filter: blur(1px);
}

.rdfc-orb--one {
    width: 260px;
    height: 260px;
    right: 28%;
    top: -90px;
}

.rdfc-orb--two {
    width: 360px;
    height: 360px;
    right: -92px;
    bottom: -140px;
    background: rgba(255, 230, 177, .26);
}

.rdfc-knife {
    position: absolute;
    right: 30%;
    bottom: 48px;
    width: 190px;
    height: 18px;
    transform: rotate(-12deg);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255,255,255,.7), rgba(63, 37, 28, .35));
    opacity: .55;
}

.rdfc-bowl {
    position: absolute;
    right: 68px;
    bottom: 42px;
    width: 160px;
    height: 74px;
    border-radius: 0 0 80px 80px;
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,223,164,.88));
    opacity: .38;
}

.rdfc-hero__copy,
.rdfc-hero__dog {
    position: relative;
    z-index: 1;
}

.rdfc-kicker,
.rdfc-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    color: #8b2a22;
    border: 1px solid rgba(139, 42, 34, .15);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rdfc-hero h2 {
    margin: 16px 0 14px;
    max-width: 690px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .9;
    letter-spacing: -.055em;
    font-weight: 1000;
    color: #18202b;
}

.rdfc-hero h2 span {
    color: #a92525;
    text-shadow: 0 10px 28px rgba(169, 37, 37, .18);
}

.rdfc-hero p {
    max-width: 660px;
    margin: 0;
    color: #4e372e;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
    font-weight: 650;
}

.rdfc-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.rdfc-hero__badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(80, 38, 24, .12);
    color: #36251f;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(91, 42, 18, .08);
}

.rdfc-hero__badges strong {
    color: var(--rdfc-red);
}

.rdfc-hero__dog svg {
    width: 100%;
    max-width: 470px;
    display: block;
    margin-left: auto;
    filter: drop-shadow(0 28px 34px rgba(84, 24, 20, .22));
}

.rdfc-svg-shadow {
    fill: none;
    stroke: rgba(74, 18, 14, .18);
    stroke-width: 24;
    stroke-linecap: round;
}

.rdfc-svg-dog {
    fill: #fff7e5;
}

.rdfc-svg-dog-dark {
    fill: #6d2422;
}

.rdfc-svg-eye {
    fill: #19202a;
}

.rdfc-svg-line {
    fill: none;
    stroke: #6d2422;
    stroke-width: 8;
    stroke-linecap: round;
}

.rdfc-svg-bone {
    fill: #fff3d5;
    stroke: rgba(109, 36, 34, .22);
    stroke-width: 5;
}

.rdfc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.rdfc-card {
    background: rgba(255, 253, 247, .96);
    border: 1px solid var(--rdfc-line);
    border-radius: 32px;
    box-shadow: var(--rdfc-shadow);
    overflow: hidden;
}

.rdfc-card--inputs {
    padding: clamp(18px, 2.5vw, 30px);
}

.rdfc-card--results {
    position: sticky;
    top: 14px;
}

.rdfc-card__head,
.rdfc-card__subhead,
.rdfc-bulk__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rdfc-card__subhead {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--rdfc-line);
}

.rdfc-card h3,
.rdfc-bulk h3,
.rdfc-info-card h3 {
    margin: 8px 0 0;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 950;
}

.rdfc-soft-btn,
.rdfc-presets button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.rdfc-soft-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #221b18;
    color: #fff6e7;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(34, 27, 24, .16);
}

.rdfc-life-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.rdfc-stage-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(80, 38, 24, .13);
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf0, #fff5df);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rdfc-stage-card:has(input:checked) {
    border-color: rgba(169, 37, 37, .46);
    box-shadow: 0 18px 38px rgba(169, 37, 37, .14), inset 0 0 0 2px rgba(169, 37, 37, .14);
    transform: translateY(-1px);
}

.rdfc-stage-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rdfc-stage-card__art {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #a92525;
    color: #fff;
    font-size: 29px;
    box-shadow: 0 12px 24px rgba(169, 37, 37, .18);
}

.rdfc-stage-card span:last-child {
    min-width: 0;
}

.rdfc-stage-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 950;
}

.rdfc-stage-card small {
    display: block;
    margin-top: 5px;
    color: var(--rdfc-muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.rdfc-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rdfc-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.rdfc-field > span,
.rdfc-days span {
    color: #66574c;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rdfc-field input,
.rdfc-field select,
.rdfc-days input {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border: 1px solid rgba(80, 38, 24, .18);
    border-radius: 16px;
    background: #fffaf0;
    color: var(--rdfc-ink);
    padding: 0 14px;
    outline: none;
    font: inherit;
    font-weight: 850;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rdfc-field input:focus,
.rdfc-field select:focus,
.rdfc-days input:focus {
    border-color: rgba(169, 37, 37, .6);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(169, 37, 37, .11);
}

.rdfc-input-unit {
    position: relative;
}

.rdfc-input-unit input {
    padding-right: 58px;
}

.rdfc-input-unit em {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 38px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #2a2521;
    color: #fff7e7;
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
}

.rdfc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rdfc-presets button {
    min-height: 39px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f8ead1;
    color: #59392c;
    border: 1px solid rgba(80, 38, 24, .12);
    font-size: 12px;
    font-weight: 950;
}

.rdfc-presets button.is-active {
    background: linear-gradient(135deg, var(--rdfc-red), var(--rdfc-red-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(169, 37, 37, .18);
}

.rdfc-total-pill {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(31, 122, 77, .1);
    color: var(--rdfc-green);
    font-size: 13px;
    font-weight: 950;
}

.rdfc-total-pill.is-warning {
    background: rgba(169, 37, 37, .1);
    color: var(--rdfc-red);
}

.rdfc-composition {
    display: grid;
    gap: 10px;
}

.rdfc-comp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(80, 38, 24, .1);
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf7, #fff6e6);
}

.rdfc-comp-row__name {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 11px;
    align-items: center;
    min-width: 0;
}

.rdfc-comp-row__name i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #fff0ce;
    font-style: normal;
    font-size: 22px;
}

.rdfc-comp-row__name strong {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
}

.rdfc-comp-row__name small {
    margin-top: 3px;
    color: var(--rdfc-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.rdfc-comp-row__input {
    position: relative;
}

.rdfc-comp-row__input input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(80, 38, 24, .16);
    border-radius: 15px;
    background: #fff;
    padding: 0 42px 0 13px;
    font: inherit;
    font-weight: 950;
    outline: none;
}

.rdfc-comp-row__input input:focus {
    border-color: rgba(169, 37, 37, .6);
    box-shadow: 0 0 0 4px rgba(169, 37, 37, .1);
}

.rdfc-comp-row__input em {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rdfc-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.rdfc-alert {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #fff0dd;
    border: 1px solid rgba(169, 37, 37, .2);
    color: #8b2a22;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.rdfc-result-hero {
    padding: 28px 28px 22px;
    background:
        radial-gradient(circle at 85% 18%, rgba(255,255,255,.42), transparent 34%),
        linear-gradient(135deg, #281b18, #8e2423 56%, #df6137);
    color: #fff7e7;
}

.rdfc-result-hero .rdfc-card-label {
    background: rgba(255,255,255,.14);
    color: #fff7e7;
    border-color: rgba(255,255,255,.18);
}

.rdfc-result-main {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.rdfc-result-main strong {
    font-size: clamp(54px, 7vw, 82px);
    line-height: .82;
    letter-spacing: -.06em;
    font-weight: 1000;
}

.rdfc-result-main em {
    margin-bottom: 8px;
    color: #ffe7b7;
    font-size: 20px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
}

.rdfc-result-hero p {
    margin: 12px 0 0;
    color: rgba(255, 247, 231, .86);
    font-size: 14px;
    font-weight: 750;
}

.rdfc-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(80, 38, 24, .1);
    border-bottom: 1px solid rgba(80, 38, 24, .1);
}

.rdfc-metrics article {
    min-height: 104px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px;
    background: #fff8ec;
}

.rdfc-metrics span,
.rdfc-metrics small {
    color: var(--rdfc-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rdfc-metrics strong {
    color: var(--rdfc-red);
    font-size: 22px;
    font-weight: 1000;
}

.rdfc-table-wrap {
    max-height: none;
    overflow: visible;
}

.rdfc-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}

.rdfc-table th,
.rdfc-table td {
    height: 66px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(80, 38, 24, .08);
    text-align: left;
    vertical-align: middle;
}

.rdfc-table thead th {
    height: 48px;
}

.rdfc-table th:nth-child(1),
.rdfc-table td:nth-child(1) {
    width: 35%;
}

.rdfc-table th:nth-child(2),
.rdfc-table td:nth-child(2) {
    width: 13%;
}

.rdfc-table th:nth-child(3),
.rdfc-table td:nth-child(3),
.rdfc-table th:nth-child(4),
.rdfc-table td:nth-child(4) {
    width: 26%;
}

.rdfc-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff4de;
    color: #604439;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 950;
}

.rdfc-table tbody th {
    font-weight: 950;
}

.rdfc-table td strong {
    display: block;
    color: #1b222c;
    font-weight: 950;
}

.rdfc-table td small {
    display: block;
    margin-top: 3px;
    color: var(--rdfc-muted);
    font-size: 12px;
    font-weight: 750;
}

.rdfc-bulk {
    padding: 22px 24px;
    background: #fffaf0;
    border-top: 1px solid rgba(80, 38, 24, .1);
}

.rdfc-bulk__head {
    margin-bottom: 12px;
}

.rdfc-days {
    display: grid;
    gap: 6px;
    width: 98px;
}

.rdfc-days input {
    min-height: 44px;
    text-align: center;
    padding: 0 8px;
}

.rdfc-bulk-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    color: #321f19;
    font-size: 18px;
    font-weight: 900;
}

.rdfc-bulk-total strong {
    color: var(--rdfc-red);
    font-size: 34px;
    line-height: 1;
    font-weight: 1000;
}

.rdfc-check {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 14px;
    color: #5b4d43;
    font-size: 13px;
    font-weight: 800;
}

.rdfc-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--rdfc-red);
}

.rdfc-note {
    padding: 18px 24px 24px;
    color: #5c4c44;
    background: #fffdf7;
    border-top: 1px solid rgba(80, 38, 24, .08);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.rdfc-note strong {
    color: var(--rdfc-red);
}

.rdfc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.rdfc-info-card {
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fffdf7, #fff3de);
    border: 1px solid rgba(80, 38, 24, .1);
    box-shadow: 0 18px 42px rgba(91, 42, 18, .09);
}

.rdfc-info-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #a92525, #e57c38);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 15px 28px rgba(169, 37, 37, .16);
}

.rdfc-info-card p {
    margin: 11px 0 0;
    color: var(--rdfc-muted);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 720;
}


.rdfc-hero__quick {
    position: relative;
    z-index: 1;
}

.rdfc-quick-card {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.5vw, 28px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 86% 0%, rgba(255, 239, 194, .78) 0, rgba(255,239,194,0) 36%),
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,246,226,.92));
    border: 1px solid rgba(80, 38, 24, .14);
    box-shadow: 0 28px 70px rgba(82, 28, 20, .18);
    backdrop-filter: blur(12px);
}

.rdfc-quick-card::before {
    content: "";
    position: absolute;
    inset: -80px -80px auto auto;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(169, 37, 37, .12);
    pointer-events: none;
}

.rdfc-quick-card__top {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.rdfc-quick-card h3,
.rdfc-advanced-intro h3,
.rdfc-modal__panel h3 {
    margin: 9px 0 0;
    color: #171f2a;
    font-size: clamp(25px, 2.7vw, 40px);
    line-height: .96;
    letter-spacing: -.045em;
    font-weight: 1000;
}

.rdfc-quick-dog {
    width: 132px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: linear-gradient(135deg, #ad2c27, #e27d37);
    box-shadow: 0 20px 40px rgba(169, 37, 37, .22);
}

.rdfc-quick-dog svg {
    width: 124px;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(34, 14, 10, .24));
}

.rdfc-quick-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.rdfc-quick-stage label {
    position: relative;
    cursor: pointer;
}

.rdfc-quick-stage input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rdfc-quick-stage span {
    display: grid;
    place-items: center;
    min-height: 64px;
    border-radius: 20px;
    border: 1px solid rgba(80, 38, 24, .15);
    background: rgba(255, 250, 240, .9);
    color: #31231e;
    font-size: 17px;
    font-weight: 1000;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.rdfc-quick-stage input:checked + span {
    transform: translateY(-1px);
    color: #fff7e7;
    border-color: rgba(169, 37, 37, .25);
    background: linear-gradient(135deg, #a92525, #d95d34);
    box-shadow: 0 18px 34px rgba(169, 37, 37, .22);
}

.rdfc-quick-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(150px, .9fr);
    gap: 12px;
    margin-bottom: 14px;
}

.rdfc-quick-submit {
    appearance: none;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 19px;
    cursor: pointer;
    color: #fff8e9;
    background: linear-gradient(135deg, #8f211f, #c2322b 48%, #ec8b37);
    box-shadow: 0 20px 38px rgba(169, 37, 37, .28);
    font: inherit;
    font-size: 15px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rdfc-quick-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.06);
    box-shadow: 0 24px 48px rgba(169, 37, 37, .34);
}

.rdfc-quick-note {
    margin: 13px 2px 0;
    color: #604d43;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 760;
}

.rdfc-advanced-intro {
    margin-top: 22px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 30px;
    border: 1px solid rgba(80, 38, 24, .1);
    background: linear-gradient(180deg, #fffdf7, #fff5df);
    box-shadow: 0 18px 42px rgba(91, 42, 18, .08);
}

.rdfc-advanced-intro p {
    max-width: 850px;
    margin: 10px 0 0;
    color: #67584d;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 750;
}

.rdfc-modal[hidden] {
    display: none !important;
}

.rdfc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.rdfc-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.rdfc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 14, .58);
    backdrop-filter: blur(8px);
}

.rdfc-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-height: min(780px, 92vh);
    overflow: auto;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 230, 175, .88) 0, rgba(255,230,175,0) 34%),
        linear-gradient(180deg, #fffdf7, #fff2d9);
    box-shadow: 0 36px 90px rgba(0, 0, 0, .34);
    transform: translateY(10px) scale(.98);
    transition: transform .18s ease;
}

.rdfc-modal.is-open .rdfc-modal__panel {
    transform: translateY(0) scale(1);
}

.rdfc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #221b18;
    color: #fff7e7;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.rdfc-modal-result {
    margin-top: 18px;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(135deg, #a92525, #df6737);
    color: #fff7e7;
    box-shadow: 0 22px 42px rgba(169, 37, 37, .24);
}

.rdfc-modal-result strong {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: clamp(48px, 10vw, 82px);
    line-height: .9;
    letter-spacing: -.055em;
    font-weight: 1000;
}

.rdfc-modal-result em {
    font-size: clamp(19px, 4vw, 26px);
    line-height: 1;
    font-style: normal;
    letter-spacing: -.02em;
}

.rdfc-modal-result p {
    margin: 9px 0 0;
    color: rgba(255, 247, 231, .86);
    font-size: 16px;
    font-weight: 900;
}

.rdfc-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rdfc-modal-stats article {
    min-height: 96px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(80, 38, 24, .11);
    background: rgba(255, 250, 240, .92);
}

.rdfc-modal-stats span,
.rdfc-modal-stats small {
    display: block;
    color: #6a5a50;
    font-size: 12px;
    font-weight: 850;
}

.rdfc-modal-stats strong {
    display: block;
    margin-top: 7px;
    color: #1c2430;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 1000;
}

.rdfc-modal-note {
    margin: 16px 0 0;
    color: #5c4c44;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 760;
}

.rdfc-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    margin-top: 18px;
}

.rdfc-modal-primary,
.rdfc-modal-secondary {
    appearance: none;
    min-height: 50px;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rdfc-modal-primary {
    border: 0;
    color: #fff7e7;
    background: #221b18;
}

.rdfc-modal-secondary {
    border: 1px solid rgba(80, 38, 24, .18);
    color: #2b211d;
    background: #fffaf0;
}

html.rdfc-modal-open,
html.rdfc-modal-open body {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .rdfc-hero,
    .rdfc-shell {
        grid-template-columns: 1fr;
    }

    .rdfc-hero {
        min-height: 0;
    }

    .rdfc-hero__dog svg {
        margin: 0 auto;
        max-width: 410px;
    }

    .rdfc-card--results {
        position: static;
    }
}

@media (max-width: 820px) {
    .rdfc-hero {
        padding: 24px 18px;
        border-radius: 28px;
    }

    .rdfc-life-stage,
    .rdfc-field-grid,
    .rdfc-quick-fields,
    .rdfc-info-grid {
        grid-template-columns: 1fr;
    }

    .rdfc-card__head,
    .rdfc-card__subhead,
    .rdfc-bulk__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rdfc-soft-btn,
    .rdfc-days {
        width: 100%;
    }

    .rdfc-comp-row {
        grid-template-columns: 1fr;
    }

    .rdfc-metrics {
        grid-template-columns: 1fr;
    }

    .rdfc-table th,
    .rdfc-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .rdfc-app {
        margin-left: -2px;
        margin-right: -2px;
    }

    .rdfc-hero h2 {
        font-size: 44px;
    }

    .rdfc-hero__dog {
        display: none;
    }

    .rdfc-card {
        border-radius: 24px;
    }

    .rdfc-card--inputs {
        padding: 16px;
    }

    .rdfc-result-hero,
    .rdfc-bulk,
    .rdfc-note {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rdfc-table-wrap {
        margin-left: -4px;
        margin-right: -4px;
        overflow-x: auto;
        overflow-y: visible;
    }

    .rdfc-table {
        min-width: 560px;
    }
}

@media (max-width: 680px) {
    .rdfc-quick-card__top {
        grid-template-columns: 1fr;
    }

    .rdfc-quick-dog {
        display: none;
    }

    .rdfc-modal-stats,
    .rdfc-modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .rdfc-quick-stage {
        grid-template-columns: 1fr;
    }

    .rdfc-modal-result strong {
        font-size: 48px;
    }
}

/* ===== v1.2.0 hero redesign ===== */
.rdfc-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
    gap: 42px;
    padding: clamp(28px, 4vw, 54px);
    border: 0;
    border-radius: 34px;
    background: #f8ead0;
    box-shadow: 0 22px 60px rgba(114, 62, 25, .14);
}

.rdfc-hero__bg {
    position: absolute;
    inset: 0;
    background: url('./hero-bg.webp') center center / cover no-repeat;
    opacity: 1;
}

.rdfc-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250,242,221,.38) 0%, rgba(250,242,221,.12) 42%, rgba(255,153,77,.12) 100%);
}

.rdfc-hero__copy,
.rdfc-hero__quick {
    position: relative;
    z-index: 2;
}

.rdfc-kicker {
    background: rgba(255, 255, 255, .72);
}

.rdfc-hero h2 {
    max-width: 620px;
    margin: 20px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 8vw, 88px);
    line-height: .92;
    letter-spacing: -.05em;
    font-weight: 800;
    color: #09153a;
}

.rdfc-hero h2 span {
    display: block;
    margin-top: 6px;
    color: #b4321e;
    text-shadow: none;
}

.rdfc-hero h2::after {
    content: "";
    display: block;
    width: 86px;
    height: 6px;
    border-radius: 999px;
    margin-top: 20px;
    background: linear-gradient(90deg, #b42e1b, #d0671f);
}

.rdfc-hero p {
    max-width: 590px;
    color: #4e4138;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 550;
}

.rdfc-hero__badges {
    gap: 16px;
    margin-top: 28px;
}

.rdfc-hero__badges span {
    min-height: 66px;
    padding: 10px 16px 10px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 20px rgba(89, 44, 18, .08);
    display: grid;
    grid-template-columns: 38px auto;
    grid-template-rows: auto auto;
    column-gap: 11px;
    align-items: center;
    min-width: 176px;
}

.rdfc-hero__badges span i {
    grid-row: 1 / span 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #b62a1c, #e38d27);
    box-shadow: 0 8px 18px rgba(182, 42, 28, .18);
}

.rdfc-hero__badges span b,
.rdfc-hero__badges span strong {
    color: #822016;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.rdfc-hero__badges span small {
    display: block;
    color: #65574d;
    font-size: 13px;
    font-weight: 650;
}

.rdfc-quick-card {
    padding: 34px 42px 32px;
    border-radius: 30px;
    background: rgba(255, 252, 248, .88);
    border: 1px solid rgba(124, 69, 36, .16);
    box-shadow: 0 18px 42px rgba(106, 62, 31, .18);
    backdrop-filter: blur(8px);
}

.rdfc-quick-card::before {
    display: none;
}

.rdfc-quick-card__top {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
}

.rdfc-quick-card .rdfc-card-label {
    background: transparent;
    padding: 0;
    border: 0;
    min-height: 0;
    color: #8d3922;
}

.rdfc-quick-card h3 {
    margin: 8px 0 0;
    max-width: 260px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4vw, 58px);
    line-height: .92;
    letter-spacing: -.05em;
    font-weight: 800;
    color: #0b1439;
}

.rdfc-quick-card h3::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 999px;
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(201, 149, 74, .68), rgba(201, 149, 74, .22));
}

.rdfc-quick-dog {
    display: none;
}

.rdfc-quick-stage {
    gap: 14px;
    margin-bottom: 20px;
}

.rdfc-quick-stage label {
    position: relative;
    display: block;
}

.rdfc-quick-stage-card {
    position: relative;
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
    min-height: 142px;
    padding: 0 22px 0 0;
    border-radius: 18px;
    border: 1.5px solid rgba(56, 42, 36, .12);
    background: rgba(255,255,255,.58);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.rdfc-quick-stage-card__media {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.rdfc-quick-stage-card__media img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.rdfc-quick-stage-card__label {
    align-self: center;
    color: #382c2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.rdfc-quick-stage-card__check {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #c72a1d, #ef8f2a);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.82);
    box-shadow: 0 8px 18px rgba(173, 40, 24, .24);
    transition: opacity .18s ease, transform .18s ease;
}

.rdfc-quick-stage input:checked + .rdfc-quick-stage-card {
    background: rgba(255, 251, 246, .92);
    border-color: #d75a3a;
    box-shadow: 0 14px 28px rgba(179, 76, 35, .12);
    transform: translateY(-1px);
}

.rdfc-quick-stage input:checked + .rdfc-quick-stage-card .rdfc-quick-stage-card__label {
    color: #a72d1a;
}

.rdfc-quick-stage input:checked + .rdfc-quick-stage-card .rdfc-quick-stage-card__check {
    opacity: 1;
    transform: scale(1);
}

.rdfc-quick-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.rdfc-quick-fields .rdfc-field > span {
    color: #6a5a51;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rdfc-quick-fields .rdfc-field .rdfc-input-unit,
.rdfc-quick-fields .rdfc-field select {
    min-height: 58px;
    background: rgba(255,255,255,.78);
}

.rdfc-quick-fields .rdfc-field input,
.rdfc-quick-fields .rdfc-field select {
    min-height: 58px;
    font-size: 18px;
    font-weight: 900;
    color: #141c3e;
}

.rdfc-quick-fields .rdfc-field .rdfc-input-unit em {
    min-width: 60px;
    height: 42px;
    font-size: 17px;
    color: #fff;
    background: #0c1747;
    box-shadow: none;
}

.rdfc-quick-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 60px;
    border-radius: 16px;
    font-size: 15px;
    letter-spacing: .1em;
}

.rdfc-quick-submit strong {
    font-size: 26px;
    line-height: 1;
}

.rdfc-quick-note {
    margin-top: 16px;
    color: #5d524c;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 650;
}

@media (max-width: 1120px) {
    .rdfc-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rdfc-quick-card {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .rdfc-hero {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .rdfc-hero h2 {
        font-size: 56px;
    }

    .rdfc-hero__badges {
        gap: 10px;
    }

    .rdfc-hero__badges span {
        min-width: calc(50% - 5px);
        padding-right: 12px;
    }

    .rdfc-quick-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .rdfc-quick-card h3 {
        font-size: 44px;
    }

    .rdfc-quick-stage {
        grid-template-columns: 1fr;
    }

    .rdfc-quick-stage-card {
        grid-template-columns: 118px 1fr;
        min-height: 126px;
    }

    .rdfc-quick-stage-card__media img {
        width: 112px;
        height: 112px;
    }

    .rdfc-quick-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* fix legacy generic span styles inside quick stage */
.rdfc-quick-stage > label > .rdfc-quick-stage-card,
.rdfc-quick-stage .rdfc-quick-stage-card__media,
.rdfc-quick-stage .rdfc-quick-stage-card__label,
.rdfc-quick-stage .rdfc-quick-stage-card__check {
    min-height: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.rdfc-quick-stage .rdfc-quick-stage-card__media,
.rdfc-quick-stage .rdfc-quick-stage-card__label {
    background: transparent;
}

/* ===== v1.3.0 hero fixes ===== */
.rdfc-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 46px;
}

.rdfc-hero__copy {
    align-self: center;
}

.rdfc-hero h2 {
    margin-top: 0;
}

.rdfc-kicker,
.rdfc-quick-card__top,
.rdfc-quick-card .rdfc-card-label {
    display: none !important;
}

.rdfc-hero__badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 16px 18px;
    align-items: stretch;
}

.rdfc-feature-pill {
    display: grid !important;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    min-height: 84px;
    min-width: 0 !important;
    padding: 12px 18px 12px 14px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.82) !important;
    border: 1px solid rgba(134, 86, 40, .14) !important;
    box-shadow: 0 10px 22px rgba(86, 51, 22, .08) !important;
}

.rdfc-feature-pill img {
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

.rdfc-feature-pill b {
    color: #8d2316 !important;
    font-size: 14px !important;
    line-height: 1.15;
    font-weight: 900 !important;
}

.rdfc-feature-pill small {
    color: #63564e !important;
    font-size: 13px !important;
    line-height: 1.15;
    font-weight: 700 !important;
}

.rdfc-feature-pill--center {
    grid-column: 1 / span 2;
    width: 240px;
    justify-self: center;
}

.rdfc-quick-card {
    padding: 28px 28px 26px;
}

.rdfc-quick-stage {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.rdfc-quick-stage > label {
    display: block;
    width: 100%;
    cursor: pointer;
}

.rdfc-quick-stage input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rdfc-quick-stage-card,
.rdfc-quick-stage-card * {
    pointer-events: none;
}

.rdfc-quick-stage-card {
    display: grid !important;
    grid-template-columns: 148px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 140px;
    padding: 0 22px 0 10px !important;
    border-radius: 20px !important;
    border: 2px solid rgba(122, 84, 58, .16) !important;
    background: rgba(255,255,255,.74) !important;
    box-shadow: 0 8px 18px rgba(96, 59, 28, .06) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.rdfc-quick-stage > label:hover .rdfc-quick-stage-card {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(111, 66, 30, .10) !important;
    border-color: rgba(203, 108, 52, .35) !important;
}

.rdfc-quick-stage-card__media {
    justify-content: center !important;
    align-items: flex-end !important;
}

.rdfc-quick-stage-card__media img {
    width: 134px !important;
    height: 118px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
}

.rdfc-quick-stage-card__label {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #43332c !important;
}

.rdfc-quick-stage-card__check {
    right: 14px !important;
    top: 14px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
}

.rdfc-quick-stage input:checked + .rdfc-quick-stage-card {
    border-color: #d15734 !important;
    background: rgba(255, 252, 247, .96) !important;
    box-shadow: 0 18px 30px rgba(178, 85, 40, .13) !important;
}

.rdfc-quick-fields {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rdfc-quick-submit {
    margin-top: 4px;
}

@media (max-width: 1120px) {
    .rdfc-hero__badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rdfc-feature-pill--center {
        width: 260px;
    }
}

@media (max-width: 760px) {
    .rdfc-hero__badges {
        grid-template-columns: 1fr;
    }

    .rdfc-feature-pill,
    .rdfc-feature-pill--center {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .rdfc-quick-stage {
        grid-template-columns: 1fr;
    }

    .rdfc-quick-stage-card {
        grid-template-columns: 126px minmax(0, 1fr);
        min-height: 128px;
    }

    .rdfc-quick-stage-card__media img {
        width: 116px !important;
        height: 104px !important;
    }
}

/* ===== v1.4.0 mobile + check fixes ===== */
.rdfc-quick-stage-card {
    padding-right: 28px !important;
}

.rdfc-quick-stage-card__label {
    padding-right: 16px;
}

.rdfc-quick-stage-card__check {
    top: 8px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    background: linear-gradient(180deg, #46b96d, #23884a) !important;
    box-shadow: 0 8px 16px rgba(47, 146, 79, .28) !important;
    z-index: 3;
}

@media (max-width: 760px) {
    .rdfc-app {
        max-width: 420px;
    }

    .rdfc-hero {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px 12px 12px !important;
        border-radius: 22px !important;
        background: #f5e5c8 !important;
        box-shadow: 0 16px 36px rgba(114, 62, 25, .14) !important;
    }

    .rdfc-hero__bg {
        background: url('./hero-bg-mobile.webp') center top / cover no-repeat !important;
    }

    .rdfc-hero__bg::after {
        background: linear-gradient(180deg, rgba(250,242,221,.10) 0%, rgba(250,242,221,.08) 45%, rgba(255,244,224,.20) 100%) !important;
    }

    .rdfc-hero__copy {
        padding: 6px 6px 0;
    }

    .rdfc-hero h2 {
        max-width: 255px !important;
        margin: 0 0 12px !important;
        font-size: 35px !important;
        line-height: .92 !important;
        letter-spacing: -.045em !important;
    }

    .rdfc-hero h2 span {
        margin-top: 2px !important;
    }

    .rdfc-hero h2::after {
        width: 50px !important;
        height: 4px !important;
        margin-top: 10px !important;
    }

    .rdfc-hero p {
        max-width: 220px !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        font-weight: 560 !important;
    }

    .rdfc-hero__quick {
        margin-top: 4px;
    }

    .rdfc-quick-card {
        max-width: none !important;
        margin: 0 !important;
        padding: 14px 12px 12px !important;
        border-radius: 20px !important;
        background: rgba(255, 249, 240, .92) !important;
        box-shadow: 0 12px 24px rgba(114, 62, 25, .12) !important;
    }

    .rdfc-quick-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .rdfc-quick-stage-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: 76px auto !important;
        min-height: 108px !important;
        padding: 6px 8px 8px !important;
        border-radius: 14px !important;
    }

    .rdfc-quick-stage-card__media {
        height: 74px !important;
        align-items: end !important;
    }

    .rdfc-quick-stage-card__media img {
        width: 76px !important;
        height: 76px !important;
    }

    .rdfc-quick-stage-card__label {
        padding-right: 0 !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .rdfc-quick-stage-card__check {
        top: 7px !important;
        left: 8px !important;
        right: auto !important;
        width: 21px !important;
        height: 21px !important;
        font-size: 13px !important;
    }

    .rdfc-quick-fields {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .rdfc-quick-fields .rdfc-field > span {
        font-size: 11px !important;
        margin-bottom: 4px;
    }

    .rdfc-quick-fields .rdfc-field .rdfc-input-unit,
    .rdfc-quick-fields .rdfc-field select,
    .rdfc-quick-fields .rdfc-field input {
        min-height: 46px !important;
        font-size: 15px !important;
        border-radius: 11px !important;
    }

    .rdfc-quick-fields .rdfc-field .rdfc-input-unit em {
        min-width: 48px !important;
        height: 34px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
    }

    .rdfc-quick-submit {
        min-height: 46px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        gap: 10px !important;
    }

    .rdfc-quick-submit strong {
        font-size: 22px !important;
    }

    .rdfc-quick-note {
        margin-top: 8px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        padding-left: 22px;
        position: relative;
    }

    .rdfc-quick-note::before {
        content: "i";
        position: absolute;
        left: 0;
        top: 1px;
        width: 15px;
        height: 15px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(140, 120, 96, .55);
        color: #9c886d;
        font-size: 11px;
        font-weight: 700;
    }

    .rdfc-hero__badges {
        margin-top: 8px !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .rdfc-feature-pill,
    .rdfc-feature-pill--center {
        width: 100% !important;
        min-height: 58px !important;
        grid-template-columns: 40px 1fr 16px !important;
        grid-template-rows: auto auto !important;
        gap: 1px 10px !important;
        padding: 8px 12px 8px 10px !important;
        border-radius: 14px !important;
    }

    .rdfc-feature-pill img {
        width: 40px !important;
        height: 40px !important;
    }

    .rdfc-feature-pill b {
        font-size: 13px !important;
    }

    .rdfc-feature-pill small {
        font-size: 12px !important;
    }

    .rdfc-feature-pill::after {
        content: '›';
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: center;
        color: #ba925f;
        font-size: 22px;
        line-height: 1;
        font-weight: 500;
    }
}

/* ===== v1.5.0 mobile badge order + advanced intro redesign ===== */
.rdfc-hero__badges--mobile {
    display: none !important;
}

.rdfc-advanced-intro {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    margin-top: 26px;
    padding: clamp(38px, 4.2vw, 58px) clamp(34px, 5vw, 62px);
    border-radius: 30px;
    border: 1.5px solid rgba(218, 150, 39, .72);
    background: #fff8ec url('./advanced-bg.webp') center center / cover no-repeat;
    box-shadow: 0 18px 42px rgba(118, 72, 23, .12);
}

.rdfc-advanced-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 252, 245, .10) 0%, rgba(255, 252, 245, .03) 58%, rgba(255, 252, 245, 0) 100%);
    pointer-events: none;
}

.rdfc-advanced-intro__content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.rdfc-advanced-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid rgba(199, 145, 49, .36);
    background: rgba(255, 255, 255, .72);
    color: #bd8315;
    box-shadow: 0 10px 24px rgba(119, 79, 28, .06);
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rdfc-advanced-kicker img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.rdfc-advanced-intro h3 {
    max-width: 1030px;
    margin: 30px 0 22px;
    color: #232323;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 5.8vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
}

.rdfc-advanced-intro h3 span {
    color: #c48a18;
}

.rdfc-advanced-intro p {
    position: relative;
    max-width: 760px;
    margin: 0;
    padding-left: 32px;
    color: #5d5b5b;
    font-size: clamp(18px, 1.9vw, 28px);
    line-height: 1.42;
    font-weight: 450;
}

.rdfc-advanced-intro p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 6px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d69a27, #f3c554);
}

@media (max-width: 760px) {
    .rdfc-hero__badges--desktop {
        display: none !important;
    }

    .rdfc-hero__badges--mobile {
        display: grid !important;
        margin-top: 10px !important;
    }

    .rdfc-advanced-intro {
        min-height: 360px;
        margin-top: 18px;
        padding: 24px 20px;
        border-radius: 22px;
        background-position: 62% top;
    }

    .rdfc-advanced-kicker {
        min-height: 40px;
        padding: 0 18px;
        font-size: 12px;
        letter-spacing: .08em;
    }

    .rdfc-advanced-kicker img {
        width: 20px;
        height: 20px;
    }

    .rdfc-advanced-intro h3 {
        max-width: 275px;
        margin: 18px 0 16px;
        font-size: 38px;
        line-height: 1;
    }

    .rdfc-advanced-intro p {
        max-width: 250px;
        padding-left: 18px;
        font-size: 14px;
        line-height: 1.46;
        font-weight: 560;
    }

    .rdfc-advanced-intro p::before {
        width: 3px;
        top: 3px;
        bottom: 4px;
    }
}

/* ===== v1.6.0 advanced intro + info cards polish ===== */
.rdfc-advanced-intro {
    display: flex;
    align-items: center;
    min-height: 294px;
    margin-top: 28px;
    padding: 32px 56px;
    border-radius: 30px;
    border: 1.5px solid rgba(214, 160, 53, .88);
    background: #fdfaf4 url('./advanced-bg.webp') center center / cover no-repeat;
    box-shadow: 0 8px 18px rgba(124, 85, 36, .08);
}

.rdfc-advanced-intro::after {
    background: linear-gradient(90deg, rgba(253,250,244,.04) 0%, rgba(253,250,244,.02) 56%, rgba(253,250,244,0) 100%);
}

.rdfc-advanced-intro__content {
    max-width: 785px;
}

.rdfc-advanced-kicker {
    min-height: 46px;
    padding: 0 26px;
    border-color: rgba(198, 155, 68, .35);
    background: rgba(255,255,255,.64);
    box-shadow: none;
    color: #b88114;
}

.rdfc-advanced-intro h3 {
    max-width: 840px;
    margin: 28px 0 18px;
    font-size: clamp(44px, 5.1vw, 74px);
    line-height: .97;
    letter-spacing: -.048em;
    font-weight: 700;
}

.rdfc-advanced-intro p {
    max-width: 760px;
    padding-left: 28px;
    color: #64605d;
    font-size: clamp(17px, 1.75vw, 25px);
    line-height: 1.48;
    font-weight: 460;
}

.rdfc-advanced-intro p::before {
    top: 3px;
    bottom: 4px;
}

.rdfc-info-grid {
    gap: 26px;
    margin-top: 28px;
}

.rdfc-info-card {
    position: relative;
    overflow: hidden;
    min-height: 392px;
    padding: 28px 34px 30px;
    border-radius: 30px;
    border: 1.5px solid rgba(215, 167, 69, .7);
    background: linear-gradient(180deg, #fffdf9 0%, #fffaf1 100%);
    box-shadow: 0 12px 28px rgba(107, 63, 25, .08), inset 0 -3px 0 rgba(219, 165, 54, .92);
}

.rdfc-info-card__icon {
    position: relative;
    z-index: 2;
    display: block;
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 10px 20px rgba(151, 91, 31, .14));
}

.rdfc-info-card__ghost {
    position: absolute;
    right: 20px;
    top: 26px;
    width: 96px;
    height: 96px;
    object-fit: contain;
    opacity: .10;
    filter: grayscale(1) saturate(.3) brightness(1.2);
    pointer-events: none;
}

.rdfc-info-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #0d1a46;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 2.5vw, 39px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 700;
}

.rdfc-info-card__divider {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 20px;
    margin: 18px 0 12px;
}

.rdfc-info-card__divider::before,
.rdfc-info-card__divider::after {
    content: "";
    position: absolute;
    top: 9px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(221, 175, 72, .92), rgba(221, 175, 72, .22));
}

.rdfc-info-card__divider::before {
    left: 0;
    width: calc(50% - 16px);
}

.rdfc-info-card__divider::after {
    right: 0;
    width: calc(50% - 16px);
    background: linear-gradient(90deg, rgba(221, 175, 72, .22), rgba(221, 175, 72, .92));
}

.rdfc-info-card__divider {
    background: radial-gradient(circle at center, rgba(221, 175, 72, 1) 0 3px, transparent 4px);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.rdfc-info-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #51545b;
    font-size: 16px;
    line-height: 1.62;
    font-weight: 500;
}

@media (max-width: 980px) {
    .rdfc-info-grid {
        grid-template-columns: 1fr;
    }

    .rdfc-info-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .rdfc-advanced-intro {
        min-height: 0;
        padding: 22px 18px;
        border-radius: 22px;
        background-position: 67% center;
        box-shadow: 0 6px 14px rgba(124, 85, 36, .08);
    }

    .rdfc-advanced-intro__content {
        max-width: 270px;
    }

    .rdfc-advanced-kicker {
        min-height: 38px;
        padding: 0 16px;
        font-size: 11px;
        letter-spacing: .08em;
    }

    .rdfc-advanced-kicker img {
        width: 18px;
        height: 18px;
    }

    .rdfc-advanced-intro h3 {
        max-width: 240px;
        margin: 16px 0 14px;
        font-size: 34px;
        line-height: .98;
    }

    .rdfc-advanced-intro p {
        max-width: 232px;
        padding-left: 16px;
        font-size: 13px;
        line-height: 1.42;
        font-weight: 520;
    }

    .rdfc-info-grid {
        gap: 14px;
        margin-top: 18px;
    }

    .rdfc-info-card {
        min-height: 0;
        padding: 18px 18px 20px;
        border-radius: 22px;
    }

    .rdfc-info-card__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 14px;
    }

    .rdfc-info-card__ghost {
        width: 74px;
        height: 74px;
        right: 14px;
        top: 16px;
    }

    .rdfc-info-card h3 {
        font-size: 24px;
    }

    .rdfc-info-card__divider {
        margin: 12px 0 10px;
    }

    .rdfc-info-card p {
        font-size: 14px;
        line-height: 1.58;
    }
}

/* ===== v1.6.1 info cards cleanup ===== */
.rdfc-info-card__ghost {
    display: none !important;
}

.rdfc-info-card {
    min-height: 330px;
    padding: 26px 28px 28px;
}

.rdfc-info-card__icon {
    width: 74px !important;
    height: 74px !important;
    margin: 0 0 16px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rdfc-info-card h3 {
    max-width: 100%;
    font-size: clamp(28px, 2.25vw, 36px) !important;
}

.rdfc-info-card__divider {
    margin: 14px 0 14px !important;
}

.rdfc-info-card p {
    font-size: 15.5px !important;
    line-height: 1.58 !important;
}

@media (max-width: 760px) {
    .rdfc-info-card {
        padding: 18px 18px 20px;
    }

    .rdfc-info-card__icon {
        width: 58px !important;
        height: 58px !important;
        margin-bottom: 12px !important;
    }

    .rdfc-info-card h3 {
        font-size: 24px !important;
    }
}


/* ===== v1.6.2 equal info cards + one-line divider ===== */
.rdfc-info-grid {
    align-items: stretch !important;
}

.rdfc-info-card {
    height: 100% !important;
    min-height: 330px !important;
    display: flex !important;
    flex-direction: column !important;
}

.rdfc-info-card__icon {
    flex: 0 0 auto !important;
}

.rdfc-info-card h3 {
    min-height: 78px !important;
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
}

.rdfc-info-card__divider {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 1px !important;
    margin: 10px 0 16px !important;
    background: linear-gradient(90deg, rgba(220, 171, 69, .95), rgba(220, 171, 69, .22), rgba(220, 171, 69, .95)) !important;
    border-radius: 999px !important;
}

.rdfc-info-card__divider::before,
.rdfc-info-card__divider::after {
    display: none !important;
    content: none !important;
}

.rdfc-info-card p {
    flex: 1 1 auto !important;
    margin: 0 !important;
}

@media (max-width: 980px) {
    .rdfc-info-card {
        min-height: 0 !important;
    }

    .rdfc-info-card h3 {
        min-height: 0 !important;
    }
}

/* ===== v1.7.0 detailed setup redesign ===== */
.rdfc-card--inputs {
    padding: 40px 36px 28px;
    background: linear-gradient(180deg, #fffefd 0%, #fffaf1 100%);
    border-radius: 34px;
    box-shadow: 0 16px 40px rgba(122, 88, 39, .08);
}

.rdfc-card__head {
    align-items: flex-start;
    margin-bottom: 24px;
}

.rdfc-card-label {
    color: #b27b18;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rdfc-card__head > div .rdfc-card-label::before,
.rdfc-card__subhead > div .rdfc-card-label::before {
    content: '•';
    display: inline-block;
    margin-right: 12px;
    font-size: 28px;
    line-height: .4;
    vertical-align: middle;
}

.rdfc-card__head h3,
.rdfc-card__subhead h3 {
    margin: 14px 0 0;
    color: #1a120e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 50px);
    line-height: .96;
    letter-spacing: -.04em;
    font-weight: 700;
}

.rdfc-soft-btn {
    min-height: 68px;
    padding: 0 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 20%, rgba(255,182,54,.42), transparent 18%), linear-gradient(180deg, #2e1b0f 0%, #140b06 100%);
    border: 2px solid rgba(192, 139, 40, .8);
    color: #fff6e9;
    font-size: 16px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 28px rgba(53, 25, 8, .22);
}

.rdfc-soft-btn::before {
    content: '✪';
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 999px;
    border: 2px solid rgba(227, 171, 60, .8);
    color: #f3bf59;
    font-size: 15px;
    font-weight: 700;
    vertical-align: middle;
}

.rdfc-life-stage {
    gap: 18px;
    margin-bottom: 28px;
}

.rdfc-stage-card {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr 42px;
    gap: 16px;
    align-items: center;
    min-height: 176px;
    padding: 14px 18px;
    border: 1.5px solid rgba(205, 182, 154, .7);
    border-radius: 30px;
    background: linear-gradient(180deg, #fffdfa 0%, #fffefc 100%);
    box-shadow: 0 8px 20px rgba(113, 77, 30, .05);
}

.rdfc-stage-card:has(input:checked) {
    border-color: #dca327;
    box-shadow: 0 14px 24px rgba(180, 132, 44, .10), inset 0 0 0 1px rgba(220, 163, 39, .3);
    transform: none;
}

.rdfc-stage-card__media {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 140px;
}

.rdfc-stage-card__media img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.rdfc-stage-card__content {
    min-width: 0;
}

.rdfc-stage-card__content strong {
    display: block;
    color: #241710;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.3vw, 42px);
    line-height: 1;
    font-weight: 700;
}

.rdfc-stage-card__content small {
    display: block;
    margin-top: 12px;
    color: #615954;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.rdfc-stage-card__check {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #c8c1b8;
    justify-self: end;
    position: relative;
    background: #fff;
}

.rdfc-stage-card__check::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 10px;
    border-left: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: rotate(-45deg);
}

.rdfc-stage-card:has(input:checked) .rdfc-stage-card__check {
    background: linear-gradient(180deg, #dca327 0%, #c98c0f 100%);
    border-color: #c98c0f;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.rdfc-stage-card:has(input:checked) .rdfc-stage-card__check::before {
    width: 18px;
    height: 10px;
    top: -3px;
    border-left-color: #fff9ef;
    border-bottom-color: #fff9ef;
}

.rdfc-field-grid {
    gap: 24px 22px;
}

.rdfc-field > span,
.rdfc-days span {
    color: #8a6845;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.rdfc-field input,
.rdfc-field select,
.rdfc-days input {
    height: 76px;
    min-height: 76px;
    padding: 0 22px;
    border: 1.5px solid rgba(219, 199, 169, .9);
    border-radius: 24px;
    background: #fffdfa;
    color: #231712;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(228, 210, 182, .34);
}

.rdfc-field select {
    padding-right: 52px;
    background-image: linear-gradient(45deg, transparent 50%, #b07a1a 50%), linear-gradient(135deg, #b07a1a 50%, transparent 50%);
    background-position: calc(100% - 24px) calc(50% - 4px), calc(100% - 16px) calc(50% - 4px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.rdfc-input-unit input {
    padding-right: 88px;
}

.rdfc-input-unit em {
    right: 14px;
    min-width: 62px;
    min-height: 50px;
    padding: 0 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #2a170c 0%, #0f0904 100%);
    color: #fff8ed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.rdfc-presets {
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 24px;
}

.rdfc-presets button {
    min-height: 84px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff9ef 100%);
    border: 1.5px solid rgba(221, 199, 165, .95);
    color: #4b3428;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(134, 96, 38, .05), inset 0 -2px 0 rgba(228, 210, 182, .42);
    white-space: normal;
}

.rdfc-presets button.is-active {
    padding-left: 58px;
    background: linear-gradient(135deg, #db3229 0%, #ed4c34 58%, #ffb92d 100%);
    border-color: #e7ba5f;
    color: #fff6ee;
    box-shadow: 0 14px 26px rgba(191, 76, 42, .20), inset 0 0 0 2px rgba(255,255,255,.65);
    position: relative;
}

.rdfc-presets button.is-active::before {
    content: '♛';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ffe09c;
    text-shadow: 0 2px 10px rgba(0,0,0,.16);
}

.rdfc-card__subhead {
    margin-top: 8px;
    padding-top: 26px;
    border-top: 1px solid rgba(224, 212, 194, .9);
    position: relative;
}

.rdfc-card__subhead::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: -11px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    background: #fffdfa;
    color: #c18b1b;
    font-size: 11px;
}

.rdfc-card__subhead > div .rdfc-card-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(221, 199, 165, .95);
    background: #fffaf0;
    font-size: 12px;
}

.rdfc-card__subhead > div .rdfc-card-label::before {
    display: none;
}

.rdfc-card__subhead h3 {
    margin-top: 14px;
    font-size: clamp(34px, 4.2vw, 60px);
}

.rdfc-total-pill {
    min-height: 58px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ecf8e8, #e4f2db);
    color: #267538;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
}

.rdfc-composition {
    gap: 14px;
}

.rdfc-comp-row {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    min-height: 108px;
    padding: 10px 18px;
    border: 1.5px solid rgba(231, 215, 188, .95);
    border-radius: 26px;
    background: linear-gradient(180deg, #fffefb 0%, #fffaf1 100%);
    box-shadow: 0 8px 16px rgba(131, 97, 42, .04);
}

.rdfc-comp-row__name {
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.rdfc-comp-row__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 84px;
}

.rdfc-comp-row__thumb img {
    max-width: 136px;
    max-height: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.rdfc-comp-row__text {
    display: block;
    min-width: 0;
}

.rdfc-comp-row__name strong {
    display: block;
    color: #1f120d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.02;
    font-weight: 700;
}

.rdfc-comp-row__name small {
    display: block;
    margin-top: 6px;
    color: #7c7c7c;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
}

.rdfc-comp-row__input input {
    min-height: 82px;
    border: 1.5px solid rgba(221, 199, 165, .95);
    border-radius: 22px;
    background: #fffdfa;
    padding: 0 58px 0 24px;
    color: #1b120d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
}

.rdfc-comp-row__input em {
    right: 20px;
    color: #8f8176;
    font-size: 21px;
    font-weight: 700;
}

/* fix info cards icon crop */
.rdfc-info-card {
    min-height: 340px !important;
}

.rdfc-info-card__icon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin-bottom: 12px !important;
    display: block !important;
}

@media (max-width: 900px) {
    .rdfc-card--inputs {
        padding: 24px 18px 20px;
    }

    .rdfc-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .rdfc-soft-btn {
        width: 100%;
        justify-content: center;
    }

    .rdfc-life-stage {
        grid-template-columns: 1fr;
    }

    .rdfc-stage-card {
        grid-template-columns: 104px 1fr 34px;
        min-height: 132px;
        border-radius: 24px;
    }

    .rdfc-stage-card__media {
        height: 100px;
    }

    .rdfc-stage-card__media img {
        width: 96px;
        height: 96px;
    }

    .rdfc-stage-card__content strong {
        font-size: 22px;
    }

    .rdfc-stage-card__content small {
        margin-top: 8px;
        font-size: 14px;
    }

    .rdfc-stage-card__check {
        width: 34px;
        height: 34px;
    }

    .rdfc-field-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rdfc-field input,
    .rdfc-field select,
    .rdfc-days input {
        height: 58px;
        min-height: 58px;
        font-size: 19px;
        border-radius: 18px;
    }

    .rdfc-input-unit em {
        min-width: 50px;
        min-height: 40px;
        font-size: 18px;
    }

    .rdfc-presets {
        gap: 10px;
    }

    .rdfc-presets button {
        min-height: 62px;
        font-size: 16px;
        flex: 1 1 calc(50% - 10px);
    }

    .rdfc-total-pill {
        min-height: 48px;
        padding: 0 18px;
        font-size: 18px;
    }

    .rdfc-card__subhead {
        align-items: flex-start;
        flex-direction: column;
    }

    .rdfc-comp-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rdfc-comp-row__name {
        grid-template-columns: 88px 1fr;
        column-gap: 12px;
    }

    .rdfc-comp-row__thumb {
        width: 88px;
        height: 64px;
    }

    .rdfc-comp-row__thumb img {
        max-width: 84px;
        max-height: 58px;
    }

    .rdfc-comp-row__name strong {
        font-size: 20px;
    }

    .rdfc-comp-row__name small {
        font-size: 14px;
    }

    .rdfc-comp-row__input input {
        min-height: 58px;
        font-size: 22px;
        border-radius: 18px;
    }

    .rdfc-comp-row__input em {
        font-size: 18px;
    }
}

/* ===== v1.7.1 stage card mobile fix ===== */
.rdfc-card__head--simple h3 {
    margin-top: 0;
}

.rdfc-info-card__icon {
    margin-top: -4px !important;
}

@media (max-width: 760px) {
    .rdfc-life-stage {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .rdfc-stage-card {
        grid-template-columns: 86px minmax(0, 1fr) 28px;
        gap: 12px;
        min-height: 122px;
        padding: 12px 14px;
        border-radius: 22px;
        align-items: center;
    }

    .rdfc-stage-card__media {
        height: 88px;
        width: 86px;
    }

    .rdfc-stage-card__media img {
        width: 84px;
        height: 84px;
    }

    .rdfc-stage-card__content {
        min-width: 0;
        padding-right: 4px;
    }

    .rdfc-stage-card__content strong {
        font-size: 18px;
        line-height: 1;
        word-break: break-word;
    }

    .rdfc-stage-card__content small {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.28;
    }

    .rdfc-stage-card__check {
        width: 28px;
        height: 28px;
        align-self: start;
        margin-top: 4px;
    }

    .rdfc-stage-card:has(input:checked) .rdfc-stage-card__check::before {
        width: 14px;
        height: 8px;
        top: -2px;
        border-left-width: 3px;
        border-bottom-width: 3px;
    }
}

@media (max-width: 560px) {
    .rdfc-card--inputs {
        padding: 20px 14px 18px;
        border-radius: 24px;
    }

    .rdfc-card__head {
        gap: 14px;
        margin-bottom: 18px;
    }

    .rdfc-card__head h3,
    .rdfc-card__subhead h3 {
        font-size: 28px;
        line-height: .98;
    }

    .rdfc-soft-btn {
        min-height: 54px;
        padding: 0 18px;
        font-size: 14px;
    }

    .rdfc-soft-btn::before {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        font-size: 12px;
    }

    .rdfc-stage-card {
        grid-template-columns: 78px minmax(0, 1fr) 24px;
        min-height: 112px;
        padding: 10px 12px;
    }

    .rdfc-stage-card__media {
        height: 76px;
        width: 78px;
    }

    .rdfc-stage-card__media img {
        width: 72px;
        height: 72px;
    }

    .rdfc-stage-card__content strong {
        font-size: 16px;
    }

    .rdfc-stage-card__content small {
        font-size: 12px;
        line-height: 1.24;
    }

    .rdfc-stage-card__check {
        width: 24px;
        height: 24px;
        border-width: 1.5px;
    }

    .rdfc-stage-card:has(input:checked) .rdfc-stage-card__check::before {
        width: 12px;
        height: 7px;
        top: -2px;
    }
}

/* ===== v1.7.2 desktop stage + select + mobile preset scroll polish ===== */
.rdfc-field select,
.rdfc-quick-fields .rdfc-field select,
.rdfc-days select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.rdfc-field select::-ms-expand,
.rdfc-quick-fields .rdfc-field select::-ms-expand {
    display: none;
}

@media (min-width: 901px) {
    .rdfc-life-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rdfc-stage-card {
        grid-template-columns: 96px minmax(0, 1fr) 30px;
        gap: 12px;
        min-height: 138px;
        padding: 14px 12px;
        border-radius: 24px;
        overflow: hidden;
    }

    .rdfc-stage-card__media {
        width: 96px;
        height: 102px;
    }

    .rdfc-stage-card__media img {
        width: 92px;
        height: 92px;
    }

    .rdfc-stage-card__content {
        min-width: 0;
        overflow: hidden;
    }

    .rdfc-stage-card__content strong {
        font-size: clamp(20px, 1.55vw, 27px);
        line-height: 1.02;
        letter-spacing: -.035em;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .rdfc-stage-card__content small {
        margin-top: 8px;
        font-size: clamp(12px, .95vw, 15px);
        line-height: 1.28;
        white-space: normal;
    }

    .rdfc-stage-card__check {
        width: 30px;
        height: 30px;
        align-self: start;
        margin-top: 6px;
    }

    .rdfc-stage-card:has(input:checked) .rdfc-stage-card__check::before {
        width: 14px;
        height: 8px;
        top: -2px;
        border-left-width: 3px;
        border-bottom-width: 3px;
    }
}

@media (min-width: 1180px) {
    .rdfc-stage-card {
        grid-template-columns: 112px minmax(0, 1fr) 34px;
        min-height: 150px;
        padding: 14px 16px;
    }

    .rdfc-stage-card__media {
        width: 112px;
        height: 116px;
    }

    .rdfc-stage-card__media img {
        width: 106px;
        height: 106px;
    }

    .rdfc-stage-card__check {
        width: 34px;
        height: 34px;
    }
}

/* ===== v1.8.0 result panel redesign ===== */
.rdfc-card--results {
    padding: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #fffaf4;
    border: 1px solid rgba(185, 157, 111, .28);
    box-shadow: 0 14px 34px rgba(68, 43, 24, .10);
}

.rdfc-result-hero {
    position: relative;
    padding: 16px 16px 66px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.16), transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(255,170,71,.28), transparent 28%),
        linear-gradient(135deg, #650707 0%, #9f0812 34%, #d63a10 72%, #f08618 100%);
    color: #fffaf1;
}

.rdfc-result-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 146, .36);
    background: rgba(43, 9, 9, .2);
    color: #ffe8b7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rdfc-result-kicker img {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.rdfc-result-main {
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.rdfc-result-main strong {
    font-size: clamp(52px, 8vw, 82px);
    line-height: .84;
    letter-spacing: -.06em;
}

.rdfc-result-main em {
    margin-bottom: 0;
    color: #fff0c3;
    font-size: 19px;
    font-weight: 900;
}

.rdfc-result-hero p {
    margin: 8px 0 0;
    color: rgba(255, 246, 223, .98);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.rdfc-metrics {
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: -42px 14px 14px;
    padding: 0;
    background: #fbf7ef;
    border: 1px solid rgba(162, 132, 92, .16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(83, 54, 29, .08);
}

.rdfc-metrics article {
    min-height: 84px;
    grid-template-columns: 36px minmax(0, 1fr);
    display: grid;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fffdfa, #f9f4ea);
    border-right: 1px solid rgba(162, 132, 92, .14);
}

.rdfc-metrics article:last-child {
    border-right: 0;
}

.rdfc-metric-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rdfc-metric-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rdfc-metric-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.rdfc-metrics span,
.rdfc-metrics small {
    color: #8c715e;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rdfc-metrics strong {
    color: #b51a1d;
    font-size: 17px;
    line-height: 1;
    font-weight: 1000;
}

.rdfc-table-wrap {
    margin: 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(162, 132, 92, .16);
    border-radius: 20px;
    background: #fffdfa;
    box-shadow: 0 8px 20px rgba(83, 54, 29, .06);
}

.rdfc-table {
    table-layout: fixed;
    font-size: 13px;
}

.rdfc-table th,
.rdfc-table td {
    height: 68px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(162, 132, 92, .14);
    border-right: 1px solid rgba(162, 132, 92, .10);
    text-align: center;
}

.rdfc-table tr > *:last-child {
    border-right: 0;
}

.rdfc-table tbody tr:last-child > * {
    border-bottom: 0;
}

.rdfc-table th:nth-child(1),
.rdfc-table td:nth-child(1) {
    width: 40%;
    text-align: left;
}

.rdfc-table th:nth-child(2),
.rdfc-table td:nth-child(2) {
    width: 14%;
}

.rdfc-table th:nth-child(3),
.rdfc-table td:nth-child(3),
.rdfc-table th:nth-child(4),
.rdfc-table td:nth-child(4) {
    width: 23%;
}

.rdfc-table thead th {
    position: static;
    background: #fbf3e4;
    color: #94754d;
    font-size: 11px;
    letter-spacing: .08em;
}

.rdfc-table tbody th {
    color: #24180f;
    font-weight: 900;
}

.rdfc-table-food {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.rdfc-table-food img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.rdfc-table-food span {
    display: block;
    line-height: 1.18;
}

.rdfc-table td strong {
    color: #291d15;
    font-size: 14px;
    line-height: 1.1;
}

.rdfc-table td small {
    margin-top: 2px;
    color: #866f60;
    font-size: 11px;
    line-height: 1.1;
}

.rdfc-bulk {
    margin: 0 14px 0;
    padding: 16px 18px 14px;
    border: 1px solid rgba(162, 132, 92, .16);
    border-radius: 20px 20px 0 0;
    background: #fffdfa;
    box-shadow: 0 8px 20px rgba(83, 54, 29, .04);
}

.rdfc-bulk__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.rdfc-bulk .rdfc-card-label {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #b5372b;
    font-size: 11px;
    letter-spacing: .08em;
}

.rdfc-bulk h3 {
    margin: 2px 0 0;
    color: #24150d;
    font-size: 28px;
    line-height: .95;
}

.rdfc-days {
    gap: 5px;
    width: 76px;
}

.rdfc-days span {
    color: #8f724d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
}

.rdfc-days input {
    min-height: 46px;
    padding: 0 24px 0 8px;
    border: 1px solid #e4d0a8;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdfa, #fcf4e7);
    color: #23170f;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
    background-image: linear-gradient(45deg, transparent 50%, #8b7257 50%), linear-gradient(135deg, #8b7257 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.rdfc-days input::-webkit-outer-spin-button,
.rdfc-days input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rdfc-bulk-total {
    gap: 4px;
    color: #24150d;
    font-size: 18px;
}

.rdfc-bulk-total strong {
    color: #ba1c20;
    font-size: 24px;
    line-height: .95;
}

.rdfc-bulk-unit {
    color: #24150d;
    font-size: 18px;
    font-weight: 800;
}

.rdfc-bulk-sep {
    padding: 0 2px;
    color: #7c6252;
    font-weight: 700;
}

.rdfc-check {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
}

.rdfc-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 14px 14px;
    padding: 14px 18px 16px;
    border: 1px solid rgba(162, 132, 92, .16);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: #fffaf5;
    box-shadow: 0 8px 20px rgba(83, 54, 29, .04);
    color: #614f42;
    font-size: 12px;
    line-height: 1.42;
}

.rdfc-note__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.rdfc-note__copy strong {
    display: inline;
    color: #b52023;
}

@media (max-width: 1024px) {
    .rdfc-metrics article {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 10px;
    }

    .rdfc-metric-icon,
    .rdfc-metric-icon img {
        width: 24px;
        height: 24px;
    }

    .rdfc-table th,
    .rdfc-table td {
        padding: 9px 10px;
    }

    .rdfc-table-food {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
    }

    .rdfc-table-food img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .rdfc-result-hero {
        padding: 14px 14px 60px;
    }

    .rdfc-result-main strong {
        font-size: 58px;
    }

    .rdfc-result-main em {
        font-size: 18px;
    }

    .rdfc-metrics {
        margin: -40px 10px 12px;
        border-radius: 16px;
    }

    .rdfc-metrics article {
        min-height: 78px;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 4px;
        padding: 8px 6px;
    }

    .rdfc-metric-copy {
        justify-items: center;
    }

    .rdfc-metrics strong {
        font-size: 15px;
    }

    .rdfc-table-wrap,
    .rdfc-bulk,
    .rdfc-note {
        margin-left: 10px;
        margin-right: 10px;
    }

    .rdfc-table {
        font-size: 12px;
    }

    .rdfc-table th,
    .rdfc-table td {
        height: 64px;
        padding: 8px 6px;
    }

    .rdfc-table th:nth-child(1),
    .rdfc-table td:nth-child(1) {
        width: 38%;
    }

    .rdfc-table th:nth-child(2),
    .rdfc-table td:nth-child(2) {
        width: 12%;
    }

    .rdfc-table th:nth-child(3),
    .rdfc-table td:nth-child(3),
    .rdfc-table th:nth-child(4),
    .rdfc-table td:nth-child(4) {
        width: 25%;
    }

    .rdfc-table-food {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 6px;
    }

    .rdfc-table-food img {
        width: 32px;
        height: 32px;
    }

    .rdfc-table-food span {
        font-size: 11px;
        line-height: 1.12;
    }

    .rdfc-table td strong {
        font-size: 12px;
    }

    .rdfc-table td small {
        font-size: 10px;
    }

    .rdfc-bulk {
        padding: 14px 14px 12px;
    }

    .rdfc-bulk h3 {
        font-size: 24px;
    }

    .rdfc-days {
        width: 72px;
    }

    .rdfc-days input {
        min-height: 42px;
        font-size: 22px;
    }

    .rdfc-bulk-total {
        font-size: 16px;
    }

    .rdfc-bulk-total strong {
        font-size: 22px;
    }

    .rdfc-bulk-unit {
        font-size: 16px;
    }

    .rdfc-note {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        padding: 12px 14px 14px;
        font-size: 11px;
    }

    .rdfc-note__icon img {
        width: 24px;
        height: 24px;
    }
}

/* ===== v1.9.0 side stack filler cards ===== */
.rdfc-side-stack {
    display: grid;
    gap: 18px;
    align-items: start;
}

.rdfc-side-panels {
    display: grid;
    gap: 16px;
}

.rdfc-side-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,253,247,.98), rgba(255,247,237,.98));
    border: 1px solid rgba(189, 161, 122, .28);
    box-shadow: 0 8px 22px rgba(85, 54, 29, .06);
}

.rdfc-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rdfc-side-card__eyebrow {
    display: inline-block;
    color: #bf3126;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rdfc-side-card__head::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(215,181,117,.65), rgba(215,181,117,0));
    min-width: 48px;
}

.rdfc-side-card__badge {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(219, 196, 146, .6);
    background: #fffcf5;
    color: #d1a022;
    font-size: 22px;
    line-height: 1;
    box-shadow: inset 0 0 0 4px rgba(255, 250, 236, .8);
}

.rdfc-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.rdfc-side-list li {
    position: relative;
    padding-left: 28px;
    color: #62524a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.rdfc-side-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(218, 186, 119, .85);
    color: #c79f2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    background: #fffdf7;
}

.rdfc-side-card__photo--bowl {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 138px;
    max-width: 38%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.rdfc-side-card--tips {
    min-height: 192px;
    padding-right: 150px;
}

.rdfc-side-card--balance {
    min-height: 188px;
    padding-right: 148px;
}

.rdfc-side-card__cluster {
    position: absolute;
    right: 10px;
    bottom: 16px;
    width: 138px;
    height: 96px;
    pointer-events: none;
}

.rdfc-side-card__cluster img {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(80, 48, 21, .06));
}

.rdfc-side-card__cluster img:nth-child(1) {
    right: 18px;
    top: 2px;
    width: 68px;
    height: 68px;
}

.rdfc-side-card__cluster img:nth-child(2) {
    left: 10px;
    bottom: 6px;
    width: 62px;
    height: 62px;
}

.rdfc-side-card__cluster img:nth-child(3) {
    right: 8px;
    bottom: 0;
    width: 62px;
    height: 62px;
}

.rdfc-side-card--recipe {
    min-height: 116px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 14px;
}

.rdfc-side-card__shield {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.rdfc-side-card__recipe-copy {
    min-width: 0;
}

.rdfc-side-card__recipe-copy p {
    margin: 4px 0 2px;
    color: #67564c;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
}

.rdfc-side-card__recipe-copy strong {
    display: block;
    color: #bf181d;
    font-size: 28px;
    line-height: 1;
    font-weight: 1000;
}

.rdfc-side-card__recipe-badge {
    width: 62px;
    height: 62px;
    object-fit: contain;
    justify-self: end;
}

@media (min-width: 1101px) {
    .rdfc-shell {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    }
}

@media (max-width: 1100px) {
    .rdfc-side-stack {
        gap: 16px;
    }

    .rdfc-side-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .rdfc-side-card {
        padding: 16px 16px 14px;
        border-radius: 20px;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        min-height: 172px;
        padding-right: 126px;
    }

    .rdfc-side-card__photo--bowl {
        width: 118px;
        max-width: 36%;
    }

    .rdfc-side-card__cluster {
        width: 120px;
        height: 84px;
        right: 8px;
        bottom: 12px;
    }

    .rdfc-side-card__cluster img:nth-child(1) { width: 58px; height: 58px; }
    .rdfc-side-card__cluster img:nth-child(2) { width: 54px; height: 54px; }
    .rdfc-side-card__cluster img:nth-child(3) { width: 54px; height: 54px; }
}

@media (max-width: 640px) {
    .rdfc-side-panels {
        gap: 12px;
    }

    .rdfc-side-card__eyebrow {
        font-size: 11px;
    }

    .rdfc-side-card__head {
        margin-bottom: 10px;
    }

    .rdfc-side-card__badge {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .rdfc-side-list {
        gap: 10px;
    }

    .rdfc-side-list li {
        font-size: 13px;
        padding-left: 24px;
    }

    .rdfc-side-list li::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        min-height: 160px;
        padding-right: 112px;
    }

    .rdfc-side-card__photo--bowl {
        width: 104px;
        max-width: 35%;
    }

    .rdfc-side-card__cluster {
        width: 108px;
        height: 78px;
    }

    .rdfc-side-card--recipe {
        grid-template-columns: 40px minmax(0, 1fr) 52px;
        gap: 10px;
        min-height: 98px;
    }

    .rdfc-side-card__shield {
        width: 38px;
        height: 38px;
    }

    .rdfc-side-card__recipe-copy p {
        font-size: 12px;
    }

    .rdfc-side-card__recipe-copy strong {
        font-size: 24px;
    }

    .rdfc-side-card__recipe-badge {
        width: 48px;
        height: 48px;
    }
}

/* ===== v1.9.1 info cards alignment fix ===== */
.rdfc-info-grid {
    align-items: stretch;
}

.rdfc-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.rdfc-info-card__icon {
    align-self: center !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: -14px !important;
    margin-bottom: 12px !important;
    transform: translateY(-8px);
}

.rdfc-info-card h3 {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rdfc-info-card__divider {
    margin-left: auto !important;
    margin-right: auto !important;
}

.rdfc-info-card p {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 820px) {
    .rdfc-info-card__icon {
        margin-top: -10px !important;
        margin-bottom: 10px !important;
        transform: translateY(-4px);
    }
}

@media (max-width: 560px) {
    .rdfc-info-card__icon {
        margin-top: -8px !important;
        transform: translateY(-2px);
    }
}

/* ===== v1.9.2 side panels icon + height fix ===== */
.rdfc-side-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rdfc-side-panels {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
}

.rdfc-side-card {
    height: 100%;
}

.rdfc-side-card__badge {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 40px;
    height: 40px;
    padding: 0;
}

.rdfc-side-card__badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.rdfc-side-card--tips,
.rdfc-side-card--balance {
    min-height: 210px;
}

.rdfc-side-card--tips {
    padding-right: 158px;
}

.rdfc-side-card--balance {
    padding-right: 158px;
}

.rdfc-side-card__photo--bowl,
.rdfc-side-card__photo--combo {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 148px;
    max-width: 39%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.rdfc-side-card__photo--combo {
    bottom: 16px;
}

.rdfc-side-card__cluster {
    display: none;
}

@media (max-width: 1100px) {
    .rdfc-side-panels {
        grid-template-rows: none;
    }
}

@media (max-width: 820px) {
    .rdfc-side-card__badge,
    .rdfc-side-card__badge img {
        width: 36px;
        height: 36px;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        min-height: 184px;
        padding-right: 128px;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        width: 118px;
        max-width: 37%;
    }
}

@media (max-width: 640px) {
    .rdfc-side-card__badge,
    .rdfc-side-card__badge img {
        width: 32px;
        height: 32px;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        min-height: 164px;
        padding-right: 112px;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        width: 102px;
        max-width: 35%;
    }
}

/* ===== v1.9.4 typography + info card icon fit fix ===== */

/* Normalize text sizing inside the detailed calculator area */
.rdfc-shell .rdfc-card__head--simple h3 {
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: .96;
}

.rdfc-shell .rdfc-card__subhead h3 {
    font-size: clamp(34px, 3.6vw, 56px);
    line-height: .98;
}

.rdfc-shell .rdfc-field > span,
.rdfc-shell .rdfc-days > span,
.rdfc-shell .rdfc-card-label,
.rdfc-shell .rdfc-result-kicker,
.rdfc-shell .rdfc-side-card__eyebrow {
    font-size: 13px;
    letter-spacing: .08em;
    font-weight: 900;
    text-transform: uppercase;
}

.rdfc-shell .rdfc-field select,
.rdfc-shell .rdfc-field input,
.rdfc-shell .rdfc-days input {
    font-size: 16px;
}

.rdfc-shell .rdfc-presets button {
    font-size: 16px;
    line-height: 1.2;
}

.rdfc-shell .rdfc-total-pill {
    font-size: 15px;
}

.rdfc-shell .rdfc-comp-row__text strong {
    font-size: 21px;
    line-height: 1.05;
}

.rdfc-shell .rdfc-comp-row__text small {
    font-size: 14px;
    line-height: 1.25;
}

.rdfc-shell .rdfc-side-list li {
    font-size: 15px;
    line-height: 1.38;
}

.rdfc-shell .rdfc-side-card__recipe-copy p,
.rdfc-shell .rdfc-note__copy,
.rdfc-shell .rdfc-bulk .rdfc-check span {
    font-size: 14px;
    line-height: 1.38;
}

.rdfc-shell .rdfc-metric-copy span {
    font-size: 12px;
    letter-spacing: .06em;
}

.rdfc-shell .rdfc-metric-copy strong {
    font-size: 18px;
}

.rdfc-shell .rdfc-metric-copy small {
    font-size: 13px;
}

.rdfc-shell .rdfc-table thead th {
    font-size: 13px;
}

.rdfc-shell .rdfc-table td,
.rdfc-shell .rdfc-table th {
    font-size: 15px;
}

.rdfc-shell .rdfc-table td small,
.rdfc-shell .rdfc-table th small {
    font-size: 12px;
}

/* Fix cropped info-card icons and center content cleanly */
.rdfc-info-card {
    padding-top: 24px;
}

.rdfc-info-card__icon {
    width: 90px !important;
    height: 90px !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    transform: none !important;
    object-fit: contain;
    object-position: center 38%;
}

.rdfc-info-card h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.08;
}

.rdfc-info-card p {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .rdfc-shell .rdfc-card__head--simple h3 {
        font-size: clamp(34px, 5vw, 54px);
    }

    .rdfc-shell .rdfc-card__subhead h3 {
        font-size: clamp(30px, 4.4vw, 46px);
    }

    .rdfc-shell .rdfc-comp-row__text strong {
        font-size: 19px;
    }
}

@media (max-width: 820px) {
    .rdfc-shell .rdfc-field > span,
    .rdfc-shell .rdfc-days > span,
    .rdfc-shell .rdfc-card-label,
    .rdfc-shell .rdfc-result-kicker,
    .rdfc-shell .rdfc-side-card__eyebrow {
        font-size: 12px;
    }

    .rdfc-shell .rdfc-presets button,
    .rdfc-shell .rdfc-field select,
    .rdfc-shell .rdfc-field input,
    .rdfc-shell .rdfc-days input {
        font-size: 15px;
    }

    .rdfc-shell .rdfc-comp-row__text strong {
        font-size: 18px;
    }

    .rdfc-shell .rdfc-comp-row__text small,
    .rdfc-shell .rdfc-side-list li,
    .rdfc-shell .rdfc-note__copy,
    .rdfc-shell .rdfc-bulk .rdfc-check span {
        font-size: 13px;
    }

    .rdfc-info-card {
        padding-top: 22px;
    }

    .rdfc-info-card__icon {
        width: 82px !important;
        height: 82px !important;
        margin-bottom: 12px !important;
        object-position: center 35%;
    }

    .rdfc-info-card h3 {
        font-size: 24px;
    }

    .rdfc-info-card p {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .rdfc-shell .rdfc-card__head--simple h3 {
        font-size: clamp(28px, 8vw, 42px);
    }

    .rdfc-shell .rdfc-card__subhead h3 {
        font-size: clamp(28px, 7.2vw, 40px);
    }

    .rdfc-shell .rdfc-field > span,
    .rdfc-shell .rdfc-days > span,
    .rdfc-shell .rdfc-card-label,
    .rdfc-shell .rdfc-result-kicker,
    .rdfc-shell .rdfc-side-card__eyebrow {
        font-size: 11px;
    }

    .rdfc-shell .rdfc-presets button,
    .rdfc-shell .rdfc-field select,
    .rdfc-shell .rdfc-field input,
    .rdfc-shell .rdfc-days input,
    .rdfc-shell .rdfc-table td,
    .rdfc-shell .rdfc-table th {
        font-size: 14px;
    }

    .rdfc-shell .rdfc-comp-row__text strong {
        font-size: 17px;
    }

    .rdfc-shell .rdfc-comp-row__text small,
    .rdfc-shell .rdfc-table td small,
    .rdfc-shell .rdfc-table th small,
    .rdfc-shell .rdfc-side-list li,
    .rdfc-shell .rdfc-note__copy,
    .rdfc-shell .rdfc-bulk .rdfc-check span,
    .rdfc-shell .rdfc-side-card__recipe-copy p {
        font-size: 12px;
    }

    .rdfc-shell .rdfc-metric-copy strong {
        font-size: 17px;
    }

    .rdfc-info-card {
        padding-top: 20px;
    }

    .rdfc-info-card__icon {
        width: 76px !important;
        height: 76px !important;
        margin-bottom: 10px !important;
        object-position: center 34%;
    }

    .rdfc-info-card h3 {
        font-size: 22px;
    }

    .rdfc-info-card p {
        font-size: 14px;
    }
}

/* ===== v1.9.5 final info card fix ===== */
.rdfc-info-card {
    overflow: visible;
    text-align: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.rdfc-info-card__icon {
    display: block !important;
    flex: 0 0 auto !important;
    width: 104px !important;
    height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: -6px auto 12px !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
}

.rdfc-info-card h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 auto 0 !important;
    text-align: center !important;
    text-wrap: balance;
}

.rdfc-info-card__divider {
    width: 100% !important;
    margin: 16px auto 14px !important;
}

.rdfc-info-card p {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

@media (max-width: 820px) {
    .rdfc-info-card__icon {
        width: 94px !important;
        height: 94px !important;
        max-width: 94px !important;
        max-height: 94px !important;
        margin-top: -2px !important;
    }

    .rdfc-info-card h3 {
        min-height: 0 !important;
    }
}

@media (max-width: 560px) {
    .rdfc-info-card__icon {
        width: 86px !important;
        height: 86px !important;
        max-width: 86px !important;
        max-height: 86px !important;
        margin-top: 0 !important;
    }
}

/* ===== v1.9.6 days stepper fix ===== */
.rdfc-days--stepper {
    width: 128px !important;
}

.rdfc-days-stepper {
    display: grid;
    grid-template-columns: 36px minmax(42px, 1fr) 36px;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(162, 132, 92, .24);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa, #fcf4e7);
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(228, 210, 182, .32);
}

.rdfc-days-btn {
    appearance: none;
    width: 36px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #b11e1f;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.rdfc-days-btn:hover {
    background: rgba(177, 30, 31, .08);
    color: #851112;
}

.rdfc-days-btn:active {
    transform: scale(.94);
}

.rdfc-days-stepper input[data-rdfc-days] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(162, 132, 92, .16) !important;
    border-right: 1px solid rgba(162, 132, 92, .16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #23170f !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: center !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.rdfc-days-stepper input[data-rdfc-days]::-webkit-outer-spin-button,
.rdfc-days-stepper input[data-rdfc-days]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rdfc-days-stepper input[data-rdfc-days]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(177, 30, 31, .12) !important;
}

@media (max-width: 640px) {
    .rdfc-days--stepper {
        width: 118px !important;
    }

    .rdfc-days-stepper {
        grid-template-columns: 34px minmax(38px, 1fr) 34px;
        min-height: 44px;
        border-radius: 14px;
    }

    .rdfc-days-btn {
        width: 34px;
        height: 44px;
        font-size: 22px;
    }

    .rdfc-days-stepper input[data-rdfc-days] {
        min-height: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
}


/* ===== v1.9.9 desktop life-stage card fix ===== */
@media (min-width: 901px) {
    .rdfc-life-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }

    .rdfc-stage-card {
        position: relative;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        min-height: 142px;
        padding: 16px 54px 16px 16px;
        align-items: center;
        overflow: hidden;
    }

    .rdfc-stage-card__media {
        width: 92px;
        height: 106px;
        align-items: flex-end;
    }

    .rdfc-stage-card__media img {
        width: 92px;
        height: 92px;
        object-fit: contain;
        object-position: center bottom;
    }

    .rdfc-stage-card__content {
        min-width: 0;
        max-width: 100%;
    }

    .rdfc-stage-card__content strong {
        display: block;
        white-space: nowrap;
        overflow: visible;
        font-size: clamp(22px, 1.65vw, 28px);
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    .rdfc-stage-card__content small {
        display: block;
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.25;
    }

    .rdfc-stage-card__check {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 34px;
        height: 34px;
        margin: 0;
        justify-self: auto;
        align-self: auto;
    }

    .rdfc-stage-card:has(input:checked) .rdfc-stage-card__check::before {
        width: 15px;
        height: 8px;
        top: -2px;
        border-left-width: 3px;
        border-bottom-width: 3px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .rdfc-stage-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding-right: 48px;
    }

    .rdfc-stage-card__media {
        width: 82px;
        height: 96px;
    }

    .rdfc-stage-card__media img {
        width: 82px;
        height: 82px;
    }

    .rdfc-stage-card__content strong {
        font-size: 22px;
    }

    .rdfc-stage-card__content small {
        font-size: 13px;
    }

    .rdfc-stage-card__check {
        top: 16px;
        right: 14px;
        width: 30px;
        height: 30px;
    }
}


/* ===== v1.10.1 full responsive fixes for detailed calculator ===== */
.rdfc-app,
.rdfc-app * {
    box-sizing: border-box;
}

.rdfc-app img,
.rdfc-app svg {
    max-width: 100%;
}

.rdfc-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rdfc-card--inputs,
.rdfc-side-stack,
.rdfc-card--results {
    width: 100%;
    min-width: 0;
}

.rdfc-card__head--simple {
    gap: 18px;
}

.rdfc-life-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
}

.rdfc-stage-card {
    min-width: 0;
    width: 100%;
    grid-template-columns: clamp(76px, 20%, 116px) minmax(0, 1fr) 34px;
    gap: 14px;
    padding: 14px 16px;
    overflow: hidden;
}

.rdfc-stage-card__media {
    min-width: 0;
    width: clamp(76px, 10vw, 112px);
    height: clamp(82px, 10vw, 120px);
}

.rdfc-stage-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rdfc-stage-card__content {
    min-width: 0;
    overflow: hidden;
}

.rdfc-stage-card__content strong {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.02;
}

.rdfc-stage-card__content small {
    max-width: 100%;
    overflow-wrap: normal;
}

.rdfc-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
}

.rdfc-field,
.rdfc-input-unit,
.rdfc-field select,
.rdfc-field input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.rdfc-presets {
    display: flex;
    flex-wrap: wrap;
}

.rdfc-presets button {
    flex: 1 1 170px;
    min-width: 0;
}

.rdfc-card__subhead {
    gap: 16px;
    min-width: 0;
}

.rdfc-card__subhead > div {
    min-width: 0;
}

.rdfc-composition {
    width: 100%;
    min-width: 0;
}

.rdfc-comp-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 150px);
}

.rdfc-comp-row__name {
    min-width: 0;
    grid-template-columns: clamp(58px, 18%, 112px) minmax(0, 1fr);
}

.rdfc-comp-row__thumb {
    width: clamp(58px, 10vw, 112px);
    min-width: 0;
}

.rdfc-comp-row__text {
    min-width: 0;
}

.rdfc-comp-row__text strong,
.rdfc-comp-row__text small {
    overflow-wrap: normal;
    word-break: normal;
}

.rdfc-comp-row__input {
    min-width: 0;
    width: 100%;
}

.rdfc-comp-row__input input {
    min-width: 0;
    width: 100%;
}

.rdfc-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rdfc-table {
    width: 100%;
}

.rdfc-table-food {
    min-width: 0;
}

.rdfc-table-food span {
    min-width: 0;
    overflow-wrap: normal;
}

.rdfc-side-panels,
.rdfc-side-card,
.rdfc-side-list,
.rdfc-side-list li {
    min-width: 0;
}

@media (max-width: 1180px) {
    .rdfc-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdfc-card--results {
        position: static;
    }

    .rdfc-side-stack {
        display: grid;
        gap: 18px;
    }

    .rdfc-side-panels {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

@media (max-width: 980px) {
    .rdfc-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rdfc-life-stage {
        gap: 14px;
    }

    .rdfc-stage-card {
        grid-template-columns: 92px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 12px 14px;
    }

    .rdfc-stage-card__media {
        width: 92px;
        height: 96px;
    }

    .rdfc-stage-card__content strong {
        font-size: 22px;
    }

    .rdfc-stage-card__content small {
        font-size: 13px;
        line-height: 1.25;
    }
}

@media (max-width: 760px) {
    .rdfc-card--inputs {
        padding: 22px 16px 18px;
        border-radius: 24px;
    }

    .rdfc-card__head--simple {
        align-items: stretch;
        flex-direction: column;
    }

    .rdfc-card__head--simple h3 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .rdfc-soft-btn {
        width: 100%;
        min-height: 54px;
    }

    .rdfc-life-stage {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rdfc-stage-card {
        grid-template-columns: 84px minmax(0, 1fr) 28px;
        min-height: 112px;
        padding: 10px 12px;
        border-radius: 20px;
    }

    .rdfc-stage-card__media {
        width: 84px;
        height: 84px;
    }

    .rdfc-stage-card__content strong {
        font-size: 20px;
        white-space: normal;
    }

    .rdfc-stage-card__content small {
        font-size: 12px;
        line-height: 1.22;
        margin-top: 6px;
    }

    .rdfc-stage-card__check {
        width: 28px;
        height: 28px;
    }

    .rdfc-field-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rdfc-field input,
    .rdfc-field select {
        min-height: 54px;
        height: 54px;
        font-size: 15px;
        border-radius: 16px;
    }

    .rdfc-input-unit em {
        min-width: 48px;
        min-height: 38px;
        font-size: 15px;
        border-radius: 12px;
    }

    .rdfc-presets {
        gap: 10px;
    }

    .rdfc-presets button {
        flex: 1 1 calc(50% - 10px);
        min-height: 58px;
        font-size: 14px;
        padding: 10px 12px;
    }

    .rdfc-card__subhead {
        align-items: flex-start;
        flex-direction: column;
    }

    .rdfc-card__subhead h3 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .rdfc-total-pill {
        align-self: flex-start;
        min-height: 44px;
        font-size: 14px;
    }

    .rdfc-comp-row {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 10px;
        min-height: 86px;
        padding: 10px;
        border-radius: 18px;
    }

    .rdfc-comp-row__name {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
    }

    .rdfc-comp-row__thumb {
        width: 58px;
        height: 54px;
    }

    .rdfc-comp-row__thumb img {
        max-width: 58px;
        max-height: 52px;
    }

    .rdfc-comp-row__text strong {
        font-size: 17px;
        line-height: 1.05;
    }

    .rdfc-comp-row__text small {
        font-size: 12px;
        line-height: 1.18;
    }

    .rdfc-comp-row__input input {
        min-height: 54px;
        padding: 0 32px 0 12px;
        font-size: 18px;
        border-radius: 14px;
    }

    .rdfc-comp-row__input em {
        right: 12px;
        font-size: 15px;
    }

    .rdfc-result-main strong {
        font-size: clamp(46px, 16vw, 62px);
    }

    .rdfc-metrics {
        grid-template-columns: 1fr;
    }

    .rdfc-metrics article {
        grid-template-columns: 34px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid rgba(162, 132, 92, .14);
    }

    .rdfc-metrics article:last-child {
        border-bottom: 0;
    }

    .rdfc-metric-copy {
        justify-items: start;
    }

    .rdfc-table {
        min-width: 0;
        table-layout: fixed;
    }

    .rdfc-table th,
    .rdfc-table td {
        padding: 7px 5px;
        height: 58px;
        font-size: 12px;
    }

    .rdfc-table thead th {
        font-size: 10px;
    }

    .rdfc-table th:nth-child(1),
    .rdfc-table td:nth-child(1) {
        width: 36%;
    }

    .rdfc-table th:nth-child(2),
    .rdfc-table td:nth-child(2) {
        width: 13%;
    }

    .rdfc-table th:nth-child(3),
    .rdfc-table td:nth-child(3),
    .rdfc-table th:nth-child(4),
    .rdfc-table td:nth-child(4) {
        width: 25.5%;
    }

    .rdfc-table-food {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 5px;
    }

    .rdfc-table-food img {
        width: 28px;
        height: 28px;
    }

    .rdfc-table-food span {
        font-size: 10px;
        line-height: 1.1;
    }

    .rdfc-table td strong {
        font-size: 11px;
        line-height: 1.1;
    }

    .rdfc-table td small {
        font-size: 9px;
        line-height: 1.1;
    }

    .rdfc-bulk__head {
        align-items: flex-start;
        gap: 10px;
    }

    .rdfc-bulk h3 {
        font-size: 24px;
    }

    .rdfc-days--stepper {
        width: 118px;
        min-width: 118px;
    }

    .rdfc-days-stepper {
        width: 118px;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        padding-right: 108px;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        width: 96px;
        max-width: 34%;
    }
}

@media (max-width: 430px) {
    .rdfc-card--inputs {
        padding: 18px 12px 16px;
    }

    .rdfc-stage-card {
        grid-template-columns: 70px minmax(0, 1fr) 24px;
        gap: 9px;
        min-height: 102px;
    }

    .rdfc-stage-card__media {
        width: 70px;
        height: 72px;
    }

    .rdfc-stage-card__content strong {
        font-size: 18px;
    }

    .rdfc-stage-card__content small {
        font-size: 11px;
    }

    .rdfc-stage-card__check {
        width: 24px;
        height: 24px;
    }

    .rdfc-presets button {
        flex-basis: 100%;
    }

    .rdfc-comp-row {
        grid-template-columns: minmax(0, 1fr) 76px;
    }

    .rdfc-comp-row__name {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rdfc-comp-row__thumb {
        width: 46px;
        height: 48px;
    }

    .rdfc-comp-row__thumb img {
        max-width: 46px;
        max-height: 44px;
    }

    .rdfc-comp-row__text strong {
        font-size: 15px;
    }

    .rdfc-comp-row__text small {
        font-size: 10px;
    }

    .rdfc-comp-row__input input {
        font-size: 16px;
        padding-right: 26px;
    }

    .rdfc-comp-row__input em {
        right: 9px;
        font-size: 13px;
    }

    .rdfc-table th,
    .rdfc-table td {
        padding: 6px 4px;
    }

    .rdfc-bulk__head {
        flex-direction: column;
    }

    .rdfc-days--stepper,
    .rdfc-days-stepper {
        width: 100%;
        min-width: 0;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        padding-right: 16px;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        position: static;
        display: block;
        width: 112px;
        max-width: 42%;
        margin: 12px 0 0 auto;
    }

    .rdfc-side-card--recipe {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rdfc-side-card__recipe-badge {
        grid-column: 1 / span 2;
        justify-self: center;
        margin-top: 8px;
    }
}

/* ===== v1.10.2 mobile readability fix for result/sidebar ===== */
@media (max-width: 640px) {
    .rdfc-card--results {
        border-radius: 24px;
    }

    .rdfc-result-kicker {
        font-size: 13px !important;
    }

    .rdfc-result-hero p {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .rdfc-metrics article {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        min-height: 82px !important;
        padding: 12px 14px !important;
    }

    .rdfc-metric-icon,
    .rdfc-metric-icon img {
        width: 32px !important;
        height: 32px !important;
    }

    .rdfc-metric-copy span {
        font-size: 12px !important;
    }

    .rdfc-metric-copy strong {
        font-size: 20px !important;
        line-height: 1.08 !important;
    }

    .rdfc-metric-copy small {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .rdfc-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .rdfc-table {
        min-width: 560px !important;
        table-layout: fixed !important;
    }

    .rdfc-table th,
    .rdfc-table td {
        height: 66px !important;
        padding: 9px 8px !important;
        font-size: 14px !important;
    }

    .rdfc-table thead th {
        font-size: 12px !important;
    }

    .rdfc-table-food {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .rdfc-table-food img {
        width: 36px !important;
        height: 36px !important;
    }

    .rdfc-table-food span {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .rdfc-table td strong {
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    .rdfc-table td small {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .rdfc-bulk .rdfc-card-label,
    .rdfc-side-card__eyebrow {
        font-size: 13px !important;
    }

    .rdfc-bulk h3 {
        font-size: 30px !important;
    }

    .rdfc-bulk-total {
        font-size: 18px !important;
    }

    .rdfc-bulk-total strong {
        font-size: 26px !important;
    }

    .rdfc-check,
    .rdfc-check span {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .rdfc-note {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .rdfc-note__icon img {
        width: 30px !important;
        height: 30px !important;
    }

    .rdfc-note__copy {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .rdfc-side-list li {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .rdfc-side-list li::before {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
    }

    .rdfc-side-card__recipe-copy p {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .rdfc-side-card__recipe-copy strong {
        font-size: 30px !important;
    }
}

@media (max-width: 430px) {
    .rdfc-table {
        min-width: 540px !important;
    }

    .rdfc-table th,
    .rdfc-table td {
        font-size: 13px !important;
    }

    .rdfc-table-food span,
    .rdfc-table td strong {
        font-size: 13px !important;
    }

    .rdfc-table td small {
        font-size: 12px !important;
    }

    .rdfc-bulk h3 {
        font-size: 28px !important;
    }

    .rdfc-side-list li,
    .rdfc-note__copy,
    .rdfc-check,
    .rdfc-check span {
        font-size: 14px !important;
    }
}

/* ===== v1.11.0 final mobile readability + composition safety ===== */
@media (min-width: 821px) {
    .rdfc-comp-row {
        grid-template-columns: minmax(0, 1fr) 150px !important;
        gap: 14px !important;
        min-height: 96px !important;
        padding: 10px 14px !important;
    }

    .rdfc-comp-row__name {
        grid-template-columns: 92px minmax(0, 1fr) !important;
        column-gap: 12px !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .rdfc-comp-row__thumb {
        width: 92px !important;
        height: 70px !important;
        overflow: visible !important;
    }

    .rdfc-comp-row__thumb img {
        max-width: 86px !important;
        max-height: 66px !important;
        object-fit: contain !important;
    }

    .rdfc-comp-row__text {
        min-width: 0 !important;
        overflow: hidden;
    }

    .rdfc-comp-row__text strong {
        display: block !important;
        font-size: 19px !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .rdfc-comp-row__text small {
        display: block !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    .rdfc-comp-row__input input {
        min-height: 64px !important;
        font-size: 20px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 760px) {
    .rdfc-app {
        font-size: 16px !important;
    }

    .rdfc-card--inputs,
    .rdfc-card--results,
    .rdfc-side-card,
    .rdfc-info-card {
        font-size: 16px !important;
    }

    .rdfc-card--inputs {
        padding: 20px 14px 18px !important;
        border-radius: 24px !important;
    }

    .rdfc-card__head--simple {
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .rdfc-card__head--simple h3,
    .rdfc-card__subhead h3 {
        font-size: 34px !important;
        line-height: 1 !important;
    }

    .rdfc-soft-btn {
        min-height: 52px !important;
        font-size: 16px !important;
        line-height: 1.1 !important;
        padding: 0 18px !important;
    }

    .rdfc-life-stage {
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .rdfc-stage-card {
        grid-template-columns: 74px minmax(0, 1fr) 28px !important;
        gap: 10px !important;
        min-height: 112px !important;
        padding: 10px 12px !important;
        border-radius: 20px !important;
    }

    .rdfc-stage-card__media,
    .rdfc-stage-card__media img {
        width: 70px !important;
        height: 70px !important;
    }

    .rdfc-stage-card__content strong {
        font-size: 22px !important;
        line-height: 1.05 !important;
    }

    .rdfc-stage-card__content small {
        font-size: 15px !important;
        line-height: 1.28 !important;
        margin-top: 6px !important;
    }

    .rdfc-field-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .rdfc-field > span,
    .rdfc-days > span,
    .rdfc-card-label,
    .rdfc-result-kicker,
    .rdfc-side-card__eyebrow {
        font-size: 13px !important;
        line-height: 1.2 !important;
        letter-spacing: .06em !important;
    }

    .rdfc-field input,
    .rdfc-field select,
    .rdfc-days input {
        min-height: 56px !important;
        height: 56px !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
        border-radius: 16px !important;
    }

    .rdfc-input-unit em {
        min-width: 52px !important;
        min-height: 38px !important;
        font-size: 17px !important;
        border-radius: 12px !important;
    }

    .rdfc-presets {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 18px !important;
    }

    .rdfc-presets button {
        width: 100% !important;
        min-height: 52px !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
        line-height: 1.22 !important;
        border-radius: 18px !important;
    }

    .rdfc-card__subhead {
        gap: 12px !important;
        margin-top: 18px !important;
        padding-top: 18px !important;
    }

    .rdfc-total-pill {
        min-height: 44px !important;
        padding: 0 16px !important;
        font-size: 17px !important;
        line-height: 1.1 !important;
    }

    .rdfc-composition {
        gap: 10px !important;
    }

    .rdfc-comp-row {
        grid-template-columns: minmax(0, 1fr) 88px !important;
        gap: 10px !important;
        min-height: 82px !important;
        padding: 10px !important;
        border-radius: 18px !important;
        align-items: center !important;
    }

    .rdfc-comp-row__name {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        column-gap: 8px !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .rdfc-comp-row__thumb {
        width: 58px !important;
        height: 56px !important;
    }

    .rdfc-comp-row__thumb img {
        max-width: 54px !important;
        max-height: 52px !important;
        object-fit: contain !important;
    }

    .rdfc-comp-row__text {
        min-width: 0 !important;
        overflow: hidden;
    }

    .rdfc-comp-row__text strong {
        font-size: 17px !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .rdfc-comp-row__text small {
        font-size: 13px !important;
        line-height: 1.22 !important;
        white-space: normal !important;
    }

    .rdfc-comp-row__input input {
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 34px 0 10px !important;
        font-size: 18px !important;
        border-radius: 15px !important;
    }

    .rdfc-comp-row__input em {
        right: 10px !important;
        font-size: 16px !important;
    }

    .rdfc-result-main strong {
        font-size: 66px !important;
        line-height: .9 !important;
    }

    .rdfc-result-main em {
        font-size: 21px !important;
    }

    .rdfc-result-hero p {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .rdfc-metrics {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: -30px 12px 14px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .rdfc-metrics article {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        min-height: 70px !important;
        justify-items: stretch !important;
        text-align: left !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        border: 1px solid rgba(162, 132, 92, .16) !important;
        border-radius: 16px !important;
    }

    .rdfc-metric-icon,
    .rdfc-metric-icon img {
        width: 36px !important;
        height: 36px !important;
    }

    .rdfc-metric-copy {
        justify-items: start !important;
    }

    .rdfc-metric-copy span {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .rdfc-metric-copy strong {
        font-size: 21px !important;
        line-height: 1.05 !important;
    }

    .rdfc-metric-copy small {
        font-size: 15px !important;
        line-height: 1.18 !important;
    }

    .rdfc-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .rdfc-table {
        min-width: 700px !important;
        font-size: 16px !important;
    }

    .rdfc-table th,
    .rdfc-table td {
        font-size: 16px !important;
        line-height: 1.2 !important;
        padding: 10px 12px !important;
    }

    .rdfc-table thead th {
        font-size: 13px !important;
    }

    .rdfc-table td strong {
        font-size: 16px !important;
    }

    .rdfc-table td small {
        font-size: 14px !important;
    }

    .rdfc-table-food span {
        font-size: 16px !important;
        line-height: 1.18 !important;
    }

    .rdfc-bulk h3 {
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .rdfc-bulk-total,
    .rdfc-bulk-unit,
    .rdfc-bulk-sep {
        font-size: 18px !important;
    }

    .rdfc-bulk-total strong {
        font-size: 30px !important;
    }

    .rdfc-check span,
    .rdfc-note__copy,
    .rdfc-side-list li,
    .rdfc-side-card__recipe-copy p {
        font-size: 15px !important;
        line-height: 1.38 !important;
    }

    .rdfc-note {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        font-size: 15px !important;
    }

    .rdfc-side-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        padding-right: 110px !important;
        min-height: 178px !important;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        width: 100px !important;
        max-width: 34% !important;
    }

    .rdfc-side-card__recipe-copy strong {
        font-size: 30px !important;
    }

    .rdfc-info-card h3 {
        font-size: 25px !important;
    }

    .rdfc-info-card p {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 420px) {
    .rdfc-comp-row {
        grid-template-columns: 1fr !important;
    }

    .rdfc-comp-row__input {
        width: 100% !important;
    }

    .rdfc-comp-row__input input {
        width: 100% !important;
    }

    .rdfc-side-card--tips,
    .rdfc-side-card--balance {
        padding-right: 16px !important;
        padding-bottom: 108px !important;
        min-height: 260px !important;
    }

    .rdfc-side-card__photo--bowl,
    .rdfc-side-card__photo--combo {
        right: 14px !important;
        bottom: 12px !important;
        width: 116px !important;
        max-width: 46% !important;
    }
}


/* ===== v1.11.1 desktop preset button overflow fix ===== */
@media (min-width: 821px) {
    .rdfc-presets {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .rdfc-presets button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 64px !important;
        padding: 10px 18px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.18 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rdfc-presets button.is-active {
        padding-left: 42px !important;
    }

    .rdfc-presets button.is-active::before {
        left: 14px !important;
        font-size: 18px !important;
    }
}


/* ===== v1.11.2 active preset button overflow final fix ===== */
@media (min-width: 821px) {
    .rdfc-presets button,
    .rdfc-presets button.is-active {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 66px !important;
        padding: 10px 14px !important;
        white-space: normal !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rdfc-presets button.is-active::before {
        content: none !important;
        display: none !important;
    }
}
