:root{--bg:#f7f7f4;--fg:#1d2b1f;--muted:#5b665c;--line:#d6dad2;--field:#b8bdb5;--accent:#2f5d3a;--accent-dark:#244a2e;--error:#a3281b;--error-bg:#fbeeec;--notice-bg:#e9f1ea;color:var(--fg);background:var(--bg);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,sans-serif;line-height:1.45}body{background:var(--bg);margin:0}main{max-width:24rem;margin:0 auto;padding:2rem 1rem}h1{margin:0;font-size:1.6rem;line-height:1.2}label{flex-direction:column;gap:.35rem;font-weight:600;display:flex}input{box-sizing:border-box;width:100%;font:inherit;color:var(--fg);border:1px solid var(--field);background:#fff;border-radius:6px;padding:.65rem .75rem;font-size:16px;font-weight:400}input:focus{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:-1px}button{font:inherit;color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:6px;margin-top:1.5rem;padding:.65rem 1.2rem;font-size:16px;font-weight:600}button:hover:not(:disabled){background:var(--accent-dark)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.6;cursor:default}.error{color:var(--error)}.auth{flex-direction:column;gap:1.5rem;padding-top:max(2rem,10vh);display:flex}.auth p,.auth button{margin:0}.brand{letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-size:.8rem;font-weight:700}.heading{flex-direction:column;gap:.5rem;display:flex}.lead{color:var(--muted)}.lead strong{color:var(--fg);overflow-wrap:anywhere;font-weight:600}.auth form{flex-direction:column;gap:1rem;display:flex}.auth .primary{width:100%;margin-top:.25rem}.field{flex-direction:column;gap:.35rem;display:flex}.hint{color:var(--muted);font-size:.875rem;font-weight:400}.auth .error,.auth .notice{border-radius:6px;padding:.6rem .75rem}.auth .error{background:var(--error-bg)}.auth .notice{background:var(--notice-bg)}input.code{letter-spacing:.3em;font-variant-numeric:tabular-nums;font-size:1.4rem}.footer{border-top:1px solid var(--line);color:var(--muted);flex-direction:column;align-items:flex-start;gap:.6rem;padding-top:1.25rem;display:flex}button.link{color:var(--accent);text-underline-offset:.15em;background:0 0;padding:0;font-weight:400;text-decoration:underline;display:inline}button.link:hover:not(:disabled){color:var(--accent-dark);background:0 0}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}main.wide{flex-direction:column;gap:1rem;max-width:44rem;display:flex}.wide h1,.wide h2,.wide p,.wide dl,.wide ul{margin:0}.wide h2{font-size:1.1rem}.wide a{color:var(--accent)}.wide .hint{display:block}.title-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.wide a.button{color:#fff;background:var(--accent);border-radius:6px;padding:.65rem 1.2rem;font-weight:600;text-decoration:none}.jobs{padding:0;list-style:none}.jobs a{border-bottom:1px solid var(--line);justify-content:space-between;gap:1rem;padding:.75rem 0;text-decoration:none;display:flex;color:var(--fg)!important}.amount{white-space:nowrap;font-variant-numeric:tabular-nums}dl{grid-template-columns:max-content 1fr;gap:.25rem 1rem;display:grid}dt{color:var(--muted)}dd{margin:0}.findings{border-radius:6px;padding:.75rem 1rem}.findings.problems{background:var(--error-bg)}.findings.warnings{background:#fdf5dc}.findings ol{padding-left:1.4rem}.actions{align-items:center;gap:1.5rem;display:flex}.actions button{white-space:nowrap;flex-shrink:0;margin:0}.topbar{z-index:1;padding-top:env(safe-area-inset-top);color:#fff;background:var(--accent-dark);position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;gap:1rem;max-width:44rem;height:3.25rem;margin:0 auto;padding:0 1rem;display:flex}.topbar-brand{white-space:nowrap;color:#fff;font-weight:700;text-decoration:none}.account{position:relative}.account summary{width:2rem;height:2rem;color:var(--accent-dark);background:var(--notice-bg);cursor:pointer;border-radius:50%;place-items:center;font-size:.75rem;font-weight:700;list-style:none;display:grid}.account summary::-webkit-details-marker{display:none}.account summary:focus-visible,.topbar-brand:focus-visible{outline-offset:2px;outline:2px solid #fff}.account>div{min-width:11rem;color:var(--fg);border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:8px;padding:.75rem;position:absolute;top:2.5rem;right:0;box-shadow:0 8px 24px #0000001f}.account .hint{display:block}.account button{width:100%;color:var(--fg);border:1px solid var(--line);background:#fff;margin-top:.75rem;padding:.4rem;font-weight:400;display:block}.account button+button{margin-top:.5rem}.account button:hover:not(:disabled){background:var(--bg)}.topbar+main{padding-top:1.5rem}.jobs{border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 1rem}.wide .jobs{padding:0 1rem}.jobs:empty{display:none}.jobs li:last-child a{border-bottom:0}.wide a.button{white-space:nowrap;padding:.45rem .9rem;font-size:.875rem}.actions{flex-wrap:wrap}.actions .actions-error{flex-basis:100%;margin:0}.actions .file{text-align:right;min-width:0;color:var(--muted);overflow-wrap:anywhere;flex:1 1 0;margin-left:auto;font-size:.8rem}.findings summary{cursor:pointer;font-weight:700}.findings ol{margin:.5rem 0 0}.findings summary{align-items:center;list-style:none;display:flex}.findings summary::-webkit-details-marker{display:none}.job-heading{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.5rem 1rem;display:grid}.job-sum{text-align:right}.sum{font-variant-numeric:tabular-nums;font-size:1.6rem;font-weight:700;line-height:1.2}.muted{color:var(--muted)}.jobs .amount{text-align:right}.sheet{border:1px solid var(--line);background:#fff;border-radius:8px;font-size:.875rem}.sheet-bar{color:var(--muted);border-bottom:1px solid var(--line);justify-content:space-between;gap:1rem;padding:.35rem .75rem;display:flex}.sheet-bar button.link{font-size:inherit;margin:0}.group+.group{border-top:1px solid var(--line)}.line{grid-template-columns:minmax(0,1fr) 6.5rem 7.5rem;align-items:baseline;gap:.75rem;padding:.25rem .75rem;display:grid}.line .amount{text-align:right}.type{color:var(--muted);font-size:.8rem}button.category-line,button.category-line:hover:not(:disabled){width:100%;font-size:inherit;text-align:left;color:var(--fg);background:0 0;border-radius:0;margin:0;padding-block:.45rem}button.category-line:hover:not(:disabled){background:var(--bg)}.findings summary:before,.category-line .line-name:before{content:"";border:solid var(--muted);border-width:2px 2px 0 0;width:.4em;height:.4em;margin:0 .65em .1em .15em;transition:transform .15s;display:inline-block;transform:rotate(45deg)}.findings[open] summary:before,.category-line[aria-expanded=true] .line-name:before{transform:rotate(135deg)}@media (prefers-reduced-motion:reduce){.findings summary:before,.category-line .line-name:before{transition:none}}.category-line .type{font-weight:400}.task-line{border-top:1px solid #eceee9}.task-line .line-name{padding-left:1.2em}.flag{background:#fdf5dc;border:1px solid #e5cf85;border-radius:4px;margin-left:.5rem;padding:0 .4rem;font-size:.75rem}@media (width<=30rem){.line{grid-template-columns:minmax(0,1fr) auto;row-gap:0}.line .line-name{grid-row:span 2}.line .type{text-align:right;grid-column:2}.actions{gap:1rem}}button.compact{white-space:nowrap;margin:0;padding:.45rem .9rem;font-size:.875rem}.delete-job{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1rem;font-size:.875rem;display:flex}.delete-job button.link{margin:0}button.danger,button.danger:hover:not(:disabled){background:var(--error)}.delete-job button.danger-link{color:var(--error)}.actions{padding:.75rem 0 calc(.75rem + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);position:sticky;bottom:0}.delete-job dialog{box-sizing:border-box;width:min(24rem,100% - 2rem);color:var(--fg);background:#fff;border:0;border-radius:10px;padding:1.25rem;font-size:1rem;box-shadow:0 16px 48px #00000040}.delete-job dialog::backdrop{background:#1d2b1f80}.delete-job dialog[open]{flex-direction:column;gap:.75rem;display:flex}.dialog-actions{justify-content:flex-end;align-items:center;gap:1.25rem;margin-top:.5rem;display:flex}.tag{white-space:nowrap;border-radius:999px;padding:0 .45rem;font-size:.75rem;line-height:1.5;display:inline-block}.tag.fixed{color:#24552f;background:#e3f0e4}.tag.provisional{color:#1f4a7a;background:#e2edf8}.tag.do_and_charge{color:#7a4300;background:#fbe8cf}.tag.supplier{color:#5a3379;background:#efe5f6}
