:root{--bg:#f5f4ef;--paper:#fffefa;--ink:#203b31;--muted:#627067;--line:#ddE2d7;--green:#174c3c;--soft:#e7ecdf;--accent:#b95b2c;--danger:#b03e35;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:transparent;color:inherit;min-height:44px;padding:10px 16px;border-radius:12px;font-weight:600}button:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:white}button.primary:hover{background:#21614d}button.secondary{border:1px solid var(--line);background:var(--paper)}button.danger{color:var(--danger)}button.small{font-size:14px;padding:8px 12px}button.icon-btn{padding:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:focus-visible,a:focus-visible{outline:3px solid #b95b2c;outline-offset:3px}svg{vertical-align:middle;flex-shrink:0}.ico{width:22px;height:22px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.tiny{font-size:13px}.eyebrow{font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:650;color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,4vw,48px);font-weight:400;line-height:1.12;letter-spacing:-.03em}h2{font-size:21px;line-height:1.3;letter-spacing:-.02em}h3{font-size:17px}a{color:var(--green)}.boot{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:Georgia,serif;font-size:32px}.boot span{font:16px system-ui;margin-top:12px;color:var(--muted)}.brand{display:flex;gap:12px;align-items:center}.brand img{width:42px;height:42px}.brand strong{font-family:Georgia,serif;font-weight:400;font-size:24px;line-height:1}.brand span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#eceee5;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:10}.sidebar nav{display:flex;flex-direction:column;gap:8px;margin-top:48px}.sidebar nav button{text-align:left;display:flex;align-items:center;gap:12px;font-weight:500;color:var(--muted);white-space:nowrap}.sidebar nav button.active{background:var(--green);color:#fff}.side-bottom{margin-top:auto}.side-note{font-size:13px;color:var(--muted);padding:20px 10px;border-top:1px solid #d3dacb}.side-note strong{color:var(--green);display:block;font-weight:500}.workspace{margin-left:232px;max-width:1660px;padding:28px 40px 56px}.topbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:26px;border-bottom:1px solid var(--line);gap:12px}.topbar .meta{font-size:13px;color:var(--muted)}.topbar .meta strong{color:var(--green);font-size:14px;font-weight:600}.dot{display:inline-block;width:7px;height:7px;background:#477e4d;border-radius:50%;margin-right:7px}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:32px 0 24px}.pagehead p{color:var(--muted);margin-top:10px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0 24px}.toolbar select,.toolbar input{background:var(--paper)}input,select,textarea{width:100%;min-width:0;min-height:48px;border:1px solid #cbd3c5;padding:10px 12px;background:#fffefa;border-radius:10px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #174c3c12}textarea{resize:vertical;min-height:82px}.toolbar select{width:auto;max-width:100%}.toolbar input{width:160px}.toolbar .period-label{font-size:13px;color:var(--muted);margin-left:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}.stat .label{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:8px}.stat .value{font-size:clamp(24px,2.6vw,34px);font-weight:600;line-height:1.25;letter-spacing:-.04em;margin:15px 0 8px;overflow-wrap:anywhere}.stat .sub{font-size:12px;color:var(--muted)}.stat.hero{background:var(--green);color:#fff;border-color:var(--green)}.stat.hero .label,.stat.hero .sub{color:#d4e3d7}.stat.hero .value{font-size:clamp(28px,3vw,38px)}.negative{color:var(--danger)}.hero .negative{color:#ffd3bd}.positive{color:var(--green)}.section-title{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.grid-2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;margin-bottom:28px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:30px}.quick button{display:flex;gap:10px;align-items:center;background:#e9ecdf;border:1px solid #dce2d0;justify-content:center;font-size:14px}.quick button:last-child{background:#f3e8db;border-color:#e6d6c4}.product-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.product-row:last-child{border-bottom:0}.product-icon{width:42px;height:48px;background:var(--soft);border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--green)}.product-row .qty{font-size:22px;letter-spacing:-.04em;text-align:right}.product-row .qty small{font-size:12px;color:var(--muted);letter-spacing:0}.product-row .detail{font-size:12px;color:var(--muted);margin-top:3px}.chart{width:100%;height:220px;overflow:visible}.chart text{font:11px system-ui;fill:var(--muted)}.chart .rev{fill:var(--green)}.chart .cost{fill:#d7ad79}.legend{display:flex;gap:18px;font-size:12px;color:var(--muted);margin-top:12px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--green);margin-right:6px}.legend i.cost{background:#d7ad79}.empty{padding:32px 12px;text-align:center;color:var(--muted)}.empty .ico{width:34px;height:34px;color:#84917b;margin-bottom:10px}.empty strong{display:block;color:var(--ink);font-weight:600;font-size:17px;margin-bottom:6px}.empty p{font-size:14px;max-width:340px;margin:0 auto 16px}.empty.compact{padding:20px 8px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th{text-align:left;font-weight:500;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line);padding:10px 14px}td{border-bottom:1px solid var(--line);padding:15px 14px}tr:last-child td{border-bottom:0}td.title{white-space:normal;min-width:160px}td .desc{font-size:12px;color:var(--muted);max-width:240px;overflow-wrap:anywhere}.tag{display:inline-flex;font-size:12px;align-items:center;background:var(--soft);padding:4px 9px;border-radius:7px;font-weight:500}.tag.expense,.tag.writeoff{background:#f4e6dc;color:#8a4c2e}.tag.sale{background:#e4eddf;color:#285c35}.tag.completed{background:#dfeadb}.tag.active{background:#f1e8ce;color:#745b25}.notice{border-left:3px solid #cda76f;background:#f0eadd;padding:14px 16px;font-size:13px;color:#655a43;border-radius:0 10px 10px 0;line-height:1.6;margin-top:20px}.breakdown .line{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}.breakdown .line.total{border-bottom:0;font-weight:650;font-size:17px}.breakdown .line span:first-child{color:var(--muted)}.barrow{margin:18px 0}.barrow .line{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:7px}progress{appearance:none;display:block;width:100%;height:7px;border:0;border-radius:10px;overflow:hidden;background:#eaede2}progress::-webkit-progress-bar{background:#eaede2}progress::-webkit-progress-value{background:#628361;border-radius:10px}progress::-moz-progress-bar{background:#628361}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.product-card .section-title{margin:0 0 20px}.product-card .balance{font-size:44px;font-weight:500;letter-spacing:-.04em}.product-card .balance small{font-size:16px;font-weight:400}.product-card .ministats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);margin:20px 0 12px;padding-top:18px;gap:12px}.ministats strong{display:block;font-size:19px}.ministats span{font-size:12px;color:var(--muted)}.card-actions{display:flex;gap:8px;margin-top:16px}.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.batch .timer{font-size:32px;letter-spacing:-.035em;font-weight:500;margin:18px 0 6px}.batch .timer.overdue{color:var(--accent);font-size:26px}.batch progress{margin:20px 0}.batch .batch-dates{display:grid;grid-template-columns:1fr 1fr;font-size:13px;gap:12px;color:var(--muted)}.batch-dates strong{display:block;font-size:14px;color:var(--ink);font-weight:500;margin-top:4px}.batch .hatch{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px 0}.hatch strong{display:block;font-size:23px}.hatch span{font-size:12px;color:var(--muted)}.batch .foot{display:flex;justify-content:space-between;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid var(--line);align-items:center}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid .panel p{font-size:14px;color:var(--muted);margin:14px 0 20px}.settings-grid button{margin:0 6px 10px 0}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--green);color:#f4f1e6;position:relative;padding:54px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.auth-story .brand span{color:#d5e2d2}.auth-story .statement{max-width:480px;position:relative;z-index:1;margin:60px 0}.auth-story h1{font-size:clamp(42px,5vw,72px);line-height:1.08}.auth-story p{color:#d5e2d2;margin-top:24px;max-width:360px;line-height:1.8}.auth-story .egg-art{position:absolute;width:380px;height:480px;right:-150px;bottom:-90px;opacity:.1;transform:rotate(20deg);pointer-events:none}.auth-story footer{color:#c4d7c8;font-size:13px}.auth-main{display:flex;align-items:center;justify-content:center;padding:36px}.auth-box{width:100%;max-width:390px}.auth-box h2{font-family:Georgia,serif;font-size:32px;font-weight:400;margin:0 0 12px}.auth-box>p{color:var(--muted);font-size:14px;margin-bottom:28px}.auth-box .primary{width:100%;margin-top:12px}.auth-box .privacy{font-size:12px;color:var(--muted);margin-top:26px;line-height:1.7}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-size:14px;font-weight:550}.field .hint{font-size:12px;color:var(--muted)}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span2{grid-column:1/-1}.error{background:#fae9df;color:#973a2c;font-size:14px;padding:12px;border-radius:10px;margin:12px 0}.error:empty{display:none}dialog{border:0;border-radius:24px;background:var(--paper);color:var(--ink);width:560px;max-width:calc(100vw - 24px);padding:28px;box-shadow:0 24px 120px #102d3640;max-height:92dvh;overflow:auto}dialog::backdrop{background:#19362e60;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.modal-head h2{font-family:Georgia,serif;font-size:28px;font-weight:400}.modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:22px}.modal-actions .right{display:flex;gap:8px}.summary-box{padding:14px 16px;border-radius:10px;background:var(--soft);font-size:14px;margin:0 0 16px}.summary-box strong{font-size:20px;display:block}.tabs{display:flex;gap:6px;padding:5px;background:#e9ecdf;border-radius:13px;margin-bottom:22px;overflow-x:auto}.tabs button{flex:1;white-space:nowrap;font-size:14px;padding:8px}.tabs button.active{background:var(--paper)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--green);color:#fff;padding:12px 22px;border-radius:12px;box-shadow:0 6px 30px #174c3c30;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.animate{animation:enter .32s ease-out both}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.loading{opacity:.5;pointer-events:none}.hide{display:none!important}.inline-note{font-size:13px;color:var(--muted);line-height:1.65;margin-top:12px}.flex{display:flex;align-items:center;gap:10px}.section-space{margin-top:28px}.readme{max-width:760px}.readme h3{margin-top:24px;margin-bottom:8px}.readme p{font-size:14px;color:var(--muted);line-height:1.8}.search{margin-left:auto;max-width:280px}.mobile-brand{display:none}.footer-note{font-size:12px;color:var(--muted);margin-top:32px}.stat .sub strong{font-weight:500}.auth-main .brand{display:none}
@media(min-width:1600px){.workspace{padding-left:56px;padding-right:56px}.stats{gap:24px}.stat{padding:28px}}
@media(max-width:1150px){.sidebar{width:200px;padding:26px 14px}.brand strong{font-size:21px}.workspace{margin-left:200px;padding:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.chart{height:230px}.quick{grid-template-columns:repeat(2,1fr)}.product-grid,.batch-grid{gap:16px}.settings-grid{grid-template-columns:1fr}.auth-story{padding:32px}}
@media(max-width:760px){.sidebar{position:sticky;top:0;width:100%;height:auto;padding:12px 16px 0;display:block;border-right:0;border-bottom:1px solid var(--line);background:#f5f4eff5;backdrop-filter:blur(14px)}.sidebar>.brand{display:none}.sidebar nav{flex-direction:row;margin:0;gap:4px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}.sidebar nav button{padding:10px 12px;font-size:13px;gap:7px}.sidebar nav button .ico{width:18px;height:18px}.side-bottom{display:none}.workspace{margin:0;padding:20px 16px 36px}.topbar{padding-bottom:18px}.mobile-brand{display:flex}.topbar .meta{display:none}.topbar>.icon-btn{font-size:12px}.topbar .brand img{width:34px;height:34px}.topbar .brand strong{font-size:22px}.pagehead{margin:26px 0 20px;gap:12px;align-items:flex-start}.pagehead h1{font-size:33px}.pagehead p{font-size:13px;margin-top:8px}.pagehead>.primary{font-size:13px;padding:9px 12px;white-space:nowrap;min-height:44px}.pagehead>.primary .ico{display:none}.toolbar{gap:8px;margin-top:8px}.toolbar select{font-size:14px;min-height:44px}.toolbar .period-label{font-size:12px;margin-left:0;width:100%}.toolbar input{width:calc(50% - 4px);font-size:14px}.stats{gap:10px;margin-bottom:22px}.stat{padding:16px;border-radius:16px}.stat .label{font-size:12px;gap:5px}.stat .label .ico{width:16px;height:16px}.stat .value{font-size:25px;margin:12px 0 6px;letter-spacing:-.04em}.stat.hero .value{font-size:28px}.stat .sub{font-size:11px}.panel{padding:18px;border-radius:18px}.grid-2{gap:18px;margin-bottom:22px}.quick{gap:8px;margin-bottom:24px}.quick button{font-size:13px;padding:12px 10px}.quick button .ico{width:18px;height:18px}.section-title h2{font-size:19px}.section-title .tiny{font-size:11px}.product-grid,.batch-grid{grid-template-columns:1fr;gap:18px}.product-card .balance{font-size:40px}.product-row .qty{font-size:23px}.table-wrap{margin:0 -8px}th,td{padding:12px 9px}.toolbar .search{max-width:none;width:100%;margin:4px 0 0}.auth-page{display:block;min-height:100dvh}.auth-story{padding:28px 24px 32px;min-height:250px}.auth-story>.brand{display:none}.auth-story .statement{margin:0}.auth-story h1{font-size:39px;max-width:310px}.auth-story p{font-size:13px;margin-top:14px;max-width:280px;line-height:1.6}.auth-story footer{display:none}.auth-story .egg-art{width:190px;height:250px;right:-65px;bottom:-45px}.auth-main{padding:30px 24px 40px}.auth-box h2{font-size:28px}.auth-main .brand{display:flex;margin-bottom:24px}.auth-box .privacy{margin-top:22px}.formgrid{gap:0 12px}.field label{font-size:13px}dialog{padding:22px 18px;border-radius:20px;max-height:94dvh}.tabs button{font-size:12px;padding:8px 7px}.modal-head h2{font-size:26px}.footer-note{font-size:11px}.batch .timer{font-size:30px}.legend{font-size:11px}.chart{height:200px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.auth-story .eyebrow{color:#d5e2d2}
