/* Shared screen density. Keep input text readable and touch targets at 44px. */
@media screen {
 body{font-size:16px;line-height:1.5}
 button{min-height:44px;padding:6px 10px;font-size:14px;line-height:1.4;border-radius:8px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;padding:8px 10px;min-height:44px;border-radius:8px}
 .field input,.field select,.member-name-input{height:44px;min-height:44px;padding:8px 10px;font-size:16px}
 .field{font-size:14px;line-height:1.4;min-width:0}
 .field>span{display:block;margin:0 0 4px}
 .fields{gap:10px}
 .panel{padding:12px 14px;border-radius:12px;margin-bottom:12px}
 .panel-heading{gap:8px;margin-bottom:10px;align-items:center}
 .panel-heading h2,.panel h2{font-size:18px;line-height:1.4;margin-top:0;margin-bottom:8px}
 .panel-heading h2{margin-bottom:0}
 .panel-heading p,.panel>p{margin:6px 0 10px}
 .panel-heading button{font-size:14px;padding:6px 10px}
 .input-panel fieldset,.beam-load-editor fieldset{margin:12px 0 0;padding:8px 0 0;border:0;border-top:1px solid var(--line);min-width:0}
 .input-panel legend,.beam-load-editor legend{font-size:14px;line-height:1.4;padding:0 8px 0 0}
 .beam-load-editor>h2{margin-bottom:6px}
 .beam-load-editor>p{font-size:14px;margin:4px 0 8px}
 .beam-primary-load-fields{display:block;margin:8px 0}
 .beam-primary-load-fields>.field{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);gap:10px;align-items:center}
 .beam-primary-load-fields>.field>span{margin:0}
 .beam-self-weight{padding:8px 10px;margin:8px 0;font-size:14px;min-height:44px}
 .beam-self-weight strong{font-size:14px}
 .beam-self-weight p{font-size:16px}
 .beam-load-editor fieldset>button{margin-top:6px}
 .load-swipe{margin:6px 0}
 .load-swipe .load-row{padding:6px 8px}
 .load-row input{padding:6px;height:44px}
 .load-row .field>span{margin-bottom:3px}
 .member-swipe{margin:6px 0}
 .member-item{gap:6px}
 .member-name-input{padding:6px 10px}
 .member-list .panel-heading{margin-bottom:8px}
 .member-list{padding:10px 12px}
 .beam-dimension-fields{margin:8px 0;gap:8px}
 .beam-design-editor{padding:10px 12px}
 .selection-feedback{padding:10px 12px}
 .selection-feedback .selection-check{padding:8px 10px;margin:6px 0}
 .selection-feedback .selection-check p{margin:3px 0;font-size:16px}
 .selection-feedback .selection-check button{margin-top:2px;min-height:44px;padding:5px 8px}
 .sheet-list{gap:6px;margin-top:8px}
 .sheet-choice{padding:8px 10px;gap:2px;min-height:58px;font-size:16px}
 .sheet-choice small{font-size:13px}
 .material-tabs,.review-head{margin-bottom:10px;gap:6px}
 .material-tabs button{padding:6px 10px}
 .export-total{padding:8px 10px}
 .summary-sheets{line-height:1.6}
 .section-panel{margin:12px 0}
 .section-panel-head{padding:10px 12px}
 .section-panel-head h2{font-size:18px}
 .result-banner{padding:10px 12px;margin:12px 0;gap:8px}
 .result-banner p{margin:3px 0 0}
 .sub-actions{gap:6px}
 .card{padding:12px}
 .stat{padding:10px 12px}
 .database th,.database td{padding:8px 10px}
 dialog,#install-dialog{padding:16px}
 .modal-head{gap:8px}.modal-head h2{font-size:18px}
 .export-tools{padding:8px 0;gap:6px;flex-wrap:wrap}
 .export-tools button{font-size:14px;padding:6px 8px;min-height:44px}
 .export-option{padding:7px 8px;font-size:16px;min-height:44px;gap:8px}
 .modal-foot{gap:10px;margin-top:12px}
 header{height:50px;padding-inline:16px}
 .installed-app header{height:calc(50px + env(safe-area-inset-top))}
 .crumb{font-size:14px;gap:6px}
 .header-actions button{min-height:44px;padding:6px 10px;font-size:14px}
 .flow-header{top:50px;padding:6px 0;margin-bottom:10px}
 .installed-app .flow-header{top:calc(50px + env(safe-area-inset-top))}
 .flow-header h1{font-size:18px;line-height:1.4;margin-bottom:4px}
 .flow-steps{gap:4px}
 .flow-steps button{min-height:44px;padding:4px;gap:4px}
 .flow-steps button small{font-size:14px;line-height:1.35}
 .flow-actions{padding:6px 10px;gap:6px;margin-top:10px}
 .flow-actions button{min-height:44px;font-size:14px;padding:6px 12px}
 .app-install-bar,#app-update{padding:6px 14px;gap:8px}
 .app-install-bar img{width:30px;height:30px}
 .app-install-bar button,#app-update button{padding:6px 8px;min-height:44px}
 .work-tabs button{min-height:44px;padding:6px 8px;gap:8px;font-size:14px}
 .work-tabs [data-work-view] span{width:26px;height:26px;border-radius:7px;font-size:18px}
 footer{padding-top:10px;font-size:13px}
 @media(max-width:760px){
  main{padding:8px 10px 76px}
  .panel{padding:10px 12px}
  header{padding-inline:8px}
  .crumb{font-size:14px}
  .crumb .workspace-label{display:none}
  .crumb>strong{max-width:75px}
  .header-actions button{font-size:14px;padding:6px 8px}
  .flow-steps button{flex-direction:column;justify-content:center;gap:5px}
  .flow-steps button span{display:grid;min-width:26px;height:26px;font-size:13px}
  .flow-steps button small{font-size:12px;white-space:nowrap}
  #sidebar,.installed-app #sidebar{height:calc(58px + env(safe-area-inset-bottom));padding:3px 8px env(safe-area-inset-bottom)}
  .work-tabs button{min-height:50px;padding:2px 4px;gap:2px;font-size:14px}
  .work-tabs [data-work-view] span{width:24px;height:24px;font-size:17px}
  .flow-actions{bottom:calc(58px + env(safe-area-inset-bottom));padding:6px 10px}
  footer{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  #toast{bottom:calc(72px + env(safe-area-inset-bottom))}
 }
}

