:root{
  color-scheme:light;
  font-family:system-ui,-apple-system,sans-serif;
  line-height:1.5;
  --ink:#202329;
  --muted:#575d66;
  --canvas:#f3f4f6;
  --subtle:#edeff2;
  --line:#d8dce2;
  --control-line:#969da8;
  --action:#26292f;
  --action-hover:#14161a;
  --checked:#167047;
  --footer-row:48px;
  --footer-height:calc(var(--footer-row) + env(safe-area-inset-bottom));
  color:var(--ink);
  background:var(--canvas);
}
*{box-sizing:border-box}
body{margin:0}
html{scroll-padding-bottom:var(--footer-height);scrollbar-gutter:stable}
.save{font-size:.875rem}
.save:empty{margin:0}
.layout{max-width:1250px;margin:auto;padding:26px 24px calc(24px + var(--footer-height));display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.site-footer{position:fixed;inset:auto 0 0;z-index:2;background:var(--canvas);padding-bottom:env(safe-area-inset-bottom)}
.site-footer-inner{max-width:1202px;margin:auto;min-height:var(--footer-row);padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:8px 16px;border-top:1px solid var(--line);font-size:.8125rem}
.legal-links,.site-credit{display:flex;align-items:center;gap:14px}
.site-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-credit img{width:116px;height:auto;display:block}
.report-editor{display:grid;gap:20px;min-width:0}
.report-editor>aside,.report-editor>main,.report-library{min-width:0}
aside nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.step-picker{display:none}
nav a{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 4px 2px;color:var(--muted);border-radius:8px;text-decoration:none}
nav a:not(:first-child)::before{content:"";position:absolute;inset:16px 50% auto auto;width:100%;height:1px;background:var(--control-line);pointer-events:none}
nav a:has(.is-marked)+a:has(.is-marked)::before{background:var(--checked)}
.step-marker{position:relative;z-index:1;display:grid;place-items:center;flex:none;width:33px;height:33px;border:1px solid var(--control-line);border-radius:50%;background:#fff;color:var(--ink);font-size:.8125rem;font-weight:650}
.step-caption{max-width:100%;padding:4px 10px;border-radius:8px;text-align:center;overflow-wrap:anywhere;font-size:.875rem;line-height:1.25}
.step-marker.is-marked{border-color:var(--checked);color:transparent}
.step-marker.is-marked::before{content:"";position:absolute;inset:0;background:var(--checked);clip-path:polygon(26% 49%,34% 41%,45% 52%,66% 32%,74% 40%,45% 68%)}
nav a[aria-current=step] .step-marker:not(.is-marked){background:var(--action);border-color:var(--action);color:#fff}
nav a[aria-current=step] .step-caption{background:#e2e5e9;color:var(--ink);font-weight:700}
nav a:hover .step-caption{background:var(--subtle);color:var(--ink)}
.panel h2[tabindex="-1"]:focus{outline:none}
.step-actions{display:flex;justify-content:space-between;gap:12px}
#next-step{margin-left:auto}
.heading,.panel-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:12px;min-width:0;overflow-wrap:anywhere}
.heading-title{min-width:0;min-height:calc(clamp(1.6rem,4vw,2rem) * 1.17 + 1.3125rem + 2px)}
#home-link{color:inherit;text-decoration:none}
.report-actions{display:flex;flex-wrap:wrap;gap:8px}
.account-menu{position:relative;z-index:3}
.account-menu summary{display:grid;place-items:center;width:38px;min-height:38px;padding:0;background:var(--subtle);color:var(--ink);border:1px solid var(--line);border-radius:50%;font-size:.8125rem;list-style:none}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary:hover,.account-menu[open] summary{background:#e2e5e9}
.account-menu summary:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--control-line)}
.account-popover{position:absolute;inset:calc(100% + 6px) 0 auto auto;width:11.5rem;max-width:75vw;padding:5px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 22px rgb(32 35 41 / .12)}
.account-popover p{margin:0 0 4px;padding:7px 9px 8px;border-bottom:1px solid var(--line);color:var(--ink);font-size:.8125rem;font-weight:650}
.account-popover button.secondary{width:100%;min-height:34px;justify-content:flex-start;gap:9px;padding:4px 8px;border-color:transparent;border-radius:6px;background:transparent;font-weight:550}
.account-popover button.secondary:hover{background:var(--subtle)}
.account-popover svg{flex:none;width:16px;height:16px;color:var(--muted)}
.editor-toolbar{display:flex;align-items:end;gap:12px}
.editor-toolbar .save{margin:0 0 2px auto;color:var(--muted);white-space:nowrap}
.editor-toolbar .save[data-error=true]{color:#a32a1f;white-space:normal}
#service-order-picker{flex:1;min-width:0;max-width:34rem}
.report-actions [aria-current=page]{background:var(--subtle);border-color:var(--control-line)}
.report-library{width:100%}
.library-heading,.library-actions,.library-filters{display:flex;align-items:center;gap:8px}
.library-heading{justify-content:space-between;margin-bottom:14px}
.library-actions{flex-wrap:wrap}
.library-heading h2{font-size:1.45rem}
.library-heading h2[tabindex="-1"]:focus{outline:none}
.library-filters{margin-bottom:20px}
.library-filters input{flex:1}
.library-filters select{width:11rem}
#report-scope-filter{width:13.5rem}
.batch-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:-7px 0 16px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:.875rem}
.batch-select-all,.report-select{display:flex;align-items:center;gap:7px;min-height:38px;cursor:pointer}
#batch-count{margin-inline-end:auto;color:var(--muted)}
.batch-issues{display:grid;gap:8px;max-height:48vh;overflow:auto;padding-inline-start:20px}
.batch-issues span{display:block;color:var(--muted);font-size:.875rem}
.report-groups{display:grid;gap:17px}
.report-date-heading{margin:0 0 7px;color:var(--muted);font-size:.875rem;font-weight:650}
.report-list{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:10px;background:#fff}
.report-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;overflow-wrap:anywhere}
.report-row.is-selectable{grid-template-columns:auto minmax(0,1fr) auto auto}
.report-row.is-selected{background:var(--subtle)}
.report-select{justify-content:center;width:28px}
.report-row+.report-row{border-top:1px solid var(--line)}
.report-row-title{margin:0;color:var(--ink);font-size:.9375rem;font-weight:650}
.report-row-type{margin:2px 0 0;font-size:.75rem}
.report-row-meta{display:flex;flex-wrap:wrap;gap:5px 14px;margin:7px 0 0;font-size:.75rem;color:var(--muted)}
.report-row-meta div{display:flex;flex-wrap:wrap;gap:0 5px}
.report-row-meta dt{font-weight:600}
.report-row-meta dd{margin:0;color:var(--ink)}
.report-row-status{align-self:center;padding:3px 7px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:.75rem;white-space:nowrap}
.report-row-actions{display:flex;gap:2px}
.report-row-actions button.secondary{border-color:transparent;background:none;width:35px;min-height:35px;padding:0;color:var(--icon-color)}
.report-row-actions button.secondary:hover{background:var(--subtle)}
.report-row-actions svg{display:block;width:20px;height:20px}
.report-row-actions .action-open{--icon-color:#255e89}
.report-row-actions .action-pdf{--icon-color:#9d2541}
.report-row-actions .action-copy{--icon-color:#5e4797}
.report-row-actions .action-delete{--icon-color:#a32a1f}
.report-list-empty{padding:18px 12px;color:var(--muted);font-size:.875rem}
.login-screen{max-width:25rem}
.login-screen form{margin-top:16px;display:grid;gap:12px}
.form-error:not(:empty){color:#a32a1f}
.order-options{display:grid;gap:8px;max-height:min(52dvh,27rem);overflow:auto;overscroll-behavior:contain;padding:4px;margin:12px -4px}
.order-options .option{justify-content:flex-start;text-align:start;overflow-wrap:anywhere}
.button-icon{font-size:1.15em;line-height:1}
.import-icon{position:relative;flex:none;width:17px;height:17px}
.import-icon::before{content:"";position:absolute;inset:1px 5px 1px 0;border:1.5px solid currentColor;border-radius:3px;clip-path:polygon(0 0,100% 0,100% 34%,70% 34%,70% 66%,100% 66%,100% 100%,0 100%)}
.import-icon::after{content:"";position:absolute;inset:4px 0 4px 4px;background:currentColor;clip-path:polygon(0 50%,34% 0,45% 15%,22% 41%,100% 41%,100% 59%,22% 59%,45% 85%,34% 100%)}
.report-import-status{margin:-8px 0 16px}
.report-import-status[data-error=true]{color:#a32a1f}
h1,h2,p{margin:0}
h1{font-size:clamp(1.6rem,4vw,2rem);letter-spacing:-.04em;line-height:1.17}
h2{font-size:1.4rem;letter-spacing:-.024em}
#report-label{margin-top:2px;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#report-label:empty{margin:0}
p{color:var(--muted);margin-top:6px}
.panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:14px;scroll-margin-top:20px;overflow-wrap:anywhere;box-shadow:0 4px 16px rgb(32 35 41 / .045)}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin-top:16px}
.field-group{margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px}
.field-group h3{margin:0;font-size:1rem;letter-spacing:-.01em}
.field-group .fields{margin-top:10px}
.field{display:grid;gap:6px;align-content:start;font-weight:600;font-size:.9375rem;min-width:0}
.full{grid-column:1/-1}
input:not([type=radio],[type=checkbox]),select,textarea{width:100%;min-width:0;max-width:100%;border:1px solid var(--control-line);border-radius:7px;padding:7px 11px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;font-weight:400;min-height:40px}
select{
  appearance:none;
  padding-inline-end:32px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;
  background-repeat:no-repeat;
  background-size:5px 5px;
}
input:is([type=date],[type=time])::-webkit-date-and-time-value{text-align:start}
textarea{resize:vertical;min-height:98px}
:focus-visible{outline:3px solid var(--action);outline-offset:2px}
button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--control-line)}
input:not([type=radio],[type=checkbox],[type=file]):focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--ink)}
fieldset{border:0;padding:0;margin:16px 0 0;min-width:0}
legend{padding:0;font-weight:650}
.options{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.option{display:flex;align-items:center;gap:6px;border-radius:7px;border:1px solid var(--control-line);padding:7px 10px;min-height:44px;cursor:pointer}
.option:has(:checked){background:var(--subtle);border-color:var(--action);color:var(--ink)}
input[type=checkbox],input[type=radio]{flex:none;width:17px;height:17px;accent-color:var(--action)}
button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--action);background:var(--action);color:#fff;border-radius:8px;padding:6px 12px;font:inherit;font-size:.875rem;font-weight:650;min-height:38px;cursor:pointer}
button:hover{background:var(--action-hover)}
button.secondary{background:#fff;color:var(--ink);border-color:var(--control-line)}
button.secondary:hover{background:var(--subtle)}
button:disabled{opacity:.62;cursor:default}
.report-dialog{width:min(30rem,calc(100% - 32px));max-height:calc(100% - 32px);padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 18px 65px rgb(32 35 41 / .25)}
.report-dialog::backdrop{background:rgb(32 35 41 / .55)}
#new-report-dialog{max-width:25rem}
.new-report-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.new-report-heading .modal-close{width:36px;padding:0;border-color:transparent;font-size:1.45rem;line-height:1}
.new-report-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.new-report-options .new-report-option{aspect-ratio:1;flex-direction:column;gap:10px;padding:10px;border-color:var(--line);line-height:1.3;overflow-wrap:anywhere}
.new-report-option svg{flex:none;width:clamp(24px,6.5vw,32px);height:clamp(24px,6.5vw,32px)}
.new-report-option span{display:grid;place-items:center;min-height:2.6em}
.confirmation-message{margin:0 0 20px;color:inherit}
#delete-report .dialog-actions{margin-top:20px}
.preference-field{margin:14px 0 18px}
#operation-progress{
  width:min(19rem,calc(100% - 32px));
  padding:26px 20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 18px 65px rgb(32 35 41 / .2);
  text-align:center;
}
#operation-progress[open]{display:grid;justify-items:center;gap:12px}
#operation-progress::backdrop{background:rgb(32 35 41 / .35)}
#operation-progress-label{margin:0;color:inherit;font-weight:650}
.operation-spinner{
  width:38px;
  height:38px;
  border:4px solid var(--line);
  border-top-color:var(--action);
  border-radius:50%;
  animation:operation-spin .75s linear infinite;
}
@keyframes operation-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.operation-spinner{animation:none}}
#incomplete-report-fields{padding-inline-start:22px;margin:12px 0 24px}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.entry{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:10px}
.entry .fields{margin-top:10px}
.entry h3{margin:0;font-size:1rem}
.time-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0 8px}
.time-summary>div{padding:9px;background:var(--subtle);border:1px solid var(--line);border-radius:8px}
.time-summary dt{font-size:.75rem;color:var(--muted)}
.time-summary dd{margin:2px 0 0;color:var(--ink);font-size:1rem;font-weight:650;font-variant-numeric:tabular-nums}
.time-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.time-feedback{margin:0;font-size:.875rem}
.actions{justify-content:flex-start;flex-wrap:wrap;margin-top:14px}
#export-status[data-error=true]{color:#a32a1f}
[hidden]{display:none!important}
summary{min-height:44px;padding-block:9px;font-size:1.05rem;font-weight:650;cursor:pointer}

