.rx-hcs {
    --rx-hcs-ink: #14233b;
    --rx-hcs-muted: #5d6a7d;
    --rx-hcs-line: #dbe5ee;
    --rx-hcs-soft: #f5f9fc;
    --rx-hcs-card: #ffffff;
    --rx-hcs-primary: #0b7a5a;
    --rx-hcs-primary-dark: #075840;
    --rx-hcs-blue: #1769aa;
    --rx-hcs-amber: #c47a08;
    --rx-hcs-danger: #a33b3b;
    --rx-hcs-shadow: 0 18px 55px rgba(20, 35, 59, .09);
    width: 100%;
    max-width: 1280px;
    margin: 26px auto;
    padding: clamp(14px, 2.8vw, 34px);
    color: var(--rx-hcs-ink);
    background: linear-gradient(180deg, #f9fcfe 0%, #f4f8fb 100%);
    border: 1px solid var(--rx-hcs-line);
    border-radius: 24px;
    box-shadow: var(--rx-hcs-shadow);
    font-family: inherit;
    line-height: 1.55;
    box-sizing: border-box;
    scroll-margin-top: 110px;
}
.rx-hcs *, .rx-hcs *::before, .rx-hcs *::after { box-sizing: border-box; }
.rx-hcs [hidden] { display: none !important; }
.rx-hcs button, .rx-hcs input, .rx-hcs select { font: inherit; }
.rx-hcs button { -webkit-tap-highlight-color: transparent; }
.rx-hcs a { color: var(--rx-hcs-blue); }
.rx-hcs__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
    min-height: 330px;
    padding: clamp(24px, 4vw, 54px);
    overflow: hidden;
    position: relative;
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 5%, rgba(37, 199, 151, .22), transparent 32%),
        linear-gradient(135deg, #0b3147 0%, #0b6f58 68%, #0d8f68 100%);
    color: #fff;
}
.rx-hcs__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.rx-hcs__hero-copy, .rx-hcs__hero-visual { position: relative; z-index: 1; }
.rx-hcs__eyebrow { margin: 0 0 8px; font-size: .83rem; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; color: #b8ffe4; }
.rx-hcs__hero h2 { max-width: 760px; margin: 0 0 14px; color: #fff; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.06; letter-spacing: -.035em; }
.rx-hcs__hero-copy > p:not(.rx-hcs__eyebrow) { max-width: 780px; margin: 0; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.rx-hcs__hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.rx-hcs__trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rx-hcs__trust-row span { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font-size: .86rem; font-weight: 700; }
.rx-hcs__hero-visual { width: min(310px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,.04) 63%, transparent 64%); }
.rx-hcs__orbit { position: absolute; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.rx-hcs__orbit--one { inset: 10%; }
.rx-hcs__orbit--two { inset: 23%; border-style: dashed; transform: rotate(22deg); }
.rx-hcs__hero-number { font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: 1; font-weight: 900; letter-spacing: -.08em; color: #fff; text-shadow: 0 12px 30px rgba(0,0,0,.18); }
.rx-hcs__hero-label { position: absolute; bottom: 18%; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--rx-hcs-primary-dark); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.rx-hcs__button, .rx-hcs__open-tool, .rx-hcs__filter-reset, .rx-hcs__back-directory, .rx-hcs__copy-result, .rx-hcs__print-result {
    appearance: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.rx-hcs__button { min-height: 46px; padding: 11px 17px; background: var(--rx-hcs-primary); color: #fff; box-shadow: 0 8px 20px rgba(11,122,90,.19); }
.rx-hcs__hero .rx-hcs__button { background: #fff; color: var(--rx-hcs-primary-dark); }
.rx-hcs__button:hover, .rx-hcs__open-tool:hover { transform: translateY(-1px); box-shadow: 0 11px 25px rgba(20,35,59,.15); }
.rx-hcs__button--ghost { background: #eaf1f5; color: var(--rx-hcs-ink); box-shadow: none; }
.rx-hcs__hero .rx-hcs__button--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.rx-hcs__button--danger { background: var(--rx-hcs-danger); }
.rx-hcs button:focus-visible, .rx-hcs input:focus-visible, .rx-hcs select:focus-visible, .rx-hcs summary:focus-visible { outline: 3px solid rgba(23,105,170,.26); outline-offset: 3px; }
.rx-hcs__safety { margin: 18px 0 23px; border: 1px solid #edd8a9; border-radius: 14px; background: #fff9eb; overflow: hidden; }
.rx-hcs__safety summary { cursor: pointer; padding: 14px 17px; color: #704600; font-weight: 900; }
.rx-hcs__safety p { margin: 0; padding: 0 17px 17px; color: #66583d; }
.rx-hcs__category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.rx-hcs__category-card { appearance: none; width: 100%; min-height: 120px; padding: 15px; display: grid; justify-items: start; gap: 10px; text-align: left; border: 1px solid var(--rx-hcs-line); border-radius: 16px; background: var(--rx-hcs-card); color: var(--rx-hcs-ink); cursor: pointer; box-shadow: 0 8px 24px rgba(20,35,59,.045); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.rx-hcs__category-card:hover, .rx-hcs__category-card.is-active { transform: translateY(-2px); border-color: rgba(11,122,90,.45); box-shadow: 0 15px 30px rgba(20,35,59,.09); }
.rx-hcs__category-card img { width: 52px; height: 52px; object-fit: contain; }
.rx-hcs__category-card strong { display: block; line-height: 1.25; }
.rx-hcs__category-card small { display: block; margin-top: 4px; color: var(--rx-hcs-muted); }
.rx-hcs__finder { margin: 24px 0; padding: 18px; border: 1px solid var(--rx-hcs-line); border-radius: 16px; background: #fff; }
.rx-hcs__search-label { display: block; margin-bottom: 7px; font-weight: 900; }
.rx-hcs__search-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.rx-hcs__search, .rx-hcs__field input, .rx-hcs__field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bdcbd7; border-radius: 11px; background: #fff; color: var(--rx-hcs-ink); }
.rx-hcs__filter-reset, .rx-hcs__back-directory, .rx-hcs__copy-result, .rx-hcs__print-result { padding: 9px 13px; background: #eaf1f5; color: var(--rx-hcs-ink); }
.rx-hcs__alphabet { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.rx-hcs__alphabet button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--rx-hcs-line); border-radius: 8px; background: #f7fafc; color: var(--rx-hcs-ink); cursor: pointer; font-weight: 800; }
.rx-hcs__alphabet button:hover, .rx-hcs__alphabet button.is-active { background: var(--rx-hcs-primary); color: #fff; border-color: var(--rx-hcs-primary); }
.rx-hcs__directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.rx-hcs__tool-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 12px; min-width: 0; min-height: 255px; padding: 18px; border: 1px solid var(--rx-hcs-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 25px rgba(20,35,59,.05); }
.rx-hcs__tool-card.is-planned { background: repeating-linear-gradient(135deg, #fbfcfd, #fbfcfd 12px, #f5f8fa 12px, #f5f8fa 24px); }
.rx-hcs__tool-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; background: #eef8f4; }
.rx-hcs__tool-icon img { width: 45px; height: 45px; }
.rx-hcs__tool-copy { min-width: 0; }
.rx-hcs__letter { display: inline-grid; place-items: center; float: right; width: 30px; height: 30px; border-radius: 9px; background: #eaf2f8; color: var(--rx-hcs-blue); font-weight: 900; }
.rx-hcs__tool-card h3 { margin: 0 38px 2px 0; font-size: 1.08rem; line-height: 1.28; }
.rx-hcs__tool-card p { margin: 8px 0 0; color: var(--rx-hcs-muted); font-size: .92rem; }
.rx-hcs__tool-card .rx-hcs__bn { margin: 1px 0 0; color: var(--rx-hcs-primary-dark); font-weight: 800; }
.rx-hcs__open-tool { grid-column: 1 / -1; align-self: end; min-height: 42px; padding: 9px 13px; background: var(--rx-hcs-primary); color: #fff; }
.rx-hcs__planned-badge { grid-column: 1 / -1; align-self: end; display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 999px; background: #f3e9cd; color: #73510b; font-size: .78rem; font-weight: 900; }
.rx-hcs__no-results { grid-column: 1 / -1; padding: 30px; text-align: center; border: 1px dashed var(--rx-hcs-line); border-radius: 15px; background: #fff; color: var(--rx-hcs-muted); }
.rx-hcs__workspace { margin-top: 28px; scroll-margin-top: 100px; }
.rx-hcs__workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rx-hcs__workspace-head p { margin: 0; color: var(--rx-hcs-muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.rx-hcs__tool-panel { padding: clamp(17px, 3vw, 28px); border: 1px solid var(--rx-hcs-line); border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(20,35,59,.07); }
.rx-hcs--single .rx-hcs__tool-panel { display: block; }
.rx-hcs__panel-heading { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rx-hcs-line); }
.rx-hcs__panel-heading img { width: 62px; height: 62px; padding: 8px; border-radius: 16px; background: #eef8f4; }
.rx-hcs__panel-heading p { margin: 0 0 2px; color: var(--rx-hcs-primary); font-size: .79rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.rx-hcs__panel-heading h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2.05rem); line-height: 1.2; }
.rx-hcs__panel-heading h3 span { display: block; margin-top: 3px; font-size: .7em; color: var(--rx-hcs-primary-dark); font-weight: 800; }
.rx-hcs__panel-heading small { display: block; margin-top: 7px; color: var(--rx-hcs-muted); }
.rx-hcs__calculator-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 17px; align-items: start; }
.rx-hcs__form, .rx-hcs__result, .rx-hcs__tracker-card { border: 1px solid var(--rx-hcs-line); border-radius: 16px; background: #fbfdfe; padding: 18px; }
.rx-hcs__fields { display: grid; gap: 12px; }
.rx-hcs__fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-hcs__fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rx-hcs__fields--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-hcs__fields--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rx-hcs__field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.rx-hcs__field label { font-size: .92rem; font-weight: 800; }
.rx-hcs__form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.rx-hcs__checks, .rx-hcs__checklist { display: grid; gap: 10px; margin-top: 14px; }
.rx-hcs__checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-hcs__checks label, .rx-hcs__checklist label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid var(--rx-hcs-line); border-radius: 10px; background: #fff; }
.rx-hcs__checks input, .rx-hcs__checklist input { width: auto; margin-top: 4px; }
.rx-hcs__result { position: sticky; top: 92px; min-height: 250px; overflow: hidden; }
.rx-hcs__result::before { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -70px; border-radius: 50%; background: rgba(11,122,90,.06); }
.rx-hcs__result-content { position: relative; z-index: 1; }
.rx-hcs__placeholder { color: var(--rx-hcs-muted); }
.rx-hcs__result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--rx-hcs-line); }
.rx-hcs__metric { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.rx-hcs__metric strong { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1; color: var(--rx-hcs-primary); letter-spacing: -.06em; }
.rx-hcs__metric span { color: var(--rx-hcs-muted); font-weight: 800; }
.rx-hcs__badge { display: inline-flex; width: fit-content; margin: 5px 0 12px; padding: 6px 10px; border-radius: 999px; background: #e5f4ee; color: var(--rx-hcs-primary-dark); font-weight: 900; }
.rx-hcs__result h4 { margin: 16px 0 7px; font-size: 1rem; }
.rx-hcs__result p { margin: 7px 0; }
.rx-hcs__alert { margin-top: 13px; padding: 11px 13px; border-left: 4px solid var(--rx-hcs-amber); border-radius: 9px; background: #fff8e9; color: #65522e; }
.rx-hcs__safe-note { margin-top: 13px; padding: 11px 13px; border-left: 4px solid var(--rx-hcs-primary); border-radius: 9px; background: #ecf8f4; }
.rx-hcs__bmi-scale { position: relative; display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; height: 20px; margin: 24px 0 8px; border-radius: 999px; overflow: visible; background: linear-gradient(90deg, #72a8d9 0 22%, #52b788 22% 54%, #e7b24b 54% 76%, #d66b6b 76% 100%); }
.rx-hcs__bmi-pointer { position: absolute; top: -8px; left: var(--pointer, 50%); width: 3px; height: 36px; transform: translateX(-50%); border-radius: 3px; background: #101828; box-shadow: 0 0 0 3px #fff; }
.rx-hcs__scale-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; color: var(--rx-hcs-muted); font-size: .71rem; text-align: center; }
.rx-hcs__ratio-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin: 17px 0; }
.rx-hcs__ratio-person, .rx-hcs__ratio-waist { min-height: 150px; display: grid; place-items: center; border-radius: 14px; background: #eef5f8; }
.rx-hcs__ratio-person svg { width: 72px; height: 135px; }
.rx-hcs__ratio-waist strong { font-size: 2.2rem; color: var(--rx-hcs-primary); }
.rx-hcs__meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.rx-hcs__meal-card { padding: 11px 12px; border: 1px solid var(--rx-hcs-line); border-radius: 11px; background: #fff; }
.rx-hcs__meal-card strong { display: block; margin-bottom: 4px; color: var(--rx-hcs-primary-dark); }
.rx-hcs__plate-wrap { display: grid; grid-template-columns: minmax(210px, .9fr) 1.1fr; gap: 16px; align-items: center; }
.rx-hcs__plate { width: min(310px, 100%); aspect-ratio: 1; margin: auto; position: relative; border: 12px solid #e9eef2; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 2px #c9d5dd; }
.rx-hcs__plate-part { position: absolute; display: grid; place-items: center; padding: 10px; text-align: center; font-weight: 900; font-size: .86rem; line-height: 1.2; }
.rx-hcs__plate-veg { inset: 0 50% 50% 0; background: #bfe3c9; }
.rx-hcs__plate-fruit { inset: 50% 50% 0 0; background: #f6d897; }
.rx-hcs__plate-staple { inset: 0 0 50% 50%; background: #e7d7b3; }
.rx-hcs__plate-protein { inset: 50% 0 0 50%; background: #c8daf2; }
.rx-hcs__plate-center { position: absolute; inset: 35%; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; background: #fff; color: var(--rx-hcs-primary-dark); text-align: center; font-size: .72rem; font-weight: 900; }
.rx-hcs__plate-list { margin: 0; padding-left: 18px; }
.rx-hcs__plate-list li { margin: 6px 0; }
.rx-hcs__timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.rx-hcs__timeline::before { content: ""; position: absolute; top: 16px; left: 12%; right: 12%; height: 3px; background: #cbd9e3; }
.rx-hcs__timeline-step { position: relative; z-index: 1; text-align: center; }
.rx-hcs__timeline-dot { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 50%; background: var(--rx-hcs-primary); color: #fff; font-size: .77rem; font-weight: 900; }
.rx-hcs__check-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rx-hcs__check-summary div { padding: 12px; border-radius: 11px; text-align: center; background: #f1f6f9; }
.rx-hcs__check-summary strong { display: block; font-size: 1.6rem; color: var(--rx-hcs-primary); }
.rx-hcs__tracker-card { background: #fbfdfe; }
.rx-hcs__chart { min-height: 235px; margin-top: 20px; padding: 12px; display: grid; place-items: center; border: 1px solid var(--rx-hcs-line); border-radius: 14px; background: #fff; overflow-x: auto; }
.rx-hcs__chart svg { width: 100%; min-width: 560px; height: 220px; }
.rx-hcs__table-wrap { margin-top: 17px; overflow-x: auto; }
.rx-hcs__table { width: 100%; min-width: 790px; border-collapse: collapse; background: #fff; }
.rx-hcs__table th, .rx-hcs__table td { padding: 10px; border-bottom: 1px solid var(--rx-hcs-line); text-align: left; vertical-align: middle; }
.rx-hcs__table th { background: #eef4f7; }
.rx-hcs__remove-record { padding: 6px 9px; border: 1px solid #e5b5b5; border-radius: 8px; background: #fff; color: var(--rx-hcs-danger); cursor: pointer; }
.rx-hcs__tracker-empty { color: var(--rx-hcs-muted); }
.rx-hcs__footer { margin-top: 25px; padding: 18px; border-radius: 15px; background: #102d3b; color: rgba(255,255,255,.86); font-size: .9rem; }
.rx-hcs__footer strong { color: #fff; }
.rx-hcs__footer details { margin-top: 10px; }
.rx-hcs__footer summary { cursor: pointer; color: #c8ffe9; font-weight: 900; }
.rx-hcs__footer ul { columns: 2; gap: 30px; margin-bottom: 0; }
.rx-hcs__footer a { color: #d9f4ff; }
.rx-hcs--single { max-width: 1180px; }
.rx-hcs--single .rx-hcs__footer { margin-top: 17px; }
.rx-hcs__flash { animation: rxHcsFlash 1.2s ease; }
@keyframes rxHcsFlash { 0% { box-shadow: 0 0 0 0 rgba(11,122,90,.36); } 100% { box-shadow: 0 0 0 16px rgba(11,122,90,0); } }
@media (max-width: 1120px) {
    .rx-hcs__category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rx-hcs__directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rx-hcs__fields--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .rx-hcs { border-radius: 17px; padding: 12px; padding-bottom: 80px; }
    .rx-hcs__hero { grid-template-columns: 1fr; min-height: auto; padding: 28px 20px; }
    .rx-hcs__hero-visual { display: none; }
    .rx-hcs__category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rx-hcs__calculator-grid { grid-template-columns: 1fr; }
    .rx-hcs__result { position: static; min-height: 180px; }
    .rx-hcs__fields--2, .rx-hcs__fields--3, .rx-hcs__fields--4, .rx-hcs__fields--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rx-hcs__footer ul { columns: 1; }
}
@media (max-width: 590px) {
    .rx-hcs__hero h2 { font-size: 2rem; }
    .rx-hcs__hero-actions, .rx-hcs__form-actions { display: grid; grid-template-columns: 1fr; }
    .rx-hcs__button { width: 100%; }
    .rx-hcs__category-grid, .rx-hcs__directory, .rx-hcs__fields--2, .rx-hcs__fields--3, .rx-hcs__fields--4, .rx-hcs__fields--5, .rx-hcs__checks, .rx-hcs__meal-grid, .rx-hcs__plate-wrap { grid-template-columns: 1fr; }
    .rx-hcs__search-row { grid-template-columns: 1fr; }
    .rx-hcs__tool-card { min-height: 230px; }
    .rx-hcs__workspace-head { align-items: flex-start; flex-direction: column; }
    .rx-hcs__panel-heading { grid-template-columns: 1fr; }
    .rx-hcs__panel-heading img { width: 54px; height: 54px; }
    .rx-hcs__scale-labels { font-size: .62rem; }
    .rx-hcs__check-summary { grid-template-columns: 1fr; }
}
@media print {
    body.rx-hcs-printing * { visibility: hidden !important; }
    body.rx-hcs-printing .rx-hcs-print-target,
    body.rx-hcs-printing .rx-hcs-print-target * { visibility: visible !important; }
    body.rx-hcs-printing .rx-hcs-print-target { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; border: 0; box-shadow: none; background: #fff; }
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__hero,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__safety,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__category-grid,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__finder,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__directory,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__workspace-head,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__form,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__result-actions,
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__footer { display: none !important; }
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__tool-panel[hidden] { display: none !important; }
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__tool-panel:not([hidden]) { display: block !important; border: 0; box-shadow: none; padding: 0; }
    body.rx-hcs-printing .rx-hcs-print-target .rx-hcs__result { position: static; border: 0; padding: 0; }
}

/* RX HCS 2.1 — local-only nail, tongue, and eye colour guides */
.rx-hcs__visual-check { display: grid; gap: 16px; }
.rx-hcs__visual-privacy { padding: 12px 14px; border: 1px solid #b9ded2; border-radius: 12px; background: #effaf6; color: #16483d; font-size: .92rem; }
.rx-hcs__visual-target { margin: 0; padding: 12px 14px; border-left: 4px solid var(--rx-hcs-primary); border-radius: 8px; background: #f4f8fa; }
.rx-hcs__visual-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.rx-hcs__photo-card, .rx-hcs__guide-card { padding: 16px; border: 1px solid var(--rx-hcs-line); border-radius: 16px; background: #fff; box-shadow: 0 9px 28px rgba(16,45,59,.06); }
.rx-hcs__photo-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed #7ebbaa; border-radius: 12px; background: #f2fbf8; color: var(--rx-hcs-primary-dark); font-weight: 900; cursor: pointer; }
.rx-hcs__photo-input input { max-width: 52%; font-size: .82rem; }
.rx-hcs__photo-stage { position: relative; display: grid; place-items: center; min-height: 300px; margin-top: 13px; border: 1px solid var(--rx-hcs-line); border-radius: 14px; background: linear-gradient(135deg,#eef4f6,#f9fbfc); overflow: hidden; }
.rx-hcs__photo-stage canvas { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; cursor: crosshair; }
.rx-hcs__photo-placeholder { display: grid; gap: 8px; max-width: 430px; padding: 26px; text-align: center; color: var(--rx-hcs-muted); }
.rx-hcs__photo-placeholder strong { color: var(--rx-hcs-primary-dark); font-size: 1.04rem; }
.rx-hcs__sample-marker { position: absolute; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px #102d3b, 0 3px 14px rgba(0,0,0,.35); transform: translate(-50%,-50%); pointer-events: none; }
.rx-hcs__photo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.rx-hcs__photo-tools .rx-hcs__button { width: auto; padding: 9px 13px; }
.rx-hcs__sample-readout { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; color: var(--rx-hcs-muted); text-align: right; }
.rx-hcs__sample-readout > span { flex: 0 0 auto; width: 31px; height: 31px; border: 2px solid #fff; border-radius: 50%; background: #e8eff2; box-shadow: 0 0 0 1px #aebfc7; }
.rx-hcs__sample-readout small { max-width: 330px; line-height: 1.35; }
.rx-hcs__photo-quality { margin: 11px 0 0; padding: 9px 11px; border-radius: 9px; background: #f4f7f8; color: var(--rx-hcs-muted); font-size: .84rem; }
.rx-hcs__photo-quality[data-state="ok"] { background: #e9f8f1; color: #176044; }
.rx-hcs__photo-quality[data-state="warn"] { background: #fff4dd; color: #7d4e00; }
.rx-hcs__guide-card h4 { margin: 0 0 5px; color: var(--rx-hcs-primary-dark); font-size: 1.08rem; }
.rx-hcs__guide-card > p { margin: 0 0 12px; color: var(--rx-hcs-muted); font-size: .9rem; }
.rx-hcs__swatch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rx-hcs__swatch-card { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 9px; min-height: 64px; padding: 10px; border: 1px solid var(--rx-hcs-line); border-radius: 12px; background: #fbfdfe; color: var(--rx-hcs-text); text-align: left; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.rx-hcs__swatch-card:hover { transform: translateY(-1px); border-color: #72b7a3; box-shadow: 0 7px 18px rgba(16,45,59,.08); }
.rx-hcs__swatch-card.is-selected { border-color: var(--rx-hcs-primary); box-shadow: 0 0 0 3px rgba(11,122,90,.13); background: #f0faf7; }
.rx-hcs__guide-swatch { display: inline-block; width: 35px; height: 35px; border: 2px solid #fff; border-radius: 50%; background: var(--swatch,#d5d5d5); box-shadow: 0 0 0 1px #9fb0b7; }
.rx-hcs__visual-check > .rx-hcs__result { position: static; min-height: 0; }
.rx-hcs__visual-result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rx-hcs__visual-result-head .rx-hcs__guide-swatch { width: 46px; height: 46px; }
.rx-hcs__visual-result-head small { display: block; color: var(--rx-hcs-muted); }
.rx-hcs__visual-result-head h4 { margin: 2px 0 0; color: var(--rx-hcs-primary-dark); font-size: 1.12rem; }
@media (max-width: 900px) {
    .rx-hcs__visual-layout { grid-template-columns: 1fr; }
    .rx-hcs__photo-stage { min-height: 250px; }
}
@media (max-width: 590px) {
    .rx-hcs__photo-input, .rx-hcs__photo-tools { align-items: stretch; flex-direction: column; }
    .rx-hcs__photo-input input { max-width: 100%; }
    .rx-hcs__sample-readout { justify-content: flex-start; text-align: left; }
    .rx-hcs__swatch-grid { grid-template-columns: 1fr; }
}


/* RX HCS 2.2 — resilient layout, personal tools, and visual quick access */
.rx-hcs { isolation: isolate; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.rx-hcs__category-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.rx-hcs__directory { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.rx-hcs__tool-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.rx-hcs__tool-card:not(.is-planned):hover { transform: translateY(-3px); border-color: rgba(11,122,90,.34); box-shadow: 0 16px 35px rgba(20,35,59,.10); }
.rx-hcs__section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.rx-hcs__section-heading p { margin: 0 0 3px; color: var(--rx-hcs-primary); font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.rx-hcs__section-heading h3 { margin: 0; color: var(--rx-hcs-ink); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; }
.rx-hcs__section-heading small { max-width: 290px; color: var(--rx-hcs-muted); text-align: right; }
.rx-hcs__personal { margin: 0 0 24px; padding: 18px; border: 1px solid #cfe2dc; border-radius: 18px; background: linear-gradient(135deg,#f3fbf8,#f7fbfe); }
.rx-hcs__personal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.rx-hcs__personal-card { min-width: 0; padding: 14px; border: 1px solid var(--rx-hcs-line); border-radius: 14px; background: rgba(255,255,255,.88); }
.rx-hcs__personal-card h4 { margin: 0 0 10px; color: var(--rx-hcs-primary-dark); font-size: .96rem; }
.rx-hcs__quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-hcs__quick-empty { margin: 0; color: var(--rx-hcs-muted); font-size: .88rem; }
.rx-hcs__quick-tool { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 9px; min-width: min(100%,220px); padding: 10px 12px; border: 1px solid #cbdbe2; border-radius: 12px; background: #fff; color: var(--rx-hcs-ink); text-align: left; cursor: pointer; box-shadow: 0 5px 14px rgba(20,35,59,.05); }
.rx-hcs__quick-tool strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.rx-hcs__quick-tool small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rx-hcs-muted); font-size: .73rem; }
.rx-hcs__quick-tool span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--rx-hcs-primary); font-size: 1.15rem; font-weight: 900; }
.rx-hcs__quick-tool:hover { border-color: var(--rx-hcs-primary); transform: translateY(-1px); }
.rx-hcs__visual-showcase { margin: 24px 0; padding: 20px; border: 1px solid #c8ddec; border-radius: 18px; background: linear-gradient(135deg,#eef7fb,#f5fbf8); }
.rx-hcs__visual-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.rx-hcs__visual-shortcuts button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-width: 0; padding: 14px; border: 1px solid #cfdee7; border-radius: 14px; background: #fff; color: var(--rx-hcs-ink); text-align: left; cursor: pointer; box-shadow: 0 7px 20px rgba(20,35,59,.055); transition: transform .17s ease,border-color .17s ease,box-shadow .17s ease; }
.rx-hcs__visual-shortcuts button:hover { transform: translateY(-2px); border-color: #73b7a4; box-shadow: 0 12px 28px rgba(20,35,59,.09); }
.rx-hcs__visual-shortcuts img { width: 46px; height: 46px; padding: 7px; border-radius: 12px; background: #eaf7f3; }
.rx-hcs__visual-shortcuts strong,.rx-hcs__visual-shortcuts small { display: block; min-width: 0; }
.rx-hcs__visual-shortcuts strong { line-height: 1.25; }
.rx-hcs__visual-shortcuts small { margin-top: 3px; color: var(--rx-hcs-muted); }
.rx-hcs__visual-shortcuts b { color: var(--rx-hcs-primary); font-size: 1.25rem; }
.rx-hcs__search-status { margin: 11px 0 0; color: var(--rx-hcs-muted); font-size: .84rem; font-weight: 700; }
.rx-hcs__favorite-tool { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d3e0e6; border-radius: 50%; background: #fff; color: #997018; cursor: pointer; font-size: 1.28rem; line-height: 1; box-shadow: 0 5px 14px rgba(20,35,59,.08); }
.rx-hcs__favorite-tool:hover,.rx-hcs__favorite-tool.is-favorite { border-color: #e5bd54; background: #fff7dc; color: #8a5e00; transform: translateY(-1px); }
.rx-hcs__letter { margin-right: 40px; }
.rx-hcs__photo-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.rx-hcs__photo-hints span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border-radius: 999px; background: #eef5f7; color: #526873; font-size: .76rem; font-weight: 800; }
.rx-hcs__swatch-card { color: var(--rx-hcs-ink); }
@media (max-width: 900px) {
    .rx-hcs__visual-shortcuts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .rx-hcs__section-heading { align-items: flex-start; flex-direction: column; }
    .rx-hcs__section-heading small { text-align: left; }
    .rx-hcs__personal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
    .rx-hcs__personal,.rx-hcs__visual-showcase { padding: 14px; }
    .rx-hcs__quick-tool { width: 100%; }
}
