:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203b3b;background:#f3f5f2;font-size:15px;font-synthesis:none;--ink:#173e40;--muted:#6c7b73;--line:#dce4dc;--green:#dcecb9}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}a{color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #97b96b;outline-offset:2px}.app-header{height:60px;background:var(--ink);color:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(20px,calc((100vw - 660px)/2));}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:17px;font-weight:700;letter-spacing:-.4px;white-space:nowrap}.brand-icon{background:var(--green);color:var(--ink);border-radius:8px;display:grid;place-items:center;width:30px;height:30px;font-weight:800;font-size:20px}.header-note{font-size:11px;color:#bfd0c6;white-space:nowrap}.app-nav{display:flex;gap:4px;padding:5px;background:#e7ece5;border-radius:13px;max-width:560px;margin:22px auto 0}.app-nav button{flex:1;min-width:0;border:0;border-radius:9px;background:transparent;color:#65756b;font-size:13px;font-weight:650;padding:11px 7px;min-height:42px}.app-nav button[aria-selected=true]{background:white;color:#183e39;box-shadow:0 1px 5px #18332312}.app-main{max-width:600px;margin:auto;padding:22px 20px 30px}.page-title{margin-bottom:18px}.page-title h1{font-size:26px;letter-spacing:-.8px;line-height:1.2;margin:0 0 6px;font-weight:750}.page-title p{font-size:13px;color:var(--muted);margin:0;line-height:1.4}.card{padding:22px;border:1px solid var(--line);border-radius:17px;background:#fff;margin:0 0 16px;box-shadow:0 3px 14px #18332303}.entry{padding-bottom:14px}h2{font-size:16px;letter-spacing:-.2px;margin:0 0 16px}p{line-height:1.6}label{display:block;font-size:12px;font-weight:650;margin:0 0 14px;color:#4d6359}input,select,textarea{display:block;width:100%;min-width:0;background:#f8faf6;border:1px solid #d7e0d5;border-radius:9px;color:#233b31;padding:11px 12px;margin-top:6px;font-size:16px;min-height:46px}input[type=date],input[type=month]{appearance:none;-webkit-appearance:none;min-width:0;max-width:100%}.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.field-with-add{display:grid;grid-template-columns:1fr auto;gap:0 10px;margin-bottom:14px}.field-with-add label{margin:0;align-self:center}.field-with-add select{grid-column:1/-1;margin-top:5px}.textbutton{border:0;background:none;color:#426348;font-size:12px;font-weight:600;padding:5px 0;min-height:28px}.textbutton:hover{color:#234329;text-decoration:underline}.timefield{min-width:0;border:0;padding:0;margin:0 0 10px}.timefield legend{font-size:12px;font-weight:650;color:#4d6359;padding:0}.muted{font-weight:400;color:#89958d}.timepicker{display:flex;align-items:center;gap:4px}.timepicker select{flex:1;min-width:0;padding:11px 5px;font-variant-numeric:tabular-nums}.timepicker>span{margin-top:6px;color:#71816e}.form-options{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px}.check{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:400;min-height:30px}.check input{display:inline-block;min-height:0;width:17px;height:17px;margin:0;accent-color:var(--ink)}button,.import{border:1px solid var(--line);border-radius:9px;background:white;color:#31533b;padding:10px 14px;min-height:42px}.primary{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;border:0;border-radius:11px;background:var(--ink);color:white;text-decoration:none;font-weight:650;min-height:49px;padding:13px 17px;font-size:14px;box-shadow:0 3px 8px #173e4014}.primary:hover{background:#235254}.primary>span{font-size:21px;font-weight:400;line-height:1}#cancel{width:100%;margin-top:9px}#formError{color:#a33e26;font-size:12px;margin:8px 0}#formError:empty{display:none}details{font-size:12px;line-height:1.6}summary{cursor:pointer;font-size:12px;font-weight:650;color:#586d5e;min-height:34px;display:list-item;padding:8px 0}details p{color:#6a7b70;margin:6px 0 10px}.entry-help{margin-top:10px;border-top:1px solid #edf1e9}.entry-help summary{font-weight:500;color:#7c8a7d}.storage-note{font-size:10px;color:#879286;line-height:1.5;text-align:center;padding:0 10px;margin:14px 0}.storage-note span{color:#88a36b;margin-right:4px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.sectionhead h2{margin:0}.month-heading input{width:170px;margin:0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 16px}.stat{background:#e5ebe0;border-radius:12px;padding:14px}.stat>span{font-size:9px;font-weight:700;letter-spacing:.5px}.stat strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:7px;font-variant-numeric:tabular-nums}.stat.accent{background:var(--green)}.open-result-card{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:12px}.open-result-card label{margin:0}.open-result-card .primary{margin:0;min-height:46px}.row{padding:15px 0;border-bottom:1px solid #eaf0e7}.row:first-child{padding-top:0}.row:last-child{border:0;padding-bottom:0}.row h3{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}.rowtop{display:flex;justify-content:space-between;gap:12px}.rowtop>strong{white-space:nowrap;font-size:14px}.row p{font-size:12px;color:#738170;margin:6px 0}.tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.tag{font-size:10px;background:#edf3e7;border-radius:5px;padding:4px 6px}.tag.warn{background:#fff0ce}.rowbuttons{display:flex;gap:22px}.empty{text-align:center;padding:25px 8px;color:#7b8b77;font-size:13px;line-height:1.6}.empty strong{display:block;color:#486345;font-size:15px;margin-bottom:5px}.breakrow{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf1e8;font-size:12px}.hint{font-size:11px;color:#778772;line-height:1.6}#rest{font-size:12px;color:#73836c}.settings details{border-top:1px solid #e5eadf;padding-top:10px}.settings #balance{background:#f2f6ec;padding:12px;border-radius:9px;font-size:12px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.actions button,.actions .import{font-size:12px}.import{cursor:pointer;margin:0;font-weight:500}.settings .two{row-gap:0}textarea{resize:vertical;line-height:1.5}.back-link{text-decoration:none;font-size:13px;font-weight:600}.back-link:hover{text-decoration:underline}.result-header strong{font-size:15px}.result-header .back-link{color:#e0edda;font-size:12px}.header-mark{color:#cbe1ab;font-size:13px;font-weight:700}.result-main{max-width:700px;margin:auto;padding:18px 20px 24px}.report-datebar{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px;align-items:end;margin-bottom:18px}.report-datebar label{margin:0;font-size:11px}.report-datebar input{background:white;min-height:42px;padding:8px 12px;margin-top:4px}.report-datebar button{padding:4px;font-size:25px;min-height:42px;background:#e8eee2;border:0}.bygglet-heading{background:#06496a;color:white;padding:12px 16px;border-radius:13px 13px 0 0;display:flex;justify-content:space-between;align-items:center;gap:10px}.bygglet-heading span{font-size:9px;letter-spacing:1px}.bygglet-heading strong{font-size:12px}.bygglet-sheet{background:#f3f6ed;color:#243022;border:1px solid #dbe3d4;border-top:0;border-radius:0 0 13px 13px;overflow:hidden;box-shadow:0 2px 4px #20392007}.bygglet-total{padding:14px 16px;display:flex;justify-content:space-between;gap:10px;font-size:14px;align-items:center}.bygglet-total>span{font-size:16px}.week-total{border-left:1px solid #ccd7c5;margin-left:7px;padding-left:7px}.bygglet-step{display:flex;flex-direction:column;gap:3px;padding:10px 16px;background:#e8efde;color:#42613b}.bygglet-step strong{font-size:12px}.bygglet-step span{font-size:10px}.bygglet-project{border-left:5px solid #b8c9cb;border-bottom:1px solid #cad5c4;padding:14px 15px}.bygglet-project:last-child{border-bottom:0}.bygglet-project h3{font-size:15px;line-height:1.4;margin:0 0 12px;overflow-wrap:anywhere}.project-comment{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;margin-bottom:12px}.project-comment label{font-size:10px;color:#6a7b60;margin:0;text-transform:uppercase;letter-spacing:.7px}.project-comment button{grid-row:1;grid-column:2;min-height:30px;padding:5px 10px;background:#e2edda;color:#3c5f36;border:0;font-size:11px;font-weight:650;border-radius:6px}.project-comment textarea{grid-row:2;grid-column:1/-1;background:#fffefa;min-height:42px;margin:0;font-size:14px;padding:10px;border-color:#dde4d4;resize:vertical}.comment-status{grid-column:1/-1;margin:0;font-size:11px;color:#3d6b31}.comment-status:empty{display:none}.bygglet-work{display:none}.bygglet-payrow{display:flex;justify-content:space-between;gap:12px;align-items:start;padding:8px 0;font-size:14px;line-height:1.4}.bygglet-payrow strong{white-space:nowrap;font-variant-numeric:tabular-nums}.bygglet-payrow small{display:block;font-size:10px;color:#7f8b75;margin-top:2px}.bygglet-machine{display:flex;justify-content:space-between;align-items:center;margin-top:8px;border-top:1px dashed #d5deca;padding-top:10px;font-size:13px}.bygglet-machine small{font-size:9px;display:block;color:#839078;font-weight:400;letter-spacing:.4px;margin:3px 0}.bygglet-machine strong{text-align:right}.bygglet-ob{border-left:5px solid #bce0b1}.compensation-card{background:#f3f6ed;border-radius:12px;border-top:1px solid #dbe3d4;border-right:1px solid #dbe3d4;border-bottom:1px solid #dbe3d4;margin-top:12px;padding:0 15px 11px}.compensation-card .bygglet-step{padding:11px 0 8px;background:none;border-bottom:1px solid #dce5d1}.compensation-date{font-size:10px;color:#7a8d70;margin:8px 0 0;line-height:1.3}.compensation-help{font-size:10px;color:#73876a;line-height:1.4;margin:5px 0 0}.compensation-card .bygglet-payrow{padding:9px 0 2px}.bygglet-empty{padding:22px 15px;text-align:center;font-size:13px;color:#778770}.result-rules{margin:12px 0}.result-rules summary{font-size:10px;font-weight:500;color:#819178}.result-rules p{font-size:11px}.result-bottom{display:inline-block;margin:8px 0;font-size:12px;color:#55764a}#resultError:empty{display:none}@media(max-width:620px){.app-header{height:55px;padding:0 18px}.header-note{font-size:10px}.brand{font-size:16px}.app-nav{margin:14px 16px 0}.app-main{padding:18px 16px 20px}.page-title{margin-bottom:14px}.page-title h1{font-size:23px}.card{padding:17px;border-radius:14px}.entry{padding-bottom:9px}.two{gap:12px}.timepicker select{font-size:16px}.result-main{padding:14px 13px 20px}.project-comment textarea{font-size:16px}.bygglet-payrow{font-size:13px}.bygglet-project h3{font-size:14px}.bygglet-total{font-size:13px}.bygglet-total>span{font-size:15px}.settings .two{grid-template-columns:1fr}.open-result-card{padding:15px}.stat{padding:12px}.stat strong{font-size:23px}}@media(max-width:360px){.header-note{display:none}.app-main{padding:16px 12px}.app-nav{margin-left:12px;margin-right:12px}.card{padding:14px}.timepicker select{padding-left:3px;padding-right:3px}.open-result-card{grid-template-columns:1fr}.form-options{gap:4px}.check,.form-options .textbutton{font-size:11px}}

