:root{color:#1f2933;font-synthesis:none;--accent:#176b45;--accent-dark:#105537;--accent-soft:#e8f4ee;--border:#d7ded9;--border-light:#e8ece9;--surface:#fff;--muted:#647068;background:#f4f7f5;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline-offset:2px;outline:2px solid #2f84df}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.brand{color:#17352a;letter-spacing:-.02em;align-items:center;gap:10px;font-size:19px;font-weight:730;text-decoration:none;display:inline-flex}.brand-mark{color:#fff;background:var(--accent);border-radius:8px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 0 0 1px #ffffff26}.brand.compact{cursor:pointer;background:0 0;border:0;font-size:16px}.brand.compact .brand-mark{background:#ffffff29;border-radius:6px;width:30px;height:30px}.start-screen{background:radial-gradient(circle at 75% -20%,#dcefe4 0,#0000 40%),linear-gradient(#f9fbfa,#f2f6f3);min-height:100%;overflow:auto}.start-header{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffc7;border-bottom:1px solid #186b451f;justify-content:space-between;align-items:center;height:70px;padding:0 clamp(24px,5vw,78px);display:flex}.local-badge,.privacy-badge{color:#236044;background:#edf8f2;border:1px solid #cce7d8;border-radius:999px;align-items:center;gap:7px;padding:7px 11px;font-size:12px;font-weight:650;display:inline-flex}.start-content{width:min(1020px,100% - 48px);margin:0 auto;padding:58px 0 48px}.welcome-copy{max-width:750px}.eyebrow{color:var(--accent);text-transform:uppercase;letter-spacing:.13em;margin:0 0 12px;font-size:12px;font-weight:750}.welcome-copy h1{letter-spacing:-.045em;color:#162b22;max-width:700px;margin:0;font-size:clamp(34px,5vw,56px);line-height:1.05}.promise{color:#536158;margin:19px 0 0;font-size:18px;line-height:1.55}.start-actions{grid-template-columns:235px minmax(290px,1fr);gap:18px;margin-top:42px;display:grid}.template-card,.open-card,.drop-zone{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;transition:border-color .15s,transform .15s,box-shadow .15s;box-shadow:0 6px 24px #1832250f}.template-card:hover,.open-card:hover,.drop-zone:hover,.drop-zone.dragging{border-color:#68aa87;transform:translateY(-1px);box-shadow:0 10px 28px #1850331a}.template-card{text-align:left;padding:12px}.blank-preview{background:#fbfcfb;border:1px solid #dde3df;grid-template-columns:repeat(6,1fr);height:120px;display:grid;overflow:hidden}.blank-preview span{border-bottom:1px solid #e5e9e6;border-right:1px solid #e5e9e6}.blank-preview span:nth-child(-n+6){background:#f1f4f2}.template-label{align-items:center;gap:8px;padding:14px 2px 3px;font-weight:680;display:flex}.open-card{text-align:left;align-items:center;gap:18px;padding:30px;display:flex}.open-icon{height:58px;color:var(--accent);background:var(--accent-soft);border-radius:14px;flex:0 0 58px;place-items:center;display:grid}.open-card strong,.open-card small{display:block}.open-card strong{margin-bottom:6px;font-size:19px}.open-card small,.drop-zone small{color:var(--muted);font-size:13px}.drop-zone{color:#3e5247;width:100%;min-height:92px;box-shadow:none;border-style:dashed;justify-content:center;align-items:center;gap:14px;margin-top:18px;display:flex}.drop-zone span,.drop-zone strong,.drop-zone small{text-align:left;display:block}.drop-zone small{margin-top:4px}.error-message{color:#a32d2d;background:#fff0f0;border:1px solid #f0c7c7;border-radius:7px;padding:11px 14px}.recent-section{margin-top:44px}.section-title{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;display:flex}.section-title h2{margin:0 0 12px;font-size:18px}.section-title span{color:var(--muted);font-size:12px}.empty-recent{color:#7b857e;align-items:center;gap:11px;height:88px;display:flex}.recent-list{display:grid}.recent-list button{text-align:left;border:0;border-bottom:1px solid var(--border-light);cursor:pointer;background:0 0;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;width:100%;padding:13px 8px;display:grid}.recent-list button:hover{background:#ffffffb3}.recent-list strong,.recent-list small{display:block}.recent-list small,.recent-type{color:var(--muted);margin-top:3px;font-size:12px}.privacy-note{color:#56675d;gap:12px;max-width:1020px;margin:0 auto 36px;font-size:13px;display:flex}.privacy-note strong{color:#2e493a}.workbook-shell{background:#fff;flex-direction:column;width:100%;height:100%;display:flex;position:relative}.workbook-header{color:#fff;background:var(--accent);flex:0 0 46px;align-items:center;gap:12px;min-width:0;padding:0 14px;display:flex}.workbook-header .brand{color:#fff}.quick-actions{border-left:1px solid #ffffff38;gap:1px;padding-left:8px;display:flex}.quick-actions button{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:5px;place-items:center;width:30px;height:30px;display:grid}.quick-actions button:hover{background:#ffffff24}.filename-input{color:#fff;text-align:center;background:0 0;border:1px solid #0000;border-radius:4px;width:min(280px,30vw);height:28px;margin-left:6px}.filename-input:hover,.filename-input:focus{background:#ffffff14;border-color:#ffffff47}.save-status{color:#fffc;font-size:12px}.save-status.dirty{color:#fff1ae}.save-status.failed{color:#ffd2d2}.privacy-badge{color:#fff;background:#ffffff1f;border-color:#ffffff2e;margin-left:auto}.file-bar{border-bottom:1px solid var(--border);z-index:20;background:#fff;flex:0 0 34px;align-items:center;display:flex}.file-menu-wrap{align-self:stretch;position:relative}.file-tab{color:#fff;background:var(--accent-dark);cursor:pointer;border:0;align-items:center;gap:4px;height:100%;padding:0 18px;font-size:13px;display:flex}.file-menu{z-index:100;border:1px solid var(--border);background:#fff;border-radius:0 0 8px;width:250px;padding:8px;position:absolute;top:34px;left:0;box-shadow:0 14px 34px #132a1d2e}.file-menu>button{cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:11px;width:100%;padding:9px 10px;font-size:13px;display:flex}.file-menu>button:hover{background:var(--accent-soft);color:var(--accent-dark)}.file-info{color:#3f594b;border-top:1px solid var(--border-light);gap:10px;margin-top:8px;padding:12px 10px 7px;display:flex}.file-info strong,.file-info small{display:block}.file-info small{color:var(--muted);margin-top:2px;font-size:11px}.selection-readout{align-items:center;gap:12px;min-width:0;padding:0 12px;font-size:12px;display:flex}.selection-readout strong{min-width:42px;color:var(--accent)}.selection-readout span{max-width:60vw;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.warning-strip,.error-strip{flex:none;justify-content:center;align-items:center;gap:12px;min-height:31px;padding:5px 14px;font-size:12px;display:flex}.warning-strip{color:#6b5319;background:#fff7db;border-bottom:1px solid #f0df9d}.error-strip{color:#8f2929;background:#ffeded;border-bottom:1px solid #efbcbc}.error-strip button{color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.editor-area,.spreadsheet-host{flex:auto;width:100%;min-width:0;height:100%;min-height:0}.drop-overlay,.loading-overlay{z-index:200;color:var(--accent-dark);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);pointer-events:none;background:#f1faf5e6;border:2px dashed #67a783;border-radius:10px;place-content:center;justify-items:center;gap:10px;display:grid;position:absolute;inset:80px 12px 12px}.loading-overlay{pointer-events:auto;background:#ffffffe6;border:0}.loading-overlay small{color:var(--muted)}.spinner{border:3px solid #cfe4d8;border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.dialog-backdrop{z-index:300;background:#121f1859;place-items:center;display:grid;position:absolute;inset:0}.dialog{background:#fff;border-radius:10px;width:min(460px,100% - 32px);padding:24px;box-shadow:0 24px 70px #0b1a1147}.dialog h2{margin:0;font-size:19px}.dialog p{color:var(--muted);line-height:1.5}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.dialog-actions button{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:5px;padding:8px 15px}.dialog-actions .primary{color:#fff;border-color:var(--accent);background:var(--accent)}.dialog-actions .danger{color:#9a2d2d}@media (width<=700px){.start-header{padding:0 18px}.local-badge span{display:none}.start-content{width:min(100% - 28px,1020px);padding-top:36px}.welcome-copy h1{font-size:36px}.start-actions{grid-template-columns:1fr}.template-card{grid-template-columns:120px 1fr;align-items:center;display:grid}.blank-preview{height:82px}.privacy-badge,.quick-actions,.selection-readout{display:none}.filename-input{flex:1;width:auto}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
