@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;550;600;650;700&display=swap');
:root{--canvas:#efefed;--surface:#fbfbf9;--white:#fff;--ink:#292a28;--muted:#7d8079;--soft:#a1a39c;--line:#e5e6e1;--lime:#d9fa38;--sage:#e7ebdf;--green:#dce8d8;--amber:#f0e6d6;--red:#f1ded9;--shadow:0 14px 42px #343a2410;--font:'Inter','Helvetica Neue',Arial,sans-serif;color:var(--ink);font-family:var(--font);font-size:13px;font-weight:400;line-height:1.45;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;background:var(--canvas);min-width:320px}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #94a65b;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0;font-weight:400}h1{font-size:clamp(31px,3.1vw,45px);letter-spacing:-2px;line-height:1.08}h2{font-size:22px;letter-spacing:-.65px}h3{font-size:15px;letter-spacing:-.2px}.brand{display:inline-flex;width:max-content;align-items:flex-start;gap:3px;font-size:32px;line-height:1;font-weight:650;letter-spacing:-2.2px}.brand span{color:#7f8d43;font-size:9px;letter-spacing:0;margin-top:4px}.eyebrow{font-size:9px;letter-spacing:1.4px;color:var(--muted);text-transform:uppercase}.small-note,.form-message{font-size:11px;color:var(--muted);line-height:1.55}.button{min-height:42px;padding:0 17px;border:1px solid transparent;border-radius:14px;background:var(--white);display:inline-flex;align-items:center;justify-content:center;gap:13px;font-size:12px;font-weight:500;transition:transform .15s,background .15s,border-color .15s}.button:hover:not(:disabled){transform:translateY(-1px);border-color:#d9dbd2}.button-dark{background:#222421;color:#fff}.button-dark:hover:not(:disabled){background:#333630}.button-lime{background:var(--lime);color:#25281c}.button-light{background:#fff;border-color:var(--line)}.button-quiet{background:transparent;border-color:var(--line)}.button-small{min-height:32px;border-radius:11px;padding:0 11px;font-size:11px}.button-danger{background:var(--red)}.icon-button{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:17px}.text-button{border:0;background:none;padding:0;color:#51554c;font-size:11px;text-decoration:underline;text-underline-offset:3px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(350px,560px) minmax(380px,1fr);gap:clamp(30px,8vw,135px);align-items:center;padding:clamp(25px,7vw,100px);max-width:1440px;margin:auto}.auth-card{width:min(100%,430px);margin:auto}.auth-card .brand{margin-bottom:63px}.auth-card .eyebrow{margin-bottom:13px}.auth-card h1{font-size:37px}.auth-copy{font-size:13px;color:var(--muted);max-width:340px;margin:14px 0 30px}.form-stack{display:grid;gap:15px}.form-stack label,.field{display:grid;gap:7px;font-size:11px;color:#5c5f58}.form-stack input,.field input,.field select,.field textarea,.form-stack select{width:100%;height:43px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink)}.form-stack .button{margin-top:5px;height:45px}.auth-card .small-note{margin-top:21px;max-width:330px}.auth-side{min-height:550px;border-radius:35px;background:#e7ebe3;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:44px}.auth-side .eyebrow{position:absolute;top:37px;left:42px}.auth-side>p{font-size:clamp(37px,5vw,68px);letter-spacing:-3px;line-height:.98;position:relative;z-index:1}.auth-currency{font-size:11px;color:var(--muted);margin-top:17px;position:relative;z-index:1}.auth-graphic{position:absolute;width:430px;height:430px;top:6%;left:50%;transform:translateX(-50%)}.orbit{position:absolute;border:1px solid #bfc6b6;border-radius:50%;transform:rotate(-24deg)}.orbit-one{inset:30px 100px}.orbit-two{inset:76px 45px;transform:rotate(43deg)}.orbit-three{inset:118px 8px;transform:rotate(-52deg)}.orbit-core{position:absolute;width:95px;height:95px;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 35% 30%,#f6ffd8 0 12%,#d9fa38 14% 37%,#b2c864 70%,#869853 100%);box-shadow:0 20px 45px #81944c30}.app-shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr);background:var(--canvas)}.sidebar{position:sticky;top:0;height:100vh;background:#f8f8f6;border-right:1px solid #e3e4df;padding:27px 16px 18px;display:flex;flex-direction:column;justify-content:space-between;z-index:2}.side-top .brand{margin:0 0 30px 10px}.entity-switch{border:1px solid var(--line);width:100%;min-height:58px;padding:9px;border-radius:15px;background:#fff;display:flex;align-items:center;gap:9px;text-align:left}.entity-mark{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:var(--lime);font-size:15px;font-weight:550}.entity-switch-copy{display:grid;gap:2px;min-width:0}.entity-switch-copy b,.profile-button b{font-size:10px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}.entity-switch-copy small,.profile-button small{font-size:9px;color:var(--muted)}.switch-caret{margin-left:auto;font-size:13px;color:var(--muted)}.nav-label{margin:31px 0 9px 12px;font-size:8px;letter-spacing:1.4px;color:#9b9d96}.nav-label-spaced{margin-top:28px}.main-nav{display:grid;gap:3px}.nav-button{position:relative;min-height:39px;width:100%;border:0;border-radius:12px;background:transparent;display:flex;align-items:center;gap:11px;padding:0 12px;text-align:left;font-size:11px;color:#63665f;transition:background .15s,color .15s}.nav-button:hover{background:#eff0ec}.nav-button.active{background:#fff;color:#252723;font-weight:500;box-shadow:0 2px 8px #383d240a}.nav-button.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:4px;background:var(--lime)}.nav-icon{width:17px;height:18px;display:grid;place-items:center;font-size:16px;color:#74776f}.nav-count{margin-left:auto;min-width:21px;text-align:center;padding:2px 6px;border-radius:12px;background:#eceee7;font-size:9px;color:#5d6250}.side-bottom{display:grid;gap:6px}.side-help{display:flex;gap:10px;align-items:flex-start;border-radius:17px;background:#edf0e8;padding:13px 11px;margin-bottom:12px}.help-spark{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--lime);font-size:14px}.side-help b{font-size:10px;font-weight:500}.side-help small{display:block;font-size:9px;color:var(--muted);line-height:1.5;margin-top:4px}.profile-button{border:1px solid transparent;border-top-color:var(--line);border-radius:0;background:none;display:flex;gap:9px;align-items:center;text-align:left;padding:14px 5px 2px;margin-top:6px}.profile-avatar,.top-avatar{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e1e4d9;font-family:Georgia,serif;font-style:italic;font-size:17px}.profile-button>span:nth-child(2){display:grid;gap:2px}.main-area{min-width:0;max-width:1800px;width:100%;margin:0 auto;display:flex;flex-direction:column}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.2vw,50px);border-bottom:1px solid #e3e4df;gap:15px}.crumbs{display:flex;align-items:center;gap:10px;color:#92958e;font-size:10px}.crumbs b{color:#4d514a;font-weight:450}.crumb-slash{color:#c0c2bb}.topbar-tools{display:flex;align-items:center;gap:11px}.global-search{width:min(280px,28vw);height:35px;border:1px solid #e5e6e1;border-radius:11px;display:flex;align-items:center;gap:7px;padding:0 9px;background:#fafaf8;color:#777a72}.global-search>span{font-size:18px}.global-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:10px}.global-search kbd{padding:2px 5px;background:#f0f1ed;border:1px solid #e7e8e2;border-radius:5px;font-size:8px;white-space:nowrap}.notification{position:relative;color:#71756c}.notification i{position:absolute;top:7px;right:7px;width:5px;height:5px;background:var(--lime);border-radius:50%}.top-avatar{border:0;cursor:pointer}.main-content{padding:clamp(20px,3vw,42px) clamp(20px,3.2vw,50px) 35px;flex:1;min-width:0}.app-footer{border-top:1px solid #e3e4df;padding:14px clamp(20px,3.2vw,50px);display:flex;gap:17px;align-items:center;color:#90938b;font-size:9px}.app-footer>span:first-child{font-weight:600;color:#5d6250;letter-spacing:-.5px}.footer-dot{color:#91a35c}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading-copy{display:grid;gap:8px}.page-heading p{font-size:11px;color:var(--muted)}.heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.currency-note{border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 11px;font-size:9px;color:#777a73}.currency-note b{font-weight:500;color:#3f433c}.entity-chip{border-radius:20px;background:#f9faf5;padding:5px 9px;font-size:9px;color:#787c72}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.stat-card{min-height:100px;background:#fafaf8;border:1px solid #e5e6e1;border-radius:17px;padding:14px 16px;position:relative;overflow:hidden}.stat-card label{font-size:9px;color:var(--muted)}.stat-card strong{display:block;font-size:21px;font-weight:450;letter-spacing:-.7px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-card small{font-size:9px;color:#969890}.stat-card.highlight{background:#e8eddd;border-color:#e8eddd}.stat-card.highlight:after{content:"";position:absolute;right:-31px;bottom:-48px;width:100px;height:100px;border:1px solid #c3ccae;border-radius:50%;box-shadow:0 0 0 12px #dce3cf,0 0 0 24px #e1e7d6}.invoice-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.82fr);gap:14px;align-items:start}.panel{min-width:0;background:#fbfbf9;border:1px solid #e5e6e1;border-radius:20px;box-shadow:0 3px 14px #343a2405}.list-panel{padding:17px 17px 13px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel-head h2{font-size:19px}.panel-head p{font-size:10px;color:var(--muted);margin-top:5px}.period-picker{height:33px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 9px;font-size:10px}.list-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 11px;flex-wrap:wrap}.filter-tabs{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.filter-tab{height:29px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:#777a73;font-size:9px}.filter-tab.active{background:#ecefe5;color:#383e2f;font-weight:500}.list-search{height:31px;display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid var(--line);border-radius:9px;background:#fff}.list-search input{width:140px;border:0;outline:0;font-size:9px;background:transparent}.table-wrap{overflow-x:auto}.invoice-table{width:100%;border-collapse:collapse;min-width:600px}.invoice-table th{height:34px;padding:0 9px;text-align:left;color:#969991;font-size:8px;font-weight:450;letter-spacing:.35px;border-bottom:1px solid var(--line);white-space:nowrap}.invoice-table th:first-child,.invoice-table td:first-child{width:34px;padding-left:2px}.invoice-table td{height:58px;padding:8px 9px;border-bottom:1px solid #eeefea;font-size:10px;vertical-align:middle}.invoice-table tr:last-child td{border-bottom:0}.invoice-table tbody tr{transition:background .12s;cursor:pointer}.invoice-table tbody tr:hover,.invoice-table tbody tr.selected{background:#f1f3eb}.invoice-table td.amount-cell{text-align:right;white-space:nowrap;font-size:11px;font-weight:500}.invoice-table td.amount-cell small{display:block;color:#999b94;font-size:8px;font-weight:400;margin-top:3px}.select-box{appearance:none;width:14px;height:14px;border:1px solid #cfd1c9;border-radius:4px;background:#fff;vertical-align:middle;cursor:pointer}.select-box:checked{background:var(--lime);border-color:#b9d42c;box-shadow:inset 0 0 0 3px var(--lime)}.invoice-ref{font-size:9px;color:#7c8077;white-space:nowrap}.client-name{display:block;font-weight:500;font-size:10px;color:#343731;max-width:175px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-description{display:block;max-width:180px;font-size:8px;color:#999b94;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:15px;padding:5px 8px;font-size:8px;white-space:nowrap;background:#edeee9;color:#656960}.status-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:#9b9e95}.status-draft{background:#ecece9;color:#757870}.status-draft:before{background:#aeb0aa}.status-issued{background:#e9ede5;color:#54614d}.status-issued:before{background:#a7b898}.status-overdue{background:#f1e3de;color:#895d50}.status-overdue:before{background:#d48e79}.status-paid{background:#e1ebde;color:#516449}.status-paid:before{background:#8ba879}.status-partially_paid{background:#f2eadb;color:#8a7146}.status-partially_paid:before{background:#c6a650}.status-credited{background:#e8e6ed;color:#6f657f}.status-credited:before{background:#8b7fa2}.row-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:11px;font-size:9px;color:#878a82}.bulk-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;margin:10px 0 0;background:#eff1e9;border-radius:12px;font-size:9px}.bulk-bar strong{font-weight:500;margin-right:auto}.detail-panel{padding:0;position:sticky;top:15px;overflow:hidden}.detail-top{padding:18px 18px 15px;border-bottom:1px solid var(--line)}.detail-label{font-size:8px;letter-spacing:1.2px;text-transform:uppercase;color:#8d9089}.detail-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-top:11px}.detail-title-row h2{font-size:20px;line-height:1.15;overflow-wrap:anywhere}.detail-client{font-size:10px;color:#777a72;margin-top:6px}.detail-actions{display:flex;gap:6px;margin-top:14px;flex-wrap:wrap}.detail-summary{padding:15px 18px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail-metric{padding:10px;border-radius:12px;background:#f2f3ef;min-width:0}.detail-metric span{font-size:8px;color:#888b82;display:block}.detail-metric strong{display:block;margin-top:5px;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-metric small{display:block;margin-top:2px;font-size:8px;color:#999b94}.detail-tabs{display:flex;gap:2px;padding:0 15px;border-bottom:1px solid var(--line);overflow:auto}.detail-tab{height:37px;border:0;border-bottom:2px solid transparent;background:none;color:#858880;font-size:9px;white-space:nowrap;padding:0 8px}.detail-tab.active{color:#363a33;border-bottom-color:#b7d232}.detail-body{padding:15px 18px 20px;min-height:190px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px}.detail-field span{display:block;font-size:8px;color:#92958d}.detail-field strong{display:block;font-size:10px;font-weight:450;margin-top:4px;overflow-wrap:anywhere}.detail-section-title{font-size:10px;font-weight:550;margin:4px 0 11px}.timeline{display:grid;gap:0}.timeline-event{display:grid;grid-template-columns:14px 1fr;gap:9px;padding:0 0 15px;position:relative}.timeline-event:not(:last-child):before{content:"";position:absolute;left:5px;top:13px;bottom:0;width:1px;background:#e0e2da}.timeline-dot{width:11px;height:11px;border:3px solid #d9dfce;background:var(--lime);border-radius:50%;z-index:1}.timeline-event small{display:block;color:#969991;font-size:8px}.timeline-event b{display:block;font-size:9px;font-weight:500;margin-top:3px}.timeline-event p{font-size:8px;color:#777a72;margin-top:2px}.empty-state{padding:40px 22px;text-align:center}.empty-state h2{font-size:24px}.empty-state p{font-size:11px;color:var(--muted);max-width:380px;margin:8px auto 17px}.empty-state .empty-mark{width:54px;height:54px;margin:0 auto 17px;border-radius:17px;background:var(--sage);display:grid;place-items:center;font-size:24px}.empty-row{text-align:center;padding:35px 10px;color:#888b82;font-size:10px}.main-content .notice{padding:11px 13px;border-radius:12px;background:#f1f2ee;color:#71756d;font-size:9px;line-height:1.5}.currency-summary{display:flex;gap:7px;flex-wrap:wrap}.currency-summary span{padding:5px 8px;background:#f0f1ed;border-radius:9px;font-size:8px;color:#686c63}.route-badge{display:inline-flex;align-items:center;gap:6px;font-size:9px;color:#69705e}.route-badge i{width:6px;height:6px;border-radius:50%;background:#afc363}.form-message.error{color:#994c3e}.modal{width:min(920px,calc(100vw - 30px));max-height:min(90vh,900px);padding:0;border:1px solid #e0e1db;border-radius:23px;background:var(--surface);box-shadow:0 25px 90px #1e211a35}.modal::backdrop{background:#292c276e;backdrop-filter:blur(3px)}.modal-head{position:sticky;top:0;height:55px;padding:0 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#f7f8f4;z-index:2}.modal-head .brand{font-size:24px}.modal-content{padding:21px;overflow:auto}.wizard-layout{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(280px,1.05fr);gap:18px;align-items:start}.wizard-copy{display:grid;gap:13px}.wizard-title{font-size:24px;letter-spacing:-.8px}.wizard-subtitle{font-size:10px;color:var(--muted);margin-top:-6px}.stepper{display:flex;align-items:center;gap:8px;margin-bottom:4px}.step{display:flex;align-items:center;gap:6px;color:#92958d;font-size:8px}.step i{font-style:normal;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#e6e8e1}.step.active{color:#33372f}.step.active i{background:var(--lime);color:#303522}.step-line{height:1px;flex:1;background:#dedfd9}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid .wide{grid-column:1/-1}.field label{font-size:9px}.field input,.field select,.field textarea{height:38px;border-radius:10px;font-size:10px}.field textarea{height:auto;min-height:62px;padding:10px;resize:vertical}.field small{font-size:8px;color:#969990;line-height:1.4}.line-editor{display:grid;gap:8px}.line-editor-row{display:grid;grid-template-columns:minmax(100px,1fr) 56px 112px 30px;gap:6px;align-items:center}.line-editor-row input,.line-editor-row select{height:35px;min-width:0;padding:0 8px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:9px}.line-editor-row .line-name{background:#f5f6f2}.line-editor-row .line-total{font-size:8px;color:#73766f;text-align:right}.remove-line{border:0;background:none;color:#989b93;font-size:15px}.add-line{justify-self:start;border:0;background:none;padding:4px 0;color:#65714e;font-size:9px}.wizard-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}.wizard-footer .button{min-height:37px}.live-preview{border:1px solid var(--line);border-radius:17px;background:#e4e6e0;overflow:hidden;min-height:560px;position:sticky;top:76px}.preview-head{height:42px;background:#f9f9f7;border-bottom:1px solid #e4e5df;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:8px;color:#777a73}.preview-head b{font-size:9px;font-weight:500;color:#42463e}.preview-frame{width:100%;height:520px;border:0;background:#eceeeb}.preview-loading{display:grid;place-items:center;height:520px;font-size:10px;color:#777a72}.route-groups{display:grid;gap:9px}.route-group{padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}.route-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.route-group h3{font-size:11px}.route-group p{font-size:8px;color:#888b82;margin-top:4px}.route-lines{margin-top:10px;padding-top:8px;border-top:1px solid #eff0eb;display:grid;gap:5px}.route-line{display:flex;justify-content:space-between;gap:8px;font-size:9px}.route-questions{padding:11px;border-radius:12px;background:#f2eadb;font-size:9px;color:#6c604b}.route-questions ul{margin:7px 0 0;padding-left:16px}.route-questions li{margin:4px 0}.route-confirm{display:flex;gap:8px;align-items:flex-start;font-size:9px;color:#666a61}.route-confirm input{margin:2px 0 0;accent-color:#adc525}.route-result{display:grid;gap:10px}.route-result h3{font-size:12px}.route-result .route-badge{padding:6px 8px;border-radius:10px;background:#edf0e8}.pdf-overlay{position:absolute;inset:42px 0 0;background:#e4e6e0;display:grid;place-items:center;color:#777a72;font-size:10px}.detail-action-row{display:flex;flex-wrap:wrap;gap:6px}.payment-rows{display:grid;gap:7px}.payment-row{padding:10px;border-radius:11px;background:#f0f1ed;display:flex;justify-content:space-between;gap:9px;font-size:9px}.payment-row small{display:block;color:#858880;font-size:8px;margin-top:3px}.tax-alert{padding:11px;border-radius:12px;background:#f1e9d8;font-size:9px;color:#655b47;line-height:1.55}.tax-evidence{display:grid;gap:8px}.tax-evidence label{display:flex;gap:7px;align-items:flex-start;font-size:9px}.tax-evidence input{accent-color:#9db82b;margin:2px 0 0}.activity-date{font-size:9px;color:#858880}.raw-json{font:10px/1.45 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#666a61}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);padding:11px 16px;border-radius:13px;background:#252824;color:#fff;font-size:10px;box-shadow:var(--shadow);z-index:10;max-width:min(90vw,520px)}.loading-shell{min-height:45vh;display:grid;place-items:center;color:#777a72;font-size:11px}.spinner{width:23px;height:23px;border:2px solid #dfe1d8;border-top-color:#a9bd39;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 10px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1150px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.invoice-workspace{grid-template-columns:minmax(0,1.25fr) minmax(290px,.8fr)}.main-content{padding-left:24px;padding-right:24px}.sidebar{padding-left:12px;padding-right:12px}.stat-card strong{font-size:18px}}
@media(max-width:900px){.invoice-workspace{grid-template-columns:1fr}.detail-panel{position:static}.detail-panel:not(.has-selection){display:none}.auth-screen{grid-template-columns:1fr;padding:22px}.auth-side{display:none}.auth-card{padding:24px;max-width:430px}.auth-card .brand{margin-bottom:50px}}
@media(max-width:650px){.app-shell{grid-template-columns:1fr;padding-bottom:57px}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:58px;padding:5px 8px;background:#fafaf8;border-top:1px solid var(--line);border-right:0}.side-top>.brand,.entity-switch,.nav-label,.side-help,.side-bottom>.nav-button,.profile-button{display:none}.side-top,.side-bottom{display:contents}.main-nav{display:flex;justify-content:space-around;gap:2px}.main-nav:nth-of-type(2){display:none}.nav-button{width:auto;min-height:47px;flex:1;display:flex;flex-direction:column;gap:1px;justify-content:center;padding:3px 2px;font-size:7px;border-radius:10px}.nav-button.active:before{top:0;bottom:auto;left:calc(50% - 10px);width:20px;height:2px}.nav-icon{height:18px;font-size:15px}.nav-count{position:absolute;top:2px;right:calc(50% - 22px);margin:0;min-width:15px;padding:1px 4px;font-size:7px}.topbar{height:56px;padding:0 15px}.crumbs{font-size:9px}.topbar-tools{gap:7px}.global-search{width:36px;height:34px;padding:0;justify-content:center;border:0;background:transparent}.global-search input,.global-search kbd{display:none}.global-search>span{font-size:21px}.notification{display:none}.main-content{padding:21px 13px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:17px}.page-heading h1{font-size:31px}.heading-actions{width:100%}.heading-actions .button{flex:1}.stat-grid{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.stat-card{min-height:83px;padding:11px;border-radius:13px}.stat-card strong{font-size:15px;margin-top:6px}.stat-card label{font-size:8px}.invoice-workspace{gap:10px}.list-panel{padding:13px 10px 10px;border-radius:15px}.panel-head h2{font-size:16px}.panel-head p{font-size:9px}.list-controls{margin:14px 0 8px;align-items:flex-start}.filter-tabs{overflow:auto;max-width:100%;flex-wrap:nowrap}.filter-tab{padding:0 8px;white-space:nowrap}.list-search{width:100%}.list-search input{width:100%}.table-wrap{margin:0 -2px}.invoice-table{min-width:570px}.detail-panel{border-radius:15px}.app-footer{padding:11px 14px;font-size:8px;justify-content:space-between;gap:7px}.app-footer>span:last-child{display:none}.modal{width:calc(100vw - 14px);max-height:calc(100vh - 18px);border-radius:17px}.modal-content{padding:13px}.wizard-layout{grid-template-columns:1fr}.live-preview{position:static;min-height:390px}.preview-frame,.preview-loading{height:350px}.wizard-title{font-size:21px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.line-editor-row{grid-template-columns:minmax(85px,1fr) 45px 95px 26px}.step{font-size:7px}.step-line{min-width:5px}.page-heading .heading-actions .button-small{flex:0 0 auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
.copy-area{display:block;width:100%;min-height:240px;margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:11px;line-height:1.6;resize:vertical}.preview-disclaimer{display:block;padding:8px 10px;background:#f8f8f5;color:var(--muted);font-size:8px}.full-preview{height:min(66vh,700px);margin-top:13px;border:1px solid var(--line);border-radius:12px}.entity-options{display:grid;gap:8px;margin-top:17px}.entity-option{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left}.entity-option.active{border-color:#c8d88a;background:#f4f7e9}.entity-option b{font-size:11px;font-weight:500}.entity-option small{font-size:9px;color:var(--muted)}
.product-prices{display:grid;gap:7px}.product-price-row{display:grid;grid-template-columns:1fr 1fr 28px;gap:7px}.product-price-row select,.product-price-row input{height:38px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:10px}
.brand{align-items:baseline;gap:0}.brand span{font-size:inherit;letter-spacing:inherit;margin:0;line-height:inherit}.auth-graphic{width:320px;height:320px;top:5%}
.line-detail-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 7px;font-size:10px}.line-detail-title b{font-weight:550}.line-detail-title span{font-size:8px;color:var(--muted)}.invoice-line-detail{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #eeefea;font-size:9px}.invoice-line-detail>div{min-width:0}.invoice-line-detail b{display:block;font-weight:500;overflow-wrap:anywhere}.invoice-line-detail small{display:block;margin-top:3px;color:#8a8d85;font-size:8px}.invoice-line-detail>strong{font-weight:500;white-space:nowrap}.detail-totals{display:grid;gap:8px;margin-top:12px;padding:12px;border-radius:12px;background:#f2f3ef}.detail-totals>div{display:flex;justify-content:space-between;gap:12px;font-size:9px}.detail-totals span{color:#777a72}.detail-totals b{font-weight:500;text-align:right}.detail-totals .total-line{padding-top:8px;border-top:1px solid #dfe1d9;font-size:11px}.mobile-cell-label{display:none}
@media(max-width:650px){.table-wrap{overflow:visible;margin:0}.invoice-table{display:block;width:100%;min-width:0;border-collapse:separate}.invoice-table thead{display:none}.invoice-table tbody{display:grid;gap:8px}.invoice-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"check ref status" "client client client" "due due amount";align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:13px;background:#fff}.invoice-table tbody tr:hover,.invoice-table tbody tr.selected{background:#f1f3eb}.invoice-table tbody td{display:block;width:auto;height:auto;padding:5px 4px;border:0;font-size:9px}.invoice-table tbody td:nth-child(1){grid-area:check;width:auto;padding-left:4px}.invoice-table tbody td:nth-child(2){grid-area:ref}.invoice-table tbody td:nth-child(3){grid-area:client;padding:7px 4px}.invoice-table tbody td:nth-child(4){grid-area:status;justify-self:end}.invoice-table tbody td:nth-child(5){grid-area:due;display:flex;align-items:center;gap:7px}.invoice-table tbody td:nth-child(6){grid-area:amount;text-align:right;font-size:10px}.invoice-table .client-name,.invoice-table .invoice-description{max-width:100%}.invoice-table td.amount-cell small{font-size:8px}.mobile-cell-label{display:inline-block!important;color:#989b93;font-size:8px!important;font-weight:400!important}.invoice-table td.amount-cell>.mobile-cell-label{display:block!important}.empty-row{grid-column:1/-1}.auth-graphic{width:280px;height:280px;top:1%}}

/* Module B and the optional directory preserve the approved workspace system. */
.brand-wordmark{display:block;width:100px;height:auto;max-height:42px;object-fit:contain}.modal-head .brand-wordmark{width:76px}.entity-mark img,.profile-avatar img,.top-avatar img{width:22px;height:22px;object-fit:contain}.app-footer .brand-wordmark{width:45px}.module-tabs{margin:20px 0 12px}.purchase-line{display:grid;grid-template-columns:minmax(160px,1fr) 90px 120px 34px;gap:8px;margin:10px 0}.purchase-line input,.purchase-line select{min-width:0;border:1px solid var(--line);padding:10px;border-radius:9px;background:#fff}.landed-target{display:grid;grid-template-columns:18px 1fr 100px;align-items:center;gap:10px;margin:10px 0}fieldset{border:1px solid var(--line);border-radius:12px;padding:14px}fieldset[hidden]{display:none}.directory-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:24px}.directory-filters label{display:grid;gap:6px;color:var(--muted)}.directory-filters input{min-width:0;width:100%;border:1px solid var(--line);padding:12px;border-radius:10px;background:#fff}.directory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:20px 0}.company-card{border:1px solid var(--line);border-radius:18px;padding:22px;background:#fff}.company-card h2{font-size:19px;margin:12px 0}.company-card p{line-height:1.6}.company-card .detail-action-row{margin:20px 0}.profile-facts{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:12px;margin:25px 0;overflow-wrap:anywhere}.profile-facts dt{color:var(--muted)}.profile-facts dd{margin:0}.public-directory{max-width:900px;margin:50px auto;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:24px}.public-directory h1{font-size:36px;letter-spacing:-1px;margin-top:36px}.public-directory h2{margin-top:26px}.public-directory p{line-height:1.7}.form-grid>.field{display:grid;gap:7px}.form-grid .field input,.form-grid .field select{min-width:0;width:100%;padding:9px}button:disabled{cursor:not-allowed}.module-tabs{overflow-x:auto}
@media(max-width:900px){.directory-filters{grid-template-columns:1fr 1fr}.directory-filters>label:first-child{grid-column:1/-1}.purchase-line{grid-template-columns:minmax(90px,1fr) 65px 90px 26px}}
@media(max-width:650px){.main-nav:first-of-type .nav-button:not([data-nav=invoices]):not([data-nav=procurement]):not([data-nav=directory]){display:none}.directory-filters{grid-template-columns:1fr}.directory-filters>label:first-child{grid-column:auto}.directory-grid{grid-template-columns:1fr}.profile-facts{grid-template-columns:1fr;gap:6px}.profile-facts dd{margin-bottom:12px}.public-directory{margin:10px;padding:20px}.public-directory h1{font-size:27px}.purchase-line{grid-template-columns:1fr 70px 90px}.purchase-line>.icon-button{grid-column:3}.landed-target{grid-template-columns:18px 1fr}.landed-target>input:last-child{grid-column:2}.form-grid input,.form-grid select,.form-grid textarea,.directory-filters input{font-size:16px}}
@media(max-width:650px){.procurement-table.invoice-table tbody tr{display:block}.procurement-table.invoice-table tbody td:nth-child(n){display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;justify-self:stretch;grid-area:auto;text-align:right;padding:7px 4px;overflow-wrap:anywhere}.procurement-table.invoice-table tbody td:before{content:attr(data-label);text-align:left;color:var(--muted);flex:0 0 34%}.procurement-table.invoice-table tbody td[colspan]{display:block;text-align:left}.procurement-table.invoice-table tbody td[colspan]:before{display:none}.procurement-table .empty-row{padding:12px}}

.directory-grid>.empty-state{grid-column:1/-1}

/* Purchasing and stock surfaces: readable quantities, aligned money and a live record panel. */
.procurement-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.procurement-summary .stat-card{min-height:112px;display:flex;flex-direction:column;justify-content:center}
.procurement-summary .stat-card small{display:block;margin-top:5px;max-width:35ch;line-height:1.5}
.procurement-workspace{padding:20px}
.procurement-panel-head{align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
.procurement-panel-head .eyebrow{margin-bottom:5px}
.procurement-quick-actions{justify-content:flex-end}
.procurement-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.36fr);gap:16px;align-items:start}
.procurement-table-panel{min-width:0}
.procurement-table-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;padding:16px 2px 10px}
.procurement-table-heading h3{font-size:15px;font-weight:500}
.procurement-table-heading p,.procurement-table-period{font-size:9px;color:var(--muted);margin-top:4px}
.procurement-table-period{white-space:nowrap}
.procurement-detail{position:sticky;top:15px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#f8f9f6;box-shadow:0 8px 24px #343a2408}
.procurement-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.procurement-detail-head h2{font-size:18px;line-height:1.25;overflow-wrap:anywhere;margin-top:6px}
.procurement-supplier-name{font-size:11px;color:#666a61;margin-top:9px}
.procurement-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:17px 0}
.procurement-fact{min-width:0;padding:10px;border-radius:11px;background:#eef0ea}
.procurement-fact>span{display:block;font-size:8px;color:#858980}
.procurement-fact>strong{display:block;margin-top:5px;font-size:10px;font-weight:500;overflow-wrap:anywhere}
.procurement-detail h3{font-size:11px;font-weight:550;margin:17px 0 8px}
.procurement-detail-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.procurement-detail-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:9px}
.procurement-detail-list li>span{min-width:0;overflow-wrap:anywhere}
.procurement-detail-list li strong{font-size:9px;font-weight:500;white-space:nowrap}
.procurement-detail-list small{display:block;margin-top:4px;color:var(--muted);font-size:8px}
.procurement-detail .detail-action-row{margin-top:13px}
.procurement-detail .small-note{margin-top:12px}
.procurement-movement{padding:11px;border-radius:12px;background:#eef0ea}
.procurement-movement>span{display:flex;justify-content:space-between;align-items:center;gap:8px}
.procurement-movement>span small{font-size:8px;color:var(--muted)}
.procurement-movement>strong{display:block;margin-top:10px;font-size:14px;font-weight:500}
.procurement-movement>p{font-size:9px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.procurement-sku,.supplier-record{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eceee7;color:#646a59;font-size:8px;white-space:nowrap}
.procurement-table .procurement-reference{font-size:10px;font-weight:500;white-space:nowrap}
.procurement-table th:first-child,.procurement-table td:first-child{width:auto;padding-inline-start:10px}
.stock-table{min-width:870px;table-layout:fixed}
.stock-table th:first-child,.stock-table td:first-child{width:29%;min-width:260px}
.stock-table th:nth-child(2),.stock-table td:nth-child(2){width:18%}
.stock-table th:nth-child(3),.stock-table td:nth-child(3){width:13%}
.stock-table th:nth-child(4),.stock-table td:nth-child(4),.stock-table th:nth-child(5),.stock-table td:nth-child(5){width:16%;text-align:right}
.stock-table th:last-child,.stock-table td:last-child{width:92px;text-align:right}
.stock-item{min-width:0;display:grid;gap:4px}
.stock-item strong{font-weight:500;line-height:1.35;overflow-wrap:normal;word-break:normal}
.stock-item span{font-size:8px;color:var(--muted);letter-spacing:.04em}
.stock-table td .amount-cell,.bills-table td:nth-child(4){display:block;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bills-table th:nth-child(4),.bills-table td:nth-child(4){text-align:right}
.bills-table td:nth-child(4){font-weight:500}
.orders-table td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap}
.status-partially-received{background:#f2eadb;color:#806d48}
.status-partially-received:before{background:#c6a650}
.procurement-tax-note{margin:12px 3px 0;max-width:950px}
@media(max-width:1150px){.procurement-content{grid-template-columns:minmax(0,1fr) minmax(260px,.42fr)}.procurement-quick-actions{max-width:390px}}
@media(max-width:900px){.procurement-content{grid-template-columns:1fr}.procurement-detail{position:static}.procurement-quick-actions{justify-content:flex-start;max-width:none}}
@media(max-width:650px){.procurement-workspace{padding:13px 10px}.procurement-panel-head{display:grid}.procurement-panel-head .detail-action-row{justify-content:flex-start}.procurement-quick-actions .button{flex:0 0 auto}.procurement-summary{grid-template-columns:1fr 1fr}.procurement-summary .stat-card:last-child{grid-column:1/-1}.procurement-table-heading{align-items:flex-start;flex-direction:column;gap:2px}.procurement-table-period{margin-top:0}.procurement-table .procurement-reference{white-space:normal;overflow-wrap:anywhere}.stock-table{min-width:0;table-layout:auto}.stock-table th:first-child,.stock-table td:first-child{width:auto;min-width:0}.stock-table td:nth-child(2),.stock-table td:nth-child(3),.stock-table td:nth-child(4),.stock-table td:nth-child(5),.stock-table td:last-child{width:auto;text-align:right}.stock-item strong{max-width:100%;font-size:9px}.procurement-detail{padding:14px}.procurement-facts{gap:6px}.procurement-fact{padding:8px}.procurement-detail-list li{gap:6px}}

.accounting-home{display:grid;gap:20px}.accounting-page-heading{align-items:flex-end}.accounting-date{display:grid;justify-items:end;gap:5px;color:var(--muted);font-size:9px}.accounting-date strong{font-size:13px;color:var(--ink);font-weight:550}.accounting-tabs{display:flex;gap:5px;overflow:auto;padding:3px 1px 8px;border-bottom:1px solid var(--line);scrollbar-width:thin}.accounting-tab{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:9px;color:#73776e;text-decoration:none;font-size:9px;white-space:nowrap;transition:background .15s,color .15s}.accounting-tab:hover,.accounting-tab.active{background:#e8ebe0;color:#343a2b}.accounting-tab.active{font-weight:550}.accounting-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.accounting-metric{min-width:0;min-height:190px;padding:18px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:0 7px 22px #22241d08;display:flex;flex-direction:column;align-items:flex-start}.accounting-metric-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px}.accounting-icon{width:30px;height:30px;border-radius:10px;background:#eff1e8;display:grid;place-items:center;color:#65704b;font-size:15px}.accounting-count{font-size:8px;color:#85897f}.accounting-metric-label{margin:15px 0 7px;color:#777b72;font-size:10px}.accounting-metric-amount{font-size:25px;font-weight:500;letter-spacing:-.7px;color:var(--ink)}.accounting-currency-list{display:grid;gap:7px;width:100%;min-height:31px}.accounting-currency-value{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.accounting-currency-value b{font-size:18px;font-weight:500;color:var(--ink)}.accounting-currency-value small{font-size:8px;color:var(--muted)}.accounting-empty-value{font-size:11px;color:#85897f}.accounting-metric-note{margin:10px 0 13px;color:#85897f;font-size:9px;line-height:1.5}.accounting-source-link{display:inline-flex;align-items:center;gap:7px;margin-top:auto;color:#525c3b;text-decoration:none;font-size:9px;font-weight:550}.accounting-source-link:hover{text-decoration:underline;text-underline-offset:3px}.accounting-margin-card{background:#f6f4ee}.accounting-unavailable{font-size:18px;font-weight:500;letter-spacing:-.3px}.accounting-margin-card .accounting-metric-note{max-width:460px}.accounting-ledger-card{background:#292d26;color:#f7f8f4;border-color:#292d26}.accounting-ledger-card .accounting-icon{background:#41473a;color:#d1e365}.accounting-ledger-card .accounting-count,.accounting-ledger-card .accounting-metric-label,.accounting-ledger-card .accounting-metric-note{color:#c4c8bc}.accounting-ledger-title{font-size:20px;font-weight:500;letter-spacing:-.45px}.accounting-ledger-card .accounting-source-link{color:#d4e773}.accounting-bottom-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:12px}.accounting-period-panel,.accounting-source-panel{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.accounting-period-panel h2,.accounting-source-panel h2{font-size:17px;letter-spacing:-.3px;margin:7px 0}.accounting-period-panel p,.accounting-source-panel p{max-width:470px;color:var(--muted);font-size:9px;line-height:1.6}.accounting-source-panel{display:block}.accounting-source-panel .accounting-source-link{margin-top:15px}.accounting-report-filter{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:14px}.accounting-report-form{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(130px,.8fr) minmax(130px,.8fr) auto;align-items:end;gap:9px;flex:1}.accounting-report-form .field{display:grid;gap:5px;font-size:9px}.accounting-report-form select,.accounting-report-form input{height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 10px;color:var(--ink);font:inherit}.accounting-export-actions{display:flex;gap:7px}.accounting-report-totals{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.accounting-report-totals>div{min-width:150px;display:grid;gap:5px;padding:12px 14px;border-radius:12px;background:#eef0e8}.accounting-report-totals span{font-size:8px;color:#777b72}.accounting-report-totals b{font-size:14px;font-weight:550}.accounting-report-panel{padding:16px}.accounting-report-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:13px}.accounting-report-head h2{font-size:16px}.accounting-report-head p{margin-top:5px;color:var(--muted);font-size:8px}.accounting-report-table{min-width:680px}.accounting-report-account{display:block;margin-top:3px;font-size:9px;font-weight:500}.accounting-error{display:flex;align-items:center;justify-content:space-between;gap:10px}.accounting-statements .accounting-tabs{margin-top:-3px}
@media(max-width:1050px){.accounting-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-report-filter{display:grid}.accounting-report-form{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-export-actions{justify-content:flex-end}}
@media(max-width:650px){.accounting-home{gap:14px}.accounting-page-heading{align-items:flex-start}.accounting-date{grid-template-columns:auto auto;justify-items:start;align-items:center}.accounting-date .status-pill{grid-column:1/-1}.accounting-tabs{margin-inline:-4px;gap:2px}.accounting-tab{padding:0 9px}.accounting-metric-grid{grid-template-columns:1fr 1fr;gap:8px}.accounting-metric{min-height:167px;padding:12px;border-radius:14px}.accounting-metric-wide,.accounting-ledger-card{grid-column:1/-1}.accounting-metric-label{margin-top:10px;font-size:9px}.accounting-metric-amount{font-size:18px}.accounting-currency-value b{font-size:13px}.accounting-metric-note{font-size:8px;line-height:1.45}.accounting-source-link{font-size:8px}.accounting-margin-card{min-height:0}.accounting-bottom-grid{grid-template-columns:1fr}.accounting-period-panel,.accounting-source-panel{align-items:flex-start;flex-direction:column;padding:15px}.accounting-period-panel .button{width:100%;justify-content:center}.accounting-report-form{grid-template-columns:1fr 1fr}.accounting-report-form .field:first-child{grid-column:1/-1}.accounting-report-form .button{grid-column:1/-1}.accounting-export-actions{display:grid;grid-template-columns:1fr 1fr}.accounting-export-actions .button{justify-content:center}.accounting-report-head{display:grid}.accounting-report-head .status-pill{justify-self:start}.accounting-report-totals>div{min-width:calc(50% - 4px);flex:1}.accounting-statements .table-wrap{margin-inline:-7px}}
@media(max-width:650px){.main-nav:first-of-type .nav-button[data-nav=accounting]{display:flex}}
.accounting-source-rows{display:grid;width:100%;gap:3px;margin:2px 0 0}.accounting-source-rows>a{display:flex;justify-content:space-between;gap:8px;padding:5px 6px;border-radius:7px;color:#62675c;text-decoration:none;font-size:8px}.accounting-source-rows>a:hover{background:#f0f2eb}.accounting-source-rows>a b{white-space:nowrap;font-weight:550}.accounting-source-more{padding:2px 6px;color:#85897f;font-size:8px}

/* Mobile primary navigation and accessible More sheet */
.mobile-bottom-bar,.mobile-more-sheet,.more-backdrop{display:none}
@media(max-width:650px){
  .app-shell{padding-bottom:72px}
  .sidebar{display:none}
  .mobile-bottom-bar{position:fixed;z-index:60;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px max(10px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));background:var(--glass);border-top:1px solid var(--glass-edge);box-shadow:var(--glass-shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .mobile-nav-button{position:relative;min-height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:15px;background:transparent;color:var(--grey);font-size:9px;transition:background .2s,color .2s,transform .16s}
  .mobile-nav-button>span{font-size:20px;line-height:1}
  .mobile-nav-button:hover,.mobile-nav-button.active{background:var(--white);color:var(--ink)}
  .mobile-nav-button.active{font-weight:600}
  .mobile-nav-button.active:before{content:"";position:absolute;top:3px;width:18px;height:2px;border-radius:2px;background:var(--olive)}
  .mobile-nav-button:active{transform:scale(.96)}
  .mobile-more-sheet{position:fixed;z-index:82;inset:auto 8px calc(70px + env(safe-area-inset-bottom));display:block;max-height:min(72vh,620px);overflow:auto;padding:18px;border:1px solid var(--glass-edge);border-radius:26px;background:var(--glass);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);animation:more-sheet-in .22s cubic-bezier(.22,.8,.24,1) both}
  .mobile-more-sheet[hidden],.more-backdrop[hidden],.mobile-bottom-bar[hidden]{display:none!important}
  .mobile-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
  .mobile-more-head h2{margin-top:3px;font-size:22px}
  .mobile-more-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .mobile-more-links .nav-button{min-height:48px;display:flex;justify-content:flex-start;gap:9px;padding:0 12px;border:1px solid var(--glass-edge);border-radius:15px;background:var(--glass);color:var(--ink);font-size:11px;text-align:left}
  .mobile-more-links .nav-icon{height:auto;font-size:15px}
  .mobile-more-links .nav-button.active{background:var(--ink);color:var(--white)}
  .more-backdrop{position:fixed;z-index:80;inset:0;display:block;width:100%;height:100%;border:0;background:rgb(41 44 40 / .25);backdrop-filter:blur(3px)}
  body.more-sheet-open{overflow:hidden}
}
@keyframes more-sheet-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.mobile-more-sheet{animation:none}.mobile-nav-button{transition:none}}

/* Saved workspace records and settings */
.workspace-panel{padding:24px;margin-block-end:20px;min-width:0}.workspace-panel>h2,.workspace-panel>p{margin-block-end:14px}.workspace-panel>.field{max-width:420px;margin-block-end:20px}.workspace-panel .form-grid{margin-block:18px}.workspace-panel .table-wrap{margin-inline:-8px}.workspace-panel .accounting-source-rows{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:600px){.workspace-panel{padding:16px}.workspace-panel .form-grid{grid-template-columns:minmax(0,1fr)}}
.onboarding-panel{max-width:920px;padding:clamp(22px,4vw,42px)}.onboarding-steps{display:grid;gap:0}.onboarding-step{display:grid;grid-template-columns:105px minmax(0,1fr);gap:18px;align-items:start;padding:20px 0;border-bottom:1px solid var(--line)}.onboarding-step:first-child{padding-top:0}.onboarding-step:last-child{border-bottom:0}.onboarding-step h2{margin:0 0 6px}.onboarding-step.is-done h2{color:var(--muted)}.onboarding-actions{margin-top:25px}.onboarding-note{margin-top:18px}@media(max-width:600px){.onboarding-step{grid-template-columns:1fr;gap:10px}.onboarding-actions{align-items:stretch;flex-direction:column}.onboarding-actions .button{width:100%}}
.auth-legal-links,.app-legal-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.auth-legal-links{margin-top:17px}.auth-legal-links a,.app-legal-links a{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.app-legal-links{margin-inline-start:auto}.legal-screen{min-height:100vh;background:var(--canvas);padding:clamp(18px,4vw,50px)}.legal-topbar{max-width:1120px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.legal-topbar .brand{font-size:26px}.legal-main{width:min(880px,100%);margin:30px auto 60px}.legal-review-banner{padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--amber);color:#655b47;font-size:10px;letter-spacing:.6px;font-weight:600}.legal-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:20px 0 23px;padding-bottom:12px;border-bottom:1px solid var(--line)}.legal-tabs a{padding:8px 12px;border-radius:10px;font-size:11px;color:#656960}.legal-tabs a.active{background:var(--sage);color:var(--ink)}.legal-document{padding:clamp(22px,4vw,45px);border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.legal-document>.eyebrow{display:block;margin-bottom:14px}.legal-document h1{font-size:clamp(30px,4vw,43px);margin-bottom:13px}.legal-intro{font-size:13px;color:#6d624d;margin-bottom:18px}.legal-document>p:not(.legal-intro){margin:14px 0;color:#666a61;font-size:12px;line-height:1.7}.legal-document a{text-decoration:underline;text-underline-offset:3px}.legal-document section{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.legal-document h2{font-size:18px;margin-bottom:9px}.legal-document section p,.legal-document li{font-size:12px;line-height:1.75;color:#666a61}.legal-document section p+p{margin-top:10px}.legal-document ul{display:grid;gap:7px;padding-inline-start:20px;margin:8px 0 0}.legal-version{border-top:1px solid var(--line);padding-top:14px;margin-top:28px!important;color:var(--muted)!important;font-size:10px!important}@media(max-width:600px){.legal-screen{padding:14px}.legal-topbar .brand-wordmark{width:78px}.legal-main{margin-top:20px}.legal-document{padding:21px 17px}.legal-tabs a{padding:7px 8px;font-size:10px}.app-legal-links{margin-inline-start:0;width:100%;padding-top:4px}}
