:root{color-scheme:light;--accent: #107c41;--accent-strong: #0b5a2f;--accent-soft: #e6f2ea;--chrome: #f5f5f5;--surface: #ffffff;--hover: #f0f0f0;--border: #e0e0e0;--border-strong: #c8c8c8;--text: #242424;--text-muted: #616161;--font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif}:root[data-theme=dark]{color-scheme:dark;--accent: #3fae6d;--accent-strong: #6cc893;--accent-soft: rgb(63 174 109 / 18%);--chrome: #1f1f1f;--surface: #292929;--hover: #383838;--border: #3d3d3d;--border-strong: #4d4d4d;--text: #e8e8e8;--text-muted: #a6a6a6;--topbar: #0f3b22;--paper: #303030;--paper-line: #3a3a3a;--row-hover: #303030;--code: #333333}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}body{display:flex;flex-direction:column;min-height:100vh;background:var(--chrome);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}a{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}code{padding:0 3px;border-radius:3px;background:var(--code, #f0f0f0);font-size:.92em}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link{position:absolute;top:-40px;left:8px;z-index:10;padding:8px 12px;background:var(--surface)}.skip-link:focus{top:8px}.topbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:200px minmax(0,560px) 1fr;align-items:center;gap:16px;height:52px;padding:0 16px;background:var(--topbar, #107c41);color:#fff}.brand{display:flex;align-items:center;gap:10px;color:inherit;font-size:17px;font-weight:600;text-decoration:none}.brand-mark{width:26px;height:26px}.search{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:4px;background:var(--surface);color:var(--text-muted)}.search svg{flex:0 0 auto;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}.search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;outline:none}.topbar-end{display:flex;align-items:center;justify-content:flex-end;gap:8px}.theme-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer}.theme-toggle:hover{background:rgb(255 255 255 / 14%)}.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .when-dark,[data-theme=dark] .theme-toggle .when-light{display:none}[data-theme=dark] .theme-toggle .when-dark{display:block}.topbar-open{padding:7px 14px;border:1px solid rgb(255 255 255 / 60%);border-radius:4px;color:#fff;font-weight:600;text-decoration:none}.topbar-open:hover{background:rgb(255 255 255 / 14%)}.layout{flex:1;display:grid;grid-template-columns:88px minmax(0,1fr)}.rail{display:flex;flex-direction:column;gap:4px;padding:12px 8px;border-right:1px solid var(--border);background:var(--surface)}.rail-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:6px;color:var(--text);font-size:12px;text-decoration:none}.rail-item svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.rail-item:hover{background:var(--hover)}.rail-item.is-active{background:var(--accent-soft);color:var(--accent-strong);font-weight:600}.content{width:100%;max-width:1100px;padding:32px 40px 56px}h1{margin:0 0 24px;font-size:28px;font-weight:400}h2{margin:0 0 14px;font-size:16px;font-weight:600}.templates{display:flex;flex-wrap:wrap;gap:20px;margin:0 0 40px;padding:0;list-style:none}.template{display:flex;flex-direction:column;gap:10px;width:168px;color:var(--text);text-decoration:none}.template-name{font-size:13px}.thumb{position:relative;display:flex;flex-direction:column;gap:6px;height:126px;padding:14px;border:1px solid var(--border-strong);border-radius:4px;background:linear-gradient(var(--paper-line, #ececec) 1px,transparent 1px) 0 0 / 100% 15px,linear-gradient(90deg,var(--paper-line, #ececec) 1px,transparent 1px) 0 0 / 42px 100%,var(--paper, #ffffff);transition:border-color .12s,box-shadow .12s,transform .12s}.template:hover .thumb,.template:focus-visible .thumb{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 6px 16px #00000014;transform:translateY(-1px)}.template:focus-visible{outline:none}.thumb-title{width:58%;height:9px;border-radius:2px;background:var(--accent)}.thumb-head{height:10px;border-radius:1px;background:var(--accent);opacity:.85}.thumb-row{height:6px;border-radius:1px;background:#d6d6d6}.thumb-row:nth-child(2n){width:84%}.thumb-row.is-total{background:#c6e0b4}.is-invoice .thumb-row.is-total{align-self:flex-end;width:42%}.thumb-row.is-done{width:60%;background:#bfbfbf}.thumb-cell{position:absolute;top:14px;left:0;width:43px;height:16px;border:2px solid var(--accent)}.recent{margin-bottom:48px}.recent-header{display:flex;align-items:baseline;justify-content:space-between}.text-button{padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:13px;cursor:pointer}.text-button:hover{text-decoration:underline}.recent-table{width:100%;border:1px solid var(--border);border-radius:6px;border-collapse:separate;border-spacing:0;background:var(--surface);overflow:hidden}.recent-table th{padding:10px 16px;border-bottom:1px solid var(--border);color:var(--text-muted);font-size:12px;font-weight:600;text-align:left}.recent-table td{padding:0 16px;border-bottom:1px solid var(--border);color:var(--text-muted);font-size:13px}.recent-table tbody tr:last-child td{border-bottom:0}.recent-table tbody tr:hover{background:var(--row-hover, #f7f7f7)}.recent-open{display:flex;align-items:center;gap:12px;padding:10px 0;color:var(--text);text-decoration:none}.recent-name{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.recent-open:hover .recent-name{color:var(--accent);text-decoration:underline}.col-sheets{width:90px}.col-when{width:200px;white-space:nowrap}.col-actions{width:56px;text-align:right}.icon-button{display:inline-grid;place-items:center;width:30px;height:30px;border:0;border-radius:4px;background:transparent;color:var(--text-muted);cursor:pointer;opacity:0}tr:hover .icon-button,.icon-button:focus-visible{opacity:1}.icon-button:hover{background:var(--hover);color:var(--text)}.icon-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.empty{padding:28px 24px;border:1px dashed var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text-muted);text-align:center}.empty p{margin:0}.empty-title{margin-bottom:4px!important;color:var(--text);font-weight:600}.no-match{margin:12px 0 0;color:var(--text-muted)}[hidden]{display:none!important}.footer{padding:16px 24px;border-top:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:12px;text-align:center}.footer p{margin:0}@media (max-width: 760px){.topbar{grid-template-columns:auto 1fr;height:auto;padding:10px 16px}.topbar-open{display:none}.search{grid-column:1 / -1;grid-row:2}.layout{grid-template-columns:1fr}.rail{flex-direction:row;border-right:0;border-bottom:1px solid var(--border)}.rail-item{flex:1}.content{padding:24px 16px 40px}.templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.template{width:auto}.col-sheets,.col-when{display:none}}
