@import url("https://fonts.googleapis.com/css2?family=Itim&family=Patrick+Hand&display=swap");:root{--accent:#118044;--top:#108044;--border:#d9e1ea;--grid:#d8d8d8;--text:#111827;--muted:#64748b}*{box-sizing:border-box}body,html{margin:0;height:100%;overflow:hidden;font-family:Arial,Helvetica,sans-serif;color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}.worktable{height:100dvh;display:flex;flex-direction:column;background:#eef3f8}.topbar{height:46px;flex:0 0 46px;background:linear-gradient(180deg,#128548,#0c763e);color:white;display:grid;grid-template-columns:1fr minmax(160px,360px) 1fr;align-items:center;padding:0 14px;grid-gap:12px;gap:12px}.top-left,.top-right,.top-title{display:flex;align-items:center;gap:9px;min-width:0}.top-left button,.top-right button{height:30px;min-width:30px;display:grid;place-items:center;border:0;color:white;background:transparent;border-radius:7px}.top-left button:hover,.top-right button:hover{background:rgba(255,255,255,.15)}.top-logo{width:30px;height:30px;border-radius:8px}.divider{height:24px;width:1px;background:rgba(255,255,255,.32)}.top-title{justify-content:center;font-weight:700}.top-title input{color:white;text-align:center;background:transparent;border:0;outline:0;font-weight:700;width:180px}.top-right{justify-content:flex-end}.language-button,.search-button{width:auto!important;padding:0 12px!important;display:flex!important;align-items:center;gap:7px;background:rgba(255,255,255,.12)!important}.autosave{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}.ok{color:#4ade80}.tabs{height:42px;flex:0 0 42px;display:flex;align-items:flex-end;gap:10px;padding:0 26px;background:white;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{flex:0 0 auto;height:42px;border:0;background:transparent;padding:0 4px;font-weight:700;color:#1f2937;position:relative}.tabs button.active{color:#0c763e}.tabs button.active:after{content:"";height:3px;background:var(--accent);border-radius:999px;position:absolute;left:0;right:0;bottom:0}.ribbon-shell{height:108px;flex:0 0 108px;position:relative;background:#fbfbfc;border-bottom:1px solid var(--border);box-shadow:0 2px 6px rgba(15,23,42,.08)}.ribbon{height:108px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;padding:0 40px;scrollbar-width:none}.ribbon::-webkit-scrollbar{display:none}.ribbon-arrow{position:absolute;z-index:10;top:0;width:38px;height:108px;border:0;background:linear-gradient(90deg,white 70%,rgba(255,255,255,.65));color:#334155;display:grid;place-items:center}.ribbon-arrow.right{right:0;background:linear-gradient(270deg,white 70%,rgba(255,255,255,.65))}.ribbon-arrow.left{left:0}.ribbon-row{height:108px;display:inline-flex;min-width:max-content;align-items:stretch}.group{min-width:84px;padding:5px 12px 0;border-right:1px solid #e4e9f0;display:grid;grid-template-rows:78px 22px}.group.wide{min-width:220px}.group-tools{display:flex;align-items:center;gap:8px}.group-tools input[type=number],.group-tools select{height:32px;border:1px solid #ccd6e2;border-radius:7px;padding:0 8px;background:white}.group-tools input[type=color]{width:34px;height:32px;border:1px solid #ccd6e2;border-radius:7px;background:white}.group-label{place-items:center;color:#64748b}.group-label,.tool{display:grid;font-size:12px}.tool{min-width:60px;height:66px;place-items:center;grid-gap:2px;gap:2px;border:0;background:transparent;border-radius:8px;color:#172033}.mini.active,.mini:hover,.tool.active,.tool:hover{background:#eaf2ff;color:#0c763e}.tool span{white-space:nowrap}.mini{width:32px;height:32px;border:0;border-radius:7px;background:white;display:grid;place-items:center}.format-btn,.formula-chip{height:30px;border:1px solid #ccd6e2;background:white;border-radius:7px;padding:0 10px}.formula-row{height:32px;flex:0 0 32px;background:white;border-bottom:1px solid #bfc8d2;display:grid;grid-template-columns:90px 28px 28px 28px 1fr;align-items:center}.formula-input,.name-box{border:0;outline:0;height:100%;padding:0 8px}.name-box{border-right:1px solid #d5dbe4}.accept,.cancel,.fx{display:grid;place-items:center;height:100%;color:#64748b}.fx{font-weight:700;font-style:italic}.formula-input{border-left:1px solid #d5dbe4}.grid-area{flex:1 1 auto;min-height:0;overflow:auto;background:white;outline:none}.sheet-grid{display:grid;grid-template-columns:46px repeat(26,112px);grid-template-rows:42px repeat(100,28px);width:max-content;min-width:100%;transform:scale(var(--zoom));transform-origin:top left}.corner{grid-column:1;grid-row:1;background:linear-gradient(135deg,#f1f5f9 50%,#dbe3ed 0);border-right:1px solid #cdd5df;border-bottom:1px solid #cdd5df;position:-webkit-sticky;position:sticky;left:0;top:0;z-index:8}.col-header,.row-header{background:#f8fafc;color:#4b5563;display:grid;place-items:center;border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;font-weight:600;-webkit-user-select:none;-moz-user-select:none;user-select:none}.freeze .col-header{position:-webkit-sticky;position:sticky;top:0;z-index:6}.freeze .row-header{position:-webkit-sticky;position:sticky;left:0;z-index:5}.cell{border-right:1px solid var(--grid);border-bottom:1px solid var(--grid);background:white;padding:4px 6px;overflow:hidden;white-space:nowrap;font-size:12px;line-height:20px}.no-grid .cell{border-color:transparent}.cell.selected{outline:2px solid var(--accent);outline-offset:-2px;z-index:4}.cell input{width:100%;height:100%;border:0;outline:0;background:transparent;font:inherit}.sheetbar{height:34px;flex:0 0 34px;display:grid;grid-template-columns:auto 1fr;background:#f1f3f5;border-top:1px solid #cbd5e1}.sheet-tabs{display:flex;align-items:center;gap:2px;padding-left:8px}.sheet-tabs button{height:28px;border:0;border-radius:8px 8px 0 0;background:transparent;padding:0 14px;font-weight:700;color:#0c763e}.sheet-tabs button.active{background:white;box-shadow:inset 0 -1px 0 #cbd5e1}.status{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:0 12px;font-size:12px;color:#475569}.status button{border:0;width:26px;height:26px;border-radius:7px}.status input[type=range]{width:120px;accent-color:var(--accent)}.side-panel{position:fixed;right:0;top:46px;bottom:34px;width:330px;background:white;border-left:1px solid #d8e0ec;box-shadow:-8px 0 28px rgba(15,23,42,.18);z-index:40}.side-panel header{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e2e8f0}.side-panel header button{border:0;background:transparent;font-size:22px}.panel-body{padding:16px;display:grid;grid-gap:12px;gap:12px}.panel-field{display:grid;grid-gap:6px;gap:6px;font-size:13px;color:#475569}.panel-field input,.panel-field select{height:36px;border:1px solid #cfd7e3;border-radius:8px;padding:0 10px}.primary,.secondary{height:36px;border:0;border-radius:8px;font-weight:700}.primary{background:var(--accent);color:white}.secondary{background:#e8edf3;color:#111827}.formula-note{line-height:1.4;color:#475569}.formula-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.formula-list button{height:34px;border:1px solid #d4dce7;background:white;border-radius:8px}.about-card{width:520px;display:grid;grid-template-columns:56px 1fr;grid-gap:12px;gap:12px;align-items:center;border:1px solid #d8e0ec;background:white;border-radius:12px;padding:12px}.about-card img{width:50px;height:50px;border-radius:12px}.about-card strong{display:block;font-size:15px}.about-card span{display:block;color:var(--accent);font-weight:800;font-size:12px;margin:2px 0 4px}.about-card p{margin:0;color:#475569;font-size:12px;line-height:1.35}@media (max-width:760px){.topbar{height:132px;flex-basis:132px;grid-template-columns:1fr;grid-template-rows:auto auto auto;align-content:start;padding:8px 10px;gap:8px}.top-left,.top-right,.top-title{overflow-x:auto;scrollbar-width:none}.top-left::-webkit-scrollbar,.top-right::-webkit-scrollbar,.top-title::-webkit-scrollbar{display:none}.top-title{justify-content:flex-start}.top-title input{text-align:left}.tabs{height:42px;flex-basis:42px;padding:0 12px}.ribbon-shell{height:104px;flex-basis:104px}.ribbon{height:104px;padding:0 35px}.ribbon-arrow{height:104px;width:34px}.group{padding:4px 8px 0}.tool{min-width:58px;height:62px;font-size:10.5px}.formula-row{grid-template-columns:70px 24px 24px 24px 1fr}.side-panel{top:0;width:min(88vw,330px)}.status{gap:8px;overflow-x:auto;justify-content:flex-start}.status input[type=range]{width:80px}}@media print{.formula-row,.ribbon-shell,.sheetbar,.side-panel,.tabs,.topbar{display:none!important}.grid-area,.worktable,body,html{height:auto;overflow:visible}.sheet-grid{transform:none}}