.draft-summary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#e9efe6;border:1px solid #d3dfd0;border-radius:14px;padding:13px 16px;margin:0 0 10px;color:#173e40}.draft-summary strong,.draft-summary small,.draft-summary span span{display:block}.draft-summary strong{font-size:14px;margin:4px 0;line-height:1.35}.draft-summary small,.draft-summary span span{font-size:12px;font-weight:400}.draft-open{flex-shrink:0;font-size:12px}.draft-label{font-size:12px;color:#587454;margin:0;font-weight:700}.add-project-block{width:100%;border:1px dashed #94ad92;background:#f2f6ef;color:#365e3a;min-height:42px;font-weight:700}

/* Distinct project cards, with consistent numbering in entry and result. */
[data-tone="0"]{--project-color:#285d60;--project-tint:#e5efec}[data-tone="1"]{--project-color:#456b98;--project-tint:#e9eff8}[data-tone="2"]{--project-color:#876536;--project-tint:#f5efdf}
.card.entry{border:2px solid var(--project-color,#285d60);border-left-width:6px;box-shadow:0 4px 14px #173e400b;margin-bottom:18px}
.draft-label{background:var(--project-tint,#e5efec);color:var(--project-color,#285d60);padding:10px 12px;border-radius:8px;margin:0 0 16px;font-size:13px;letter-spacing:.1px}
.draft-summary{border:2px solid #cad6d2;border-left:6px solid var(--project-color,#285d60);background:#fff;box-shadow:0 3px 10px #173e4007;margin-bottom:18px;padding:15px;gap:10px}
.draft-summary small{display:inline-block;padding:4px 7px;border-radius:5px;background:var(--project-tint,#e5efec);color:var(--project-color,#285d60);font-weight:700;font-size:11px}.draft-summary strong{margin:9px 0 5px;font-size:15px}.draft-summary span span{color:#62716c}.draft-open{padding:7px;background:#f1f4ef;border-radius:6px;font-weight:650}
.add-project-block{margin:4px 0 12px}
.bygglet-sheet{background:#e7ece5;padding-bottom:4px}.bygglet-project,.bygglet-project:last-child{background:#fcfdf8;border:1px solid #cbd7c6;border-left:6px solid var(--project-color,#285d60);border-radius:11px;margin:14px 10px;padding:13px 14px 15px;box-shadow:0 3px 8px #20392008}.result-project-label{display:inline-block;border-radius:5px;background:var(--project-tint,#e5efec);color:var(--project-color,#285d60);padding:4px 8px;font-size:11px;font-weight:750;margin-bottom:8px}.bygglet-project h3{padding-bottom:11px;border-bottom:1px solid #dce3d5;margin-bottom:12px}

.project-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.project-block-head .draft-label{margin:0;padding:8px;font-size:11px}.remove-project{border:1px solid #e6cfc9;background:#fff8f5;color:#963e2c;padding:8px 10px;font-size:11px;font-weight:650;min-height:38px;white-space:nowrap}.remove-project:hover{background:#fbe8e1}.draft-wrap{position:relative;margin-bottom:18px}.draft-wrap .draft-summary{margin:0;padding-bottom:51px}.draft-remove{position:absolute;right:12px;bottom:9px;min-height:32px;padding:5px 10px}

#showConflict{width:100%;margin:0 0 12px;color:#963e2c;border-color:#e6cfc9;background:#fff8f5;font-size:12px}#formError:not(:empty){background:#fff5ee;border-left:3px solid #b46643;padding:10px 12px;border-radius:6px;line-height:1.6}

.project-comment textarea{overflow:hidden;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}

.date-split{padding:12px 14px;background:#e7eff5;border:1px solid #c4d5e2;border-radius:11px;margin:0 0 14px;font-size:12px;color:#284d68}.date-split p{margin:5px 0 9px;line-height:1.5}.date-split a{display:block;background:white;border-radius:7px;padding:10px;margin-top:6px;text-decoration:none;font-weight:650}

.end-day-hint{font-size:11px;color:#5e7769}.auto-split{margin:10px 0 14px;padding:12px;background:#eef3f7;border:1px solid #c9d8e2;border-radius:10px;font-size:12px}.auto-split>p{font-size:11px;line-height:1.5;margin:5px 0 10px;color:#627582}.auto-day{border-left:4px solid #285d60;background:white;border-radius:7px;padding:10px;margin-top:8px;display:grid;gap:5px}.auto-day.next-day{border-color:#456b98}.auto-day small{color:#456b80;font-weight:700}.auto-day b{font-size:12px}.auto-day span{font-size:12px}
