/* Dashboard geometry, navigation icon system and late-opening themed surfaces. */
@media screen {
 #horizon-sge-app #system-container .view-section>.h29-welcome{display:flex;align-items:center;gap:18px;width:auto;min-width:0;max-width:100%;box-sizing:border-box;padding:22px 24px!important;border:1px solid var(--ui-border)!important;border-radius:18px!important;background:linear-gradient(115deg,var(--ui-soft),var(--ui-surface))!important;color:var(--ui-text)!important;box-shadow:0 4px 18px #102a4608!important}
 #horizon-sge-app #system-container .h29-welcome .h353-area-copy{min-width:0;flex:1}
 #horizon-sge-app #system-container .view-section>.h29-welcome h2{font-size:clamp(20px,1.7vw,24px)!important;line-height:1.3!important;letter-spacing:-.5px;color:var(--ui-text)!important;margin:0 0 6px}
 #horizon-sge-app #system-container .view-section>.h29-welcome p{font-size:13px;line-height:1.65;color:var(--ui-muted)!important;margin:0;overflow-wrap:anywhere}
 #horizon-sge-app .h353-area-icon{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);color:var(--ui-accent);font-size:23px;box-shadow:0 4px 12px #102a4608}
 /* Keep familiar glyphs, with consistent sizing and a restrained two-tone plate. */
 #horizon-sge-app #system-container #menu-area nav a{gap:12px!important;isolation:isolate}
 #horizon-sge-app #system-container #menu-area nav a:is([href],[onclick]) > i{display:inline-grid!important;place-items:center!important;flex:0 0 34px;width:34px!important;min-width:34px!important;height:34px!important;margin:0!important;border-radius:11px!important;border:1px solid #ffffff30;box-sizing:border-box;background:linear-gradient(145deg,#ffffff20,#ffffff08)!important;color:#dfedff!important;font-size:15px!important;box-shadow:inset 0 1px 0 #ffffff18,0 3px 8px #00244b12;transform:none;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important}
 #horizon-sge-app #system-container #menu-area nav a.active:is([href],[onclick]) > i{background:linear-gradient(145deg,#ffffff,#e0edff)!important;color:#0756a0!important;border-color:#c5dcf7;box-shadow:0 3px 10px #00244b24}
 #horizon-sge-app.hsg-dark #system-container #menu-area nav a.active:is([href],[onclick]) > i{background:linear-gradient(145deg,#2e5883,#1a3959)!important;color:#c5e3ff!important;border-color:#6087af}
 #horizon-sge-app #system-container #menu-area nav a:focus-visible > i{border-color:#d5eaff;box-shadow:0 0 0 3px #bfdfff26}
 #horizon-sge-app #system-container.sidebar-collapsed #menu-area nav a:is([href],[onclick]) > i{flex-basis:34px}
 /* Roster dialogs use legacy variable names; resolve them from the active palette. */
 #horizon-sge-app .h330-roster{--surface:var(--ui-surface);--surface-soft:var(--ui-soft);--text:var(--ui-text);--text-secondary:var(--ui-muted);--border:var(--ui-border);border:1px solid var(--ui-border);background:var(--ui-surface)!important;color:var(--ui-text)!important;color-scheme:inherit}
 #horizon-sge-app .h330-roster :is(td,th,button,input,select){border-color:var(--ui-border)}
 #horizon-sge-app #h330-roster .h330-column-options input[type=checkbox]{width:18px;min-width:18px;max-width:18px;min-height:18px;flex:0 0 18px;padding:0}
 #horizon-sge-app #h330-roster .h330-column-options label{min-width:0;overflow-wrap:normal;word-break:normal;line-height:1.5}
 #horizon-sge-app.hsg-dark .h330-roster :is(button:not(.h330-primary),a){color:var(--ui-accent)}
 #horizon-sge-app.hsg-dark :is(.h330-photo,#h330-family-switch){background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-border)}
 /* Signature statuses are UI; the signature pad and document paper retain white. */
 .hsig-overlay[data-hsg-theme=dark] .hsig-status:is([data-state=assinado],[data-state=valido]){background:#12362c;color:#96e4c2;border-color:#397e67}
 .hsig-overlay[data-hsg-theme=dark] .hsig-status[data-state=pendente]{background:#382d1c;color:#ffda96;border-color:#9c753b}
 .hsig-overlay[data-hsg-theme=dark] .hsig-status:is([data-state=cancelado],[data-state=bloqueado]){background:#3a202c;color:#ffb1b9;border-color:#995064}
 @media(max-width:600px){
  #horizon-sge-app #system-container .view-section>.h29-welcome{align-items:flex-start;gap:12px;padding:18px!important;border-radius:16px!important}
  #horizon-sge-app .h353-area-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:19px}
 }
 @media(hover:hover) and (pointer:fine){
  #horizon-sge-app #system-container #menu-area nav a:is([href],[onclick]):hover > i{border-color:#b9dcff;box-shadow:inset 0 1px 0 #ffffff28,0 4px 12px #00244b30}
  @media(prefers-reduced-motion:no-preference){
   #horizon-sge-app #system-container #menu-area nav a:is(:hover,:focus-visible) > i::before{display:inline-block;animation:hsg-area-hover 1.6s ease-in-out infinite}
  }
 }
}
@keyframes hsg-area-hover{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-2px) rotate(-6deg)}70%{transform:translateY(0) rotate(4deg)}}
