/* Screen rhythm and motion; document stationery owns its print rules. */
@media screen{
 #horizon-sge-app #system-container .view-section{--ui-gap:20px}
 #horizon-sge-app #system-container .view-section>h2{font-size:clamp(22px,2.3vw,30px);letter-spacing:-.6px;margin:0 0 20px}
 #horizon-sge-app #system-container .view-section :is(.action-bar,.filter-bar,.table-header){gap:12px;margin-bottom:18px}
 #horizon-sge-app #system-container .view-section :is(.card,.chart-box,.chart-container){border-radius:16px!important}
 #horizon-sge-app #system-container .view-section .table-wrapper{border-radius:14px!important}
 #horizon-sge-app #system-container .view-section .table-wrapper :is(th,td){padding:14px 16px}
 #horizon-sge-app #system-container .view-section .table-wrapper th{font-size:12px;letter-spacing:.25px;line-height:1.5}
 #horizon-sge-app #system-container .view-section .table-wrapper tbody tr:hover{background:var(--ui-soft)}
 #horizon-sge-app #system-container .view-section :is(.form-group,.form-grid){margin-bottom:16px}
 #horizon-sge-app #system-container .view-section .form-group label{display:block;font-weight:650;margin-bottom:6px;color:var(--ui-muted)}
 #horizon-sge-app #system-container .view-section button{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
 #horizon-sge-app :is(.h32-form,.h330-roster) :is(input,select,textarea,button):focus-visible{outline:3px solid var(--ui-accent,#075bb5);outline-offset:3px}
 .h330-columns{margin:16px 24px;padding:16px;border:1px solid var(--ui-border,#d5e0ec);border-radius:12px;background:var(--ui-soft,#f4f7fb);color:var(--ui-text,#172d45)}
 .h330-columns summary{font-weight:700;cursor:pointer;min-height:32px}
 .h330-column-options,.h330-template-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
 .h330-column-options label{display:flex;align-items:center;gap:8px;min-height:36px;padding:4px 10px;border-radius:8px;background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#d5e0ec)}
 .h330-column-options input{width:18px;height:18px;accent-color:var(--ui-accent,#075bb5)}
 .h330-columns [data-template-message]{font-size:12px;margin:12px 0 0;color:var(--ui-muted,#52677e)}
 @media(max-width:760px){
  #horizon-sge-app #system-container .view-section>h2{margin-bottom:16px}
  #horizon-sge-app #system-container .view-section .table-wrapper :is(th,td){padding:12px}
  .h330-columns{margin:12px;padding:12px}.h330-column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.h330-column-options label{font-size:12px;padding:6px;overflow-wrap:anywhere}.h330-template-actions button{flex:1 1 100%;min-height:44px}
 }
 @media(hover:hover) and (pointer:fine){#horizon-sge-app #system-container .view-section button:hover:not(:disabled){box-shadow:0 3px 9px #1634531a}}
}
@media(prefers-reduced-motion:reduce){
 #horizon-sge-app *, .hsg-offline-dialog *, .hsg3051-print-overlay *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.h330-columns{display:none!important}}
@media screen and (prefers-reduced-motion:no-preference){
 #horizon-sge-app dialog[open]{animation:hsg-dialog-enter .22s ease-out}
 #horizon-sge-app #system-container .stat-card{transition:box-shadow .2s ease,border-color .2s ease,background-color .2s ease}
}
@keyframes hsg-dialog-enter{from{opacity:.6;translate:0 8px}to{opacity:1;translate:0 0}}
@media screen and (hover:hover) and (pointer:fine){
 #horizon-sge-app #system-container .view-section[id$="-dashboard"] .stat-card:hover{box-shadow:0 12px 26px #15365324!important;border-color:var(--ui-accent)!important}
 @media(prefers-reduced-motion:no-preference){
  #horizon-sge-app #system-container .view-section[id$="-dashboard"] .stat-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
  #horizon-sge-app #system-container .view-section[id$="-dashboard"] .stat-card:hover{transform:translateY(-4px)}
 }
}
