/* StormCore interface type: Manrope, locally hosted under the SIL OFL. */
@font-face{font-family:StormCore UI;src:url('/stormcore-ui.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;}
:root{--sc-ui-font:'StormCore UI','Segoe UI',sans-serif;}
@media screen{
 body{font-family:var(--sc-ui-font);font-size:14px;line-height:1.55;}
 #stormcoreApp :is(p,span,strong,b,small,label,input,select,textarea,a,button,th,td,h1,h2,h3,h4,time,summary),
 :is(#stormcoreAuthGate,#modal,.sc-confirm-dialog) :is(p,span,strong,b,small,label,input,select,textarea,a,button,h1,h2,h3){font-family:var(--sc-ui-font)!important;}
 #stormcoreApp :is(h1,h2,h3,h4),#modal :is(h2,h3){letter-spacing:-.025em;font-weight:700;}
 #stormcoreApp :is(.module-heading,.production-heading,.workday-heading) h1{font-size:clamp(1.5rem,1.2rem + .6vw,1.875rem)!important;line-height:1.25!important;font-weight:750!important;}
 #stormcoreApp :is(.module-record,.tool-card,.storm-card,.fieldcam-card,.settings-section,.workday-card) p{font-size:.875rem;line-height:1.6;}
 #modalBody label{font-size:.8125rem;line-height:1.5;font-weight:600;}
 #modalBody :is(input,select,textarea){font-size:.875rem;line-height:1.5;}
 #stormcoreApp :is(input,select,textarea){font-variant-numeric:tabular-nums;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-title>strong{font-size:1.0625rem;line-height:1.4;font-weight:750;letter-spacing:-.025em;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-title .contact-kind{background:none;padding:0;margin-top:5px;font-size:.6875rem;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:#3c6582;border-radius:0;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-identity{gap:16px;align-items:center;}
 #workspaceModule .contact-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;box-sizing:border-box;border:0;border-radius:50%;overflow:visible;background:#eaf4ff;box-shadow:none;color:#1467ac;}
 #workspaceModule .contact-avatar::before,#workspaceModule .contact-avatar::after{content:none;}
 #workspaceModule .contact-avatar>svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
 #workspaceModule #modal[data-workspace-page=contacts] .module-record{border:1px solid #c4d7e8!important;border-top:1px solid #c4d7e8!important;border-radius:16px;background:#fff!important;box-shadow:0 3px 12px #163e5f0a;}
 #workspaceModule #modal[data-workspace-page=contacts] .module-record>.contact-main{padding:22px;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-identity{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #e2ebf3;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-title>strong{color:#15344e;line-height:1.45;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-title .contact-kind{font-size:.75rem;letter-spacing:.025em;text-transform:none;font-weight:600;color:#5b748a;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-details{gap:14px;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-detail{grid-template-columns:64px minmax(0,1fr);gap:12px;color:#26465f;}
 #workspaceModule #modal[data-workspace-page=contacts] .module-actions{padding:16px 22px!important;background:#f6f9fc;border-top:1px solid #e2ebf3;}
 #workspaceModule .contact-detail{font-size:.8125rem;line-height:1.55;}
 #workspaceModule .contact-detail>span:first-child{font-size:.6875rem;line-height:1.7;font-weight:600;color:#526e84;}
 @media(max-width:800px){#modalBody :is(input,select,textarea){font-size:1rem;}}
}
@layer stormcore-actions{
 @media screen{
  #stormcoreApp button,#modalBody button,.sc-confirm-dialog button{font-family:var(--sc-ui-font)!important;font-weight:650!important;letter-spacing:0!important;}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))!important;gap:12px!important;box-shadow:none!important;}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-control>.contact-category-trigger{display:grid!important;grid-template-columns:minmax(0,1fr) 18px!important;align-items:center!important;gap:12px!important;min-height:52px!important;padding:14px 16px!important;font-size:.875rem!important;line-height:1.4!important;font-weight:650!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
  #workspaceModule .contact-category-trigger>.contact-category-chevron{width:18px!important;height:18px!important;}
  /* Account for the sidebar: five columns only when the content has enough room. */
  @media(min-width:761px) and (max-width:1100px){.contact-category-controls>.contact-category-control:first-child{grid-column:1/-1;}#workspaceModule .contact-category-control:nth-child(odd):not(:first-child) .contact-category-dropdown{left:auto;right:0;}}
  #workspaceModule .contact-category-dropdown{font-size:.875rem;}
 }
}
/* FINAL101 — compact StormCore workspace rails and contact snippets. */
@media screen{
 html body #stormcoreApp :is(#workspaceModule .module-heading,#productionWorkspace>.production-heading){
  min-height:60px!important;padding:8px 16px!important;margin-bottom:14px!important;
  gap:10px!important;flex-wrap:wrap;border:1px solid #a9cde6!important;border-left:1px solid #65b5e8!important;
  border-radius:8px!important;background:#f1f8ff url('icons/stormcore-header-energy.svg') right center/cover no-repeat!important;
  color:#123d5f;box-shadow:0 1px 0 #fff inset,0 3px 10px #176da90c!important;
 }
 html body #stormcoreApp :is(#workspaceModule .module-heading,#productionWorkspace>.production-heading) h1{font-size:1.25rem!important;line-height:1.3!important;letter-spacing:-.025em!important;color:#123d5f!important;margin:0!important;text-shadow:0 1px 0 #fff;}
 html body #stormcoreApp :is(#workspaceModule .module-heading,#productionWorkspace>.production-heading)>div:first-child{flex:1 1 auto!important;min-width:0;}
 html body #stormcoreApp :is(#workspaceModule .module-heading,#productionWorkspace>.production-heading)::after{content:none!important;}
 html body #stormcoreApp #platformHome .workday-heading{padding:12px 0!important;gap:12px;}
 html body #stormcoreApp #platformHome .workday-heading h1{font-size:1.375rem!important;line-height:1.3!important;margin:2px 0!important;}
 #platformHome .workday-eyebrow{font-size:.6875rem;letter-spacing:.09em;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-search-row{padding:0!important;margin-top:10px!important;margin-bottom:16px!important;border:0!important;border-left:0!important;background:none!important;box-shadow:none!important;}
 #workspaceModule #modal[data-workspace-page=contacts] .module-record>.contact-main{padding:18px;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-identity{padding-bottom:14px;margin-bottom:14px;gap:12px;}
 #workspaceModule .contact-avatar{flex-basis:44px;width:44px;height:44px;}
 #workspaceModule .contact-avatar>svg{width:27px;height:27px;}
 #workspaceModule #modal[data-workspace-page=contacts] .contact-details{gap:10px;}
 #workspaceModule #modal[data-workspace-page=contacts] .module-actions{padding:12px 18px!important;}
 #modal:not([data-workspace-page]) #modalBody>h2:first-child{font-size:1.125rem!important;line-height:1.35!important;padding-top:12px!important;padding-bottom:12px!important;}
}
@layer stormcore-actions{
 @media screen{
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-controls{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;padding:0!important;margin-bottom:0!important;}
  #workspaceModule .contact-category-controls>.contact-category-control{flex:0 1 auto;min-width:0;}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-control>.contact-category-trigger{
   --sc-action-fill:linear-gradient(135deg,#0878dd,#075fc7);--sc-action-ink:#fff;--sc-action-border:#238de8;
   display:flex!important;justify-content:center!important;gap:8px!important;width:auto!important;
   min-height:44px!important;padding:9px 12px!important;margin:0!important;border-radius:8px!important;font-size:.8125rem!important;
   font-weight:650!important;line-height:1.4!important;box-shadow:0 1px 0 #fff inset!important;
  }
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-control>.contact-category-trigger:is([aria-pressed=true],[aria-expanded=true]){
   --sc-action-fill:linear-gradient(115deg,#10314e,#16496c);--sc-action-ink:#f5fbff;--sc-action-border:#16496c;
   box-shadow:inset 0 -2px 0 #26b9ed!important;
  }
  #workspaceModule .contact-category-trigger>.contact-category-chevron{width:14px!important;height:14px!important;flex-basis:14px;}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-dropdown{top:calc(100% + 6px);max-width:min(260px,calc(100vw - 64px));}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-dropdown>button{min-height:44px!important;padding:9px 12px!important;margin:0!important;font-size:.8125rem!important;}
  html body #stormcoreApp :is(#workspaceModule .module-heading,#productionWorkspace>.production-heading) button{
   flex:0 1 auto!important;width:auto!important;min-height:44px!important;padding:8px 12px!important;font-size:.8125rem!important;border-radius:7px!important;
  }
  #workspaceModule #modal[data-workspace-page=contacts] .module-actions :is(button,a){padding:8px 12px!important;margin:0!important;}
 }
}