@media(max-width:820px),(max-width:1000px) and (pointer:coarse){
  html{scroll-padding-bottom:calc(64px + var(--footer-height))}
  .layout{
    --gutter:16px;
    gap:14px;
    padding:calc(18px + env(safe-area-inset-top)) max(var(--gutter),env(safe-area-inset-right)) var(--footer-height) max(var(--gutter),env(safe-area-inset-left));
  }
  .report-editor{gap:14px}
  .account-menu summary{width:44px;min-height:44px}
  .account-popover button.secondary{min-height:44px}
  .report-row-actions button.secondary{width:44px;min-height:44px}
  .report-select,.batch-select-all{min-height:44px}
  button,input:not([type=radio],[type=checkbox]),select{min-height:44px}
  .step-picker{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    width:100%;
    min-height:54px;
    gap:1px 8px;
    padding-block:7px;
    text-align:start;
  }
  .step-picker::after{
    content:"";
    grid-area:1/2/3/3;
    width:8px;
    height:8px;
    margin-inline:10px 4px;
    border:solid currentColor;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
  }
  .step-picker[aria-expanded=true]{border-end-start-radius:0;border-end-end-radius:0;background:var(--subtle)}
  .step-picker[aria-expanded=true]::after{transform:rotate(225deg)}
  #step-position{font-size:.8125rem;font-weight:500;color:var(--muted)}
  aside nav{
    grid-auto-flow:row;
    gap:3px;
    max-height:clamp(10rem,50dvh,26rem);
    overflow-y:auto;
    overscroll-behavior-y:contain;
    padding:6px;
    border:1px solid var(--control-line);
    border-top:0;
    border-radius:0 0 8px 8px;
    background:#fff;
  }
  nav a{flex-direction:row;gap:10px;min-height:48px;padding:8px}
  nav a:not(:first-child)::before{display:none}
  nav a[aria-current=step],nav a:hover{background:var(--subtle);color:var(--ink)}
  nav a[aria-current=step] .step-caption,nav a:hover .step-caption{background:none}
  .step-caption{padding:0;text-align:start}
  .step-marker{width:25px;height:25px;font-size:.75rem}
  nav a[aria-current=step]::after{
    content:"";
    flex:none;
    width:7px;
    height:12px;
    margin-inline-start:auto;
    border:solid currentColor;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
  }
  .step-picker[aria-expanded=false]+nav{display:none}
  .step-actions{
    position:sticky;
    bottom:var(--footer-height);
    z-index:1;
    background:var(--canvas);
    border-top:1px solid var(--line);
    padding:10px 0;
  }
  .step-actions:has(button[hidden]) button{flex-basis:100%}
  .step-actions button{flex:1}
  main:has(.field:focus-within) .step-actions{position:static}
}

