/* New hub surfaces use the Painel's existing tokens and card geometry.
   No body/app background, palette, or original profile styles are changed. */
#mainTabsNav.amlealt-primary-nav .tab-button:not([data-primary-nav]),
#mainTabsNav.amlealt-primary-nav .tab-button[hidden] { display: none !important; }
#mainTabsNav.amlealt-primary-nav .tab-button[data-primary-nav] { touch-action: manipulation !important; }
#mainTabsNav.amlealt-primary-nav .innovative-tab-label { overflow-wrap: normal; }
body.amlealt-hub-exploring #app-view > .laco-strip,
body.amlealt-hub-searching #app-view > .laco-strip { display: none !important; }
.amlealt-hub-page { background: transparent; width:min(1080px,100%); margin-inline:auto; padding-bottom:90px; }
.amlealt-hub-page button { scroll-margin-block:110px; }
.amlealt-hub-page .amlealt-hub-heading { padding:24px 4px 32px;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important; }
.amlealt-hub-page .amlealt-hub-heading { align-items:flex-start; text-align:left; }
.amlealt-hub-heading .dashboard-dynamic-phrase { max-width:800px;margin:4px 0 8px;text-align:left;font-size:clamp(25px,3.4vw,38px);font-weight:750;line-height:1.25;letter-spacing:-.035em;color:var(--text-primary,#0f172a); }
.amlealt-hub-page .dashboard-chip { color:var(--text-primary,#0f172a);min-height:38px;background:var(--surface-primary,#fff);border:1px solid var(--border-subtle,#e2e8f0);box-shadow:none;font-size:12px;font-weight:650;padding:8px 14px;gap:7px; }
.amlealt-hub-intro { margin:0;color:var(--text-secondary,#64748b);font-size:13px;line-height:1.6;font-weight:500; }
.amlealt-hub-heading .amlealt-hub-intro { text-align:left; }
.amlealt-hub-heading > button { justify-self:start; }
.amlealt-hub-page .dashboard-grid { gap:20px; }
.amlealt-hub-page .dashboard-card { min-width:0;overflow-wrap:anywhere;background:var(--surface-primary,#fff);border:1px solid var(--border-subtle,#e2e8f0);border-radius:24px;padding:26px;box-shadow:none; }
.amlealt-hub-page .dashboard-card :is(h2,h3) { display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.5;font-weight:700;letter-spacing:-.015em;margin:0 0 16px;color:var(--text-primary,#0f172a); }
.amlealt-hub-page .amlealt-hub-search { margin-bottom:20px; }
.amlealt-hub-search label { display:block;font-size:14px;font-weight:650;color:var(--text-primary,#0f172a);margin-bottom:12px; }
.amlealt-hub-search .form-input { font-size:16px; }
.amlealt-explore-categories { display:flex;flex-wrap:wrap;gap:8px;margin-top:16px; }
.amlealt-hub-page .amlealt-explore-filter { width:auto;min-height:40px;white-space:normal;cursor:pointer; }
.amlealt-hub-page .amlealt-explore-filter[aria-pressed="true"] { border-color:var(--secondary);color:var(--secondary); }
.amlealt-explore-description { margin:-4px 0 16px;color:var(--text-secondary,#64748b);font-size:12px;line-height:1.6; }
.amlealt-explore-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px; }
.amlealt-explore-section.full .amlealt-explore-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.amlealt-hub-page .amlealt-explore-card { display:flex;align-items:flex-start;gap:10px;width:100%;min-width:0;min-height:64px;border:0;border-radius:var(--radius-md);padding:12px 4px;background:transparent;color:var(--text-primary,#0f172a);font:inherit;text-align:left;cursor:pointer; }
.amlealt-explore-card > span:nth-child(2) { min-width:0;flex:1; }
.amlealt-explore-card strong { display:block;font-size:13px;font-weight:650;line-height:1.5; }
.amlealt-explore-card small { display:block;margin-top:3px;font-size:11px;font-weight:500;line-height:1.5;color:var(--text-secondary,#64748b); }
.amlealt-explore-icon { width:22px;height:22px;flex:0 0 22px;color:var(--secondary); }
.amlealt-explore-icon svg { width:22px;height:22px; }
.amlealt-explore-arrow { display:none; }
.amlealt-explore-card .amlealt-explore-plus { display:inline-block;font-size:9px;color:var(--secondary);margin:0 0 0 4px; }
.amlealt-hub-page .amlealt-explore-more { min-height:40px;display:inline-flex;align-items:center;margin-top:8px;border:0;padding:8px 0;background:transparent;color:var(--secondary);font:inherit;font-size:12px;font-weight:650;cursor:pointer; }
.amlealt-explore-empty { grid-column:1/-1;padding:16px 0;color:var(--text-secondary,#64748b);font-size:13px;line-height:1.6; }
.amlealt-hub-page .amlealt-account-identity { display:flex;align-items:center;gap:18px; }
#amlealtAccountAvatar { display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;border:1px solid var(--border-subtle,#e2e8f0);color:var(--secondary);font-size:23px;font-weight:650; }
.amlealt-hub-page #amlealtAccountName { margin:0 0 4px;font-size:18px; }
.amlealt-hub-page .amlealt-account-option { display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:64px;padding:14px 0;border:0;border-bottom:1px solid var(--border-subtle,#e2e8f0);background:transparent;color:var(--text-primary,#0f172a);font:inherit;text-align:left;cursor:pointer; }
.amlealt-account-option:last-child { border-bottom:0; }
.amlealt-account-option strong,.amlealt-account-pet strong { display:block;font-size:14px;font-weight:650;line-height:1.5; }
.amlealt-account-option small,.amlealt-account-pet small { display:block;margin-top:3px;color:var(--text-secondary,#64748b);font-size:12px;font-weight:500;line-height:1.5; }
.amlealt-account-option > span:last-child { color:var(--secondary);font-size:12px;flex-shrink:0; }
.amlealt-account-pet { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px; }
.amlealt-hub-page .amlealt-account-pet-profile { flex:1;min-width:0;border:0;background:transparent;color:var(--text-primary,#0f172a);padding:12px 0;font:inherit;text-align:left;cursor:pointer; }
.amlealt-hub-page .amlealt-account-all-settings { padding:0;min-height:44px; }
.amlealt-hub-page :is(button,input):focus-visible { outline:2px solid var(--secondary);outline-offset:3px; }
.amlealt-hub-page button:disabled { opacity:.55;cursor:default; }
.amlealt-hub-page [hidden] { display:none!important; }
.amlealt-hub-sr-only { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }
@media(max-width:700px) {
    .amlealt-hub-page .dashboard-grid { grid-template-columns:1fr;gap:14px; }
    .amlealt-hub-page .dashboard-card { padding:22px 18px;border-radius:22px; }
    .amlealt-hub-page .amlealt-hub-heading { padding:20px 2px 26px; }
    .amlealt-explore-section.full .amlealt-explore-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(hover:hover) { .amlealt-hub-page .amlealt-explore-card:hover { background:rgba(var(--secondary-rgb),.06); } }

/* Category links land on the resources, below the existing floating header. */
.amlealt-hub-page .amlealt-explore-section { scroll-margin-top:120px; }
#tab-explorar[data-explore-category-active="true"] #amlealtExploreContent { min-height:calc(100svh - 180px);align-content:start; }

/* Compact search results stay immediately below the Explore field. */
.amlealt-hub-page .amlealt-explore-suggestions { margin-top:10px;padding:12px;border:1px solid var(--border-subtle,#e2e8f0);border-radius:var(--radius-md);background:var(--surface-primary,#fff); }
.amlealt-hub-page .amlealt-explore-suggestions h3 { font-size:12px;margin:0 0 8px; }
.amlealt-explore-suggestions-list { max-height:min(340px,48svh);overflow-y:auto;overscroll-behavior:contain;scroll-padding:8px; }
.amlealt-hub-page .amlealt-explore-suggestions .amlealt-explore-card { min-height:48px;padding:10px 4px; }
.amlealt-explore-suggestions .amlealt-explore-card + .amlealt-explore-card { border-top:1px solid var(--border-subtle,#e2e8f0);border-radius:0; }
.amlealt-explore-suggestions .amlealt-explore-empty { margin:0;padding:8px 0; }

/* Full navigation rail for desktop and landscape tablets. */
@media (min-width: 900px) and (orientation: landscape) {
    body.interface-mode-innovative .main-container { display:grid!important; grid-template-columns:232px minmax(0,1fr); grid-template-rows:auto auto; align-items:start; column-gap:24px; max-width:1500px; margin-inline:auto; }
    #mainTabsNav.amlealt-primary-nav { grid-column:1; grid-row:1 / span 30; position:sticky; top:18px; bottom:auto; align-self:start; width:100%; height:calc(100dvh - 36px); max-height:calc(100dvh - 36px); display:flex!important; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:5px; margin:0; padding:10px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; border-radius:18px; }
    #mainTabsNav .tab-button { display:flex!important; flex:0 0 auto; width:100%; min-width:0; min-height:46px; height:auto; justify-content:flex-start; flex-direction:row; gap:12px; padding:10px 12px; border-radius:12px; text-align:left; white-space:normal; scroll-snap-align:none; }
    #mainTabsNav .tab-button[hidden] { display:none!important; }
    #mainTabsNav .innovative-tab-icon { width:21px; height:21px; flex:0 0 21px; }
    #mainTabsNav .innovative-tab-icon svg { width:100%; height:100%; }
    #mainTabsNav .innovative-tab-label { font-size:13px; line-height:1.35; text-align:left; }
    .main-container > .desktop-block-rail, .main-container > .tab-content { grid-column:2; min-width:0; width:100%; }
    .main-container > .desktop-block-rail { grid-row:1; } .main-container > .tab-content { grid-row:2; }
}
@media (max-width: 899px), (orientation: portrait) { .header-pet-switcher-menu { scrollbar-width:none; } .header-pet-switcher-menu::-webkit-scrollbar { display:none; } }
.header-pet-switcher-wrap { position:relative; min-width:0; }
.header-pet-switcher-wrap .header-pet-summary { width:100%; border:0; font:inherit; text-align:left; cursor:pointer; }
.header-pet-switcher-menu { position:absolute; z-index:1200; top:calc(100% + 10px); left:0; display:flex; align-items:flex-start; gap:8px; width:min(520px,calc(100vw - 32px)); max-width:calc(100vw - 32px); padding:12px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; border:1px solid var(--border-subtle,#e2e8f0); border-radius:16px; background:var(--surface-primary,#fff); box-shadow:0 18px 50px rgba(15,23,42,.16); scrollbar-width:thin; }
.header-pet-switcher-menu[hidden] { display:none!important; }
.header-pet-switcher-item,.header-pet-switcher-add { display:flex; flex:0 0 76px; min-width:0; min-height:94px; flex-direction:column; align-items:center; justify-content:flex-start; gap:7px; padding:4px 2px; border:1px solid transparent; border-radius:12px; background:transparent; color:var(--text-primary,#1f2937); font:inherit; cursor:pointer; }
.header-pet-switcher-item.is-current { background:rgba(var(--secondary-rgb),.08); border-color:rgba(var(--secondary-rgb),.28); }
.header-pet-switcher-avatar,.header-pet-switcher-add-icon { display:grid; place-items:center; width:52px; height:52px; flex:0 0 52px; border-radius:50%; overflow:hidden; background:var(--surface-secondary,#f1f3f5); color:var(--secondary); font-size:19px; font-weight:700; background-position:center; background-size:cover; }
.header-pet-switcher-add-icon { border:1px dashed var(--border-strong,#aab2bf); font-size:28px; font-weight:400; }
.header-pet-switcher-name,.header-pet-switcher-add > span:last-child { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; font-size:11px; line-height:1.35; }
.header-pet-switcher-empty { align-self:center; padding:16px; color:var(--text-secondary); font-size:12px; }
.amlealt-smart-search-page { max-width:980px; }
.amlealt-smart-search-box { max-width:820px; margin-inline:auto; }
.amlealt-smart-search-box > label { display:block; margin-bottom:10px; font-size:14px; font-weight:650; color:var(--text-primary); }
.amlealt-smart-search-field { display:flex; align-items:center; gap:12px; min-height:58px; padding:0 16px; border:1px solid var(--border-subtle); border-radius:18px; background:var(--surface-secondary,#f4f5f7); }
.amlealt-smart-search-field svg { width:20px; height:20px; flex:0 0 20px; color:var(--text-secondary); }
.amlealt-smart-search-field .form-input { min-width:0; width:100%; border:0; background:transparent; box-shadow:none; font-size:16px; }
.amlealt-smart-search-field .form-input:focus { outline:0; box-shadow:none; }
.amlealt-smart-search-caption { margin:10px 2px 0; color:var(--text-secondary); font-size:12px; }
.amlealt-smart-search-results { max-width:820px; margin:18px auto 0; }
.amlealt-smart-search-section-title { margin:0 0 12px; font-size:14px; font-weight:700; color:var(--text-primary); }
.amlealt-smart-search-results .amlealt-explore-card { min-height:56px; border-bottom:1px solid var(--border-subtle); }
.amlealt-smart-search-results .amlealt-explore-card:last-child { border-bottom:0; }
.amlealt-smart-search-empty { color:var(--text-secondary); font-size:13px; }
@media (min-width: 900px) and (orientation: landscape) { #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav .tab-button:not([data-primary-nav]) { display:flex!important; } #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav .tab-button[hidden] { display:none!important; } }
.header-pet-switcher-wrap .header-pet-summary { background:transparent; color:inherit; padding:0; border-radius:12px; }


/* Amlealt Fluid Experience: persistent desktop rail with a compact icon-only state. */
.amlealt-nav-collapse-toggle { display:none; }
.amlealt-nav-collapse-toggle[hidden] { display:none!important; }
@media (min-width: 900px) and (orientation: landscape) {
    body.interface-mode-innovative .main-container { transition:grid-template-columns .24s cubic-bezier(.2,.75,.25,1); }
    body.interface-mode-innovative .main-container.amlealt-nav-is-collapsed { grid-template-columns:76px minmax(0,1fr)!important; }
    #mainTabsNav.amlealt-primary-nav {
        position:sticky!important;top:18px!important;align-self:start!important;width:100%!important;min-width:0!important;
        height:calc(100dvh - 36px)!important;max-height:calc(100dvh - 36px)!important;
        overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;z-index:30;
    }
    #mainTabsNav .amlealt-nav-collapse-toggle {
        position:sticky;top:0;z-index:4;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;gap:10px;
        width:100%;min-height:44px;margin:0 0 6px;padding:10px 12px;border:0;border-radius:12px;
        background:var(--surface-primary,#fff);color:var(--text-secondary,#64748b);font:inherit;font-size:12px;font-weight:650;
        text-align:left;cursor:pointer;box-shadow:0 1px 0 var(--border-subtle,rgba(148,163,184,.18));transition:background .18s ease,color .18s ease;
    }
    #mainTabsNav .amlealt-nav-collapse-toggle:hover { background:var(--surface-secondary,#f4f5f7);color:var(--text-primary,#0f172a); }
    #mainTabsNav .amlealt-nav-collapse-toggle svg { width:18px;height:18px;flex:0 0 18px; }
    #mainTabsNav.amlealt-nav-collapsed { width:100%!important;min-width:0!important;padding-inline:8px!important; }
    #mainTabsNav.amlealt-nav-collapsed .tab-button { justify-content:center!important;gap:0!important;padding-inline:8px!important; }
    #mainTabsNav.amlealt-nav-collapsed .innovative-tab-label,
    #mainTabsNav.amlealt-nav-collapsed .amlealt-nav-collapse-label { display:none!important; }
    #mainTabsNav.amlealt-nav-collapsed .innovative-tab-icon { margin:0!important; }
    #mainTabsNav.amlealt-nav-collapsed .amlealt-nav-collapse-toggle { justify-content:center;padding-inline:8px; }
}
@media (max-width: 899px), (orientation: portrait) {
    .amlealt-nav-collapse-toggle { display:none!important; }
    .main-container.amlealt-nav-is-collapsed { grid-template-columns:1fr!important; }
}

/* The main search page is intentionally quieter than its search surface. */
.amlealt-smart-search-page { max-width:1040px; }
.amlealt-smart-search-page .amlealt-hub-heading .dashboard-dynamic-phrase {
    max-width:none;margin:2px 0 4px;font-size:clamp(19px,1.8vw,23px);line-height:1.3;font-weight:680;letter-spacing:-.025em;
}
.amlealt-smart-search-page .amlealt-hub-heading { padding-bottom:18px; }
.amlealt-smart-search-box { width:100%;max-width:none;margin:0 auto;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important; }
.amlealt-smart-search-field {
    position:relative;min-height:76px;padding:0 22px;gap:16px;border-radius:22px;
    background:var(--surface-secondary,#f4f5f7);border:1px solid var(--border-subtle,#e2e8f0);transition:border-color .2s ease,background .2s ease;
}
.amlealt-smart-search-field:focus-within { border-color:var(--border-subtle,#e2e8f0);outline:0;box-shadow:none; }
.amlealt-smart-search-field svg { width:22px;height:22px;flex:0 0 22px; }
.amlealt-smart-search-field .form-input {
    min-height:72px;padding:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
    font-size:18px;line-height:1.4;-webkit-appearance:none;appearance:none;
}
.amlealt-smart-search-field .form-input:focus,
.amlealt-smart-search-field .form-input:focus-visible { border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important; }
.amlealt-smart-search-field:has(.form-input:focus-visible) { outline:1px solid var(--border-strong,#aab2bf);outline-offset:2px; }
.amlealt-smart-search-placeholder {
    position:absolute;left:60px;right:22px;top:50%;overflow:hidden;color:var(--text-secondary,#64748b);
    font-size:16px;font-weight:500;line-height:1.4;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;
    transform:translateY(-50%);transition:opacity .3s ease,transform .3s ease,filter .3s ease;
}
.amlealt-smart-search-placeholder[hidden] { display:none!important; }
.amlealt-smart-search-placeholder.smoke-out { opacity:0;filter:blur(4px);transform:translateY(calc(-50% + 5px)); }
.amlealt-smart-search-placeholder.smoke-in { animation:amlealt-search-placeholder-in .42s ease both; }
@keyframes amlealt-search-placeholder-in {
    from { opacity:0;filter:blur(4px);transform:translateY(calc(-50% + 5px)); }
    to { opacity:1;filter:blur(0);transform:translateY(-50%); }
}
.amlealt-smart-search-caption { margin:12px 2px 0;color:var(--text-secondary,#64748b);font-size:12px; }
.amlealt-smart-search-results { max-width:none;margin:22px auto 0; }
@media(max-width:700px) {
    .amlealt-smart-search-field { min-height:66px;padding-inline:16px;gap:12px;border-radius:19px; }
    .amlealt-smart-search-field .form-input { min-height:64px;font-size:16px; }
    .amlealt-smart-search-placeholder { left:50px;right:16px;font-size:14px; }
}

/* Skeletons keep the final content geometry visible while remote data resolves. */
.amlealt-skeleton-line,.amlealt-skeleton-circle {
    display:block;flex:0 0 auto;
    background:linear-gradient(100deg,var(--surface-secondary,#edf0f3) 18%,var(--surface-primary,#fff) 48%,var(--surface-secondary,#edf0f3) 78%);
    background-size:220% 100%;animation:amlealt-skeleton-shimmer 1.35s ease-in-out infinite;
}
.amlealt-skeleton-line { height:10px;border-radius:999px;max-width:100%; }
.amlealt-skeleton-circle { width:var(--skeleton-size,42px);height:var(--skeleton-size,42px);border-radius:50%; }
@keyframes amlealt-skeleton-shimmer { 0% { background-position:100% 0; } 100% { background-position:-120% 0; } }
.amlealt-skeleton-feed { display:grid;gap:14px;width:100%; }
.amlealt-skeleton-post { display:grid;gap:16px;padding:16px 0;border-bottom:1px solid var(--border-subtle,#e2e8f0); }
.amlealt-skeleton-post:last-child { border-bottom:0; }
.amlealt-skeleton-post-head { display:flex;align-items:center;gap:12px; }
.amlealt-skeleton-copy { display:grid;flex:1;gap:9px;min-width:0; }
.amlealt-skeleton-post-body { display:grid;gap:9px;padding-left:54px; }
.amlealt-skeleton-comments,.amlealt-skeleton-connections { display:grid;gap:14px;padding:8px 0; }
.amlealt-skeleton-comment,.amlealt-skeleton-connection { display:flex;align-items:flex-start;gap:10px; }
.amlealt-skeleton-comment .amlealt-skeleton-copy { gap:7px; }
.amlealt-skeleton-connection { align-items:center;padding:4px 0; }
.amlealt-profile-skeleton {
    display:none;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:10px 14px;margin:0 0 18px;padding:14px;
    border:1px solid var(--border-subtle,#e2e8f0);border-radius:18px;background:var(--surface-primary,#fff);
}
.amlealt-profile-skeleton-copy { display:grid;gap:9px; }
.amlealt-profile-skeleton > .amlealt-skeleton-line:nth-last-child(2),
.amlealt-profile-skeleton > .amlealt-skeleton-line:last-child { grid-column:1/-1; }
#minhaProfileView #minhaProfileLoading { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
#minhaProfileView[aria-busy="true"] .amlealt-profile-skeleton { display:grid; }
.amlealt-auth-skeleton {
    display:flex;align-items:center;justify-content:center;gap:14px;min-width:220px;padding:18px 22px;
    border:1px solid var(--border-subtle,#e2e8f0);border-radius:20px;background:var(--surface-primary,#fff);
}
.amlealt-auth-skeleton-lines { display:grid;gap:10px; }
.amlealt-auth-skeleton .amlealt-skeleton-line { height:10px; }
@media(prefers-reduced-motion:reduce) {
    .amlealt-skeleton-line,.amlealt-skeleton-circle { animation:none;background:var(--surface-secondary,#edf0f3); }
    .amlealt-smart-search-placeholder { transition:none; }
    .amlealt-smart-search-placeholder.smoke-in { animation:none; }
}

/* The pet picker remains a horizontal, touch-friendly strip with readable names. */
.header-pet-switcher-menu { width:min(640px,calc(100vw - 32px)); }
.header-pet-switcher-item,.header-pet-switcher-add { flex-basis:92px;min-height:100px; }
.header-pet-switcher-name,.header-pet-switcher-add > span:last-child { max-width:100%;padding-inline:3px; }


/* Pesquisa Inteligente: componente próprio, com a mesma linguagem visual da Mini Pesquisa. */
.amlealt-smart-search-page .amlealt-hub-heading {
    padding:16px 4px 12px!important;
    margin:0!important;
    gap:0!important;
}
.amlealt-smart-search-page .amlealt-hub-heading .dashboard-dynamic-phrase { margin:0; }
.amlealt-smart-search-box { margin-top:0!important; }
.amlealt-smart-search-shell {
    position:relative;z-index:28;width:100%;max-width:none;margin:0;isolation:isolate;overflow:visible;
}
.amlealt-smart-search-shell::after {
    content:"";position:absolute;left:8%;right:8%;bottom:-16px;height:18px;border-radius:999px;pointer-events:none;
    background:radial-gradient(ellipse at 50% 50%,rgba(var(--secondary-rgb),.42),transparent 68%),linear-gradient(90deg,transparent,rgba(var(--secondary-rgb),.30),transparent);
    filter:blur(12px);opacity:.72;transform:translate3d(-8%,0,0) scaleX(.82);animation:amlealtSearchBottomLight 6.8s ease-in-out infinite alternate;z-index:0;
}
.amlealt-smart-search-shell:focus-within::after {
    background:radial-gradient(ellipse at 50% 50%,rgba(var(--secondary-rgb),.56),transparent 70%),linear-gradient(90deg,transparent,rgba(var(--secondary-rgb),.42),transparent);
    filter:blur(14px);
}
.amlealt-smart-search-field {
    position:relative;z-index:1;display:flex;align-items:center;gap:.72rem;min-height:76px;padding:0 1.35rem;
    border-radius:25px;border:1px solid rgba(148,163,184,.28);
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,250,252,.82));
    box-shadow:0 18px 48px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter:blur(22px) saturate(1.18);-webkit-backdrop-filter:blur(22px) saturate(1.18);
    transition:border-color .2s ease,background .2s ease;
}
.amlealt-smart-search-field:focus-within {
    border-color:rgba(148,163,184,.28);outline:none!important;
    box-shadow:0 18px 48px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.75)!important;
}
.amlealt-smart-search-field:has(.amlealt-smart-search-input:focus-visible) { outline:none!important;box-shadow:none!important; }
.amlealt-smart-search-icon { width:22px;height:22px;flex:0 0 22px;color:rgba(15,23,42,.56); }
.amlealt-smart-search-input {
    position:relative;z-index:1;width:100%;min-width:0;min-height:74px;padding:1rem 0;
    border:0!important;outline:0!important;background:transparent!important;color:var(--text-primary,#0f172a);
    font:inherit;font-size:18px!important;font-weight:650;line-height:1.4;box-shadow:none!important;
    -webkit-appearance:none;appearance:none;
}
.amlealt-smart-search-input:focus,.amlealt-smart-search-input:focus-visible,.amlealt-smart-search-input:active {
    border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;
}
.amlealt-smart-search-placeholder {
    position:absolute;left:3.45rem;right:1.2rem;top:50%;overflow:hidden;transform:translateY(-50%);
    color:rgba(15,23,42,.48);font-size:17px;font-weight:650;line-height:1.4;
    text-overflow:ellipsis;white-space:nowrap;pointer-events:none;opacity:1;
}
.amlealt-smart-search-placeholder.smoke-out { animation:amlealtSmokeOut .48s ease forwards; }
.amlealt-smart-search-placeholder.smoke-in { animation:amlealtSmokeIn .62s ease forwards; }
.amlealt-smart-search-placeholder[hidden] { display:none!important; }
.amlealt-smart-search-results { max-width:none;margin:18px auto 0; }
body.app-dark-theme .amlealt-smart-search-field {
    border-color:rgba(255,255,255,.12);
    background:linear-gradient(180deg,rgba(68,68,68,.88),rgba(40,40,40,.84));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 18px 46px rgba(0,0,0,.38);
}
body.app-dark-theme .amlealt-smart-search-icon,body.app-dark-theme .amlealt-smart-search-placeholder { color:rgba(255,255,255,.70); }
body.app-dark-theme .amlealt-smart-search-input { color:#fff; }
@media(max-width:700px) {
    .amlealt-smart-search-page .amlealt-hub-heading { padding:14px 2px 10px!important; }
    .amlealt-smart-search-field { min-height:66px;padding-inline:1rem;gap:12px;border-radius:21px; }
    .amlealt-smart-search-input { min-height:64px;font-size:16px!important; }
    .amlealt-smart-search-placeholder { left:3.12rem;right:1rem;font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
    .amlealt-smart-search-shell::after { animation:none; }
    .amlealt-smart-search-placeholder.smoke-out,.amlealt-smart-search-placeholder.smoke-in { animation:none; }
}


/* Selected-pet records are distinct from general resource destinations. */
.amlealt-smart-search-section-title { margin:18px 2px 4px;color:var(--text-secondary,#64748b);font-size:12px;font-weight:700;letter-spacing:.035em;text-transform:uppercase; }
.amlealt-pet-search-result { display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0;padding:15px 16px;border:1px solid var(--border-subtle,rgba(148,163,184,.2));border-radius:17px;background:var(--surface-primary,#fff);color:var(--text-primary,#172033);text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.amlealt-pet-search-result:hover { transform:translateY(-1px);border-color:var(--border-strong,#aab2bf);box-shadow:0 8px 24px rgba(15,23,42,.07); }
.amlealt-pet-search-result-main { display:grid;gap:5px;min-width:0; }
.amlealt-pet-search-result-title { overflow:hidden;font-size:14px;font-weight:680;text-overflow:ellipsis;white-space:nowrap; }
.amlealt-pet-search-result-meta { overflow:hidden;color:var(--text-secondary,#64748b);font-size:12px;text-overflow:ellipsis;white-space:nowrap; }
.amlealt-pet-search-result-action { flex:0 0 auto;color:var(--text-secondary,#64748b);font-size:12px;font-weight:650; }
@media(prefers-reduced-motion:reduce) { .amlealt-pet-search-result { transition:none; } }


/* Desktop navigation stays in one viewport position and has no enclosing panel surface. */
@media (min-width:900px) and (orientation:landscape) {
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav {
        position:fixed!important;top:100px!important;left:max(24px,calc(50vw - 726px))!important;
        width:232px!important;height:calc(100dvh - 118px)!important;max-height:calc(100dvh - 118px)!important;
        margin:0!important;padding:0!important;align-self:initial!important;
        background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
        transition:transform .76s cubic-bezier(.16,.84,.24,1),opacity .76s cubic-bezier(.16,.84,.24,1)!important;
        backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
        overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
        scrollbar-width:thin;z-index:99!important;
    }
    #mainTabsNav.amlealt-nav-collapsed { width:76px!important;min-width:76px!important; }
    .main-container.amlealt-nav-is-collapsed #mainTabsNav.amlealt-primary-nav { width:76px!important; }
    #mainTabsNav .amlealt-nav-collapse-toggle,
    #mainTabsNav .amlealt-nav-collapse-toggle:hover,
    #mainTabsNav .amlealt-nav-collapse-toggle:focus,
    #mainTabsNav .amlealt-nav-collapse-toggle:focus-visible,
    #mainTabsNav .amlealt-nav-collapse-toggle:active {
        position:relative!important;top:auto!important;display:flex!important;
        background:transparent!important;color:var(--text-secondary,#64748b)!important;
        border:0!important;box-shadow:none!important;outline:none!important;transform:none!important;
    }
    #mainTabsNav .amlealt-nav-collapse-toggle:hover,
    #mainTabsNav .amlealt-nav-collapse-toggle:focus,
    #mainTabsNav .amlealt-nav-collapse-toggle:focus-visible,
    #mainTabsNav .amlealt-nav-collapse-toggle:active {
        background:transparent!important;color:var(--text-secondary,#64748b)!important;
        border:0!important;box-shadow:none!important;outline:none!important;transform:none!important;
    }
}

/* Minimal pet-profile selector: opens directly below the selected pet summary. */
.header-pet-switcher-wrap { position:relative;z-index:1201; }
.header-pet-switcher-menu {
    position:absolute;top:calc(100% + 9px);left:0;right:auto;
    display:flex;flex-direction:column;align-items:stretch;gap:3px;
    width:min(300px,calc(100vw - 24px));max-width:300px;max-height:min(420px,60dvh);
    padding:8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
    border:1px solid var(--border-subtle,#e2e8f0);border-radius:18px;
    background:var(--surface-primary,#fff);box-shadow:0 18px 48px rgba(15,23,42,.16);
    opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-7px) scale(.985);
    transform-origin:top left;scrollbar-width:thin;z-index:1202;
}
.header-pet-switcher-menu[hidden] { display:none!important; }
.header-pet-switcher-menu.is-open {
    opacity:1;transform:translateY(0) scale(1);visibility:visible;pointer-events:auto;
    animation:amlealtPetSwitcherIn .2s cubic-bezier(.2,.75,.25,1) both;
}
.header-pet-switcher-menu.is-closing {
    visibility:visible;pointer-events:none;
    animation:amlealtPetSwitcherOut .16s ease both;
}
@keyframes amlealtPetSwitcherIn {
    from { opacity:0;transform:translateY(-7px) scale(.985); }
    to { opacity:1;transform:translateY(0) scale(1); }
}
@keyframes amlealtPetSwitcherOut {
    from { opacity:1;transform:translateY(0) scale(1); }
    to { opacity:0;transform:translateY(-6px) scale(.985); }
}
.header-pet-switcher-item,.header-pet-switcher-add {
    display:flex;flex:0 0 auto;align-items:center;flex-direction:row;gap:11px;
    width:100%;min-width:0;min-height:54px;padding:7px 9px;
    border:1px solid transparent;border-radius:12px;background:transparent;
    color:var(--text-primary,#1f2937);font:inherit;text-align:left;cursor:pointer;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.header-pet-switcher-item:hover,.header-pet-switcher-add:hover {
    background:var(--surface-secondary,#f4f5f7);transform:translateX(1px);
}
.header-pet-switcher-item.is-current {
    background:rgba(var(--secondary-rgb),.08);border-color:rgba(var(--secondary-rgb),.18);
}
.header-pet-switcher-avatar,.header-pet-switcher-add-icon {
    display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;
    border-radius:50%;overflow:hidden;background:var(--surface-secondary,#f1f3f5);
    color:var(--secondary);font-size:15px;font-weight:700;background-position:center;background-size:cover;
}
.header-pet-switcher-copy { display:grid;flex:1;min-width:0;gap:2px; }
.header-pet-switcher-name {
    display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    color:var(--text-primary,#1f2937);font-size:13px;font-weight:650;line-height:1.35;text-align:left;
}
.header-pet-switcher-meta { color:var(--text-secondary,#64748b);font-size:11px;line-height:1.3; }
.header-pet-switcher-indicator { display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;color:var(--text-secondary,#64748b); }
.header-pet-switcher-indicator svg { width:17px;height:17px; }
.header-pet-switcher-item.is-current .header-pet-switcher-indicator { color:var(--secondary); }
.header-pet-switcher-add {
    min-height:52px;margin-top:4px;padding-top:10px;border:0;border-top:1px solid var(--border-subtle,#e2e8f0);
    border-radius:0 0 12px 12px;color:var(--secondary);font-size:13px;font-weight:650;
}
.header-pet-switcher-add-icon { border:1px dashed var(--border-strong,#aab2bf);background:transparent;font-size:22px;font-weight:400; }
.header-pet-switcher-add > span:last-child { display:block;width:auto;max-width:none;padding:0;text-align:left;font-size:13px; }
.header-pet-switcher-empty { padding:12px 10px;color:var(--text-secondary);font-size:12px; }
@media(prefers-reduced-motion:reduce) {
    .header-pet-switcher-menu.is-open,.header-pet-switcher-menu.is-closing { animation:none; }
    .header-pet-switcher-item,.header-pet-switcher-add { transition:none; }
}

/* On mobile, keep Download beside the species/profile icon instead of floating over the header. */
@media(max-width:768px) {
    .header-actions { display:inline-flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important; }
    .header-actions .install-app-btn {
        position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
        order:1!important;transform:none!important;z-index:3!important;
        width:auto!important;min-width:0!important;max-width:none!important;height:30px!important;min-height:30px!important;
        margin:0!important;padding:0 9px!important;border-radius:999px!important;
        font-size:11px!important;line-height:1!important;white-space:nowrap!important;
    }
    .header-actions .minha-amlealt-btn { order:2!important; }
    .header-actions .header-search-btn { order:3!important; }
    .header.mobile-install-hidden .install-app-btn { opacity:0!important;pointer-events:none!important; }
    .header.mobile-install-installed .install-app-btn { display:none!important; }
}


/* The global Mini Pesquisa keeps its shape, without a cast shadow below it. */
#app-view > .laco-strip .amlealt-command-shell::after {
    display:none!important;
    content:none!important;
}
#app-view > .laco-strip .amlealt-command-bar,
#app-view > .laco-strip .amlealt-command-bar:focus-within {
    box-shadow:none!important;
}


/* Desktop rail: fixed in the viewport, with an unobtrusive hover-only scrollbar. */
@media (min-width: 900px) and (orientation: landscape) {
    /* The app entrance animation must release its transform after opening;
       otherwise fixed descendants are anchored to the scrolling app surface. */
    body.interface-mode-innovative #app-view { animation-fill-mode: none !important; }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav {
        position: fixed !important;
        top: 100px !important;
        bottom: auto !important;
        height: calc(100dvh - 118px) !important;
        max-height: calc(100dvh - 118px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-gutter: auto !important;
        scrollbar-width: none !important;
        scrollbar-color: transparent transparent !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav.menu-hidden,
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav.menu-scroll-hidden {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav::-webkit-scrollbar {
        display: block !important;
        width: 0 !important;
        height: 0 !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav:not(.amlealt-nav-collapsed):has(.tab-button:hover, .tab-button:focus-visible) {
        scrollbar-width: thin !important;
        scrollbar-color: var(--border-strong, rgba(100, 116, 139, .55)) transparent !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav:not(.amlealt-nav-collapsed):has(.tab-button:hover, .tab-button:focus-visible)::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav:not(.amlealt-nav-collapsed):has(.tab-button:hover, .tab-button:focus-visible)::-webkit-scrollbar-thumb {
        background: var(--border-strong, rgba(100, 116, 139, .55));
        border-radius: 999px;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav:not(.amlealt-nav-collapsed):has(.tab-button:hover, .tab-button:focus-visible)::-webkit-scrollbar-track {
        background: transparent;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav.amlealt-nav-collapsed {
        scrollbar-width: none !important;
        scrollbar-color: transparent transparent !important;
    }
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav.amlealt-nav-collapsed::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Compact, accessible labels for icons in the collapsed desktop rail. */
.amlealt-nav-tooltip {
    position: fixed;
    z-index: 10020;
    max-width: min(240px, calc(100vw - 24px));
    padding: 8px 11px;
    border: 1px solid var(--border-subtle, rgba(148, 163, 184, .24));
    border-radius: 10px;
    background: var(--surface-primary, #fff);
    color: var(--text-primary, #0f172a);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-3px, 0, 0) scale(.98);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.amlealt-nav-tooltip[hidden] { display: none !important; }
.amlealt-nav-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}
.amlealt-nav-tooltip::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 0;
    bottom: 0;
    width: 9px;
}
@media (prefers-reduced-motion: reduce) {
    .amlealt-nav-tooltip { transition: none; }
}

/* Plus plan comparison: clear hierarchy on desktop and stacked cells on mobile. */
.amlealt-plus-comparison {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .22));
}
.amlealt-plus-comparison-heading > span {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--secondary, #1317f0);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.amlealt-plus-comparison-heading h3 {
    margin: 0 0 6px;
    color: var(--text-primary, #0f172a);
    font-size: 1.08rem;
    line-height: 1.25;
}
.amlealt-plus-comparison-heading p,
.amlealt-plus-comparison-note {
    margin: 0 0 14px;
    color: var(--text-secondary, #64748b);
    font-size: .76rem;
    line-height: 1.5;
}
.amlealt-plus-comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle, rgba(148, 163, 184, .22));
    border-radius: 14px;
    overscroll-behavior-inline: contain;
}
.amlealt-plus-comparison-table {
    width: 100%;
    min-width: 570px;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--text-primary, #0f172a);
}
.amlealt-plus-comparison-table thead th {
    padding: 11px 12px;
    background: var(--surface-secondary, rgba(148, 163, 184, .08));
    color: var(--text-secondary, #64748b);
    font-size: .68rem;
    font-weight: 800;
    text-align: left;
}
.amlealt-plus-comparison-table thead th:first-child { width: 29%; }
.amlealt-plus-comparison-table thead th:nth-child(2) { width: 31%; }
.amlealt-plus-comparison-table thead th:nth-child(3) {
    width: 40%;
    color: var(--secondary, #1317f0);
}
.amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > th,
.amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td {
    padding: 11px 12px;
    border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .16));
    font-size: .72rem;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > th {
    font-weight: 700;
}
.amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td {
    color: var(--text-secondary, #64748b);
}
.amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td:last-child {
    background: rgba(var(--secondary-rgb, 19, 23, 240), .045);
    color: var(--text-primary, #0f172a);
}
.amlealt-plus-comparison-table tbody tr.amlealt-plus-comparison-category > th {
    padding: 14px 12px 7px;
    border-top: 1px solid var(--border-subtle, rgba(148, 163, 184, .16));
    color: var(--text-secondary, #64748b);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}
.amlealt-plus-unavailable {
    color: var(--text-tertiary, #94a3b8);
}
.amlealt-plus-comparison-note {
    margin: 10px 2px 0;
    font-size: .68rem;
}
@media (max-width: 640px) {
    .amlealt-plus-comparison-table-wrap {
        overflow: visible;
        border: 0;
    }
    .amlealt-plus-comparison-table,
    .amlealt-plus-comparison-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }
    .amlealt-plus-comparison-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    .amlealt-plus-comparison-table tbody tr.amlealt-plus-comparison-category {
        display: block;
        padding: 12px 2px 0;
    }
    .amlealt-plus-comparison-table tbody tr.amlealt-plus-comparison-category > th {
        display: block;
        padding: 0 0 5px;
        border: 0;
    }
    .amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 7px;
        margin: 0 0 9px;
        padding: 10px;
        border: 1px solid var(--border-subtle, rgba(148, 163, 184, .2));
        border-radius: 13px;
        background: var(--surface-primary, #fff);
    }
    .amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > th {
        grid-column: 1 / -1;
        width: auto;
        padding: 0 0 2px;
        border: 0;
        font-size: .75rem;
    }
    .amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
        width: auto;
        padding: 8px;
        border: 0;
        border-radius: 9px;
        background: var(--surface-secondary, rgba(148, 163, 184, .08));
        font-size: .68rem;
    }
    .amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td:last-child {
        background: rgba(var(--secondary-rgb, 19, 23, 240), .075);
    }
    .amlealt-plus-comparison-table tbody tr:not(.amlealt-plus-comparison-category) > td::before {
        content: attr(data-plan);
        color: var(--text-secondary, #64748b);
        font-size: .58rem;
        font-weight: 850;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    .amlealt-plus-comparison-note { margin-top: 9px; }
}


/* Pet switcher: restrained neutral states, independent of the global button hover. */
#app-view .header-pet-switcher-wrap .header-pet-summary,
#app-view .header-brand-button {
    background:transparent!important;border-color:transparent!important;box-shadow:none!important;
    color:inherit!important;
}
#app-view .header-pet-switcher-wrap .header-pet-summary .current-pet-name {
    color:var(--text-primary,var(--gray-900))!important;
}
#app-view #headerPetSwitcherMenu .header-pet-switcher-item,
#app-view #headerPetSwitcherMenu .header-pet-switcher-add {
    background:transparent!important;border:1px solid transparent!important;
    box-shadow:none!important;transform:none!important;color:var(--text-primary,#1f2937)!important;
    transition:background .18s ease,border-color .18s ease,color .18s ease;
}
#app-view #headerPetSwitcherMenu .header-pet-switcher-item.is-current {
    background:var(--surface-secondary,rgba(128,128,128,.07))!important;
    border-color:transparent!important;
}
#headerPetSwitcherMenu .header-pet-switcher-item.is-current .header-pet-switcher-avatar {
    outline:2px solid rgba(var(--secondary-rgb),.45);outline-offset:2px;
}
#headerPetSwitcherMenu .header-pet-switcher-item.is-current .header-pet-switcher-indicator {
    width:24px;height:24px;flex-basis:24px;border-radius:50%;
    background:rgba(var(--secondary-rgb),.08);color:var(--secondary);
}
#app-view #headerPetSwitcherMenu .header-pet-switcher-add {
    position:relative;margin-top:8px;padding:8px 9px;border-radius:12px;
    color:var(--secondary)!important;
}
#headerPetSwitcherMenu .header-pet-switcher-add::before {
    content:"";position:absolute;left:2px;right:2px;top:-5px;height:1px;
    background:var(--border-subtle,#e2e8f0);pointer-events:none;
}
#headerPetSwitcherMenu .header-pet-switcher-add-copy {
    display:grid!important;flex:1;min-width:0;gap:3px;width:auto!important;
    padding:0!important;text-align:left;white-space:normal!important;
}
#headerPetSwitcherMenu .header-pet-switcher-add-copy strong {
    font-size:13px;line-height:1.35;font-weight:650;
}
#headerPetSwitcherMenu .header-pet-switcher-add-copy small {
    font-size:11px;line-height:1.35;font-weight:400;color:var(--text-secondary,#64748b);
}
#headerPetSwitcherMenu .header-pet-switcher-add.is-limit .header-pet-switcher-add-icon {
    background:rgba(var(--secondary-rgb),.07);border:1px solid rgba(var(--secondary-rgb),.16);
}
#headerPetSwitcherMenu .header-pet-switcher-add[aria-busy="true"] { cursor:progress; }
@media (hover:hover) and (pointer:fine) {
    #app-view .header-pet-switcher-wrap .header-pet-summary:is(:hover,[aria-expanded="true"]),
    #app-view .header-brand-button:is(:hover,[aria-expanded="true"]) {
        background:var(--surface-hover,rgba(128,128,128,.08))!important;
        border-color:transparent!important;box-shadow:none!important;
    }
    #app-view .header-pet-switcher-wrap .header-pet-summary { padding:3px 5px; }
    #app-view #headerPetSwitcherMenu .header-pet-switcher-item:hover,
    #app-view #headerPetSwitcherMenu .header-pet-switcher-add:hover {
        background:var(--surface-hover,rgba(128,128,128,.09))!important;
        border-color:var(--border-subtle,#e2e8f0)!important;box-shadow:none!important;
    }
    #headerPetSwitcherMenu .header-pet-switcher-item:not(.is-current):hover .header-pet-switcher-indicator,
    #headerPetSwitcherMenu .header-pet-switcher-add:hover .header-pet-switcher-indicator {
        color:var(--secondary);transform:translateX(2px);
    }
    #headerPetSwitcherMenu .header-pet-switcher-indicator {transition:color .18s ease,transform .18s ease;}
}
@media(prefers-reduced-motion:reduce) {
    #app-view #headerPetSwitcherMenu .header-pet-switcher-item,
    #app-view #headerPetSwitcherMenu .header-pet-switcher-add,
    #headerPetSwitcherMenu .header-pet-switcher-indicator { transition:none; }
}

/* Account's pet action uses the same quota state and restrained design as the header. */
#tab-minha .amlealt-account-add-pet {
    margin-top:10px;padding:9px 8px;width:100%;border:1px solid var(--border-subtle,#e2e8f0);
    border-radius:12px;background:transparent;box-shadow:none;color:var(--secondary);
}
#tab-minha .amlealt-account-add-pet .header-pet-switcher-add-copy {
    display:grid;flex:1;min-width:0;gap:3px;padding:0;white-space:normal;text-align:left;
}
#tab-minha .amlealt-account-add-pet strong { font-size:13px;font-weight:650;line-height:1.35; }
#tab-minha .amlealt-account-add-pet small { font-size:11px;font-weight:400;line-height:1.35;color:var(--text-secondary,#64748b); }
#tab-minha .amlealt-account-add-pet.is-limit .header-pet-switcher-add-icon {
    background:rgba(var(--secondary-rgb),.07);border:1px solid rgba(var(--secondary-rgb),.16);
}
#tab-minha .amlealt-account-add-pet[aria-busy="true"] { cursor:progress; }
@media(hover:hover) and (pointer:fine) {
    #app-view #tab-minha .amlealt-account-add-pet:hover {
        background:var(--surface-hover,rgba(128,128,128,.08))!important;
        border-color:var(--border-subtle,#e2e8f0)!important;box-shadow:none!important;transform:none!important;
    }
}
/* Reserve room for two lines of contextual copy; the rest of the Painel is unchanged. */
#tab-painel #dashboardDynamicPhrase { min-height:2.5em;overflow-wrap:anywhere; }

/* Moments only: preserve the original dashboard text geometry and Plus sheet. */
#app-view #tab-painel .amlealt-moments-trigger { display:block;width:fit-content;max-width:100%;padding:0;border:0;background:transparent!important;box-shadow:none!important;text-align:left;font-family:inherit;cursor:pointer;transform:none!important; }
#app-view #tab-painel .amlealt-moments-trigger:focus-visible { outline:2px solid var(--secondary);outline-offset:5px;border-radius:5px; }
@media(hover:hover) and (pointer:fine) { #app-view #tab-painel .amlealt-moments-trigger:hover { text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent); } }
body.amlealt-moments-open { overflow:hidden; }
#amlealtMomentsOverlay { z-index:3700;transition:opacity .24s ease,visibility .24s;--moments-hue:215; }
#amlealtMomentsOverlay:is([data-theme="morning"],[data-theme="day"],[data-theme="hot"],[data-theme="clear"]) { --moments-hue:39; }
#amlealtMomentsOverlay:is([data-theme="night"],[data-theme="celebrate"]) { --moments-hue:265; }
#amlealtMomentsOverlay:is([data-theme="rain"],[data-theme="cloudy"],[data-theme="cold"]) { --moments-hue:205; }
#amlealtMomentsOverlay:is([data-theme="box"],[data-theme="calendar"]) { --moments-hue:31; }
#amlealtMomentsOverlay[data-theme="care"] { --moments-hue:155; }
#amlealtMomentsOverlay .amlealt-moments-panel { width:min(620px,100%); }
#amlealtMomentsOverlay.active .amlealt-moments-panel { animation:amlealtMomentsIn .25s cubic-bezier(.2,.8,.2,1) both!important; }
#amlealtMomentsOverlay.closing .amlealt-moments-panel { animation:amlealtMomentsOut .22s ease both!important; }
@keyframes amlealtMomentsIn { from{opacity:0;transform:translateY(15px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes amlealtMomentsOut { from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(12px)} }
#amlealtMomentsOverlay .amlealt-moments-handle { display:flex;justify-content:center;align-items:center;height:20px;touch-action:pan-x; }
#amlealtMomentsOverlay .amlealt-moments-handle span { width:36px;height:4px;border-radius:8px;background:var(--border-subtle,#cbd5e1); }
#amlealtMomentsOverlay .amlealt-moments-hero { display:grid;justify-items:center;gap:4px;padding:12px 16px 16px;border-radius:20px;background:hsl(var(--moments-hue) 48% 52% / .12);color:hsl(var(--moments-hue) 42% 35%);margin:8px 0 20px; }
body:is(.app-dark-theme,.app-theme-dark) #amlealtMomentsOverlay .amlealt-moments-hero { background:hsl(var(--moments-hue) 45% 65% / .12);color:hsl(var(--moments-hue) 55% 77%); }
#amlealtMomentsArt { width:min(220px,65%); }
#amlealtMomentsArt svg { display:block;width:100%;height:auto; }
#amlealtMomentsCategory { font-size:12px;font-weight:700; }
#amlealtMomentsHeadline { font-size:clamp(24px,4vw,32px);font-weight:750;line-height:1.22;letter-spacing:-.035em;color:var(--text-primary,var(--gray-900));margin:0 0 18px;overflow-wrap:anywhere; }
#amlealtMomentsOverlay .amlealt-moments-detail { display:grid;gap:9px;padding:16px 0 22px;border-top:1px solid var(--border-subtle,#e2e8f0); }
#amlealtMomentsDetailTitle { font-size:16px;font-weight:700;color:var(--text-primary,var(--gray-900));margin:0; }
#amlealtMomentsBody { font-size:14px;line-height:1.7;color:var(--text-secondary,var(--gray-600));margin:0; }
#amlealtMomentsSource { font-size:13px;color:var(--secondary);text-decoration:underline;text-underline-offset:3px;width:fit-content; }
#amlealtMomentsOverlay .amlealt-moments-actions { display:grid;gap:9px; }
#amlealtMomentsOverlay [hidden] { display:none!important; }
@media(min-width:641px) { #amlealtMomentsOverlay.active { align-items:center;justify-content:center;padding:24px;overflow:auto; } #amlealtMomentsOverlay.active .amlealt-moments-panel { margin:0;max-height:calc(100dvh - 48px);overflow-y:auto; } #amlealtMomentsOverlay .amlealt-moments-handle { display:none; } }
@media(prefers-reduced-motion:reduce) { #amlealtMomentsOverlay,#amlealtMomentsOverlay .amlealt-moments-panel { transition:none!important;animation:none!important; } }

/* Moments weather controls stay inside the existing sheet. */
#app-view #amlealtMomentsWeatherCredit { display:block;font-size:11px;line-height:1.45;color:var(--text-secondary);margin:2px 0 8px; }
#app-view #amlealtMomentsWeatherCredit[hidden],#amlealtMomentsWeatherDisable[hidden],#amlealtMomentsWeatherRegion[hidden] { display:none!important; }
#amlealtMomentsWeatherCredit a { color:inherit;text-decoration:underline; }
#amlealtMomentsOverlay .amlealt-moments-weather-settings { display:grid;gap:9px;padding:14px 0 18px;border-top:1px solid var(--border-subtle,#e2e8f0); }
#amlealtMomentsOverlay .amlealt-moments-weather-settings h4 { margin:0;font-size:14px; }
#amlealtMomentsOverlay .amlealt-moments-weather-settings p,#amlealtMomentsOverlay .amlealt-moments-weather-settings small { margin:0;line-height:1.5;font-size:12px;color:var(--text-secondary); }
#amlealtMomentsOverlay .amlealt-moments-weather-buttons { display:flex;flex-wrap:wrap;gap:8px; }
#amlealtMomentsOverlay .amlealt-moments-weather-buttons button { flex:1;min-width:110px; }

/* Explorar only: quick access, category entry points and scoped tool lists. */
#tab-explorar .amlealt-hub-heading { padding-bottom:18px; }
#tab-explorar .amlealt-explore-quick { margin-bottom:14px; padding-block:16px; }
#tab-explorar .amlealt-hub-search { margin-bottom:14px; padding-block:16px; }
#tab-explorar .amlealt-explore-section-heading { display:flex; align-items:center; justify-content:space-between; gap:6px 18px; flex-wrap:wrap; margin-bottom:8px; }
#tab-explorar .amlealt-explore-section-heading :is(h3,label) { margin:0; }
#tab-explorar .amlealt-explore-link { display:inline-flex; align-items:center; gap:5px; min-height:44px; border:0; padding:4px 0; background:transparent; color:var(--secondary); font:inherit; font-size:12px; font-weight:650; text-decoration:none; text-align:left; cursor:pointer; }
#tab-explorar .amlealt-explore-link:hover { text-decoration:underline; }
#tab-explorar .amlealt-explore-link:focus-visible { outline:2px solid var(--secondary); outline-offset:3px; }
#tab-explorar .amlealt-explore-back { margin:-6px 0 4px; }
#tab-explorar .amlealt-explore-section { grid-column:1/-1; }
#tab-explorar .amlealt-explore-quick .amlealt-explore-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 10px; }
#tab-explorar .amlealt-explore-quick .amlealt-explore-card { min-height:48px; align-items:center; padding:8px 4px; }
#tab-explorar .amlealt-explore-favorite-badge { display:inline; margin:0 0 0 6px; color:var(--secondary); font-size:10px; white-space:nowrap; }
#tab-explorar .amlealt-explore-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin-top:0; }
#tab-explorar .amlealt-explore-category-tile { display:flex; align-items:center; gap:10px; min-height:62px; min-width:0; padding:10px 12px; border:1px solid var(--border-subtle,#e2e8f0); border-radius:var(--radius-md); background:transparent; color:var(--text-primary,#0f172a); text-align:left; font:inherit; cursor:pointer; }
#tab-explorar .amlealt-explore-tile-copy { flex:1; min-width:0; }
#tab-explorar .amlealt-explore-tile-copy strong { display:block; font-size:13px; line-height:1.35; }
#tab-explorar .amlealt-explore-tile-copy small { display:block; margin-top:2px; font-size:11px; line-height:1.35; color:var(--text-secondary,#64748b); }
#tab-explorar .amlealt-explore-tile-arrow { color:var(--secondary); font-size:18px; flex-shrink:0; }
#tab-explorar .amlealt-explore-footer { padding:6px 4px 0; }
@media(hover:hover) { #tab-explorar .amlealt-explore-category-tile:hover { border-color:var(--secondary); background:rgba(var(--secondary-rgb),.06); } }
@media(max-width:700px) {
    #tab-explorar .amlealt-explore-quick .amlealt-explore-grid,
    #tab-explorar .amlealt-explore-section.full .amlealt-explore-grid,
    #tab-explorar .amlealt-explore-categories { grid-template-columns:1fr; }
    #tab-explorar .amlealt-explore-quick .amlealt-explore-card { min-height:44px; padding-block:5px; }
    #tab-explorar .amlealt-explore-category-tile { min-height:54px; padding-block:7px; }
}

/* Pesquisar phase 1: keep the toolbar and selected pet compact. */
#tab-pesquisar .amlealt-hub-heading { padding-bottom:12px; }
#tab-pesquisar .amlealt-smart-search-box { padding-block:14px; }
#tab-pesquisar .amlealt-smart-search-field { min-height:54px; border-radius:16px; }
#tab-pesquisar .amlealt-smart-search-input { min-height:50px; padding-block:10px; }
#tab-pesquisar .amlealt-smart-search-field:has(.amlealt-smart-search-input:focus-visible) { outline:2px solid var(--secondary)!important; outline-offset:2px; }
#tab-pesquisar .amlealt-smart-search-pet { margin:12px 2px 2px; color:var(--text-secondary); font-size:12px; overflow-wrap:anywhere; }
#tab-pesquisar .amlealt-smart-search-examples { display:flex; flex-wrap:wrap; gap:5px 8px; margin-top:8px; }
#tab-pesquisar .amlealt-smart-search-examples button { min-height:42px; padding:5px 11px; text-align:left; }
#tab-pesquisar .amlealt-smart-search-results { margin-top:12px; padding-block:16px; }
#tab-pesquisar .amlealt-smart-search-answer { border:1px solid var(--border-subtle); border-radius:var(--radius-md); padding:13px; margin-bottom:16px; background:var(--surface-secondary,#f1f3f5); }
#tab-pesquisar .amlealt-smart-search-answer h3 { font-size:15px; margin:0 0 5px; }
#tab-pesquisar .amlealt-smart-search-answer p { margin:0 0 6px; color:var(--text-primary); font-size:13px; }
#tab-pesquisar .amlealt-smart-search-answer small { display:block; margin:0 0 7px; color:var(--text-secondary); font-size:11px; }
#tab-pesquisar .amlealt-smart-search-answer-action { min-height:42px; }
#tab-pesquisar .amlealt-smart-search-section-title { font-size:13px; margin:12px 0 4px; }
#tab-pesquisar .amlealt-smart-search-results :is(.amlealt-explore-card,.amlealt-pet-search-result) { min-height:46px; padding-block:8px; }
#tab-pesquisar .amlealt-smart-search-more { margin:3px 0 9px; }
#tab-pesquisar .amlealt-smart-search-more summary { cursor:pointer; padding:10px 2px; min-height:42px; font-size:12px; color:var(--secondary); }
#tab-pesquisar .amlealt-smart-search-more summary:focus-visible { outline:2px solid var(--secondary); outline-offset:2px; }

/* In the narrow layout, shorten/lengthen only the empty space before the sticky dock. */
@media (max-width: 899px), (orientation: portrait) {
    body.interface-mode-innovative #app-view > .main-container {
        box-sizing:border-box;
        min-block-size:var(--amlealt-mobile-dock-fill, auto);
    }
    body.interface-mode-innovative #app-view > .main-container::after {
        content:'';
        order:1;
        flex:1 0 0px;
        pointer-events:none;
    }
}

/* Only the destination selected by search narrows its sibling controls. */
.amlealt-search-scope > .form-section:not(.amlealt-search-visible),
.amlealt-search-scope > .settings-group:not(.amlealt-search-visible),
.share-tools.amlealt-search-scope > .share-tool-card:not(.amlealt-search-visible),
#aiNativeSettings.amlealt-search-scope > .share-tool-card:not(.amlealt-search-visible) {
    display: none !important;
}
.amlealt-search-expand-scope {
    display: block;
    width: fit-content;
    margin: .25rem 0 .75rem;
}

/* Hidden feedback must not cover the global header controls. */
#saveStatus:not(.show) { pointer-events: none; }

/* Full-screen pet chooser: center short rows and keep the leading card reachable on overflow. */
@media (min-width: 641px) {
    #home-view #profilesContainer {
        inline-size: 100%;
        min-inline-size: 0;
        justify-content: flex-start;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y pinch-zoom;
    }
    #home-view #profilesContainer > .profile-card { flex: 0 0 auto; }
    #home-view #profilesContainer > .profile-card:first-child { margin-inline-start: auto; }
    #home-view #profilesContainer > .profile-card:last-child { margin-inline-end: auto; }
    #home-view #profilesContainer.is-profile-row-dragging { cursor: grabbing; user-select: none; }
    #home-view #profilesContainer.is-profile-row-dragging .profile-card { cursor: grabbing; }
}

/* Novo Pet is a flat action tile; real pet portraits retain their original elevation. */
#home-view #profilesContainer > .new-pet-card > .profile-avatar.add-btn {
    --new-pet-ink: var(--text-primary, var(--gray-900, #0f172a));
    background: transparent !important;
    border: 1px solid color-mix(in srgb, var(--new-pet-ink) 24%, transparent) !important;
    color: var(--new-pet-ink);
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background-color .18s ease, border-color .18s ease;
}
#home-view #profilesContainer > .new-pet-card:not(.new-pet-card-locked) > .profile-avatar.add-btn svg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
}
#home-view #profilesContainer:not(.is-profile-row-dragging) > .new-pet-card:is(:focus-visible,:active) > .profile-avatar.add-btn {
    background: color-mix(in srgb, var(--new-pet-ink) 6%, transparent) !important;
    border-color: color-mix(in srgb, var(--new-pet-ink) 40%, transparent) !important;
}
#home-view #profilesContainer > .new-pet-card:focus-visible > .profile-avatar.add-btn {
    outline: 2px solid var(--new-pet-ink);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    #home-view #profilesContainer:not(.is-profile-row-dragging) > .new-pet-card:hover > .profile-avatar.add-btn {
        background: color-mix(in srgb, var(--new-pet-ink) 5%, transparent) !important;
        border-color: color-mix(in srgb, var(--new-pet-ink) 36%, transparent) !important;
    }
}

/* The pet deletion confirmation uses the existing editor and exit animation. */
#profileEditorOverlay:has(.amlealt-pet-delete-confirm) {
    --pet-delete-ink: #20242a;
    --pet-delete-muted: #525963;
    --pet-delete-surface: #fafbfc;
    --pet-delete-line: #c8cdd4;
    --pet-delete-hover: #e9ebef;
    background: var(--pet-delete-surface);
}
body:is(.app-dark-theme, .app-theme-dark) #profileEditorOverlay:has(.amlealt-pet-delete-confirm) {
    --pet-delete-ink: #f3f4f6;
    --pet-delete-muted: #b8bfc9;
    --pet-delete-surface: #16181c;
    --pet-delete-line: #6c727d;
    --pet-delete-hover: #282c33;
}
#profileEditorOverlay:has(.amlealt-pet-delete-confirm) .amlealt-profile-card {
    width: min(30rem, 100%);
    gap: .45rem;
}
#profileEditorOverlay:has(.amlealt-pet-delete-confirm) .amlealt-profile-back {
    background: transparent;
    color: var(--pet-delete-ink);
    border-color: var(--pet-delete-line);
    box-shadow: none;
}
#profileEditorOverlay:has(.amlealt-pet-delete-confirm) .amlealt-profile-hero {
    padding: .5rem 0 0;
}
.amlealt-pet-delete-confirm {
    display: grid;
    justify-items: center;
    gap: .75rem;
    width: 100%;
    padding: .25rem 0 0;
    color: var(--pet-delete-ink);
}
.amlealt-pet-delete-avatar {
    display: grid;
    place-items: center;
    width: 4rem;
    aspect-ratio: 1;
    border: 1px solid var(--pet-delete-line);
    border-radius: 1rem;
    background: var(--pet-delete-hover);
    overflow: hidden;
}
.amlealt-pet-delete-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.amlealt-pet-delete-confirm > h2 {
    margin: .25rem 0 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    font-weight: 750;
    line-height: 1.2;
}
.amlealt-pet-delete-confirm > p {
    margin: 0;
    max-width: 29ch;
    color: var(--pet-delete-muted);
    font-size: .95rem;
    line-height: 1.5;
}
.amlealt-pet-delete-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
    width: min(100%, 22rem);
    margin-top: .65rem;
}
.amlealt-pet-delete-actions button {
    min-height: 46px;
    border: 1px solid var(--pet-delete-line);
    border-radius: .7rem;
    padding: .5rem .625rem;
    background: transparent;
    color: var(--pet-delete-ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.amlealt-pet-delete-actions button:hover:not(:disabled) {
    background: var(--pet-delete-hover);
}
#profileEditorOverlay .amlealt-pet-delete-actions #profileDeleteYesBtn {
    color: #fff;
    background: #b42334;
    border-color: #b42334;
}
#profileEditorOverlay .amlealt-pet-delete-actions #profileDeleteYesBtn:hover:not(:disabled) {
    background: #951d2b;
    border-color: #951d2b;
}
#profileEditorOverlay .amlealt-pet-delete-actions #profileDeleteYesBtn:disabled {
    cursor: progress;
    opacity: .72;
}
#profileEditorOverlay:has(.amlealt-pet-delete-confirm) :is(.amlealt-profile-back, .amlealt-pet-delete-actions button):focus-visible {
    outline: 2px solid var(--pet-delete-ink);
    outline-offset: 3px;
}

/* Chooser context menu: a compact, calm surface at any input size. */
#home-view .profiles-container.profile-menu-active { z-index: 130; }
#home-view .profile-card.profile-menu-open { transform: none !important; }
#home-view .profile-mini-menu.profile-mini-menu-fixed {
    --profile-menu-surface: #fff;
    --profile-menu-ink: #1e293b;
    --profile-menu-muted: #475569;
    --profile-menu-edge: #e2e8f0;
    --profile-menu-hover: #f1f5f9;
    --profile-menu-danger: #a71921;
    --profile-menu-danger-bg: #fff0f1;
    position: fixed;
    width: min(240px, calc(100vw - 24px));
    min-width: 0;
    max-height: calc(100dvh - 24px);
    padding: 5px;
    display: grid;
    gap: 2px;
    border: 1px solid var(--profile-menu-edge);
    border-radius: 15px;
    background: var(--profile-menu-surface);
    color: var(--profile-menu-ink);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: auto;
    overscroll-behavior: contain;
    transform: translateX(-50%);
    transition: none;
}
body.app-theme-dark #home-view .profile-mini-menu.profile-mini-menu-fixed {
    --profile-menu-surface: var(--surface-secondary);
    --profile-menu-ink: #f1f5f9;
    --profile-menu-muted: #cbd5e1;
    --profile-menu-edge: var(--border-subtle);
    --profile-menu-hover: var(--surface-hover);
    --profile-menu-danger: #ff9a9d;
    --profile-menu-danger-bg: #3c252a;
}
#home-view .profile-mini-heading {
    padding: .45rem .64rem .3rem;
    font-size: .76rem;
    font-weight: 700;
    color: var(--profile-menu-muted);
    overflow-wrap: anywhere;
    max-height: 4em;
    overflow: hidden;
}
#home-view .profile-mini-divider {
    height: 1px;
    margin: 3px .55rem;
    background: var(--profile-menu-edge);
}
#home-view .profile-mini-menu button {
    border-radius: 9px;
    min-height: 42px;
    height: auto;
    padding: .5rem .62rem;
    gap: .62rem;
    background: transparent;
    color: var(--profile-menu-ink);
    box-shadow: none;
    line-height: 1.3;
    font-weight: 650;
    transform: none;
}
#home-view .profile-mini-menu button span { overflow-wrap: anywhere; }
#home-view .profile-mini-menu button:is(:hover,:focus-visible) { background: var(--profile-menu-hover); color: var(--profile-menu-ink); }
#home-view .profile-mini-menu button:focus-visible { outline: 2px solid currentColor !important; outline-offset: -2px; }
#home-view .profile-mini-menu button.profile-mini-delete,
#home-view .profile-mini-menu button.profile-mini-delete span { color: var(--profile-menu-danger) !important; }
#home-view .profile-mini-menu button.profile-mini-delete:is(:hover,:focus-visible) { background: var(--profile-menu-danger-bg); }

/* Custom option lists get one quiet outline, not a shadow on each button. */
body .select-picker-popover {
    --option-sheet: #fff;
    --option-line: #e2e8f0;
    --option-text: #1e293b;
    --option-hover: #f1f5f9;
    --option-selected: #e8eef8;
    --option-accent: #345587;
    padding: .35rem;
    gap: 2px;
    border: 1px solid;
    border-radius: 16px;
}
body.app-dark-theme .select-picker-popover {
    --option-sheet: #202328;
    --option-line: #424650;
    --option-text: #f3f4f6;
    --option-hover: #2c3038;
    --option-selected: #293849;
    --option-accent: #b9d3f8;
}
body .select-picker-popover > .select-picker-option {
    position: relative;
    border-radius: 9px;
    padding-inline-end: 1.65rem;
    font-weight: 650;
    transform: none;
    transition: background-color 140ms ease;
}
body .select-picker-popover > .select-picker-option:is(:hover, :active) {
    transform: none;
}
body .select-picker-popover > .select-picker-option[aria-selected="true"]::after {
    content: '';
    position: absolute;
    inset-inline-end: .72rem;
    inset-block-start: 50%;
    inline-size: .4rem;
    block-size: .4rem;
    border-radius: 50%;
    background: var(--option-accent);
    transform: translateY(-50%);
}
body .select-picker-popover > .select-picker-option:focus-visible {
    outline-offset: -2px;
}
/* These component state declarations override the legacy unlayered button states. */
@layer amlealt-option-states {
    body .select-picker-popover {
        background: var(--option-sheet) !important;
        border-color: var(--option-line) !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .09) !important;
        backdrop-filter: none !important;
    }
    body .select-picker-popover > .select-picker-option {
        border: 1px solid transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--option-text) !important;
    }
    body .select-picker-popover > .select-picker-option:is(:hover, :active) {
        background: var(--option-hover) !important;
        color: var(--option-text) !important;
    }
    body .select-picker-popover > .select-picker-option[aria-selected="true"] {
        border-color: color-mix(in srgb, var(--option-accent) 23%, transparent) !important;
        background: var(--option-selected) !important;
        color: var(--option-text) !important;
    }
    body .select-picker-popover > .select-picker-option:focus-visible {
        outline: 2px solid var(--option-accent) !important;
    }
    @media (forced-colors: active) {
        body .select-picker-popover > .select-picker-option[aria-selected="true"] {
            border-color: Highlight !important;
        }
        body .select-picker-popover > .select-picker-option:focus-visible {
            outline-color: Highlight !important;
        }
    }
}

/* The wide rail scrolls vertically; mobile dock buttons keep their own gestures. */
@media (min-width: 900px) and (orientation: landscape) {
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav,
    #mainTabsNav.amlealt-primary-nav.amlealt-wide-nav > :is(.tab-button,.amlealt-nav-collapse-toggle) {
        touch-action: pan-y pinch-zoom !important;
    }
}
