:root{font-family:Arial,Helvetica,sans-serif;color:#20382d;background:#f6f5ef;--green:#163b30;--muted:#6d796f;--line:#dedfd5;--red:#b00000}*{box-sizing:border-box}body{margin:0}aside{position:fixed;width:228px;inset:0 auto 0 0;background:var(--green);color:white;padding:30px 20px;display:flex;flex-direction:column}.brand{color:#fff;text-decoration:none;text-align:center;display:block}.brand img{width:172px;height:92px;object-fit:contain}.brand span{display:block;letter-spacing:3px;font-size:11px;margin:14px 0 32px}nav{display:grid;gap:8px}nav a{padding:14px 12px;border-radius:8px;color:#dce8dd;text-decoration:none;font-size:14px}nav a.active,nav a:hover{background:#315347;color:white}.sidebar-foot{margin-top:auto;font-size:13px;line-height:1.8;color:#d2ded3}.sidebar-foot small{font-size:11px;color:#aabbad}main{margin-left:228px;padding:38px 42px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:16px}.eyebrow,.section-label{font-size:11px;letter-spacing:2px;font-weight:bold;color:var(--muted)}h1{font-size:34px;letter-spacing:-1px;margin:10px 0 0}h2{font-size:22px;margin:0 0 18px}h3{font-size:17px;margin:0 0 10px}p{line-height:1.6}.muted{color:var(--muted)}.hero{padding:32px;background:#e5eadf;border-radius:12px;margin-bottom:24px}.hero h2{font-size:28px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:22px}.stat strong{display:block;font-size:30px;margin:12px 0 4px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:20px}.toolbar,.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.actions{justify-content:flex-end;margin:24px 0 0}.toolbar .push{margin-left:auto}button,.button{background:var(--green);color:white;border:1px solid var(--green);padding:12px 17px;border-radius:7px;font-size:14px;cursor:pointer;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}button.secondary,.button.secondary{background:#fff;color:var(--green);border-color:#ccd4ca}button.danger{background:#fff;color:#9c2525;border-color:#dfbdbd}button:disabled{opacity:.5;cursor:default}input,textarea,select{width:100%;padding:12px;border:1px solid #c9d1c7;border-radius:6px;font:inherit;background:white;color:#20382d;min-height:44px}textarea{min-height:140px;resize:vertical}label{display:block;font-size:13px;font-weight:bold;margin:16px 0 7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}input[type=color]{width:60px;padding:5px}input[type=checkbox]{width:auto;min-height:auto}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row p{margin:5px 0;font-size:14px}.list-row .actions{margin:0}.badge{font-size:12px;padding:5px 8px;border-radius:20px;background:#eaf0e5;white-space:nowrap}dialog{border:0;border-radius:14px;padding:28px;width:min(680px,94vw);max-height:90vh;color:#20382d;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#13251c66}dialog h2{margin-bottom:16px}#notice:empty{display:none}#notice{background:#e1ecdc;border-radius:8px;padding:12px;margin-bottom:20px}.ink{width:100%;height:340px;display:block;background:linear-gradient(#fff 29px,#e8eee6 30px);background-size:100% 30px;border:1px solid var(--line);border-radius:8px;touch-action:none}.note-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line)}.day-name{text-align:center;font-size:12px;font-weight:bold;padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#edf1e8}.day{min-height:115px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px;background:white}.day.outside{background:#f5f5f1;color:#9ba59b}.day.today{background:#eaf0e3}.day-number{border:0;color:inherit;background:transparent;padding:0;min-height:32px}.event{display:block;width:100%;background:#e2ebdd;color:var(--green);font-size:11px;min-height:30px;padding:5px;margin-top:5px;border:0;text-align:left;justify-content:flex-start}.event.done{opacity:.6;text-decoration:line-through}.week-days{display:grid;gap:14px}.week-day{display:grid;grid-template-columns:115px 1fr;gap:18px;padding:20px;background:white;border:1px solid var(--line);border-radius:10px}.week-day h3{margin:0}.week-day .list-row{padding:10px 0}.result{background:#e7eee0;padding:20px;border-radius:8px;margin-top:20px;font-size:18px}.result strong{display:block;font-size:30px;margin-bottom:8px}.item{display:grid;grid-template-columns:minmax(150px,1fr) 80px 110px 44px;gap:10px;align-items:end;margin-top:14px}.item label{margin-top:0}.item textarea{min-height:65px}.quote-sheet{font-family:Arial,sans-serif;color:#111;background:#fff;padding:40px;max-width:850px;margin:auto}.quote-sheet .heading{border-top:3px solid #b00000;color:#b00000;padding-top:10px;font-size:28px;font-weight:bold}.quote-sheet .top{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.quote-sheet img{width:170px;height:110px;object-fit:contain}.quote-sheet .info{display:grid;grid-template-columns:1fr 1.5fr;gap:40px;margin:20px 0 36px}.quote-sheet .info>div{border:1px solid #b00000;padding:14px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.quote-sheet table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.quote-sheet th{background:#b00000;color:white;text-align:left;padding:10px}.quote-sheet td{border:1px solid #777;padding:12px;vertical-align:top;overflow-wrap:anywhere}.quote-sheet tr.job td{height:78px}.quote-sheet .footer{text-align:center;font-size:12px;margin-top:25px;line-height:1.8}.quote-sheet .money{text-align:right}.quote-preview{overflow:auto;border:1px solid var(--line);border-radius:8px;margin-top:24px}#print-area{display:none}.backup-help{background:#f4f5ef;border-radius:8px;padding:15px;font-size:14px}.calc-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.calc-keypad button{background:#eef1e9;color:var(--green);border-color:var(--line);font-size:19px}.calc-keypad button.equals{background:var(--green);color:#fff}.inline-check{display:flex;gap:10px;align-items:center}
@media(max-width:1050px){main{padding:28px 24px}.grid{grid-template-columns:1fr}aside{width:198px}main{margin-left:198px}.day{min-height:100px}.list-row{flex-wrap:wrap}}
@media(max-width:700px){aside{position:static;width:100%;padding:12px}.brand{display:none}nav{display:flex;overflow:auto;gap:6px}nav a{white-space:nowrap;padding:11px}.sidebar-foot{display:none}main{margin:0;padding:22px 14px}h1{font-size:27px}header{align-items:flex-start}header button{font-size:12px;padding:9px}.stats{gap:8px}.stat{padding:13px;font-size:12px}.stat strong{font-size:24px}.card{padding:18px}.form-grid{grid-template-columns:1fr}.day{min-height:85px;padding:4px}.event{font-size:10px;padding:3px}.week-day{grid-template-columns:1fr}.item{grid-template-columns:1fr 65px 90px 40px;gap:5px}.item input{padding:7px}.quote-sheet{padding:16px;min-width:600px}}
@media print{body>*{display:none!important}#print-area{display:block!important}.quote-sheet{padding:0;max-width:none}.quote-sheet tr{break-inside:avoid}@page{size:letter;margin:14mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.quote-sheet .info{grid-template-columns:1fr 1.9fr;gap:26px;align-items:stretch}.quote-sheet .info>div:last-child{display:flex;flex-direction:column;justify-content:space-around;min-height:140px}.quote-sheet .summary td{padding-top:18px;padding-bottom:18px}.quote-sheet .footer{margin-top:30px}
.visually-hidden{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.photo-gallery figure{margin:0;padding:12px;border:1px solid var(--line);border-radius:8px}.photo-gallery img{width:100%;height:160px;object-fit:cover;border-radius:5px}.photo-gallery .button{margin-top:12px;width:100%}.photo-gallery .empty{grid-column:1/-1}
@media(max-width:700px){nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}nav a{white-space:normal;text-align:center;font-size:12px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px}.item>div{min-width:0}.item{grid-template-columns:minmax(0,1fr) 60px 80px 38px}.item textarea{padding:7px}}
@media(max-width:700px){.item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;border-bottom:1px solid var(--line);padding-bottom:14px;gap:8px}.item>div:first-child{grid-column:1/-1}.item textarea{min-height:80px}.item input{padding:10px}}
[hidden]{display:none!important}
@media print{.quote-sheet .heading{font-size:23px}.quote-sheet .top{margin:12px 0}.quote-sheet img{width:140px;height:90px}.quote-sheet .info{margin:12px 0 20px;gap:24px}.quote-sheet .info>div{font-size:11px;padding:10px}.quote-sheet .info>div:last-child{min-height:110px}.quote-sheet table{font-size:11px}.quote-sheet th{padding:7px}.quote-sheet tr.job td{height:62px;padding:9px}.quote-sheet .summary td{padding:9px}.quote-sheet .footer{font-size:10px;margin-top:15px}}
.notes-pad{position:relative;height:480px;border:1px solid #c9d1c7;border-radius:9px;overflow:hidden;background:repeating-linear-gradient(to bottom,#fff 0,#fff 29px,#e5ece1 29px,#e5ece1 30px)}.notes-pad textarea{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:transparent;resize:none;padding:11px 16px;font-size:16px;line-height:30px;z-index:1;outline-offset:-3px}.notes-pad .ink{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:transparent;z-index:2;pointer-events:none;touch-action:auto}.notes-pad[data-mode=write]{touch-action:none}.notes-pad[data-mode=write] textarea{pointer-events:none}.notes-pad[data-mode=write] .ink{pointer-events:auto;touch-action:none;cursor:crosshair}.note-mode{display:flex;gap:0;margin-left:auto}.note-mode button{background:white;color:var(--green);border-color:#c9d1c7;border-radius:0}.note-mode button:first-child{border-radius:7px 0 0 7px}.note-mode button:last-child{border-radius:0 7px 7px 0}.note-mode button[aria-pressed=true]{background:var(--green);color:white}.note-tools input[type=color]{margin:0}#note-saved{display:block;margin-top:12px}
.notes-scroll{height:600px;max-height:65vh;overflow:auto;border:1px solid #c9d1c7;border-radius:9px;position:relative;overscroll-behavior:contain}.notes-scroll .notes-pad{border:0;border-radius:0;height:1440px;overflow:visible}.notes-scroll textarea{overflow:hidden}.notes-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}.notes-bottom #note-saved{margin:0}.notes-bottom button{white-space:nowrap}
.writing-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.writing-tools .note-mode{margin-left:0}.notes-pad[data-mode=write] .ink[data-tool=erase]{cursor:cell}.notes-pad[data-mode=write] .ink[data-tool=highlight]{cursor:crosshair}
dialog[open]{display:flex;flex-direction:column}#editor-form{display:flex;flex-direction:column;max-height:calc(90vh - 56px);min-height:0}#editor-content{overflow-y:auto;min-height:0;padding-right:5px}#editor-form>.actions{flex-shrink:0;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.editable-preview{cursor:pointer}.editable-preview:hover{border-color:var(--green)}#editor-error{padding:12px;background:#fbeae7;color:#9c2525;border-radius:6px}

.header-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.install-guide p{line-height:1.6}.install-guide ol{padding-left:24px;line-height:1.7}.install-guide li{margin:10px 0}.offline-status{padding:12px;border-radius:8px;background:#edf3e9;color:#163b30}.install-guide button{margin-top:8px}@media(max-width:700px){header{align-items:flex-start}.header-tools{flex-direction:column}.header-tools button{padding:9px;font-size:12px}}

.todo-row{display:flex;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.todo-check{display:flex;align-items:flex-start;gap:12px;flex:1;margin:0;cursor:pointer;min-width:0}.todo-check input{width:24px;height:24px;min-width:24px;margin:0;accent-color:var(--green)}.todo-check strong{display:block;overflow-wrap:anywhere}.todo-check small{display:block;font-weight:400;margin-top:6px;white-space:normal;overflow-wrap:anywhere}.todo-done strong{text-decoration:line-through;color:#687668}.completed-todos{margin-top:20px}.completed-todos summary{cursor:pointer;font-weight:600;padding:10px 0}.general-notes{min-height:520px;line-height:1.8;resize:vertical;margin-bottom:12px;font-size:16px}.todo-row>button{flex-shrink:0}@media(max-width:700px){nav{grid-template-columns:repeat(4,minmax(0,1fr))}.general-notes{min-height:420px}}

.price-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:10px}.price-heading h2{margin:0}.price-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.price-row:last-child{border:0}.price-description{flex:1;min-width:0;overflow-wrap:anywhere}.price-description p{margin:5px 0 0;white-space:normal}.price-value{white-space:nowrap;color:var(--green);font-size:20px}.price-heading .actions{margin:0}@media(max-width:700px){.price-heading .actions{width:100%}.price-row{gap:10px}.price-value{font-size:17px}}

#sync-dialog{width:min(900px,94vw)}#sync-dialog textarea{overflow-wrap:anywhere;min-height:84px}#sync-dialog button:disabled{opacity:.5;cursor:not-allowed}.sync-conflict{padding:16px 0;border-top:1px solid var(--line)}.sync-conflict h3{overflow-wrap:anywhere}.sync-versions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sync-versions label{border:1px solid var(--line);border-radius:8px;padding:14px;min-width:0}.sync-versions input{width:auto;margin-right:8px}.sync-versions pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font:inherit}.header-tools{flex-wrap:wrap}@media(max-width:700px){.sync-versions{grid-template-columns:1fr}.header-tools{justify-content:flex-end;max-width:180px}#sync-dialog{padding:18px}}