@media(min-width:601px){
  .address-fields{grid-template-columns:repeat(12,minmax(0,1fr))}
  .address-fields>.field{grid-column:span 6}
  .address-fields>.address-zip{grid-column:span 2}
  .address-fields>.address-city{grid-column:span 4}
}

@media(max-width:440px){
  .site-credit span{display:none}
}
@media(max-width:360px){.new-report-option span{min-height:3.9em}}

@media(max-width:600px){
  .heading{grid-template-columns:minmax(0,1fr) auto}
  .heading-title{grid-column:1;grid-row:1}
  .account-menu{grid-column:2;grid-row:1}
  .report-actions{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr)}
  .editor-toolbar{align-items:stretch;flex-direction:column;gap:3px}
  .report-row{grid-template-columns:minmax(0,1fr) auto}
  .report-row.is-selectable{grid-template-columns:auto minmax(0,1fr) auto}
  .report-row-actions{grid-column:1/-1}
  .library-heading{align-items:flex-start;flex-wrap:wrap}
  .report-library.is-selecting #return-to-report,.report-library.is-selecting #import-report{display:none}
  .library-filters{flex-wrap:wrap}
  .library-filters input{min-width:12rem}
  .library-filters select,#report-scope-filter{width:auto;max-width:100%}
  .report-actions button,.actions button,.dialog-actions button{padding-inline:10px}
  .panel{padding:14px}
  .field-group{padding:12px}
  .fields{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}
  .entry{padding:12px}
  .actions button,.dialog-actions button{width:100%}
  .report-dialog{padding:16px}

}
