:root{--green:#173d32;--green-mid:#2c594a;--lime:#d9f179;--paper:#f5f6f0;--surface:#fff;--ink:#20362e;--muted:#6b7972;--line:#dfe5dc;--red:#a33632;--radius:16px;--shadow:0 10px 35px #173d3210;--font:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-family:var(--font);color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}a:hover{text-decoration:none}button,input,select,textarea,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #78a832;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2;letter-spacing:-.035em}h1{font-size:32px}h2{font-size:26px}h3{font-size:18px}p{margin-bottom:16px}svg{width:22px;height:22px;flex-shrink:0}.hidden,[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.17em;line-height:1.5;margin:0 0 12px}.skip-link{position:fixed;top:8px;left:8px;z-index:100;background:var(--lime);padding:12px 20px;border-radius:8px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}
.brand{display:flex;align-items:center;gap:13px;font-size:34px;line-height:1;font-weight:800;letter-spacing:-1.9px;text-decoration:none;color:inherit}.brand-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:42px;background:var(--lime);border-radius:11px;color:var(--green);font-size:37px;line-height:1;font-weight:800;letter-spacing:-5px;padding-right:5px;padding-bottom:6px}.brand-mark span{font-size:35px;margin-left:1px}.brand-dot{color:var(--lime)}.brand-large{font-size:44px}.brand-large .brand-mark{width:50px;height:52px;font-size:44px;border-radius:13px}
.auth-view{min-height:100svh;display:grid;grid-template-columns:minmax(380px,46%) 1fr}.auth-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:52px clamp(36px,6vw,90px);color:white;background:var(--green)}.auth-brand:after{content:"";position:absolute;width:500px;height:500px;right:-320px;top:28%;border:1px solid #d9f17925;border-radius:50%;box-shadow:0 0 0 50px #d9f17906,0 0 0 100px #d9f17904;pointer-events:none}.auth-intro{position:relative;z-index:1;margin:70px 0 80px}.auth-intro .eyebrow{color:var(--lime);font-size:11px}.auth-intro h1{font-size:clamp(45px,4.6vw,72px);font-weight:650;letter-spacing:-.055em;line-height:1.06;margin:24px 0}.auth-intro>p:last-child{font-size:16px;line-height:1.8;color:#cfdbd2;margin-bottom:0}.auth-privacy{display:flex;gap:12px;align-items:center;font-size:12px;line-height:1.65}.auth-privacy svg{color:var(--lime);width:26px;height:26px}.auth-privacy p{margin:0}.auth-privacy span{color:#a7c0b4}.auth-form-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:64px 40px;background:var(--paper)}.auth-form-card{width:100%;max-width:365px}.auth-welcome-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#e8eddf;border:1px solid #dce4d0;border-radius:14px;margin-bottom:34px}.auth-welcome-icon svg{width:24px;height:24px}.auth-form-card>.eyebrow{color:var(--muted);margin-bottom:9px}.auth-form-card h2{font-size:34px;margin-bottom:12px}.auth-description{font-size:14px;margin-bottom:30px}.auth-form-card .field{margin-bottom:20px}.login-submit{width:100%;margin-top:5px;justify-content:space-between!important;padding-left:19px!important;padding-right:19px!important}.login-submit span{font-size:20px}.text-button{border:0;background:none;color:var(--green);font-weight:600;min-height:44px;padding:10px 12px}.auth-form-card .text-button{display:block;margin:10px auto 0;font-size:13px}.auth-help{font-size:12px;line-height:1.75;color:var(--muted);padding-top:26px;border-top:1px solid var(--line);margin:25px 0 0}.auth-version{position:absolute;bottom:20px;letter-spacing:.15em;font-size:9px;color:var(--muted);margin:0}
.app-layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100svh}.sidebar{position:sticky;top:0;height:100svh;padding:35px 18px 24px;background:var(--green);color:#fff;display:flex;flex-direction:column}.sidebar-brand{padding-left:14px;margin-bottom:50px;font-size:32px}.sidebar-caption{margin:0 14px 15px;color:#8eafa0;font-size:9px;font-weight:700;letter-spacing:.13em}#nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;min-height:48px;width:100%;border:0;border-radius:10px;background:transparent;color:#c1d3c9;padding:12px 15px;text-align:left;font-weight:550;font-size:14px;transition:background .15s,color .15s}.nav-item svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.nav-item:hover{background:#ffffff0d;color:#fff}.nav-item.active,.nav-item[aria-current="page"]{background:var(--lime);color:var(--green);font-weight:700}.sidebar-bottom{display:flex;align-items:center;gap:8px;font-size:10px;color:#a2baae;margin-top:auto;padding:24px 12px 0;border-top:1px solid #ffffff14}.privacy-dot{width:6px;height:6px;background:var(--lime);border-radius:50%;flex-shrink:0}.main-layout{display:flex;flex-direction:column;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:110px;padding:24px clamp(24px,3.4vw,52px);border-bottom:1px solid var(--line);background:#fbfcf8}.topbar .eyebrow{font-size:9px;color:var(--muted);margin:0 0 6px}.topbar h1{font-size:26px;margin:0;font-weight:650}.topbar-controls{display:flex;align-items:center;gap:9px}.identity{max-width:210px;margin-right:7px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.identity strong{color:var(--ink);display:block;font-size:13px}.identity small{display:block}.topbar .btn{white-space:nowrap}.content{padding:34px clamp(24px,3.4vw,52px) 30px;max-width:1520px;width:100%;margin:0 auto;flex:1}.content:focus{outline:0}.app-footer{display:flex;justify-content:space-between;gap:20px;padding:20px clamp(24px,3.4vw,52px);font-size:10px;color:#89938a}.connection-status,.update-banner{margin:18px clamp(24px,3.4vw,52px) 0;padding:13px 17px;border:1px solid #ded8b5;border-radius:10px;background:#f8f3df;color:#725a25;font-size:13px}.update-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf4df;border-color:#d8e5bf;color:var(--green)}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-head h2{font-size:29px;font-weight:650;margin-bottom:9px}.page-head p{font-size:14px;color:var(--muted);margin-bottom:0}.page-head .eyebrow{color:var(--green-mid);font-size:10px}.page-head>.btn{flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid transparent;border-radius:9px;padding:10px 16px;font-size:13px;font-weight:650;line-height:1.4;text-decoration:none;transition:background .15s,box-shadow .15s;vertical-align:middle}.btn.primary,.btn-primary{background:var(--green);color:white}.btn.primary:hover{background:#245242}.btn.secondary,.btn-secondary{background:#fff;border-color:var(--line);color:var(--green)}.btn.secondary:hover{background:#eef2e8;border-color:#c6d1c1}.btn.danger{background:#fff2f0;border-color:#efcecb;color:var(--red)}.btn.danger:hover{background:#ffe3df}.btn.small{padding:9px 12px;font-size:12px;min-height:44px}.icon-button{width:44px;padding:10px!important}.icon-button svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.btn[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green)}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px 23px;min-width:0}.stat:first-child{background:#edf2df;border-color:#d6e1bd}.stat .label,.stat dt,.stat>p:first-child,.stat-label{font-size:12px;color:var(--muted);margin:0 0 13px}.stat strong,.stat dd,.stat .value,.stat-value{display:block;font-size:clamp(23px,2.4vw,34px);line-height:1.2;font-weight:650;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stat small,.stat .hint,.stat p:last-child{display:block;color:var(--muted);font-size:11px;margin:11px 0 0}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px;min-width:0}.panel h2{font-size:19px;margin-bottom:20px;font-weight:650}.panel h3{margin-bottom:14px}.panel-head,.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panel-head h2,.panel-header h2{margin-bottom:0}.panel>p{font-size:14px}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.summary-grid .panel{margin-bottom:0}.summary-grid .stat{margin-bottom:0}.summary-grid+.panel{margin-top:22px}.section-title{font-size:18px;margin:30px 0 16px}.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px}.toolbar>.field{flex:1;min-width:155px}.toolbar input,.toolbar select{width:auto;min-width:150px;flex:1}.toolbar input[type="search"]{min-width:220px;flex:2}.toolbar .btn{flex-shrink:0}.toolbar label{font-size:12px;color:var(--muted)}.toolbar .field input,.toolbar .field select{width:100%}.table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff;-webkit-overflow-scrolling:touch}.panel .table-wrap{border:0;border-radius:0}.table-wrap table,table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.5}.table-wrap th,th{background:#f4f6ef;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;padding:13px 17px;border-bottom:1px solid var(--line)}.table-wrap td,td{padding:15px 17px;border-bottom:1px solid #edf0e9;vertical-align:middle}.table-wrap tbody tr:last-child td,tbody tr:last-child td{border-bottom:0}.table-wrap tbody tr:hover{background:#fafcf6}.table-wrap td strong{font-weight:650}.table-wrap td small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.number,.numeric{text-align:right;font-variant-numeric:tabular-nums}.row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;white-space:nowrap}.row-actions .btn{font-size:11px;padding:8px 10px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 8px;background:#eef1e9;color:#52604f;font-size:10px;font-weight:650;line-height:1.4;white-space:nowrap}.badge.active,.badge.in_progress,.badge.in-progress,.badge.open{background:#e8f0df;color:#476627}.badge.completed,.badge.done,.badge.paid,.badge.success{background:#def0e8;color:#28694c}.badge.planned,.badge.pending{background:#f6efd8;color:#8a691d}.badge.cancelled,.badge.archived{background:#eef0ed;color:#777e75}.badge.overdue,.badge.error,.badge.debt{background:#fbe8e4;color:#9d4942}.badge.owner{background:#e5ebd5;color:#4f6327}.badge.employee{background:#e8edf2;color:#536e80}.empty{padding:48px 24px;text-align:center;color:var(--muted);font-size:14px}.empty h3{color:var(--ink);margin:0 0 10px}.empty p{max-width:420px;margin:0 auto 18px;font-size:13px}.empty .btn{margin-top:6px}.empty-icon{display:flex;width:54px;height:54px;align-items:center;justify-content:center;background:#f0f4e8;border-radius:16px;margin:0 auto 16px;color:var(--green)}.list-card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:12px}.list-card h3{font-size:17px;margin-bottom:9px}.list-card p{font-size:13px;margin-bottom:9px}.list-card p:last-child{margin-bottom:0}.list-card .meta,.meta{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted)}.list-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.list-card .row-actions{margin-top:15px}.list{display:grid;gap:12px}.divider{height:1px;background:var(--line);border:0;margin:22px 0}.notice,.info{padding:16px 18px;border:1px solid #d8e4c5;background:#f1f6e8;border-radius:10px;font-size:13px;line-height:1.6;color:#4a6241}.notice p:last-child,.info p:last-child{margin:0}.error{color:var(--red)}.success{color:#2e7052}.form-message{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.form-message:empty{display:none}.auth-form-card .form-message:not(:empty){padding:12px 14px;border:1px solid #e4dacd;border-radius:8px;background:#fffaf3;margin:0 0 14px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>label,label.field{font-size:12px;font-weight:650;color:var(--ink)}.field small,.field .help{font-size:11px;color:var(--muted);line-height:1.5;font-weight:400}.field input,.field select,.field textarea,input,select,textarea{border:1px solid #d8e0d3;border-radius:9px;background:#fff;color:var(--ink);padding:11px 13px;min-height:45px;min-width:0;max-width:100%;outline-offset:2px}.field input::placeholder,input::placeholder,textarea::placeholder{color:#99a195;font-weight:400}.field input:hover,.field select:hover,.field textarea:hover{border-color:#aebda4}.field input:focus,.field select:focus,.field textarea:focus{border-color:#78915f}.field textarea,textarea{min-height:110px;resize:vertical}.field input[type="checkbox"],input[type="checkbox"],.field input[type="radio"]{width:20px;min-height:20px;accent-color:var(--green)}.check-field{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 18px}.form-grid .full,.form-grid .wide,.form-grid .span-2,.form-grid>.form-message,.form-grid>.notice,.form-grid>.info{grid-column:1/-1}.field:has(textarea){grid-column:1/-1}dialog{color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 30px 90px #09291e33;padding:30px;width:min(620px,calc(100vw - 32px));max-height:calc(100svh - 40px);overflow:auto}dialog::backdrop{background:#0c241ba6;backdrop-filter:blur(3px)}.dialog-heading{padding-bottom:23px;margin-bottom:23px;border-bottom:1px solid var(--line)}.dialog-heading .eyebrow{color:var(--muted);font-size:9px;margin-bottom:8px}.dialog-heading h2{margin:0;font-size:25px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}#editor-error:not(:empty){margin:18px 0 0;padding:12px 15px;background:#fff2ef;border-radius:9px}.confirm-dialog{width:min(440px,calc(100vw - 32px))}.confirm-dialog .eyebrow{color:var(--muted);font-size:9px}.confirm-dialog h2{font-size:23px}.confirm-dialog p:not(.eyebrow){font-size:14px;line-height:1.7}.toast{position:fixed;z-index:30;left:50%;bottom:26px;transform:translateX(-50%);max-width:calc(100vw - 40px);padding:14px 21px;background:var(--green);color:#fff;border:1px solid #ffffff25;border-radius:11px;box-shadow:0 10px 35px #173d322b;font-size:13px;line-height:1.5}.toast.error{background:#8c342f;color:white}.loading-state{display:flex;align-items:center;justify-content:center;gap:12px;min-height:260px;font-size:14px;color:var(--muted)}.spinner{width:20px;height:20px;border:2px solid #d3ddc8;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.noscript{position:fixed;z-index:100;inset:0;background:var(--paper);display:flex;align-items:center;justify-content:center;padding:30px;text-align:center}
.full-width{grid-column:1/-1}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.check-label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:12px;color:var(--muted)}.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}.list-card .money{white-space:normal}.list-card h3,.list-card p{overflow-wrap:anywhere}.page-head .row-actions,.list-card>.row-actions{flex-wrap:wrap}.stat>span.muted{display:block;font-size:12px;margin-bottom:13px}.page-head h1{font-size:29px;font-weight:650;margin-bottom:9px}
.auth-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 22px;background:#e8eddf;border:1px solid #dce4d0;border-radius:11px}.auth-mode button{min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-weight:650;font-size:13px;padding:10px 16px}.auth-mode button[aria-pressed="true"]{background:white;color:var(--green);box-shadow:0 1px 5px #173d3212}.auth-mode button:not(:disabled):hover{color:var(--green)}
.accounting-dialog{width:min(1100px,calc(100vw - 32px))}.accounting-dialog>.dialog-heading{position:sticky;top:-30px;z-index:1;background:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-top:20px;margin-top:-20px}.accounting-dialog>.dialog-heading>div{min-width:0}.accounting-dialog>.dialog-heading .btn{flex-shrink:0}.accounting-dialog h2{overflow-wrap:anywhere}.accounting-source{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.accounting-section{margin:30px 0}.accounting-section>h3{font-size:21px;margin-bottom:16px}.accounting-section>.muted{font-size:13px}.accounting-dialog .stat{padding:18px 16px}.accounting-dialog .stat strong{font-size:25px;letter-spacing:-.025em}.accounting-details{border:1px solid var(--line);border-radius:10px;background:#fff;margin:10px 0;min-width:0}.accounting-details>summary{cursor:pointer;min-height:48px;padding:14px 17px;font-weight:650;font-size:13px;color:var(--green);overflow-wrap:anywhere}.accounting-details[open]>summary{background:#f4f6ef;border-bottom:1px solid var(--line);border-radius:9px 9px 0 0}.accounting-details-body{padding:16px;min-width:0}.accounting-details-body>.muted{font-size:13px}.accounting-details-body .table-wrap{border:0;border-radius:0}.accounting-term+ .accounting-term{border-top:1px solid var(--line);padding-top:18px}.accounting-term h4{font-size:14px;margin:0 0 8px}.accounting-term p{font-size:13px}.accounting-documents{padding-left:22px;font-size:13px;overflow-wrap:anywhere}.accounting-documents li{margin-bottom:8px}.accounting-total{line-height:1.9}.accounting-diary-entry .eyebrow{display:block;margin-bottom:7px}
@media(max-width:700px){.accounting-dialog{width:calc(100vw - 24px)}.accounting-dialog>.dialog-heading{top:-23px;gap:12px}.accounting-dialog>.dialog-heading h2{font-size:20px}.accounting-dialog .stat{padding:14px 12px}.accounting-dialog .stat strong{font-size:22px}.accounting-details-body{padding:12px}.accounting-details>summary{padding:14px 12px}.accounting-section>h3{font-size:19px}}
@media(max-width:500px){.accounting-dialog .cards{grid-template-columns:1fr;gap:10px}.accounting-dialog .stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center}.accounting-dialog .stat>span.muted{margin:0}.accounting-dialog .stat strong{font-size:20px;white-space:nowrap;overflow-wrap:normal}.accounting-dialog .stat small{grid-column:1/-1;margin:0}}
.rate-split-panel{border-color:#c9d8b8}.rate-split-list{display:grid;gap:12px}.rate-split-card{padding:18px;background:#f4f7ee;border:1px solid #dce5cf;border-radius:10px;min-width:0}.rate-split-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.rate-split-heading h3{font-size:16px;margin:0}.rate-split-heading>span{font-size:12px;color:var(--muted)}.rate-split-heading strong{color:var(--ink);white-space:nowrap}.rate-split-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}.rate-split-values dt{font-size:11px;color:var(--muted);margin-bottom:5px}.rate-split-values dd{font-size:24px;font-weight:650;margin:0;white-space:nowrap;letter-spacing:-.03em}.rate-split-card>p{font-size:11px;margin:0}.rate-split-note{font-size:12px!important;color:var(--muted);margin:15px 0 0}.rate-split-panel>.btn{margin-top:12px}
@media(max-width:700px){.rate-split-card{padding:14px 12px}.rate-split-values{gap:8px}.rate-split-values dd{font-size:20px}.rate-split-values dt{min-height:30px;line-height:1.4}.rate-split-heading>span{font-size:11px}}
@media(max-width:410px){.rate-split-values{grid-template-columns:1fr;gap:10px}.rate-split-values>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.rate-split-values dt{min-height:0;margin:0}.rate-split-values dd{font-size:21px}}
@media(min-width:1500px){.auth-brand{padding-top:66px;padding-bottom:55px}.auth-intro{margin-top:100px;margin-bottom:120px}}
@media(max-width:1150px){.app-layout{grid-template-columns:202px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.sidebar-brand{padding-left:12px}.topbar{padding:24px}.content{padding:28px 24px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.identity{max-width:140px;font-size:11px}.topbar-controls{gap:7px}.app-footer{padding-left:24px;padding-right:24px}.stat strong,.stat dd,.stat .value{font-size:30px}.connection-status,.update-banner{margin-left:24px;margin-right:24px}}
@media(max-width:850px) and (min-width:701px){.app-layout{grid-template-columns:80px minmax(0,1fr)}.sidebar{padding:28px 10px 20px}.sidebar-brand{padding:0;justify-content:center;margin-bottom:35px}.brand-word,.sidebar-caption,.sidebar-bottom{display:none}.nav-item{flex-direction:column;gap:5px;min-height:67px;padding:10px 2px;font-size:9px}.nav-item svg{width:20px;height:20px}.topbar{gap:12px}.identity{max-width:110px}.topbar .eyebrow{font-size:8px}.topbar h1{font-size:24px}.topbar-controls{gap:5px}.topbar .btn.small{padding:9px 8px;font-size:11px}}
@media(max-width:700px){.auth-view{grid-template-columns:1fr;min-height:100svh}.auth-brand{padding:30px 26px 28px;min-height:0;display:block}.brand-large{font-size:33px}.brand-large .brand-mark{width:38px;height:40px;font-size:35px;border-radius:10px}.auth-intro{margin:30px 0 0}.auth-intro .eyebrow{font-size:9px;margin-bottom:12px}.auth-intro h1{font-size:40px;margin:0 0 13px}.auth-intro h1 br{display:none}.auth-intro>p:last-child{font-size:13px;line-height:1.65}.auth-intro>p:last-child br{display:none}.auth-privacy{display:none}.auth-form-wrap{padding:32px 26px 54px;justify-content:flex-start}.auth-welcome-icon{display:none}.auth-form-card{max-width:430px}.auth-form-card>.eyebrow{font-size:9px}.auth-form-card h2{font-size:29px}.auth-description{font-size:13px;margin-bottom:24px}.auth-form-card .field{margin-bottom:16px}.auth-help{margin-top:18px;padding-top:18px}.auth-version{bottom:18px}.app-layout{display:block;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:20;height:auto;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;box-shadow:0 -4px 20px #173d3208}.sidebar-brand,.sidebar-caption,.sidebar-bottom{display:none}#nav{flex-direction:row;gap:2px;overflow-x:auto;scrollbar-width:none;justify-content:space-between}#nav::-webkit-scrollbar{display:none}.nav-item{flex:1 0 48px;width:auto;min-height:58px;flex-direction:column;justify-content:center;gap:5px;border-radius:9px;padding:7px 3px;font-size:9px;color:#69796c;text-align:center}.nav-item svg{width:21px;height:21px}.nav-item.active,.nav-item[aria-current="page"]{background:#edf3dc;color:var(--green)}.nav-item:hover{background:#edf3dc;color:var(--green)}.main-layout{min-height:calc(100svh - 78px)}.topbar{padding:20px 18px 16px;min-height:100px;gap:13px;align-items:flex-start;flex-wrap:wrap}.topbar-heading{flex:1;min-width:140px}.topbar .eyebrow{font-size:8px;letter-spacing:.12em}.topbar h1{font-size:26px}.topbar-controls{gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}.identity{max-width:145px;align-self:center;font-size:10px;margin-right:2px}.identity strong{font-size:11px}.topbar .btn.small{font-size:11px;padding:9px 10px}.topbar .icon-button{width:44px}.content{padding:25px 16px 18px}.page-head{gap:14px;margin-bottom:20px;flex-wrap:wrap}.page-head h2{font-size:25px;margin-bottom:8px}.page-head p{font-size:12px}.page-head .eyebrow{font-size:9px}.page-head>.btn{min-height:44px;font-size:12px}.cards{gap:11px;margin-bottom:21px}.stat{padding:17px 15px;border-radius:13px}.stat .label,.stat dt,.stat>p:first-child,.stat-label{font-size:11px;margin-bottom:11px}.stat strong,.stat dd,.stat .value,.stat-value{font-size:26px}.stat small,.stat .hint,.stat p:last-child{font-size:10px;margin-top:8px}.panel{padding:18px 16px;border-radius:13px;margin-bottom:17px}.panel h2{font-size:18px}.summary-grid{grid-template-columns:1fr;gap:16px}.toolbar{gap:10px;margin-bottom:16px}.toolbar input,.toolbar select,.toolbar input[type="search"]{min-width:125px;width:100%}.toolbar>.field{min-width:130px}.toolbar input[type="search"]{flex-basis:100%}.table-wrap th,th{font-size:9px;padding:11px 12px}.table-wrap td,td{font-size:12px;padding:13px 12px}.row-actions .btn{padding:8px;min-height:44px}.empty{padding:35px 16px;font-size:13px}.list-card{padding:17px}.list-card h3{font-size:16px}.app-footer{padding:18px 18px 16px;font-size:9px}.connection-status,.update-banner{margin:12px 16px 0;font-size:12px;padding:11px 13px}.update-banner{gap:10px}.update-banner .btn{white-space:nowrap}.toast{bottom:calc(92px + env(safe-area-inset-bottom,0px));font-size:12px;width:max-content}.form-grid{grid-template-columns:1fr;gap:17px}.form-grid>*{grid-column:1/-1}dialog{padding:23px 20px;border-radius:16px;max-height:calc(100svh - 24px);width:calc(100vw - 24px)}.dialog-heading{padding-bottom:18px;margin-bottom:20px}.dialog-heading h2{font-size:23px}.dialog-actions{padding-top:20px;margin-top:22px;position:sticky;bottom:-23px;background:white;padding-bottom:3px}.dialog-actions>.btn{flex:1}.field input,.field select,.field textarea,input,select,textarea{font-size:16px}.loading-state{font-size:12px;min-height:200px}}
@media(max-width:410px){.topbar{gap:15px}.topbar-controls{justify-content:flex-start;flex:1 0 100%}.identity{margin-right:auto;max-width:170px}.stat strong,.stat dd,.stat .value,.stat-value{font-size:24px}.cards{gap:9px}.stat{padding:16px 13px}.nav-item{flex-basis:44px;font-size:8px}.nav-item svg{width:20px;height:20px}.auth-intro h1{font-size:35px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.spinner{border-color:var(--green)}}
@media print{.sidebar,.topbar-controls,.app-footer,.btn,.toolbar,.toast,.connection-status,.update-banner{display:none!important}.app-layout{display:block;padding:0}.topbar{padding:0 0 20px}.content{padding:20px 0}.panel,.stat,.list-card{break-inside:avoid;box-shadow:none}.table-wrap{overflow:visible}body{background:white}}