@media screen{
 .load-swipe .load-row,.member-swipe .member-item{transform:translate3d(var(--swipe-offset,0px),0,0);transition:transform .16s ease-out;touch-action:pan-y}
 .load-swipe.open .load-row,.member-swipe.open .member-item{transform:translate3d(var(--swipe-offset,-72px),0,0)}
 .load-swipe.swiping .load-row,.member-swipe.swiping .member-item{transition:none;will-change:transform;user-select:none;-webkit-user-select:none}
 .load-swipe.swiping input,.member-swipe.swiping input{user-select:none;-webkit-user-select:none}
 .load-swipe.swiping .load-swipe-delete,.member-swipe.swiping .member-swipe-delete{visibility:visible}
 .load-swipe input,.member-swipe input,.member-swipe button{touch-action:pan-y}
 @media(prefers-reduced-motion:reduce){.load-swipe .load-row,.member-swipe .member-item{transition:none}}
}

/* Compact project overview without shrinking the action hit areas. */
@media screen {
 .project-library-heading{gap:10px;margin-bottom:14px}
 .project-library h1{margin-bottom:4px}
 .project-library-heading p{line-height:1.4}
 .project-library input[type=search]{min-height:44px;padding:8px 10px;margin-bottom:8px}
 .project-count{margin-bottom:10px}
 .project-cards .project-swipe{margin-bottom:10px;border-radius:10px}
 .project-cards .project-item>button.project-card-main{min-height:0;padding:10px 12px;gap:3px 8px;line-height:1.4}
 .project-cards .project-type{font-size:.8125rem;line-height:1.35}
 .project-cards .project-card-main strong{font-size:1rem;line-height:1.4}
 .project-cards .project-card-main small,.project-cards .project-open-cue{font-size:.8125rem;line-height:1.4}
 .project-cards .project-card-actions{padding:6px 10px;gap:6px}
 .project-cards .project-card-actions button{min-height:44px;padding:4px;font-size:.875rem;line-height:1.35}
 .project-cards .project-card-foot{padding:0 12px 6px;font-size:.75rem;line-height:1.4}
}

