/* Shared reading and controls; charts, canvases and printed boards own their sizes. */
body.portal-body,body.fire-body{font-size:15px;line-height:1.6}
body.portal-body main,body.fire-body .fire-main{min-width:0}
.portal-body .page-heading,.fire-body .page-heading{flex-wrap:wrap;align-items:center;gap:12px}
.portal-body .page-heading>div,.fire-body .page-heading>div{min-width:0}
.portal-body .page-heading h1,.fire-body .page-heading h1{overflow-wrap:anywhere}
.portal-body .form-actions,.fire-body .form-actions{flex-wrap:wrap;gap:10px}
.portal-body .grow,.fire-body .grow{min-width:0;overflow-wrap:anywhere}
.portal-body .table-wrap,.fire-body .table-wrap,.portal-body .check-table-wrap,.portal-body .records-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
body.portal-body .button,body.fire-body .button{font-size:14px;line-height:1.5;min-height:40px;max-width:100%;white-space:normal;text-align:center}
body.portal-body :is(.field,.filters,.records-filters,.ms-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-width:0;max-width:100%}
.portal-body :is(.field,.check-field)>label,.fire-body .field>label{font-size:14px;line-height:1.5}
.portal-body :is(.muted,.push-status,.table-info,.ledger-secondary,.device-row small,.message-row small),.fire-body .muted{font-size:13px;line-height:1.6}
.portal-body .filters,.fire-body .filters{flex-wrap:wrap}
.portal-body .account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.portal-body .facts strong{overflow-wrap:anywhere}
.portal-body .device-row,.portal-body .message-row{align-items:center;gap:12px}
.portal-body .device-row form,.portal-body .message-row form{flex:none}
.portal-body .device-row strong,.portal-body .message-row strong{font-size:15px;line-height:1.5}
.portal-body .panel-head h2,.fire-body .panel-head h2{font-size:18px;line-height:1.4}
.admin-subnav-label{display:block;padding:8px 10px 3px;color:#a9c0da;font-size:12px}
.portal-body .notification-settings-link{margin:16px 0;font-size:14px}
.portal-body .notification-settings-link a{display:inline-flex;align-items:center;min-height:40px}
.portal-body .records-picker{min-width:0;flex-wrap:wrap}
.portal-body .records-picker select{max-width:min(100%,460px);min-width:0}
.portal-body .ms-list-head{flex-wrap:wrap;gap:10px}
.portal-body .ms-list-head>strong,.portal-body .ms-list-head>.muted{min-width:0}
.portal-body .contest-console{max-width:100%;min-width:0}
.portal-body .contest-console :is(input,select){font-size:16px;min-height:40px;max-width:100%;min-width:0}
.portal-body .contest-table{font-size:14px}
.portal-body .contest-table small{font-size:12px;line-height:1.5}
.portal-body .contest-console .actions{display:flex;flex-wrap:wrap;gap:8px}
/* Business metadata remains readable without resizing charts or canvas labels. */
body.portal-body td small,body.fire-body td small{font-size:13px;line-height:1.6}
body.fire-body th{font-size:14px}
body.portal-body .page-heading p,body.portal-body .profile-identity p,
body.portal-body .facts span,body.fire-body .facts span,
body.portal-body .pagination,body.fire-body .pagination,
body.portal-body .check-pagination,body.portal-body .panel-head a,
body.portal-body .todo-section .panel-head .count{font-size:13px;line-height:1.6}
body.portal-body .badge,body.portal-body .hazard-row .badge,
body.portal-body .mobile-hazard-card .badge,body.portal-body .device-row strong .badge{font-size:13px}
body.portal-body .dispatch-page .badge,body.portal-body .check-table small,
body.portal-body .dispatch-item-summary .dispatch-row-complete{font-size:13px}
body.portal-body .mobile-ledger-number,body.portal-body .mobile-ledger-facts,
body.portal-body .risk-chip,body.portal-body .mobile-ledger-photos>div>span:first-child,
body.portal-body .mobile-ledger-bottom,body.portal-body .mobile-ledger-bottom small,
body.portal-body .ledger-photo-empty{font-size:13px;line-height:1.6}
body.portal-body .panel .meta,body.portal-body .company-feed .meta,
body.portal-body .event-status,body.portal-body .eyebrow,
body.portal-body .record-fields span,body.portal-body .record-fields small,
body.portal-body .photo-drop-hint,body.portal-body .report-section h2 small,
body.portal-body .field small{font-size:13px;line-height:1.6}
body.portal-body .review-item-main small,body.portal-body .review-open,
body.portal-body .admin-review-panel .review-index,
body.portal-body .todo-item span,body.portal-body .admin-todo-groups .todo-item span{font-size:13px;line-height:1.6}
body.portal-body .review-item-main strong{font-size:15px;line-height:1.6}
body.portal-body .hazard-metric>span{font-size:13px}
body.portal-body .ledger-status,body.portal-body .detail-grid .file-summary{font-size:13px;line-height:1.6}
body.portal-body .todo-ready-checks{grid-column:1/-1;border:2px solid #c65c10;border-top-width:5px;background:#fff8ed}
body.portal-body .todo-ready-checks :is(.panel-head,.ws-card-head){background:#fff0d8;border-bottom:1px solid #edc692}
body.portal-body .todo-ready-checks h2{color:#8c3900;font-weight:750}
body.portal-body .todo-ready-checks :is(.count,.ws-count,.ws-status){color:#fff;background:#a94500;font-weight:700}
body.portal-body .todo-ready-checks .inspection-claim{color:#fff;background:#a94500!important;border-color:#a94500;font-weight:700}
body.portal-body .todo-ready-checks :is(.todo-info strong,.ws-task-main strong){color:#733000}
@media(max-width:700px){
  html[data-authenticated=true] .fire-body .fire-main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body.portal-body .button,body.fire-body .button{min-height:44px;font-size:15px;padding:9px 14px}
  .portal-body .icon-button,.fire-body .icon-button{min-width:44px;min-height:44px}
  .portal-body .pagination a,.fire-body .pagination a,.portal-body .records-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:14px}
  .portal-body .text-button,.fire-body .text-button{min-height:44px;min-width:44px;font-size:14px}
  .portal-body .account-grid{grid-template-columns:minmax(0,1fr)}
  .portal-body .account-grid .panel{min-width:0}
  .portal-body .device-row,.portal-body .message-row{padding:14px;gap:10px}
  .portal-body .filters :is(input,select),.fire-body .filters :is(input,select){min-height:44px;font-size:16px}
  .portal-body .records-picker{width:100%;gap:8px}
  .portal-body .records-picker select{flex:1;max-width:100%}
  .portal-body .ms-list-head>.muted{flex-basis:100%;font-size:13px}
  .portal-body .mobile-nav a,.fire-body .mobile-nav a{min-height:56px;font-size:12px}
  .portal-body .mobile-nav,.fire-body .mobile-nav{padding-bottom:env(safe-area-inset-bottom)}
  body.portal-body .small-delete{min-width:44px;min-height:44px;font-size:13px;padding:8px}
  body.portal-body .panel-head>a{display:inline-flex;align-items:center;min-height:44px}
}

/* The text opens the page; the triangle expands its child entries. */
.admin-side-nav .admin-nav-group{min-width:0;padding:0;border:0;margin:0}.admin-nav-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;gap:4px;color:#c0d4ea;padding:0}.admin-nav-group>summary::-webkit-details-marker{display:none}.admin-nav-group>summary::after{content:"";display:block;width:0;height:0;border-inline:5px solid transparent;border-top:6px solid currentColor;transform:none;flex:none;margin:0 12px 0 4px}.admin-nav-group[open]>summary::after{transform:rotate(180deg)}.admin-nav-group>summary>a{flex:1;min-width:0;min-height:44px;font-size:14px}.admin-nav-group>summary>a[aria-current=location]{background:#ffffff15;border-left:3px solid #f28c3b;border-radius:5px;color:#fff}.admin-nav-group>summary:focus-visible{outline:2px solid #f28c3b;outline-offset:2px}.admin-subnav .admin-subnav{padding-left:12px}.admin-subnav a{overflow-wrap:anywhere}.admin-subnav .admin-nav-group>summary>a{font-size:14px}
