/* 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 { 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; }
/* Simple mode shares the original dock's geometry, retaining its own colors. */
body.interface-mode-simple .main-container { display:flex;flex-direction:column; }
body.interface-mode-simple .main-container > .tab-content { order:1; }
body.interface-mode-simple #mainTabsNav.amlealt-primary-nav { order:3;position:sticky;bottom:max(1rem,env(safe-area-inset-bottom));z-index:918;align-self:center;width:min(100%,430px);height:72px;display:flex;align-items:stretch;justify-content:center;gap:.25rem;margin:var(--space-5) auto 0;padding:.35rem;overflow:visible; }
body.interface-mode-simple #mainTabsNav.amlealt-primary-nav [data-primary-nav] { display:inline-flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:4px;border:0;font-size:11px;white-space:normal; }
body.interface-mode-simple #mainTabsNav.amlealt-primary-nav .innovative-tab-icon { width:23px;height:23px; }
body.interface-mode-simple #mainTabsNav.amlealt-primary-nav .innovative-tab-icon svg { width:100%;height:100%; }
body.interface-mode-simple #mainTabsNav.amlealt-primary-nav .innovative-tab-label { font-size:11px;line-height:1.2; }
body.interface-mode-simple #petAiFloat { bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 82px); }
@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; }
