/* JM30-A: approved Jeannie Meows expanded palette. Scoped to personal My Home. */
.jm-home-palace {
    --jm-cloud-blue: #EAF4FF;
    --jm-powder-blue: #D6E9FF;
    --jm-sky-blue: #B9DCFF;
    --jm-palace-blue: #A3C9F5;
    --jm-velvet-blue: #7FB2E6;
    --jm-regal-blue: #5E9AD8;
    --jm-french-blue: #4A7FC6;
    --jm-royal-velvet: #3A62A8;
    --jm-petal-pink: #FFEFFC;
    --jm-blush-pink: #FFD9E6;
    --jm-shell-pink: #FFC6D9;
    --jm-rose-pink: #F7AFC9;
    --jm-velvet-pink: #E898B8;
    --jm-garden-rose: #D97EA3;
    --jm-antique-rose: #C9688F;
    --jm-royal-pink: #B9557C;
    --jm-ivory-butter: #FFF9E0;
    --jm-cream-yellow: #FFF1C2;
    --jm-vanilla-yellow: #FFE6A5;
    --jm-butter-yellow: #FFD978;
    --jm-sunshine-yellow: #FFC94E;
    --jm-golden-marigold: #FFB22E;
    --jm-champagne-gold: #F8E8C6;
    --jm-soft-gold: #F4D89A;
    --jm-gilded-gold: #E9C16B;
    --jm-antique-gold: #D4A047;
    --jm-ornamental-gold: #C78A27;
    --jm-royal-gold: #A56A11;
    --jm-ink: #172946;
    --jm-rule: #C78A27;
    --jm-silk: #FFFDF8;
    --jm-gold-edge: linear-gradient(130deg, #A56A11, #F8E8C6 28%, #E9C16B 51%, #A56A11 80%, #F4D89A);
    color: var(--jm-ink);
    width: min(100%, 82rem);
    margin-inline: auto;
    padding-inline: clamp(.7rem, 2.8vw, 2.6rem);
    padding-bottom: 3rem;
    box-sizing: border-box;
}
.jm-home-palace * { box-sizing: border-box; }
.jm-home-palace .eyebrow, .jm-home-kicker {
    color: #172946;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.jm-home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 4px ridge var(--jm-ornamental-gold);
    border-radius: 26px 26px 13px 13px;
    background:
        radial-gradient(ellipse at 80% 5%, #FFEFFC 0, transparent 34%),
        radial-gradient(ellipse at 20% 12%, #D6E9FF 0, transparent 45%),
        linear-gradient(125deg, #EAF4FF, #FFF9E0 49%, #FFD9E6);
    padding: clamp(1.65rem, 4vw, 3.5rem);
    box-shadow: inset 0 0 0 4px #F8E8C6, inset 0 0 0 6px #D4A047,
                0 12px 30px rgba(23, 41, 70, .1);
    text-align: center;
    margin: .9rem 0 1.15rem;
}
.jm-home-hero::before, .jm-home-hero::after {
    content: "❦";
    position: absolute;
    top: 4px;
    color: #A56A11;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1;
    opacity: .76;
    pointer-events: none;
}
.jm-home-hero::before { left: clamp(10px, 3vw, 40px); }
.jm-home-hero::after { right: clamp(10px, 3vw, 40px); transform: scaleX(-1); }
.jm-home-hero__inner { max-width: 760px; margin-inline: auto; }
.jm-home-crest {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #A56A11;
    outline: 2px solid #F8E8C6;
    color: #A56A11;
    background: linear-gradient(135deg, #FFF9E0, #FFD978);
    box-shadow: 0 3px 12px rgba(23, 41, 70, .08);
    margin-bottom: .45rem;
}
.jm-home-palace .jm-home-hero h1 {
    margin: .1rem 0 .6rem;
    color: var(--jm-ink);
    font: 700 clamp(2.2rem, 5vw, 3.65rem)/1.08 Georgia, "Times New Roman", serif;
    letter-spacing: .012em;
}
.jm-home-palace .jm-home-hero p:not(.eyebrow) {
    color: var(--jm-ink);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 63ch;
}
.jm-home-palace .account-workspace-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.15rem;
    margin: 0 auto 1.2rem;
    padding: .4rem .8rem;
    border-block: 1px solid #D4A047;
    background: rgba(255, 249, 224, .5);
}
.jm-home-palace .account-workspace-nav a { color: #172946; font-weight: 700; }
.jm-home-primary-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 1.2rem 0 1.35rem;
    background:
        linear-gradient(90deg, rgba(255, 239, 252, .85), transparent 58%),
        linear-gradient(120deg, #EAF4FF, #FFF9E0);
    border: 3px double var(--jm-ornamental-gold);
    border-radius: 18px;
    padding: clamp(1rem, 2.5vw, 1.65rem);
    box-shadow: inset 0 0 0 3px #F8E8C6, 0 6px 18px rgba(23, 41, 70, .08);
}
.jm-home-primary-action h2 {
    color: var(--jm-ink);
    font: 700 clamp(1.3rem, 2.5vw, 1.9rem)/1.2 Georgia, serif;
    margin: .2rem 0 .5rem;
}
.jm-home-primary-action p { max-width: 58ch; margin: .35rem 0 .5rem; }
.jm-home-primary-action a:not(.primary-button) { color: #3A62A8; font-weight: 700; }
.jm-home-primary-action__button { display: flex; justify-content: end; }
.jm-home-palace .primary-button,
.jm-home-palace .secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 46px;
    padding: .7rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    cursor: pointer;
}
.jm-home-palace .primary-button {
    background: linear-gradient(155deg, #FFF1C2 0%, #FFD978 22%, #FFC94E 58%, #E9C16B 100%);
    color: var(--jm-ink);
    border: 3px solid #C78A27;
    outline: 1px solid #F4D89A;
    outline-offset: -5px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.24),
                inset 0 -3px 0 rgba(16,32,60,.22),
                0 3px 0 #A56A11, 0 6px 15px rgba(23, 41, 70, .18);
}
.jm-home-palace .secondary-button {
    background: linear-gradient(145deg, #EAF4FF 0%, #D6E9FF 50%, #B9DCFF 100%);
    color: var(--jm-ink);
    border: 2px solid #C78A27;
    box-shadow: inset 0 0 0 2px #F8E8C6, 0 3px 8px rgba(23,41,70,.06);
}
.jm-home-palace .primary-button:hover, .jm-home-palace .secondary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    text-decoration: none;
}
.jm-home-palace .primary-button:focus-visible,
.jm-home-palace .secondary-button:focus-visible,
.jm-home-palace a:focus-visible,
.jm-home-palace button:focus-visible,
.jm-home-palace summary:focus-visible {
    outline: 3px solid #3A62A8;
    outline-offset: 4px;
}
.jm-home-palace button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.jm-home-tab-hint {
    font-size: .81rem;
    color: #3A62A8;
    margin: .6rem .25rem .25rem;
}
.jm-home-tabs, .jm-home-choice-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 0;
}
.jm-home-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: .55rem .2rem .95rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #C78A27 #FFF9E0;
}
.jm-home-tabs a,
.jm-home-choice-tabs a {
    flex: 1 0 auto;
    white-space: nowrap;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: #172946;
    background: linear-gradient(175deg, #FFF9E0, #EAF4FF);
    border: 2px solid #D4A047;
    border-radius: 11px;
    box-shadow: inset 0 0 0 2px #F8E8C6;
    padding: .7rem .85rem;
    scroll-snap-align: start;
}
.jm-home-tabs a[aria-current="page"],
.jm-home-choice-tabs a[aria-current="page"] {
    color: var(--jm-ink);
    background: linear-gradient(155deg, #FFF9E0 0%, #FFD978 38%, #FFC94E 78%, #F4D89A 100%);
    border-color: #A56A11;
    box-shadow: inset 0 0 0 2px #F4D89A, 0 4px 10px rgba(23,41,70,.12);
}
.jm-home-panel {
    border: 3px double #D4A047;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(255,253,248,.97), rgba(234,244,255,.70) 60%, rgba(255,239,252,.45));
    box-shadow: inset 0 0 0 3px #F8E8C6, 0 12px 34px rgba(23, 41, 70, .075);
    padding: clamp(1rem, 3vw, 2.2rem);
    min-height: 230px;
}
.jm-home-section-head { margin-bottom: 1.2rem; }
.jm-home-section-head h2 {
    color: var(--jm-ink);
    margin: .2rem 0 .4rem;
    font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.18 Georgia, serif;
}
.jm-home-section-head p { max-width: 69ch; line-height: 1.55; }
.jm-home-section-head .secondary-button { margin-top: .5rem; }
.jm-home-action-list { display: grid; gap: 1rem; }
.jm-home-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid #D4A047;
    border-left: 5px solid #C9688F;
    background: linear-gradient(130deg, #FFFDF8, #FFEFFC);
    border-radius: 11px;
    padding: clamp(.9rem, 2vw, 1.3rem);
}
.jm-home-action-card h3 { margin: .25rem 0; font: 700 1.25rem Georgia, serif; }
.jm-home-action-card p { margin: .4rem 0; }
.jm-home-application-group { margin: 1.35rem 0 1.6rem; }
.jm-home-group-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.jm-home-group-heading h3 { margin: 0; font: 700 1.3rem Georgia, serif; }
.jm-home-count {
    border-radius: 999px;
    background: #D6E9FF;
    border: 1px solid #D4A047;
    padding: .12rem .55rem;
    font-size: .82rem;
    font-weight: 800;
}
.jm-home-application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
.jm-home-application-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    background: linear-gradient(145deg, #FFFDF8, #FFF9E0);
    border: 2px solid #D4A047;
    border-radius: 14px;
    box-shadow: inset 0 0 0 3px #F8E8C6, 0 6px 12px rgba(23,41,70,.06);
    padding: clamp(.9rem, 2vw, 1.4rem);
}
.jm-home-application-card h4, .jm-home-application-card h3 {
    font: 700 1.3rem Georgia, serif;
    color: #172946;
    margin: .25rem 0;
    overflow-wrap: anywhere;
}
.jm-home-date { font-size: .84rem; color: #172946; margin: .25rem 0 .8rem; }
.jm-home-card-details {
    width: 100%;
    margin: .1rem 0 .8rem;
    border-block: 1px solid #E9C16B;
    padding: .55rem 0;
}
.jm-home-card-details summary { color: #3A62A8; font-weight: 700; cursor: pointer; }
.jm-home-card-details ul { padding-left: 1.2rem; margin: .6rem 0; }
.jm-home-card-details li { padding: .12rem 0; }
.jm-home-card-next { margin: .25rem 0 1rem; font-size: .93rem; line-height: 1.5; }
.jm-home-application-card > .primary-button,
.jm-home-application-card > .secondary-button { margin-top: auto; }
.jm-home-empty-state {
    text-align: center;
    border: 1px dashed #C78A27;
    border-radius: 16px;
    background: linear-gradient(145deg, #EAF4FF, #FFEFFC 58%, #FFF9E0);
    padding: clamp(1.2rem, 3vw, 2.4rem);
}
.jm-home-empty-state h3 { font: 700 1.3rem Georgia, serif; margin: .45rem auto; }
.jm-home-empty-state__symbol { font-size: 2rem; color: #A56A11; }
.jm-home-empty-state p { max-width: 62ch; margin: .6rem auto 1rem; }
.jm-home-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.2rem;
    margin: 1.35rem 0 0;
    border-top: 1px solid #D4A047;
    padding-top: 1rem;
}
.jm-home-shortcuts a { color: #3A62A8; font-weight: 700; }
.jm-home-choice-tabs { flex-wrap: wrap; margin: .3rem 0 1.1rem; }
.jm-home-choice-tabs a { flex: 0 1 auto; }
.jm-home-draft-note {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    padding: .85rem 1rem;
    margin: .5rem 0 1rem;
    border-radius: 12px;
    border: 1px solid #D4A047;
    background: #D6E9FF;
}
.jm-home-bottom-guidance {
    display: grid;
    justify-items: center;
    gap: .7rem;
    margin-top: 1.3rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 2px double #C78A27;
    border-radius: 14px;
    background: linear-gradient(140deg, #EAF4FF, #FFF9E0 58%, #FFEFFC);
    box-shadow: inset 0 0 0 3px #F8E8C6;
    text-align: center;
}
.jm-home-bottom-guidance p { max-width: 65ch; margin: 0; line-height: 1.5; }
.jm-home-bottom-guidance form { margin: 0; }
.jm-home-bottom-guidance .primary-button { max-width: 100%; }
.jm-home-panel .portal-panel {
    background: #FFFDF8;
    border: 2px solid #D4A047;
    border-radius: 15px;
    box-shadow: inset 0 0 0 3px #F8E8C6;
    margin-block: .6rem 1.25rem;
}
.jm-home-more-activity {
    margin-top: 1.3rem;
    border: 1px solid #D4A047;
    border-radius: 13px;
    padding: .75rem 1rem;
    background: #FFF9E0;
}
.jm-home-more-activity summary { cursor: pointer; font-weight: 800; color: #172946; }
.jm-home-more-activity nav { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; padding-top: 1rem; }
.jm-home-more-activity a { font-weight: 700; color: #3A62A8; }
.jm-home-more-activity a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
/* Honor the established card controls while making them comfortably tappable. */
.jm-home-panel .rescue-pet-card__actions button { min-height: 44px; }
.jm-home-panel .rescue-pet-card__frame { border-radius: 15px; }
.jm-home-panel .rescue-pet-card__rank { background: #D6E9FF; color: #172946; }
@media (max-width: 780px) {
    .jm-home-primary-action, .jm-home-action-card { grid-template-columns: minmax(0, 1fr); }
    .jm-home-primary-action__button { justify-content: stretch; }
    .jm-home-primary-action__button form, .jm-home-primary-action__button .primary-button,
    .jm-home-primary-action__button form button { width: 100%; }
    .jm-home-application-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .jm-home-palace { padding-inline: .6rem; }
    .jm-home-hero { padding: 1.5rem .8rem; border-radius: 16px; }
    .jm-home-hero::before, .jm-home-hero::after { display: none; }
    .jm-home-hero h1 { font-size: 2.25rem; }
    .jm-home-tabs a { flex: none; min-width: 125px; }
    .jm-home-tabs { margin-inline: -.1rem; }
    .jm-home-panel { padding: .95rem; }
    .jm-home-tab-hint { display: block; }
    .jm-home-choice-tabs a { flex: 1 1 auto; }
    .jm-home-primary-action { margin-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .jm-home-palace .primary-button, .jm-home-palace .secondary-button { transition: none; }
    .jm-home-palace .primary-button:hover, .jm-home-palace .secondary-button:hover { transform: none; }
    .jm-home-tabs { scroll-behavior: auto; }
}


/* JM01-A refinement after 390px/1440px screenshot review:
 * The first actionable content must not be buried under a huge hero.
 * Increase specificity to beat legacy .portal-page/.my-home-hero rules.
 */
html body .portal-page.my-home-page.jm-home-palace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: clamp(.6rem, 1.5vw, 1rem);
    padding-top: clamp(.5rem, 1.2vw, .9rem);
}
html body .portal-page.my-home-page.jm-home-palace > .portal-hero.my-home-hero.jm-home-hero {
    min-height: 0;
    width: 100%;
    display: block;
    margin: 0;
    padding: clamp(.85rem, 2vw, 1.5rem) clamp(1rem, 2.8vw, 2rem);
    border: 3px double var(--jm-ornamental-gold);
    border-radius: 19px;
    background:
        radial-gradient(circle at 7% 7%, #FFD9E6 0, transparent 27%),
        radial-gradient(circle at 91% 10%, #FFEFFC 0, transparent 26%),
        linear-gradient(120deg, #D6E9FF 0%, #EAF4FF 32%, #FFF9E0 65%, #FFEFFC 100%);
    box-shadow: inset 0 0 0 4px #F8E8C6, 0 7px 20px rgb(23 41 70 / 9%);
}
html body .jm-home-palace .jm-home-hero__inner {
    max-width: 790px;
}
html body .jm-home-palace .jm-home-crest {
    width: 32px;
    height: 32px;
    margin: 0 0 .15rem;
    font-size: .9rem;
}
html body .jm-home-palace .jm-home-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    color: var(--jm-ink);
    margin: .1rem 0 .35rem;
    letter-spacing: .005em;
}
html body .jm-home-palace .jm-home-hero p:not(.eyebrow) {
    font-size: clamp(.92rem, 1.2vw, 1.03rem);
    line-height: 1.4;
    margin: 0 auto;
}
html body .jm-home-palace .jm-home-hero .eyebrow {
    margin: .15rem 0 .3rem;
}
html body .jm-home-palace .jm-home-hero::before,
html body .jm-home-palace .jm-home-hero::after {
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    top: .5rem;
}
html body .jm-home-palace .account-workspace-nav {
    margin-bottom: 0;
    padding: .1rem .4rem;
    gap: .3rem 1rem;
}
html body .jm-home-palace .account-workspace-nav a {
    min-height: 40px;
    white-space: nowrap;
}
html body .jm-home-palace .jm-home-tab-hint { display: none; }
html body .jm-home-palace .my-home-sections.jm-home-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: .25rem .15rem .5rem;
    gap: .45rem;
    border: 0;
    scrollbar-width: thin;
}
html body .jm-home-palace .my-home-sections.jm-home-tabs > a {
    flex: 1 0 auto;
    min-height: 44px;
    white-space: nowrap;
}
html body .jm-home-palace .jm-home-panel { min-width: 0; }
@media (max-width: 800px) {
    html body .jm-home-palace .account-workspace-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        min-width: 0;
        max-width: 100%;
        scrollbar-width: thin;
    }
    html body .jm-home-palace .account-workspace-nav a {
        flex: 0 0 auto;
        padding-inline: .45rem;
    }
    html body .jm-home-palace .my-home-sections.jm-home-tabs > a {
        flex: 0 0 auto;
        padding-inline: .85rem;
    }
    html body .jm-home-palace .jm-home-tab-hint {
        display: block;
        margin: 0;
        color: #172946;
        font-size: .8rem;
    }
}
@media (max-width: 520px) {
    html body .portal-page.my-home-page.jm-home-palace {
        padding-top: .35rem;
        gap: .55rem;
    }
    html body .portal-page.my-home-page.jm-home-palace > .portal-hero.my-home-hero.jm-home-hero {
        padding: .8rem .65rem .9rem;
        border-radius: 14px;
    }
    html body .jm-home-palace .jm-home-crest { display: none; }
    html body .jm-home-palace .jm-home-hero h1 { font-size: 2rem; }
    html body .jm-home-palace .jm-home-hero .eyebrow {
        font-size: .69rem;
        letter-spacing: .045em;
    }
    html body .jm-home-palace .jm-home-hero p:not(.eyebrow) {
        font-size: .93rem;
        line-height: 1.35;
    }
    html body .jm-home-palace .account-workspace-nav a { min-height: 40px; }
    html body .jm-home-palace .my-home-sections.jm-home-tabs > a { min-height: 44px; }
    html body .jm-home-palace .jm-home-primary-action {
        padding: .85rem;
        margin: .2rem 0;
    }
}


/* JM30-A Winter Palace finish — scoped remedy for legacy global
 * royal-animal-pages.css !important portal-hero reset.
 * Do not weaken the global reset or affect staff/other public pages.
 */
html body main .portal-page.my-home-page.jm-home-palace > .portal-hero.my-home-hero.jm-home-hero {
    background:
        radial-gradient(ellipse at 0% 100%, rgb(247 175 201 / 33%), transparent 33%),
        radial-gradient(ellipse at 100% 15%, rgb(255 230 165 / 48%), transparent 32%),
        repeating-linear-gradient(108deg, transparent 0 25px, rgb(255 255 255 / 9%) 26px 27px),
        linear-gradient(120deg, #D6E9FF 0%, #EAF4FF 29%, #FFF9E0 67%, #FFEFFC 100%) !important;
    border: 3px double #C78A27 !important;
    border-radius: 18px !important;
    box-shadow:
        inset 0 0 0 3px #F8E8C6,
        inset 0 0 0 5px rgb(212 160 71 / 55%),
        inset 0 14px 25px rgb(255 255 255 / 45%),
        0 8px 22px rgb(23 41 70 / 12%) !important;
    padding: clamp(.95rem, 2.15vw, 1.65rem) clamp(1rem, 3vw, 2.2rem) !important;
}
html body main .jm-home-palace > .jm-home-hero h1 {
    color: #172946 !important;
    text-shadow: 0 1px 0 #FFFDF8, 0 2px 0 rgb(212 160 71 / 25%);
}
html body main .jm-home-palace > .jm-home-hero p {
    color: #172946 !important;
}
html body .jm-home-palace .jm-home-panel {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 10% 0%, rgb(255 230 165 / 20%), transparent 43%),
        radial-gradient(ellipse at 90% 100%, rgb(247 175 201 / 18%), transparent 42%),
        linear-gradient(145deg, #FFFDF8, #EAF4FF 64%, #FFF9E0);
    border: 3px double #C78A27;
    box-shadow:
        inset 0 0 0 3px #F8E8C6,
        inset 0 0 0 5px rgb(212 160 71 / 28%),
        0 10px 30px rgb(23 41 70 / 8%);
}
html body .jm-home-palace .jm-home-panel::before,
html body .jm-home-palace .jm-home-panel::after {
    content: "❦";
    position: absolute;
    top: .3rem;
    z-index: 0;
    font-size: clamp(2rem, 3.1vw, 3.6rem);
    line-height: 1;
    color: #C78A27;
    opacity: .38;
    pointer-events: none;
    user-select: none;
}
html body .jm-home-palace .jm-home-panel::before { right: .5rem; }
html body .jm-home-palace .jm-home-panel::after { left: .5rem; transform: scaleX(-1); }
html body .jm-home-palace .jm-home-panel > * {
    position: relative;
    z-index: 1;
}
html body .jm-home-palace .jm-home-section-head {
    padding-bottom: .5rem;
}
html body .jm-home-palace .jm-home-section-head::after {
    content: "";
    display: block;
    width: min(18rem, 58%);
    height: 3px;
    margin-top: .85rem;
    border-radius: 100%;
    background: linear-gradient(90deg, #A56A11, #F8E8C6 30%, #C78A27 62%, transparent 100%);
}
html body .jm-home-palace .jm-home-application-card {
    background: linear-gradient(155deg, #FFFDF8, #EAF4FF 64%, #FFEFFC);
    border-color: #C78A27;
    box-shadow:
        inset 0 0 0 3px #F8E8C6,
        inset 0 3px 0 rgb(255 255 255 / 60%),
        0 6px 15px rgb(23 41 70 / 9%);
}
html body .jm-home-palace .jm-home-empty-state {
    border: 1px solid #D4A047;
    padding: clamp(.95rem, 2.1vw, 1.55rem);
    box-shadow: inset 0 0 0 3px rgb(248 232 198 / 70%);
}
@media (max-width: 520px) {
    html body main .portal-page.my-home-page.jm-home-palace > .portal-hero.my-home-hero.jm-home-hero {
        padding: .75rem .7rem .9rem !important;
        border-radius: 12px !important;
    }
    html body .jm-home-palace .jm-home-panel::before,
    html body .jm-home-palace .jm-home-panel::after { display: none; }
    html body .jm-home-palace .jm-home-empty-state {
        padding: 1rem .75rem;
    }
}
@media (prefers-contrast: more) {
    html body .jm-home-palace .jm-home-application-card,
    html body .jm-home-palace .jm-home-panel {
        background: #FFFDF8;
    }
    html body .jm-home-palace .jm-home-panel::before,
    html body .jm-home-palace .jm-home-panel::after { display: none; }
}


/* JM01 first-screen action and JM30 single-card balance, 2026-11-19.
 * Keep ceremonial borders but put a real next action ahead of decoration.
 */
@media (min-width: 801px) {
    html body .jm-home-palace .jm-home-application-grid:has(> :only-child) {
        grid-template-columns: minmax(0, min(100%, 44rem));
        justify-content: center;
    }
}
/* The optional bug-reporter prompt blocks task text on narrow My Home
 * screens. Its accessible cat-button and full reporting dialog remain.
 * This override is ONLY active where My Home is rendered. */
@media (max-width: 520px) {
    body:has(.jm-home-palace) .jm-kitty-report {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
    body:has(.jm-home-palace) .jm-kitty-report__prompt {
        display: none !important;
    }
    html body .portal-page.my-home-page.jm-home-palace {
        gap: .4rem;
    }
    html body main .portal-page.my-home-page.jm-home-palace > .portal-hero.my-home-hero.jm-home-hero {
        padding: .58rem .7rem .68rem !important;
    }
    html body .jm-home-palace .jm-home-hero h1 {
        margin: .08rem 0 .18rem;
        font-size: 1.9rem;
        line-height: 1.05;
    }
    html body .jm-home-palace .jm-home-hero p:not(.eyebrow) {
        line-height: 1.28;
        font-size: .9rem;
    }
    html body .jm-home-palace .account-workspace-nav {
        padding: 0 .15rem;
    }
    html body .jm-home-palace .jm-home-tab-hint {
        font-size: .74rem;
        margin: .15rem .2rem 0;
    }
    html body .jm-home-palace .my-home-sections.jm-home-tabs {
        padding: .15rem .1rem .3rem;
    }
    html body .jm-home-palace .my-home-sections.jm-home-tabs > a {
        min-height: 44px;
        padding: .55rem .75rem;
    }
    html body .jm-home-palace .jm-home-panel {
        padding: .72rem .72rem 1rem;
    }
    html body .jm-home-palace .jm-home-section-head {
        margin-bottom: .55rem;
        padding-bottom: .1rem;
    }
    html body .jm-home-palace .jm-home-section-head h2 {
        font-size: 1.55rem;
        line-height: 1.08;
        margin: .1rem 0 .2rem;
    }
    html body .jm-home-palace .jm-home-section-head p:not(.eyebrow) {
        margin: .25rem 0;
        line-height: 1.32;
        font-size: .92rem;
    }
    html body .jm-home-palace .jm-home-section-head::after {
        margin-top: .45rem;
        height: 2px;
    }
    html body .jm-home-palace .jm-home-action-list {
        gap: .65rem;
    }
    html body .jm-home-palace .jm-home-action-card {
        padding: .7rem .8rem;
        gap: .55rem;
    }
    html body .jm-home-palace .jm-home-action-card h3 {
        font-size: 1.13rem;
        line-height: 1.18;
        margin: .18rem 0;
    }
    html body .jm-home-palace .jm-home-action-card p {
        line-height: 1.35;
        margin: .22rem 0;
    }
    html body .jm-home-palace .jm-home-action-card .primary-button {
        min-height: 44px;
        padding: .58rem .78rem;
    }
}

/* Compact only the personal destinations on narrow My Home screens.
 * Full accessible labels remain on links, and other account workspaces
 * retain their existing desktop/phone presentation. */
@media (max-width: 520px) {
    html body .jm-home-palace .account-workspace-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: .25rem;
        max-width: 100%;
        padding: .05rem .2rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    html body .jm-home-palace .account-workspace-nav a {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        min-height: 44px;
        font-size: .84rem;
        padding: .32rem .1rem;
        white-space: nowrap;
    }
    html body .jm-home-palace .account-workspace-nav .account-nav-label-full {
        display: none;
    }
    html body .jm-home-palace .account-workspace-nav .account-nav-label-mobile {
        display: inline !important;
    }
}

/* JM30-A mobile account destinations: expose the offscreen staff link,
 * preserve visible keyboard focus within the scrolling account row,
 * and do not change any other account workspace. */
html body .jm-home-palace .jm-home-account-scroll-hint { display: none; }
@media (max-width: 800px) {
    html body .jm-home-palace .account-workspace-nav {
        padding-block: .6rem;
        scroll-padding-inline: .75rem;
    }
    html body .jm-home-palace .jm-home-account-scroll-hint {
        display: block;
        color: #172946;
        font-size: .76rem;
        line-height: 1.4;
        margin: .12rem .3rem .5rem;
    }
}


/* JM30-A palette acceptance — My Home only.
 * Gold is the primary action. Powder/cloud blue is the secondary action.
 * The saved-cat controls previously inherited a NAVY card/body/rank badge
 * from professional_workflows.css; keep that library's other pages unchanged.
 * All color fills here use the owner's approved 28 blue/pink/yellow/gold tokens.
 */
html body .jm-home-palace .my-home-section .rescue-pet-card__frame {
    background: linear-gradient(160deg, var(--jm-silk), var(--jm-ivory-butter));
    color: var(--jm-ink);
    border: 2px solid var(--jm-ornamental-gold);
    box-shadow: inset 0 0 0 2px var(--jm-champagne-gold),
                0 7px 18px rgb(23 41 70 / 10%);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__body {
    background: linear-gradient(155deg, var(--jm-silk), var(--jm-petal-pink) 65%, var(--jm-ivory-butter));
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__photo-shell {
    background: var(--jm-powder-blue);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__photo-shell::after {
    background: linear-gradient(180deg, transparent, rgb(165 106 17 / 14%));
}
html body .jm-home-palace .my-home-section .rescue-pet-card__identity,
html body .jm-home-palace .my-home-section .rescue-pet-card__identity a {
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__identity a:hover {
    color: var(--jm-royal-velvet);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__rank {
    background: linear-gradient(145deg, var(--jm-cream-yellow), var(--jm-butter-yellow));
    border: 2px solid var(--jm-ornamental-gold);
    color: var(--jm-ink);
    box-shadow: 0 3px 9px rgb(23 41 70 / 10%);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__status {
    color: var(--jm-ink);
    background: var(--jm-powder-blue);
    border: 1px solid var(--jm-gilded-gold);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__select,
html body .jm-home-palace .my-home-section .rescue-pet-card__more > summary,
html body .jm-home-palace .my-home-section .rescue-pet-card__subtitle,
html body .jm-home-palace .my-home-section .rescue-pet-card__summary,
html body .jm-home-palace .my-home-section .rescue-pet-card__temperament {
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__more > summary {
    border-color: var(--jm-gilded-gold);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__facts div {
    color: var(--jm-ink);
    background: var(--jm-ivory-butter);
    border: 1px solid var(--jm-gilded-gold);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__facts :is(dt, dd),
html body .jm-home-palace .my-home-section .rescue-pet-card__temperament strong {
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__compatibility span {
    color: var(--jm-ink);
    background: var(--jm-cloud-blue);
    border: 1px solid var(--jm-gilded-gold);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__actions :is(a, button) {
    color: var(--jm-ink);
    background: linear-gradient(145deg, var(--jm-cloud-blue), var(--jm-sky-blue));
    border: 2px solid var(--jm-gilded-gold);
    border-radius: 10px;
    backdrop-filter: none;
}
html body .jm-home-palace .my-home-section .rescue-pet-card__actions :is(a, button):hover {
    background: linear-gradient(145deg, var(--jm-cream-yellow), var(--jm-butter-yellow));
    border-color: var(--jm-ornamental-gold);
}
html body .jm-home-palace .my-home-section .rescue-pet-card__actions .my-home-remove-button,
html body .jm-home-palace .my-home-section .rescue-pet-card__actions .my-home-remove-button:hover {
    background: linear-gradient(145deg, var(--jm-petal-pink), var(--jm-blush-pink));
    border: 2px solid var(--jm-antique-rose);
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .my-home-guidance {
    background: var(--jm-ivory-butter);
    border: 1px solid var(--jm-gilded-gold);
}
html body .jm-home-palace .my-home-section .my-home-guidance > span {
    background: var(--jm-butter-yellow);
    color: var(--jm-ink);
}
html body .jm-home-palace .my-home-section .my-home-guidance p {
    color: var(--jm-ink);
}
@media (prefers-reduced-motion: reduce) {
    html body .jm-home-palace .my-home-section .rescue-pet-card__frame {
        transition: none;
    }
    html body .jm-home-palace .my-home-section .rescue-pet-card__frame:hover,
    html body .jm-home-palace .my-home-section .rescue-pet-card__frame:focus-within {
        transform: none;
    }
}
