:root{--olive:#526e40;--deep:#3e552e;--paper:#fff;--bg:#f4f5f1;--ink:#232b23;--muted:#687266;--line:#e0e5dc;--red:#bc544b;--green:#709758;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed}svg{width:20px;height:20px;flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:clamp(23px,3vw,32px);letter-spacing:-.7px;line-height:1.2}h2{font-size:19px;line-height:1.35}h3{font-size:15px}p{margin:.3em 0}.muted,small,.footer{color:var(--muted)}small{font-size:12px}.center{text-align:center}.brand{font-size:25px;font-weight:750;letter-spacing:-1px;color:var(--olive);white-space:nowrap}.brand small{font-weight:500;font-size:11px;letter-spacing:0;color:#73866a}.topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.top-inner{max-width:1500px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 25px}.top-right{display:flex;align-items:center;gap:18px}.company-name{font-size:13px;color:var(--muted)}.profile-link{display:flex;align-items:center;gap:6px;font-size:13px}.menu-toggle{display:none;background:transparent;border:0;color:var(--olive);padding:8px}.layout{display:grid;grid-template-columns:222px minmax(0,1fr);max-width:1500px;margin:auto;min-height:calc(100vh - 65px)}.sidebar{padding:24px 13px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between}.sidebar nav{display:grid;gap:4px}.nav-link{display:flex;gap:11px;align-items:center;padding:11px 10px;border-radius:9px;font-size:14px;color:#4c5749}.nav-link svg{width:17px;height:17px}.nav-link.active{background:#e3e9dc;color:var(--deep);font-weight:650}.nav-link:hover:not(.disabled){background:#e9ede5}.nav-link.disabled{color:#929a8c}.nav-link small{margin-left:auto}.side-bottom{font-size:10px;letter-spacing:1px;color:var(--muted);padding:15px}.workspace{padding:30px;min-width:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:0 0 18px}.page-heading,.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.eyebrow{color:var(--olive);font-size:11px;letter-spacing:1.6px;font-weight:700;margin:0 0 6px}.primary,.secondary,.subtle,.danger-button{border-radius:9px;padding:10px 14px;font-weight:650;border:1px solid transparent;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:var(--olive);color:white}.primary:hover{background:var(--deep)}.secondary{background:white;border-color:#bdc9b5;color:var(--olive)}.subtle{background:transparent;color:var(--olive)}.danger-button{background:white;color:var(--red);border-color:#e4c9c6}.link-button{white-space:nowrap;font-size:14px}.link-button svg{width:16px;height:16px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.workspace>h1{margin-bottom:20px}form{display:grid;gap:13px;margin-top:15px}label{display:grid;gap:5px;font-weight:600;font-size:13px}input,textarea,select{min-width:0;width:100%;border:1px solid #cfd7cb;border-radius:8px;padding:10px 11px;background:white;color:var(--ink);outline-offset:2px}textarea{resize:vertical;line-height:1.45}input:focus,textarea:focus,select:focus{outline:2px solid #a4b995}input[readonly]{background:#f1f3ee}label.check{display:flex;align-items:center;gap:8px;font-weight:500}input[type=checkbox]{width:17px;height:17px;accent-color:var(--olive)}form.compact{margin-top:8px}form.logout{margin-top:14px}.logout button{justify-content:start}.auth{max-width:440px;margin:8vh auto;padding:20px}.auth .brand{text-align:center;margin-bottom:22px}.auth .panel{padding:28px}.auth h1{margin-bottom:12px}.message{background:#e8f0e2;color:#36542b;border:1px solid #bcd1b0;padding:12px 15px;border-radius:9px;margin-bottom:16px}.message.error{background:#f9e8e5;color:#8f392e;border-color:#e4b9b2}.calendar-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}.calendar-head h2{flex:1;text-align:center}.nav-arrow{width:35px;height:35px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-size:26px;line-height:1;color:var(--olive)}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;font-size:12px;color:var(--muted);font-weight:650;padding-bottom:4px}.day{background:#fff;border:1px solid #dce1d8;border-radius:9px;min-height:108px;display:flex;flex-direction:column;padding:7px;min-width:0;position:relative}.day.red{border:2px solid var(--red)}.day.green{border:2px solid var(--green)}.day.selected{background:#e9eee2;box-shadow:0 0 0 2px #536e4040}.day.current .day-num{background:var(--olive);color:#fff;border-radius:50%}.day-num{font-size:13px;font-weight:650;display:grid;place-items:center;width:23px;height:23px}.day-count{text-align:center;font-size:22px;font-weight:750;line-height:28px;min-height:28px}.red .day-count{color:var(--red)}.green .day-count{color:#5c8048}.day-note{font-size:12px;line-height:1.3;color:#46553c;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere;white-space:pre-line}.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:12px;height:12px;border:2px solid var(--line);border-radius:3px}.legend i.red{border-color:var(--red)}.legend i.green{border-color:var(--green)}.day-detail{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.note-area{border-left:1px solid var(--line);padding-left:22px}.job-list{margin-top:8px}.job-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.job-row:last-child{border-bottom:0}.job-row>div{flex:1;min-width:0}.job-row:hover strong{color:var(--olive)}.job-row p{font-size:13px;color:#596255}.clamp{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.status{font-size:11px;white-space:normal;display:inline-block;border-radius:6px;padding:4px 7px;font-weight:650;color:#4e7740;background:#e8efe2}.status.draft{color:#a0443c;background:#f8e9e5}.empty{color:var(--muted);padding:12px 0}.company-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}.company-row p{font-size:12px}.staff{border-bottom:1px solid var(--line);padding:12px 0}.staff summary{cursor:pointer;font-weight:600}.source-placeholder{background:var(--bg);padding:30px 20px;display:grid;justify-items:center;text-align:center;gap:10px;border-radius:10px;margin-top:15px;color:var(--muted)}.source-placeholder svg{width:40px;height:40px;color:var(--olive)}.source-placeholder p{font-size:13px}.delete-form{border-top:1px solid var(--line);padding-top:15px}.back{display:block;margin-bottom:10px;color:var(--olive)}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.footer{font-size:11px;text-align:center;padding:22px}.field-home{max-width:470px;margin:auto}.welcome{margin-bottom:22px}.welcome p{color:var(--muted)}.capture{display:grid;gap:12px;margin-bottom:18px}.capture button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:var(--radius);background:white;color:var(--olive);padding:20px}.capture .mic{background:var(--olive);color:white;min-height:202px;padding:24px}.mic strong{font-size:21px}.capture .mic small{color:#e3eddf}.mic-circle{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#6b8657;border:1px solid #96ab86}.mic-circle svg{width:40px;height:40px}.capture-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.capture-grid svg{height:29px;width:29px}.manual{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:17px;display:flex;gap:13px;align-items:center;font-weight:650;color:var(--olive)}.today{display:flex;justify-content:space-between;align-items:center;color:var(--olive)}.today strong{font-size:29px}.mobile-home{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.field-layout{grid-template-columns:222px minmax(0,1fr)}@media(max-width:800px){.top-inner{padding:10px 15px}.top-right{gap:10px}.profile-link span,.company-name{display:none}.menu-toggle{display:block}.layout,.field-layout{display:block}.sidebar{display:none;position:fixed;top:59px;left:0;right:0;background:white;z-index:9;max-height:calc(100vh - 59px);overflow:auto;box-shadow:0 10px 30px #0002}.sidebar.open{display:block}.side-bottom{display:none}.workspace{padding:18px 13px}.panel{padding:15px}.two-col,.day-detail{grid-template-columns:1fr;gap:10px}.note-area{border-left:none;border-top:1px solid var(--line);padding:15px 0 0}.desktop-home{display:none}.mobile-home{display:block}.calendar-grid{gap:3px}.day{padding:3px;min-height:83px;border-radius:6px}.day-note{font-size:9px;-webkit-line-clamp:2}.day-count{font-size:18px;line-height:22px;min-height:22px}.day-num{font-size:11px;width:18px;height:18px}.calendar-head{gap:5px}.calendar-head h2{font-size:16px}.calendar-head .subtle{padding:5px;font-size:12px}.weekday{font-size:10px}.page-heading{align-items:flex-start}.link-button{font-size:12px;padding:8px}.job-row{gap:8px}.status{font-size:10px;max-width:110px}.auth{margin-top:5vh}.auth .panel{padding:20px}}@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .12s}} 
.voice-link{text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:white;background:#526e40;border-radius:18px;padding:32px 15px;min-height:180px}.voice-link small{color:#e3eadc}.recorder{display:grid;gap:12px;margin:12px 0}.record-main{background:#526e40;color:white;border:0;border-radius:14px;min-height:80px;font-size:18px;display:flex;align-items:center;justify-content:center;gap:10px}.record-main svg{width:30px;height:30px}.record-controls,.voice-buttons{display:flex;flex-wrap:wrap;gap:8px}.voice-clip{padding:12px 0;border-bottom:1px solid #e2e6dc}.voice-clip audio,.recorder audio{display:block;width:100%;margin:10px 0}.recorder [hidden]{display:none!important}.voice-table{overflow-x:auto}.voice-table table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.voice-table th,.voice-table td{padding:8px;border-bottom:1px solid #e2e6dc}.voice-items{margin:12px 0}.voice-clip details{font-size:14px}.voice-buttons button{flex:1 1 auto}.field-home>section{margin-bottom:12px}

.voice-send-status{border:1px solid #bdc9b5;border-radius:9px;background:#e8f0e2;padding:12px;overflow-wrap:anywhere;color:#36542b}.voice-send-status.error{background:#f9e8e5;color:#8f392e;border-color:#e4b9b2}.voice-send-status[hidden]{display:none!important}

.capture-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 8px;background:#fff;border:1px solid #dce2d7;border-radius:14px;color:#526e40;text-decoration:none;text-align:center;min-height:110px}.capture-grid a small{color:#687166;font-size:.78rem}.document-preview{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:10px auto;border:1px solid #dce2d7;border-radius:8px}.document-preview[hidden]{display:none}

/* Business administration */
.biz-two,.biz-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.biz-four{grid-template-columns:repeat(4,minmax(0,1fr))}.biz-items{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:15px}.biz-item{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:8px;background:#f9faf7}.biz-item-top{display:flex;align-items:end;gap:8px}.biz-item-top label{flex:1}.biz-item-bottom{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.biz-item-bottom strong{margin-left:auto;color:var(--olive);white-space:nowrap}.biz-item-bottom button{font-size:12px;padding:6px 8px}.biz-total{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:10px;color:var(--olive)}.biz-total strong{font-size:19px;white-space:nowrap}.biz-link{color:var(--olive);text-decoration:underline;text-underline-offset:2px}#biz-add-item svg{width:17px;height:17px}.biz-remove{font-size:20px;padding:4px 12px}.biz-items [hidden]{display:none!important}@media(max-width:1150px){.biz-four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.biz-total{align-items:flex-start;flex-direction:column}.biz-two{grid-template-columns:1fr}}

/* 0.4.1: focused document workspace; reused by future invoice editor. */
.save-capture{display:flex;flex-direction:column;gap:2px;min-height:64px;width:100%;padding:10px 12px}
.save-capture strong{font-size:22px;line-height:1.2;color:inherit}
.save-capture small{font-size:12px;line-height:1.4;color:#e3eddf;font-weight:400}
.job-main{min-width:0}
.source-panel{min-width:0;overflow-wrap:anywhere}
.source-panel .link-button{white-space:normal;max-width:100%;text-align:left;justify-content:flex-start;font-size:12px;padding:8px}
.source-panel .voice-clip{display:grid;gap:6px}
.source-panel .voice-clip audio{min-width:0;max-width:100%}
.source-panel .source-transcript{margin:12px 0;font-size:13px}
.source-panel summary{cursor:pointer}
.source-panel .source-filename{font-size:12px;overflow-wrap:anywhere}
@media(min-width:801px){
 .job-focus-layout{grid-template-columns:minmax(0,1fr)}
 .job-focus-layout>.sidebar{display:none}
 .job-focus{grid-template-columns:222px minmax(0,1fr);gap:18px}
 .job-focus>.source-panel{padding:13px}
 .job-focus>.job-main>.panel{min-width:0}
}
/* 0.5 readability and invoices */
body{font-size:16px}label,input,select,textarea,button{font-size:16px}.muted,small,.sidebar .nav-link{font-size:14px}.biz-item label,.voice-table td,.voice-table th{font-size:14px}.source-panel .voice-clip{overflow-wrap:anywhere}.inv-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.inv-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.inv-sums{text-align:right}.inv-print{background:#fff;color:#111;max-width:1000px;margin:20px auto;padding:26px}.test-watermark{font-weight:700;color:#8c3131}.inv-print table{width:100%;border-collapse:collapse}.inv-print td,.inv-print th{padding:8px;border-bottom:1px solid #ccc}.inv-print .voice-table{overflow:visible}.inv-print .biz-two{grid-template-columns:1fr 1fr}.print-controls{margin-bottom:16px}@media(max-width:700px){.inv-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.print-controls{display:none}.inv-print{margin:0;padding:0;max-width:none}.inv-print tr{break-inside:avoid}.inv-print thead{display:table-header-group}body{background:#fff}.inv-print .voice-table{overflow:visible}@page{size:A4;margin:14mm}}

.biz-item input,.biz-item select,.inv-fields input,.inv-fields select{font-size:16px}.biz-item label,.inv-fields label,.voice-table td,.voice-table th{font-size:15px}.job-row small,.job-row p,.source-panel summary{font-size:14px}h2{font-size:21px}h3{font-size:17px}.save-capture small{font-size:13px}
