/* ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═
 *  routine.css ????루틴 분석 ?�이지 ?��??? *  Extracted from routine.html inline <style>
 * ?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═?�═ */

/* ?�?� Page Layout ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.rt-hero__title { font-size: 28px; font-weight: 800; color: var(--color-ink); text-align: center; padding-top: 48px; }
.rt-hero__sub { font-size: 15px; color: var(--color-ink-light); text-align: center; margin-top: 8px; }
.rt-back {
    display: inline-block; font-size: 14px; color: var(--color-ink-light); cursor: pointer;
    padding: 12px 0; margin-bottom: 8px; text-decoration: none;
}
.rt-back:hover { color: var(--color-green-deep); }

/* ?�?� Section Title ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-section-title { font-size: 17px; font-weight: 700; color: var(--color-ink); margin: 28px 0 12px; }

/* ?�?� Goal Selector ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-goals__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px;
}
.rt-goal-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 16px; border-radius: var(--radius-lg); border: 1.5px solid var(--color-border);
    background: var(--color-bg); cursor: pointer; transition: all 0.25s;
}
.rt-goal-btn:hover {
    border-color: var(--color-green-deep); background: #F0F7F4;
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.rt-goal-btn__icon { font-size: 28px; }
.rt-goal-btn__label { font-size: 14px; font-weight: 700; color: var(--color-ink); }
.rt-goal-btn__badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.badge--cross { background: #ECFDF5; color: var(--color-green-deep); }
.badge--inner { background: #FFF7ED; color: #92400E; }

/* ?�?� Selected Goal ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-selected-goal { margin: 16px 0; }
.rt-selected-goal__inner {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-radius: var(--radius-md); background: #F0F7F4;
    border: 1.5px solid #A7DBC6;
}
.rt-selected-goal__icon { font-size: 24px; }
.rt-selected-goal__label { font-size: 16px; font-weight: 700; color: var(--color-ink); }
.rt-selected-goal__badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }

/* ?�?� Product List ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-product-list { display: flex; flex-direction: column; gap: 6px; }
.rt-product-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-bg-alt); border: 1px solid var(--color-border);
}
.rt-product-item--outer { background: #FAF5FF; border-color: #E9D5FF; }
.rt-product-item__name { flex: 1; font-size: 14px; font-weight: 500; color: var(--color-ink); }
.rt-product-item__remove {
    background: none; border: none; color: var(--color-ink-muted); cursor: pointer; font-size: 16px; padding: 4px 8px;
}
.rt-product-item__remove:hover { color: var(--color-danger); }
.rt-empty { font-size: 13px; color: var(--color-ink-muted); padding: 12px 0; }

/* ?�?� Search ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-search-wrap { position: relative; margin-top: 8px; }
.rt-search-input {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border); background: var(--color-bg); font-size: 14px;
    outline: none; transition: all 0.2s;
}
.rt-search-input:focus { border-color: var(--color-green-deep); box-shadow: 0 0 0 3px rgba(52,211,153,0.1); }
.rt-search-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--color-bg); border-radius: var(--radius-md); border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 50; overflow: hidden;
}
.rt-sr-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 16px; border: none; background: none; cursor: pointer;
    text-align: left; transition: background 0.1s;
}
.rt-sr-item:hover { background: var(--color-bg-alt); }
.rt-sr-img { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; background: #fff; flex-shrink: 0; border: 1px solid #E2E8F0; }
.rt-sr-name { flex: 1; font-size: 14px; color: var(--color-ink); font-weight: 500; }
.rt-sr-score { font-size: 12px; font-weight: 700; color: var(--color-green-deep); }
.rt-sr-empty { padding: 16px; text-align: center; color: var(--color-ink-muted); font-size: 13px; }
.rt-sr-label {
    font-size: 11px; font-weight: 700; color: var(--color-ink-muted); padding: 8px 16px 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.rt-sr-item--cosm { border-left: 3px solid #DDD6FE; }
.rt-sr-brand { font-size: 11px; color: var(--color-ink-muted); flex-shrink: 0; }

/* ?�?� Input Hint (v3.2) ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-input-hint {
    font-size: 13px; color: var(--color-ink-muted); margin-top: 4px; margin-bottom: 8px;
}

/* ?�?� Classified Groups (v3.2) ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-classified { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.rt-classified-group {
    padding: 16px; border-radius: var(--radius-md); background: var(--color-bg-alt); border: 1px solid var(--color-border);
}
.rt-classified-group--ambiguous { background: #FFFBEB; border-color: #FDE68A; }
.rt-classified-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.rt-classified-list { display: flex; flex-direction: column; gap: 6px; }

/* Switch/Classify Buttons */
.rt-item-switch {
    background: none; border: none; cursor: pointer; font-size: 14px;
    padding: 2px 6px; opacity: 0.5; transition: opacity 0.2s;
}
.rt-item-switch:hover { opacity: 1; }
.rt-item-classify {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
    border: 1px solid; cursor: pointer; transition: all 0.2s;
}
.rt-item-classify--inner { border-color: #D1FAE5; color: var(--color-green-deep); background: #ECFDF5; }
.rt-item-classify--inner:hover { background: var(--color-green-deep); color: var(--color-bg); }
.rt-item-classify--outer { border-color: #DDD6FE; color: #5B21B6; background: #EDE9FE; }
.rt-item-classify--outer:hover { background: #5B21B6; color: var(--color-bg); }
.rt-product-item--ambiguous { background: #FEF3C7; border-color: #FDE68A; }

/* ?�?� Outer Chips ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-outer-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center;
}
.rt-chip-label { font-size: 12px; color: var(--color-ink-muted); font-weight: 600; }
.rt-chip {
    padding: 6px 14px; border-radius: var(--radius-xl); font-size: 13px; font-weight: 600;
    background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-ink-light);
    cursor: pointer; transition: all 0.2s;
}
.rt-chip:hover { border-color: #A7DBC6; color: var(--color-green-deep); background: #F0F7F4; }
.rt-chip--active { background: var(--color-green-deep); color: var(--color-bg); border-color: var(--color-green-deep); }

/* ?�?� Profile ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-profile-toggle { margin-top: 20px; text-align: center; }
.rt-profile-btn {
    background: none; border: 1px dashed #CBD5E1; padding: 10px 20px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600; color: var(--color-ink-light); cursor: pointer; transition: all 0.2s;
}
.rt-profile-btn:hover { border-color: var(--color-green-deep); color: var(--color-green-deep); }
.rt-profile {
    margin-top: 12px; padding: 20px; border-radius: var(--radius-md);
    background: var(--color-bg-alt); border: 1px solid var(--color-border);
}
.rt-profile-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.rt-profile-row:last-child { margin-bottom: 0; }
.rt-profile-row label { font-size: 13px; font-weight: 600; color: var(--color-ink-light); min-width: 70px; }
.rt-profile-row select {
    flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--color-border);
    font-size: 13px; background: var(--color-bg); outline: none;
}

/* ?�?� Analyze Button ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-analyze-btn {
    display: block; width: 100%; padding: 16px; margin-top: 28px;
    border-radius: var(--radius-md); border: none; background: var(--color-green-deep); color: var(--color-bg);
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.25s;
}
.rt-analyze-btn:hover { background: var(--color-green-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(47,93,80,0.2); }
.rt-analyze-btn:disabled { opacity: 0.6; cursor: wait; }

/* ?�?� Result ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-result { padding-top: 16px; }
.rt-result__header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.rt-result__icon { font-size: 40px; }
.rt-result__title { font-size: 22px; font-weight: 800; color: var(--color-ink); }
.rt-result__confidence {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: var(--radius-sm); margin-top: 4px;
}
.rt-conf--general { background: #F3F4F6; color: #6B7280; }
.rt-conf--personalized { background: #ECFDF5; color: var(--color-green-deep); }
.rt-conf--conditional { background: #FFF7ED; color: #92400E; }
.rt-conf--consult_professional { background: #FEF2F2; color: #991B1B; }

/* Coverage Circle */
.rt-coverage {
    display: flex; align-items: center; gap: 24px;
    padding: 24px; border-radius: var(--radius-xl); background: var(--color-bg-alt); border: 1px solid var(--color-border);
}
.rt-coverage__circle { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.rt-coverage__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rt-coverage__value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 28px; font-weight: 800; color: var(--color-green-deep);
}
.rt-coverage__unit { font-size: 14px; }
.rt-coverage__grade { font-size: 18px; font-weight: 800; color: var(--color-ink); }
.rt-coverage__detail { font-size: 13px; color: var(--color-ink-light); margin-top: 4px; }

/* Axes */
.rt-axes { margin-top: 28px; }
.rt-axes__title { font-size: 16px; font-weight: 700; color: var(--color-ink); margin-bottom: 14px; }
.rt-axis { margin-bottom: 14px; }
.rt-axis__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rt-axis__name { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.rt-axis__status { font-size: 12px; font-weight: 700; }
.rt-axis--good .rt-axis__status, .rt-axis--good { color: var(--color-green-deep); }
.rt-axis--partial .rt-axis__status, .rt-axis--partial { color: #92400E; }
.rt-axis--weak .rt-axis__status, .rt-axis--weak { color: #991B1B; }
.rt-axis__bar-bg { height: 8px; border-radius: 4px; background: var(--color-border); overflow: hidden; }
.rt-axis__bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.rt-axis__bar-fill.rt-axis--good { background: var(--color-green-deep); }
.rt-axis__bar-fill.rt-axis--partial { background: #D97706; }
.rt-axis__bar-fill.rt-axis--weak { background: var(--color-danger); }
.rt-axis__pct { font-size: 12px; color: var(--color-ink-muted); margin-top: 2px; }
.rt-axis__desc { font-size: 12px; color: var(--color-ink-light); margin-top: 4px; }

/* Warnings */
.rt-warnings { margin-top: 28px; }
.rt-warnings__title { font-size: 16px; font-weight: 700; color: var(--color-ink); margin-bottom: 12px; }
.rt-warning-card {
    padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 8px;
    border: 1px solid; background: var(--color-bg);
}
.rt-warning--moderate { border-color: #FED7AA; background: #FFF7ED; }
.rt-warning--high { border-color: #FECACA; background: #FEF2F2; }
.rt-warning__pair { font-size: 14px; font-weight: 700; color: var(--color-ink); }
.rt-warning__msg { font-size: 13px; color: var(--color-ink-light); margin-top: 4px; line-height: 1.5; }

/* Personalized Cautions */
.rt-cautions { margin-top: 24px; }
.rt-cautions__title { font-size: 16px; font-weight: 700; color: #991B1B; margin-bottom: 12px; }
.rt-caution-card {
    padding: 16px 18px; border-radius: var(--radius-md); margin-bottom: 8px;
    border-left: 4px solid;
}
.rt-caution--contraindicated { border-left-color: var(--color-danger); background: #FEF2F2; }
.rt-caution--high { border-left-color: #F97316; background: #FFF7ED; }
.rt-caution--moderate { border-left-color: #EAB308; background: #FEFCE8; }
.rt-caution__ingredient { font-size: 14px; font-weight: 700; color: var(--color-ink); }
.rt-caution__msg { font-size: 13px; color: var(--color-ink-light); margin-top: 4px; line-height: 1.5; }
.rt-caution__pro { font-size: 12px; color: var(--color-ink-light); margin-top: 6px; font-style: italic; }

/* Missing */
.rt-missing { margin-top: 28px; }
.rt-missing__title { font-size: 16px; font-weight: 700; color: var(--color-ink); margin-bottom: 12px; }
.rt-missing-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-md); background: var(--color-bg-alt);
    border: 1px solid var(--color-border); margin-bottom: 8px;
}
.rt-missing-item__badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; }
.rt-missing-item__name { font-size: 14px; font-weight: 600; color: var(--color-ink); flex: 1; }
.rt-missing-item__evidence { font-size: 12px; font-weight: 700; color: var(--color-green-deep); }
.rt-missing-item__role { font-size: 12px; color: var(--color-ink-muted); display: none; }

/* Result CTA */
.rt-result-cta {
    display: flex; gap: 12px; margin-top: 32px;
}
.rt-result-cta__btn {
    flex: 1; padding: 14px; border-radius: var(--radius-md); text-align: center;
    font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.25s;
}
.rt-result-cta__btn--primary { background: var(--color-green-deep); color: var(--color-bg); }
.rt-result-cta__btn--primary:hover { background: var(--color-green-light); transform: translateY(-2px); }
.rt-result-cta__btn--secondary { background: var(--color-bg); color: var(--color-green-deep); border: 1.5px solid var(--color-green-deep); }
.rt-result-cta__btn--secondary:hover { background: #F0F7F4; transform: translateY(-2px); }

/* Fallback */
.rt-fallback-notice {
    padding: 16px 20px; border-radius: var(--radius-md); background: #FFF7ED;
    border: 1px solid #FED7AA; margin-bottom: 24px;
    text-align: center; font-size: 13px; color: #92400E; line-height: 1.6;
}

/* Disclaimer */
.rt-disclaimer {
    text-align: center; font-size: 11px; color: var(--color-ink-muted);
    padding: 24px 16px; line-height: 1.6;
}

/* Recommended Products */
.rt-rec-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.rt-rec-title { font-size: 16px; font-weight: 700; color: var(--color-ink); margin-bottom: 12px; }
.rt-rec-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rt-rec-card {
    display: block; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 14px 16px; text-decoration: none; color: inherit; transition: all 0.2s;
}
.rt-rec-card:hover { border-color: var(--color-green-deep); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.rt-rec-card__name { font-size: 14px; font-weight: 600; color: var(--color-ink); margin-bottom: 4px; }
.rt-rec-card__meta { display: flex; align-items: center; gap: 8px; }
.rt-rec-card__score { font-size: 13px; font-weight: 700; color: var(--color-green-deep); }
.rt-rec-card__fills { font-size: 11px; color: var(--color-ink-muted); }
.rt-rec-card__reason { font-size: 12px; color: var(--color-ink-muted); margin-top: 4px; }

/* Monthly Cost */
.rt-monthly-cost {
    margin: 16px 0;
    padding: 20px;
    background: linear-gradient(135deg, #F0FAF6 0%, #F7FBF9 100%);
    border: 1px solid #D1E8DD;
    border-radius: var(--radius-md);
    text-align: center;
}
.rt-monthly-cost__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.rt-monthly-cost__icon {
    font-size: 18px;
}
.rt-monthly-cost__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-ink-light);
}
.rt-monthly-cost__amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-green-deep);
}
.rt-monthly-cost__daily {
    font-size: 12px;
    color: var(--color-ink-muted);
    margin-top: 4px;
}

/* ?�?� Share / Save Actions ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-share-actions {
    display: flex; gap: 10px; justify-content: center; margin: 20px 0;
}
.rt-share-btn, .rt-save-btn {
    padding: 10px 24px; border-radius: var(--radius-md); font-size: 13px;
    font-weight: 600; border: none; cursor: pointer; transition: all 0.2s;
}
.rt-share-btn { background: var(--color-green-deep); color: var(--color-bg); }
.rt-share-btn:hover { background: #245045; }
.rt-save-btn {
    background: var(--color-bg-alt); color: #44403C; border: 1px solid var(--color-border);
}
.rt-save-btn:hover { background: #EDECE8; }

/* ?�?� Restore Banner ?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?� */
.rt-restore-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; background: #F0FAF6;
    border: 1px solid #D1E8DD; border-radius: var(--radius-md);
    margin-bottom: 16px; font-size: 13px; color: #44403C;
}
.rt-restore-banner button:first-of-type {
    padding: 6px 14px; background: var(--color-green-deep); color: var(--color-bg);
    border: none; border-radius: var(--radius-sm); font-size: 12px;
    font-weight: 600; cursor: pointer;
}
.rt-restore-banner button:first-of-type:hover { background: #245045; }

/* Responsive */
@media (max-width: 640px) {
    .rt-goals__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rt-coverage { flex-direction: column; text-align: center; }
    .rt-result-cta { flex-direction: column; }
    .rt-restore-banner { flex-wrap: wrap; }
}

/* Empty State (improved) */
.rt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    gap: 4px;
}
.rt-empty__icon {
    display: block;
    opacity: 0.5;
}
.rt-empty__text {
    font-size: 13px;
    color: var(--color-ink-light);
    margin-top: 6px;
    text-align: center;
    line-height: 1.5;
}

/* Skeleton Loading */
.rt-skeleton {
    padding: 24px;
}

/* Cross CTA */
.rt-cross-cta {
    margin-top: 24px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border-radius: var(--radius-md);
    text-align: center;
}
.rt-cross-cta__title {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
}
.rt-cross-cta__desc {
    font-size: 13px;
    color: var(--color-ink-light);
    margin-bottom: 14px;
    line-height: 1.5;
}
.rt-cross-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--color-violet-deep);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.rt-cross-cta__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.rt-cross-cta__btn svg {
    display: inline-block;
}


/* ── Cross CTA (keep page-specific styles above, shared moved to common.css) ── */

/* ── Mobile Responsive (768px breakpoint) ─────────────────── */
@media (max-width: 768px) {
    .rt-page {
        max-width: none;
        padding: 0 20px 100px;
    }
    .rt-hero__title {
        font-size: 24px;
        padding-top: 32px;
    }
    .rt-section-title {
        font-size: 16px;
        margin: 20px 0 10px;
    }
    .rt-input-section {
        padding-bottom: 16px;
    }
    .rt-coverage {
        padding: 16px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .rt-hero__title {
        font-size: 22px;
    }
    .rt-goals__grid {
        gap: 6px;
    }
    .rt-goal-btn {
        padding: 14px 10px;
    }
    .rt-goal-btn__label {
        font-size: 13px;
    }
}

/* Responsive UI rescue: routine flow */
.rt-page {
    box-sizing: border-box;
}

.rt-step {
    width: 100%;
}

.rt-search-results {
    max-height: min(360px, calc(100vh - 220px));
    overflow-y: auto;
    z-index: var(--z-dropdown, 50);
}

.rt-sr-item {
    min-height: 48px;
}

.rt-sr-name,
.rt-product-item__name,
.rt-rec-card__name,
.rt-missing-item__name {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.rt-goal-btn {
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 41, 51, 0.035);
}

.rt-goal-btn:hover {
    border-color: rgba(47, 93, 80, 0.28);
    background: #fff;
}

.rt-goal-btn--active,
.rt-goal-btn[aria-pressed="true"] {
    border-color: var(--color-green-deep);
    background: #F0F7F4;
}

@media (min-width: 1024px) {
    .rt-page {
        max-width: 840px;
        padding-left: 32px;
        padding-right: 32px;
        padding-bottom: 96px;
    }

    .rt-hero__title {
        padding-top: 64px;
        font-size: 34px;
    }

    .rt-hero__sub {
        font-size: 16px;
    }

    .rt-goals {
        padding: 24px;
        border: 1px solid var(--color-border);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 14px 42px rgba(31, 41, 51, 0.045);
    }

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

    .rt-goal-btn {
        min-height: 132px;
        padding: 18px 12px;
    }

    .rt-input-section,
    .rt-classified,
    #rt-status-text,
    #rt-result {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .rt-input-section {
        padding: 24px;
        border: 1px solid var(--color-border);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 12px 36px rgba(31, 41, 51, 0.045);
    }

    .rt-result {
        padding-top: 24px;
    }
}

@media (max-width: 640px) {
    .rt-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .rt-top-tabs {
        margin-left: -20px;
        margin-right: -20px;
    }

    .rt-goal-btn {
        min-height: 126px;
        border-radius: 16px;
    }

    .rt-product-item,
    .rt-missing-item {
        align-items: flex-start;
    }

    .rt-share-actions {
        flex-direction: column;
    }

    .rt-share-btn,
    .rt-save-btn {
        width: 100%;
    }
}

/* Release visual system polish */
.rt-page {
    color: var(--fc-text);
}

.rt-top-tabs {
    border-color: var(--fc-border-soft);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.rt-top-tab {
    min-height: 52px;
    color: var(--fc-text-subtle);
}

.rt-top-tab--active {
    color: var(--fc-brand);
}

.rt-hero__title {
    text-wrap: balance;
}

.rt-goal-btn {
    border-color: var(--fc-border-soft);
    box-shadow: var(--fc-shadow-card);
}

.rt-goal-btn__icon {
    line-height: 1;
}

.rt-selected-goal__inner,
.rt-classified-group,
.rt-status-message {
    border-color: var(--fc-border-soft);
    box-shadow: var(--fc-shadow-card);
}

.rt-product-item,
.rt-missing-item,
.rt-rec-card {
    background: #fff;
}

.rt-search-results {
    top: calc(100% + 8px);
}

.rt-result__title,
.rt-axes__title,
.rt-warnings__title,
.rt-missing__title,
.rt-rec-title {
    color: var(--fc-text);
}

.rt-coverage,
.rt-monthly-cost,
.rt-cross-cta {
    background: #fff;
}

.rt-share-actions {
    gap: 12px;
}

.rt-share-btn,
.rt-save-btn {
    min-height: 48px;
    border-radius: 14px;
}

@media (min-width: 1024px) {
    .rt-top-tabs {
        border-radius: 0 0 18px 18px;
    }

    .rt-goals,
    .rt-input-section,
    #rt-result {
        box-shadow: var(--fc-shadow-card);
    }
}

@media (max-width: 640px) {
    .rt-top-tabs {
        position: sticky;
        top: 56px;
        z-index: var(--z-sticky);
    }

    .rt-goals__grid {
        gap: 10px;
    }

    .rt-goal-btn {
        min-height: 122px;
        padding: 16px 10px;
    }
}
