/* Home: preserve the existing palette and composition while completing controls. */
#s-home .mod-card { font-family: inherit; text-align: left; color: var(--text-primary); }
#s-home .mod-ai { background: #101827; }
#s-home .home-avatar-wrap { display: flex; gap: 4px; align-items: center; }
#s-home .home-greeting-line { padding-right: 108px; }
#s-home .home-date { padding-right: 100px; }
#s-home .home-header { min-height: calc(var(--sat) + 68px); }
#s-home .home-avatar { width: 48px; height: 48px; font-family: inherit; padding: 0; }
.home-notifications { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--text-primary); border-radius: 8px; cursor: pointer; }
.home-notifications .notif-avatar-badge { top: 2px; right: 0; }
#s-home button:focus-visible, #globalBnav button:focus-visible,
#profileMenuBd button:focus-visible, #notifPanelBd button:focus-visible,
#s-checklist-select :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.home-operation-state[hidden], .home-operation-state button[hidden] { display: none; }
.home-operation-state { margin: -2px 18px 10px; display: flex; align-items: center; gap: 8px; color: var(--text-sec); font-size: 12px; line-height: 1.4; }
.home-operation-state span { flex: 1; min-width: 0; }
.home-operation-state button { flex: 0 0 auto; min-height: 48px; max-width: 112px; padding: 6px 10px; border: 1px solid var(--glass-border2); border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
#s-home .home-role-panel { height: auto; min-height: 190px; }
#s-home .home-operation-slide { position: relative; min-height: 190px; padding-bottom: 52px; font-family: inherit; }
#s-home .home-operation-slide:disabled { cursor: default; opacity: 1; }
#s-home .home-operation-title { max-width: 100%; display: block; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; }
#s-home .home-operation-summary { max-width: 100%; font-size: 13px; display: block; overflow: visible; }
#s-home .home-operation-avatars { bottom: 52px; }
#s-home .home-operation-indicators { height: 48px; bottom: 0; left: 6px; right: 6px; gap: 0; }
.home-operation-step { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #e4bd78; cursor: pointer; }
.home-operation-dots { display: flex; gap: 3px; align-items: center; min-width: 0; overflow: hidden; }
#s-home .home-operation-indicator { width: 13px; height: 2px; cursor: default; }
#s-home .home-operation-indicator.active::after { width: 13px; }
.home-operation-pause { flex-shrink: 0; min-width: 64px; min-height: 48px; padding: 0 8px; border: 0; background: transparent; color: #e4bd78; font: inherit; font-size: 12px; cursor: pointer; }
#s-home .home-operation-indicators:empty { display: none; }
#profileMenuBd .profile-menu { position: relative; }
#profileMenuBd .home-panel-close { position: absolute; top: 8px; right: 10px; width: 48px; height: 48px; background: transparent; color: var(--text-primary); border: 0; border-radius: 8px; cursor: pointer; }
#profileMenuBd button.pm-item { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; min-height: 48px; }
#notifPanelBd .notif-panel-header button { width: 48px; height: 48px; flex-shrink: 0; }
#notifPanelBd button.notif-item { width: 100%; min-height: 48px; font-family: inherit; text-align: left; border-top: 0; border-right: 0; border-left: 0; background: transparent; color: var(--text-primary); }
#s-home .mod-grid { grid-auto-rows: minmax(156px, auto); }
#s-home .mod-card-copy { flex-shrink: 0; }
#s-home .mod-card-name, #s-home .mod-card-stat { display: block; overflow: visible; overflow-wrap: anywhere; }
#s-home .mod-card-name { line-height: 1.25; }
#s-home .mod-card-cta { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
html[data-theme="light"] #s-home .mod-estoque .mod-card-name { color: #252d3b !important; }
html[data-theme="light"] #s-home .mod-estoque .mod-card-stat,
html[data-theme="light"] #s-home .mod-estoque .mod-card-cta,
html[data-theme="light"] #s-home .mod-estoque .mod-card-pill { color: #46505f !important; }
.checklist-select-title { font: 600 18px 'DM Sans', sans-serif; color: var(--text-primary); }
.checklist-select-body { padding: 12px 18px; }
.checklist-select-body label { display: block; font-size: 14px; margin-bottom: 8px; }
.checklist-select-body input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--glass-border2); border-radius: 8px; background: var(--glass-bg2); color: var(--text-primary); font: inherit; font-size: 16px; }
#checklistSelectStateM { color: var(--text-sec); font-size: 13px; line-height: 1.4; margin: 12px 0; }
.checklist-select-retry { min-height: 48px; padding: 8px 12px; border: 1px solid var(--glass-border2); border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; }
#checklistSelectListM h2 { font: 600 14px 'DM Sans', sans-serif; margin: 18px 0 4px; }
#checklistSelectListM button { width: 100%; min-height: 56px; display: block; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--glass-border); background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
#s-checklist-select .tb-back { min-width: 48px; min-height: 48px; }
@media (prefers-reduced-motion: reduce) {
  #s-home .mod-card, #s-home .card-orb { animation: none; transition: none; }
  #profileMenuBd .profile-menu, #notifPanelBd .notif-panel { transition: none; }
}

/* Second delivery: stable priorities, continuation and a shorter module grid. */
#s-home, #s-home-modules { --home-secondary: #adb8c8; }
#s-home { scroll-padding-bottom: calc(var(--nav-h) + var(--sab) + 24px); }
#s-home-modules { padding-bottom: 0; }
html[data-theme="light"] #s-home, html[data-theme="light"] #s-home-modules { --home-secondary: #526078; }
#s-home [hidden], #s-home-modules [hidden] { display: none !important; }
#s-home .mod-card { animation: none; }
#s-home .mod-rh { grid-column: auto; }
#s-home .home-priority-fixed { min-height: 0; }
#s-home .home-priority-fixed .home-operation-slide { min-height: 0; padding: 18px 16px; }
#s-home .home-priority-fixed .home-operation-category { white-space: normal; display: block; max-width: 100%; line-height: 1.4; }
#s-home .home-priority-fixed .home-operation-title { margin-top: 8px; }
#s-home .home-priority-fixed .home-operation-summary { margin-top: 6px; }
.home-action-label { display: block; margin-top: 12px; color: #e4bd78; font-size: 13px; font-weight: 600; }
#homeOtherPrioritiesV2 { border-top: 1px solid rgba(214,174,115,.22); color: #e4bd78; font-size: 13px; }
#homeOtherPrioritiesV2 summary { padding: 14px 16px; min-height: 48px; cursor: pointer; }
.home-priority-row { display: block; width: 100%; padding: 12px 16px; min-height: 48px; background: transparent; border: 0; color: #edf0f7; text-align: left; font: inherit; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 18px 4px; }
.home-section-heading h2, .home-continuation h2, .home-team h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.home-section-heading button { min-height: 48px; padding: 6px 0 6px 8px; border: 0; background: transparent; color: var(--home-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.home-empty-shortcuts { margin: 8px 18px 16px; font-size: 14px; color: var(--home-secondary); }
.home-continuation { margin: 18px 18px 6px; }
.home-continue-action { display: block; width: 100%; text-align: left; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--glass-border2); color: var(--text-primary); font: inherit; cursor: pointer; }
.home-continue-action strong { display: block; font-size: 15px; line-height: 1.4; }
.home-continue-action > span { display: block; font-size: 13px; line-height: 1.45; margin-top: 4px; }
.home-continue-action > span:not(.home-action-label) { color: var(--home-secondary); }
.home-team { margin: 20px 18px; }
.home-team h2 { margin-bottom: 8px; }
.home-team-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--glass-border); background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
.home-team-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.home-team-copy { min-width: 0; }
.home-team-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.home-team-copy > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--home-secondary); line-height: 1.45; margin-top: 4px; }
.home-catalog-body { padding: 12px 18px calc(24px + var(--sab)); }
.home-catalog-body label { display: block; font-size: 14px; margin-bottom: 8px; }
.home-catalog-body input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--glass-border2); border-radius: 8px; background: var(--glass-bg2); color: var(--text-primary); font: inherit; font-size: 16px; }
.home-catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-catalog-actions button { min-height: 48px; padding: 8px 12px; background: transparent; border: 1px solid var(--glass-border2); border-radius: 8px; color: var(--text-primary); font: inherit; cursor: pointer; }
#homeSaveFavoritesV2 { background: var(--gold); color: #152039; border-color: transparent; }
#homeModulesStatusV2 { font-size: 13px; color: var(--home-secondary); line-height: 1.45; }
#homeModuleListV2 h2 { margin: 24px 0 8px; font-size: 14px; color: var(--home-secondary); }
.home-module-row { display: flex; align-items: center; border-bottom: 1px solid var(--glass-border); }
.home-module-row button { background: transparent; border: 0; color: var(--text-primary); font: inherit; cursor: pointer; min-height: 56px; }
.home-module-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 0; }
.home-module-open svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; }
.home-row-chevron { margin-left: auto; font-size: 20px; color: var(--home-secondary); }
.home-favorite-toggle { flex: 1; text-align: left; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
.home-favorite-toggle[aria-pressed="true"] { color: #e4bd78; }
.home-favorite-move { width: 48px; flex: 0 0 48px; }
.home-favorite-move:disabled { opacity: .3; cursor: default; }
#s-home-modules .tb-back { min-width: 48px; min-height: 48px; font-size: 28px; }
#s-home-modules :focus-visible, #s-home summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html[data-theme="light"] .home-continue-action .home-action-label,
html[data-theme="light"] .home-favorite-toggle[aria-pressed="true"] { color: #795014; }

/* Main navigation keeps the established floating silhouette. */
#globalBnav.mobile-nav-v3 { padding: 6px 10px; gap: 4px; }
#globalBnav.mobile-nav-v3 [hidden], #mobileCreateOverlayM[hidden], #mobileCreateOverlayM [hidden] { display: none !important; }
#globalBnav.mobile-nav-v3 .nb { min-width: 48px; min-height: 56px; padding: 6px 2px; color: #adb8c8; }
#globalBnav.mobile-nav-v3 .nb > span { font-size: 11px; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; max-width: 100%; }
#globalBnav.mobile-nav-v3 .nb.active { color: var(--gold); }
#globalBnav.mobile-nav-v3 .nb-ctr { flex: 0 0 56px; width: 56px; height: 56px; gap: 2px !important; box-shadow: none; }
#globalBnav.mobile-nav-large-text { grid-template-columns: repeat(6,minmax(0,1fr)); border-radius: 24px; }
#globalBnav.mobile-nav-large-text .nb { grid-column: span 2; }
#globalBnav.mobile-nav-large-text .nb-ctr { justify-self: center; }
#globalBnav.mobile-nav-large-text .nb:nth-child(4) { grid-column: 2 / span 2; }
#globalBnav.mobile-nav-large-text .nb:nth-child(5) { grid-column: 4 / span 2; }
#globalBnav.mobile-nav-large-text .nb > span { white-space: nowrap; overflow-wrap: normal; }
#globalBnav.mobile-nav-v3 #navOsBadge { position: absolute; top: 2px; right: 2px; min-width: 16px; padding: 2px 4px; border-radius: 8px; background: var(--red); color: #fff8f5; font-size: 9px; line-height: 1; }
.screen.mobile-nav-visible { padding-bottom: var(--mobile-nav-space, calc(108px + var(--sab))) !important; scroll-padding-bottom: var(--mobile-nav-space, calc(108px + var(--sab))); }
html[data-theme="light"] #globalBnav.mobile-nav-v3 .nb { color: #526078; }
html[data-theme="light"] #globalBnav.mobile-nav-v3 .nb.active { color: #795014; }
.mobile-create-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(4,8,18,.68); display: flex; align-items: flex-end; }
.mobile-create-panel { width: 100%; max-height: calc(100dvh - var(--sat) - 16px); overflow-y: auto; padding: 16px 20px calc(24px + var(--sab)); background: #161c30; color: var(--text-primary); border: 1px solid var(--glass-border2); border-radius: 16px 16px 0 0; }
html[data-theme="light"] .mobile-create-panel { background: #f4f6fa; }
.mobile-create-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-create-header h2 { margin: 0; font-size: 20px; }
.mobile-create-header button { width: 48px; height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; flex-shrink: 0; }
.mobile-create-context { padding: 8px 0 12px; border-bottom: 1px solid var(--glass-border2); }
.mobile-create-context > span { display: block; color: #adb8c8; font-size: 13px; margin-bottom: 4px; }
.mobile-create-context strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.mobile-create-context button { display: block; min-height: 48px; padding: 8px 0; color: #e4bd78; background: transparent; border: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mobile-create-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 0; min-height: 72px; border: 0; border-bottom: 1px solid var(--glass-border); background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
.mobile-create-option svg { width: 22px; height: 22px; flex-shrink: 0; color: #e4bd78; }
.mobile-create-option > span:nth-child(2) { flex: 1; min-width: 0; }
.mobile-create-option strong { display: block; font-size: 16px; }
.mobile-create-option span span { display: block; margin-top: 4px; font-size: 13px; color: #adb8c8; line-height: 1.4; }
#mobileCreateOverlayM :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html[data-theme="light"] .mobile-create-context > span,
html[data-theme="light"] .mobile-create-option span span { color: #526078; }
html[data-theme="light"] .mobile-create-context button,
html[data-theme="light"] .mobile-create-option svg { color: #795014; }
@media (prefers-reduced-motion: reduce) { #globalBnav.mobile-nav-v3, #globalBnav.mobile-nav-v3 .nb, #globalBnav.mobile-nav-v3 svg { transition: none; } }