/* Calculation workspace: compact white cards and a collapsing step header. */
@media screen {
 body.calculation-screen{--bg:#f3f6f5;background:var(--bg)}
 .calculation-screen main{padding-top:6px}
 .calculation-screen .flow-header{background:#fff;border:1px solid #dce7e1;border-radius:14px;padding:10px;margin-bottom:10px;box-shadow:0 3px 14px #163f3606;transition:padding 220ms ease,border-radius 220ms ease,box-shadow 220ms ease}
 .calculation-screen .flow-header h1{font-size:18px;line-height:1.4;max-height:32px;overflow:hidden;opacity:1;margin:0 2px 8px;transition:max-height 220ms ease,margin 220ms ease,opacity 160ms ease}
 .calculation-screen .flow-steps{gap:6px}
 .calculation-screen .flow-steps button{border:0;border-radius:9px;background:#f1f5f3;color:#60746a;margin:0;min-height:44px;padding:6px 8px;gap:6px;transition:background 180ms ease,color 180ms ease,padding 220ms ease}
 .calculation-screen .flow-steps button small{font-size:14px}
 .calculation-screen .flow-steps button span{min-width:24px;height:24px;background:#e2ebe5;font-size:12px;box-shadow:none;flex-shrink:0}
 .calculation-screen .flow-steps button.active{background:#153f36;color:white;box-shadow:0 2px 5px #153f3614}
 .calculation-screen .flow-steps button.active span{background:#ffffff25;color:white}
 .calculation-screen .flow-steps button.done{background:#e8f0ec;color:#28604b}
 .calculation-header-compact .flow-header{padding:5px 8px;border-radius:0 0 12px 12px;box-shadow:0 4px 14px #163f3610}
 .calculation-header-compact .flow-header h1{max-height:0;margin-bottom:0;opacity:0}
 .calculation-screen #content>.panel{border-color:#dfe8e3;box-shadow:0 2px 10px #163f3604;margin-bottom:10px}
 .calculation-screen .member-list .panel-heading{margin-bottom:6px}
 .calculation-screen .member-list .panel-heading h2{font-size:18px}
 .calculation-screen .member-list .panel-heading button{font-size:14px}
 .calculation-screen .member-list .member-item{background:#f6f9f7;border-color:#e1eae4;padding:4px 6px}
 .calculation-screen .member-name-input{background:transparent;border-color:transparent;font-weight:700}
 .calculation-screen .member-name-input:focus{background:white}
 .calculation-screen .member-item>button{font-size:14px;background:white;border-color:#dce7e1;color:#526c5e}
 .calculation-screen .sheet-choice{background:white;border:1px solid #e0e9e3;border-radius:10px;padding:9px 12px;gap:2px;box-shadow:0 1px 3px #163f3603;transition:background 150ms ease,border-color 150ms ease}
 .calculation-screen .sheet-choice strong{font-size:16px;font-weight:700;color:#25483b}
 .calculation-screen .sheet-choice small{font-size:14px;color:#718279}
 .calculation-screen .sheet-choice:hover,.calculation-screen .sheet-choice.chosen{background:#edf5f0;border-color:#adc9b9}
 .calculation-screen .input-panel>.panel-heading{margin-bottom:6px}
 .calculation-screen .input-panel>.panel-heading p{font-size:14px;line-height:1.45;margin:3px 0 0}
 .calculation-screen .input-panel fieldset{margin-top:10px;padding-top:8px}
 .calculation-screen .input-panel legend{font-weight:700;color:#315c49}
 .calculation-screen .field input,.calculation-screen .field select{background:#f8faf9;border-color:#dce6df}
 .calculation-screen .flow-actions{border-color:#dfe8e3;background:#fffffffa;box-shadow:0 -4px 16px #163f3608}
 .calculation-screen .flow-actions .primary{min-width:112px}
 .calculation-screen .input-panel{scroll-margin-top:135px}
 @media(max-width:760px){
  .calculation-screen main{padding:4px 10px 86px}
  .calculation-screen .flow-header{padding:8px;margin-bottom:8px}
  .calculation-screen .flow-steps button{padding:6px 4px;gap:4px;min-height:58px}
  .calculation-screen .flow-steps button small{font-size:14px}
  .calculation-header-compact .flow-header{padding:4px 6px}
  .calculation-header-compact .flow-steps button{flex-direction:row;min-height:44px}
  .calculation-screen .member-list{padding:8px 10px}
  .calculation-screen .panel-heading{gap:6px}
  .calculation-screen .input-panel>.panel-heading{align-items:flex-start}
  .calculation-screen .input-panel>.panel-heading p{max-width:30ch}
 }
 @media(max-width:380px){.calculation-header-compact .flow-steps button span{display:none}}
 @media(prefers-reduced-motion:reduce){
  .calculation-screen .flow-header,.calculation-screen .flow-header h1,.calculation-screen .flow-steps button,.calculation-screen .sheet-choice{transition:none}
 }
}
@media screen and (min-width:360px) and (max-width:760px){
 .calculation-screen .input-panel fieldset>.fields:not(.steel-fields){grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px}
 .calculation-screen .input-panel fieldset>.fields>.field input,.calculation-screen .input-panel fieldset>.fields>.field select{width:100%;min-width:0}
}
@media screen and (min-width:360px) and (max-width:760px){
 .calculation-screen .input-panel fieldset>.fields:not(.steel-fields)>.field:has(select){grid-column:1/-1}
}

/* Match the quotation app: visible title, vertical steps and slim underlines. */
@media screen{
 body.calculation-screen{--bg:#eef0f4}
 .calculation-screen .flow-header{background:var(--bg);border:0;border-radius:0;padding:6px 0;margin-bottom:8px;box-shadow:none;transition:padding 220ms ease}
 .calculation-screen .flow-header h1{max-height:32px;opacity:1;margin:0 0 5px;font-size:18px;transition:max-height 280ms cubic-bezier(.22,.61,.36,1),margin 280ms cubic-bezier(.22,.61,.36,1),opacity 180ms ease}
 .calculation-screen .flow-steps{gap:4px}
 .calculation-screen .flow-steps button,.calculation-screen .flow-steps button.done,.calculation-screen .flow-steps button.active{flex-direction:column;justify-content:center;gap:4px;min-height:60px;padding:5px 2px;border:0;border-bottom:2px solid #dce2df;border-radius:0;background:transparent;box-shadow:none;color:#738179;transition:min-height 220ms ease,padding 220ms ease,gap 220ms ease}
 .calculation-screen .flow-steps button small{font-size:14px;line-height:1.35;font-weight:400;white-space:nowrap}
 .calculation-screen .flow-steps button span{display:grid;place-items:center;min-width:23px;width:23px;height:23px;font-size:12px;border-radius:50%;background:#e9efea;color:#748779;transition:width 220ms ease,height 220ms ease,min-width 220ms ease}
 .calculation-screen .flow-steps button.active{border-color:#b99758;color:#153f36}
 .calculation-screen .flow-steps button.active small{font-weight:700}
 .calculation-screen .flow-steps button.active span{background:#153f36;color:white}
 .calculation-screen .flow-steps button.done{border-color:#8ba699}
 .calculation-screen.calculation-header-compact .flow-header{padding:0;margin-bottom:8px;border-radius:0;box-shadow:none}
 .calculation-screen.calculation-header-compact .flow-header h1{max-height:0;opacity:0;margin:0}
 .calculation-screen.calculation-header-compact .flow-steps button{flex-direction:column;min-height:44px;padding:1px 2px;gap:1px}
 .calculation-screen.calculation-header-compact .flow-steps button span{display:grid;min-width:17px;width:17px;height:17px;font-size:11px}
 @media(prefers-reduced-motion:reduce){.calculation-screen .flow-header,.calculation-screen .flow-header h1,.calculation-screen .flow-steps button,.calculation-screen .flow-steps button span{transition:none}}
}

/* Quotation-style overview and calculation choices. */
@media screen {
 .project-library h1{font-size:18px;line-height:1.35;margin-bottom:3px}
 .project-library-heading{align-items:center;gap:8px;margin-bottom:12px}
 .project-library-heading p{font-size:14px;line-height:1.4;max-width:25ch}
 .project-library-heading button{font-size:14px;padding:6px 10px;min-height:44px}
 .project-cards .project-item>button.project-card-main{padding:10px 12px;gap:2px 10px}
 .project-cards .project-type{font-size:12px;line-height:1.4;color:#7c8a81}
 .project-cards .project-card-actions{padding:6px 8px;gap:5px}
 .project-cards .project-card-actions button{font-size:14px;line-height:1.3;border-radius:7px}
 .project-cards .project-card-foot{font-size:12px;padding:0 10px 5px}
 .project-trash{font-size:14px;margin-top:12px}
 .calculation-screen .flow-header{padding:3px 0;margin-bottom:8px}
 .calculation-screen .flow-header h1{font-size:17px;margin-bottom:3px}
 .calculation-screen .flow-steps button{min-height:49px;padding:3px 2px;gap:2px}
 .calculation-screen .flow-steps button span{min-width:20px;width:20px;height:20px;font-size:11px}
 .calculation-screen .flow-steps button small{font-size:14px}
 .calculation-screen .sheet-list{gap:6px;margin-top:8px}
 .calculation-screen .sheet-choice{min-height:62px;padding:7px 10px;gap:1px;border-radius:9px}
 .calculation-screen .sheet-choice strong{font-size:16px;line-height:1.35}
 .calculation-screen .sheet-choice small{font-size:14px;line-height:1.3}
 .calculation-screen #flow-sheet-search{width:100%;margin:0;min-height:44px}
 .calculation-screen #content>.panel{padding:10px;border-radius:12px}
 .calculation-screen #content>.panel>h2{font-size:17px;margin:0 0 8px}
}

/* Compact calculation entry and check cards. */
@media screen {
 .calculation-screen .input-panel .field input,
 .calculation-screen .input-panel .field select {height:38px;min-height:38px;padding:5px 9px;border-radius:7px}
 .calculation-screen .input-panel .field>span {margin-bottom:3px;line-height:1.3}
 .calculation-screen .input-panel fieldset>.fields {gap:7px 10px}
 .calculation-screen .selection-feedback .selection-check {padding:7px 10px;margin:5px 0;border-radius:8px}
 .calculation-screen .selection-feedback .selection-check p {margin:2px 0 0;line-height:1.3}
}

@media screen {
 .calculation-screen .beam-editor-charts,.calculation-screen .chart-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
 .calculation-screen .beam-editor-charts .chart,.calculation-screen .chart-grid .chart {min-width:0;padding:5px;margin:0}
 .calculation-screen .beam-editor-charts .chart svg,.calculation-screen .chart-grid .chart svg {display:block;width:100%;height:auto;min-height:0;max-height:190px}
 .calculation-screen .chart-grid .rc-section-panel {grid-column:1/-1}
 .calculation-screen .chart h4 {font-size:12px;margin:0 0 3px}
 .selection-feedback .selection-check .check-action {min-height:30px;padding:2px 8px;margin:0;border:0;background:transparent;color:#246247;font-weight:700;cursor:pointer}
 .selection-feedback .selection-check.fail .check-action {color:#a82626;text-decoration:underline}
 .selection-feedback .selection-check.pending .check-action {color:#856424}
 .check-target input,.check-target select {outline:2px solid #b73535;outline-offset:1px}
}

/* Project library uses the same visual language as the quotation app. */
@media screen {
 body:has(.project-library){--bg:#eef0f3;background:var(--bg)}
 body:has(.project-library) .main{background:var(--bg)}
 body:has(.project-library) .main>header{background:#fff;min-height:50px;height:50px;padding:0 8px}
 body:has(.project-library) .main>header .crumb{visibility:hidden;width:0;overflow:hidden}
 body:has(.project-library) .main>header::before{content:"";display:block;width:min(48vw,190px);height:42px;background:url("branding/spt-wordmark-transparent.png") left center/contain no-repeat}
 body:has(.project-library) #member-profile-button{border:2px solid #b8cdbf;padding:0;border-radius:50%}
 body:has(.project-library) .main>footer{display:none}
 .project-library .project-library-heading{align-items:center;gap:10px;margin:6px 0 12px}
 .project-library .project-eyebrow{color:#b4975d;font-size:12px;font-weight:700;letter-spacing:2px;margin:0 0 10px}
 .project-library h1{font-size:clamp(20px,5.1vw,28px);line-height:1.35;font-weight:750;margin:0;overflow-wrap:anywhere}
 .project-library-heading>div{min-width:0;flex:1}
 .project-library .project-library-heading button{min-height:42px;padding:8px 12px;white-space:nowrap;background:#1c3b32;border-radius:8px}
 .project-description{font-size:14px;color:#79867e;margin:0 0 24px;line-height:1.5}
 .project-library #project-search{min-height:48px;background:white;border:1px solid #d5dfd7;border-radius:9px;padding:10px 13px;margin:0 0 26px}
 .project-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 18px}
 .project-filters button{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;min-height:37px;border:1px solid #d5dfd7;background:#fff;border-radius:999px;padding:7px 11px;font-size:13px;line-height:1.3;text-align:left}
 .project-filters button[aria-pressed=true]{background:#1c3b32;color:#fff;border-color:#1c3b32}
 .project-filters button span:last-child{opacity:.75;flex:none}
 .project-library .project-cards .project-swipe{border-radius:11px;border:1px solid #d5dfd7;margin-bottom:11px}
 .project-library .project-item>button.project-card-main{background:#fff;padding:12px 13px;gap:5px 9px;min-height:0}
 .project-library .project-card-main .project-type{color:#b4975d;font-size:12px}
 .project-library .project-card-main strong{font-size:16px;font-weight:750}
 .project-library .project-card-total{font-size:16px;font-weight:700}
 .project-library .project-card-main small,.project-library .project-open-cue{font-size:13px;color:#7d8981}
 .project-library .project-card-actions{padding:8px 12px;gap:6px}
 .project-library .project-card-actions button{font-size:12px;padding:6px 3px;min-height:37px;border-radius:7px}
 .project-library .project-card-foot{font-size:12px;padding:0 12px 9px}
 .project-library .project-trash[hidden],.project-library .project-cards[hidden]{display:none!important}
}

@media screen{
 .project-library .project-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #certificate-dialog{width:min(760px,96vw);max-height:92dvh;overflow:auto;padding:16px}
 #certificate-dialog .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #certificate-dialog fieldset{border:1px solid #dce5de;border-radius:8px;margin:10px 0;padding:10px}
 #certificate-dialog canvas{display:block;width:100%;height:auto;margin:8px auto;border:1px solid #dce5de}
 #certificate-dialog .cert-attachments label{display:flex;align-items:center;gap:8px;margin:8px 0;overflow-wrap:anywhere}
 #certificate-dialog .cert-actions{display:flex;gap:8px;flex-wrap:wrap}
}

@media screen {
 #report-attachments-dialog{width:min(520px,94vw);padding:16px}
 #report-attachments-dialog [data-files] label{display:flex;align-items:center;gap:8px;padding:10px 0;overflow-wrap:anywhere}
}

@media screen{
 body:has(.profile-library){--bg:#eef0f3;background:var(--bg)}
 body:has(.profile-library) .main{background:var(--bg)}
 body:has(.profile-library) .main>header{background:#fff;min-height:50px;height:50px;padding:0 8px}
 body:has(.profile-library) .main>header .crumb{visibility:hidden;width:0;overflow:hidden}
 body:has(.profile-library) .main>header::before{content:"";display:block;width:min(48vw,190px);height:42px;background:url("branding/spt-wordmark-transparent.png") left center/contain no-repeat}
 .profile-library .project-eyebrow{color:#b4975d;letter-spacing:2px;font-size:12px;font-weight:700}
 .profile-library h1{font-size:24px;margin:8px 0}
 .profile-add{display:flex;gap:8px;margin:24px 0 12px;flex-wrap:wrap}
 .profile-card{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #d5dfd7;background:#fff;border-radius:14px;margin-bottom:12px}
 .profile-card.active{border-color:#b4975d;box-shadow:inset 3px 0 #b4975d}
 .profile-select{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:none;border:0;text-align:left;padding:4px}
 .profile-select>span:last-child{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
 .profile-select strong{font-size:16px}.profile-select small{color:#9a7b42}
 .profile-radio{width:24px;height:24px;flex:none;border:2px solid #939b96;border-radius:50%}
 .profile-card.active .profile-radio{border:8px solid #1c3b32;background:#fff}
}

@media screen{.profile-swipe{border-radius:14px;margin:0 0 12px}.profile-swipe .profile-card{padding:12px;border:1px solid #d5dfd7;border-radius:14px}.profile-swipe .profile-card.active{border-color:#b4975d;box-shadow:inset 3px 0 #b4975d}}

@media screen{.input-panel input.span-invalid{border:2px solid #c7353e!important;background:#fff3f3!important;outline-color:#c7353e}.input-panel .span-error{display:block!important;color:#b62431;font-size:13px;line-height:1.4;margin-top:4px;white-space:normal}}

@media screen{.profile-section{margin:22px 0}.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.profile-section-heading h2{font-size:19px;margin:0}.profile-section-heading p{font-size:13px;margin:4px 0}.profile-empty{justify-content:space-between;align-items:center;border-style:dashed}.profile-empty p{font-size:13px;margin:5px 0}.profile-empty button{flex:none}}

@media screen{#certificate-dialog .cert-repeat{padding:10px 0;border-bottom:1px solid #d8e0da;margin-bottom:10px}#certificate-dialog .cert-repeat>strong{display:block;margin-bottom:8px;color:#315749}#certificate-dialog [data-cert-form] fieldset{margin-bottom:12px}#certificate-dialog [data-cert-form] fieldset>button{margin:6px 0;width:100%}}

@media screen{#certificate-dialog .cert-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#certificate-dialog .cert-checks label.cert-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:8px;min-width:0;padding:6px 0;margin:0;font-size:14px;line-height:1.4}#certificate-dialog .cert-check input[type=checkbox]{flex:0 0 20px;width:20px!important;height:20px!important;min-height:0!important;margin:0!important;padding:0!important;accent-color:#163d33}#certificate-dialog .cert-check span{flex:1;min-width:0;overflow-wrap:anywhere}#certificate-dialog legend{font-weight:700;font-size:16px}#certificate-dialog .cert-other{margin-top:8px}#certificate-dialog .cert-other[hidden]{display:none!important}#certificate-dialog input[type=date]{min-width:0;width:100%}}

@media screen{.pdf-front-matter-options[hidden]{display:none!important}#report-attachments-dialog [data-extra] label,#report-attachments-dialog [data-files] label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0}#report-attachments-dialog input[type=checkbox]{width:20px!important;height:20px!important;min-height:0!important;flex:none}}

@media screen{.header-custom-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:12px}.header-custom-choice input{width:20px!important;height:20px!important;min-height:0!important;flex:none}.company-example [data-header-editor][hidden]{display:none!important}.company-example [data-header-editor]{padding:12px}.company-example>p,.company-example>h3{margin:12px}.company-example [data-header-editor] .company-wide{grid-column:1/-1}}

@media screen{.pdf-zoom-surface .pdf-preview-page canvas{display:block;width:100%;height:auto;background:white;box-shadow:0 3px 18px #1d3b3520}.pdf-zoom-surface .pdf-preview-page{padding:0;border:0}.pdf-preview-pages{touch-action:pan-x pan-y;overflow-anchor:none}}

@media screen{
 .main>header #member-profile-button{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:0!important;position:relative;overflow:hidden;border:2px solid #b8cdbf;border-radius:50%;box-sizing:border-box}
 .main>header #member-profile-button img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;border-radius:50%;margin:0;padding:0}
 .installed-app body:has(.project-library) .main>header,.installed-app body:has(.profile-library) .main>header{height:calc(50px + env(safe-area-inset-top));min-height:calc(50px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 8px 0}
}

@media screen and (max-width:760px){
 nav.work-tabs{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
 .work-tabs button[data-work-view]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:50px;min-height:50px;padding:3px 2px;line-height:1.25;min-width:0}
 .work-tabs [data-work-view] .nav-icon{width:22px;height:22px;flex:0 0 22px;margin:0;padding:0}
 .work-tabs [data-work-view] .nav-icon svg{width:22px;height:22px}
 .work-tabs [data-work-view] .nav-label{display:block!important;width:auto!important;height:18px!important;min-height:18px;flex:0 0 18px;padding:0!important;margin:0!important;letter-spacing:0;font-size:0!important;line-height:18px;text-align:center;white-space:nowrap;color:inherit}
 .work-tabs [data-work-view] .nav-label::after{content:attr(data-short);font-size:13px;line-height:18px;letter-spacing:0;font-weight:inherit}
}

@media screen and (min-width:761px){.work-tabs [data-work-view] .nav-label{padding:0;margin:0;letter-spacing:0;line-height:1.25;color:inherit;text-align:left;justify-content:flex-start}}

@media screen{.profile-library [data-edit-report-header]{margin:0 12px 12px;width:calc(100% - 24px)}.profile-library .company-example{margin:16px 0}}
