:root{--dark:#15332b;--ink:#192c24;--muted:#586b61;--accent:#336650;--edge:#dce4d9;--surface:#fff;--canvas:#f4f6f0;--lime:#e5eedf;font:16px/1.48 Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--canvas)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}svg{flex:none;vertical-align:middle}:focus-visible{outline:3px solid #7ca594;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.2;overflow-wrap:anywhere}h1{letter-spacing:-.052em;font-weight:745}h2{font-size:1.12rem;letter-spacing:-.022em}h3{font-size:1rem}small{display:block;color:var(--muted);font-size:.82rem}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100dvh;overflow:auto;background:var(--dark);color:#eef5e9;display:flex;flex-direction:column;padding:26px 17px 17px}
.brand{display:flex;gap:11px;align-items:center;color:#f2f9ed;white-space:nowrap}.brand img{width:42px;height:42px;border:1px solid #658073;border-radius:10px}.brand strong,.brand span{display:block}.brand strong{font-size:1.15rem;letter-spacing:.14em;line-height:1.2}.brand span{font-size:.75rem;color:#c4d6c7;margin-top:3px}.sidebar .brand{padding:4px 4px 28px}.sidebar nav{display:grid;gap:5px}.nav{display:flex;align-items:center;gap:9px;color:#e0eade;min-height:44px;padding:8px 11px;border-radius:8px;font-size:.88rem;font-weight:580}.nav:hover{background:#294a3d}.nav.selected{background:#e2eddf;color:#19382a;font-weight:715}.side-foot{margin-top:auto;padding-top:28px}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #4e685a;margin-top:12px;padding-top:14px;font-size:.87rem;overflow:hidden}.profile>span{display:grid;place-items:center;height:36px;min-width:36px;border-radius:50%;background:#365b4a;font-weight:730}.profile div{min-width:0}.profile strong,.profile small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.profile small{color:#bed0c2;font-size:.76rem}
.workspace{min-width:0}.top{height:62px;position:sticky;top:0;z-index:4;background:#fefffc;border-bottom:1px solid var(--edge);display:flex;align-items:center;gap:10px;padding:0 clamp(17px,3.1vw,48px);font-size:.94rem}.top>span{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:.83rem;color:var(--muted);white-space:nowrap}.top i{width:8px;height:8px;background:#508463;border-radius:50%}.top .offline i{background:#ad742b}.mobile{display:none!important}#content{max-width:1650px;margin:auto;padding:29px clamp(17px,3.1vw,48px) 52px;min-width:0}
.page-head{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:22px}.page-head h1{font-size:clamp(2rem,4vw,3.25rem)}.page-head p{margin-top:6px;color:var(--muted);font-size:.97rem}.eyebrow{margin-bottom:7px;color:var(--accent);font-weight:700;font-size:.79rem;letter-spacing:.035em}.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.page-head .actions{justify-content:end}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:7px 13px;border:1px solid transparent;border-radius:8px;background:#fff;color:var(--dark);font-size:.88rem;font-weight:670;text-align:center;line-height:1.24}.btn.primary{background:var(--dark);color:#fff;border-color:var(--dark)}.btn.primary:hover{background:#295541}.btn.secondary{background:#fafcf8;border-color:#d4dfd1}.btn.secondary:hover,.btn.plain:hover,.icon-btn:hover{background:#edf4e9}.btn.plain{padding:6px 7px;color:var(--accent);min-height:35px;background:transparent}.icon-btn{flex:none;display:inline-grid;place-items:center;width:35px;height:35px;background:transparent;border:1px solid transparent;border-radius:8px;padding:0}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric{background:#fff;border:1px solid var(--edge);min-width:0;border-radius:13px;min-height:137px;display:flex;flex-direction:column;align-items:flex-start;padding:14px}.metric-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:#e7f0e5;color:#315f48;margin-bottom:9px}.metric:nth-child(3) .metric-icon{background:#f6eddb;color:#815725}.metric>span:nth-child(2){font-size:.86rem;font-weight:635;color:#43594e}.metric strong{font-size:clamp(1.35rem,2.8vw,2.2rem);font-weight:750;line-height:1.15;letter-spacing:-.042em;margin:4px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.metric small{font-size:.77rem}.money-metrics .metric{min-height:114px}.money-metrics .metric-icon{display:none}
.panel{background:#fff;border:1px solid var(--edge);border-radius:13px;margin-bottom:15px;overflow:hidden;min-width:0}.panel>header{padding:13px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;min-height:56px;border-bottom:1px solid #e9efe7}.panel>footer{border-top:1px solid var(--edge);display:flex;justify-content:end;gap:9px;padding:12px 16px;background:#f7faf6}.pad{padding:15px 16px}.dashboard,.info-grid{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(230px,1fr);gap:14px;align-items:start}.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pair{padding:8px 0;border-bottom:1px solid #eaf0e8;display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:.9rem}.pair:last-child{border:0}.pair span{color:var(--muted)}.pair strong{text-align:right;overflow-wrap:anywhere}.table-wrap{overflow-x:auto}table{width:100%;text-align:left;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}th,td{padding:11px 12px;border-bottom:1px solid #eaf0e8;vertical-align:middle}th:first-child,td:first-child{padding-left:16px}th:last-child,td:last-child{padding-right:16px}th{font-size:.8rem;font-weight:680;color:#41574b;background:#f8faf6;white-space:nowrap}td{color:#31473c}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcf9}.link{color:#2c6449;font-weight:690}.link:hover,.breadcrumb a:hover{text-decoration:underline}.project-cell{display:flex;align-items:center;gap:8px;min-width:160px}.project-cell>span{display:grid;place-items:center;background:#e9f1e7;color:var(--accent);width:34px;height:34px;border-radius:8px;flex:none}.project-cell small{margin-bottom:3px}
.badge{max-width:100%;display:inline-flex;white-space:nowrap;font-size:.76rem;font-weight:685;background:#e8eee4;color:#40564a;border-radius:20px;padding:4px 8px;line-height:1.2}.badge.active,.badge.approved,.badge.admin{color:#245335;background:#e1efe4}.badge.pending,.badge.paused,.badge.credit{color:#78521c;background:#f6edda}.badge.returned,.badge.rejected{color:#903e32;background:#f7e7e1}.badge.planning,.badge.accountant,.badge.invoice{color:#355746;background:#e6ede4}
.empty,.loading{display:grid;place-content:center;justify-items:center;text-align:center;gap:8px;padding:24px;min-height:140px;color:var(--muted);font-size:.91rem}.empty svg{color:#46745d}.empty strong{color:var(--ink);font-size:1rem}.empty p{max-width:42ch}.stack{display:grid;gap:12px}.grid,.time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.time-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.field{min-width:0;display:grid;gap:5px}.field>span{font-size:.86rem;color:#334b3f;font-weight:650}input:not([type=checkbox]),select,textarea{min-width:0;width:100%;min-height:41px;padding:7px 10px;border:1px solid #d2dfd2;border-radius:8px;background-color:#fbfcf9;outline-offset:1px}textarea{resize:vertical;min-height:90px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23436250' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:11px;background-position:right 10px center;padding-right:27px}.check{display:flex;align-items:center;gap:8px;font-size:.89rem}.check input{margin:0;width:17px;height:17px;accent-color:var(--accent)}.filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:11px 15px;border-bottom:1px solid #ebf0e8}.filters .field{min-width:125px}.diary-filters .field{flex:1 1 110px}.line{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.breadcrumb{display:flex;gap:8px;align-items:center;font-size:.87rem;font-weight:650;color:#3b6c53;margin-bottom:11px}.project-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dce7da;margin-bottom:13px}.project-nav nav{overflow:auto;display:flex;min-width:0}.project-nav a{white-space:nowrap;border-bottom:2px solid transparent;padding:10px 12px;color:#536a5d;font-size:.87rem;font-weight:640}.project-nav a:first-child{padding-left:2px}.project-nav a.selected{border-color:var(--accent);color:var(--accent)}
.field-page{max-width:830px;margin:auto}.work-card{display:grid;gap:8px;padding:13px 15px;border-radius:12px;border:1px solid var(--edge);background:#fff}.work-card p{font-size:.94rem}.work-card ul{padding-left:18px;margin:0;color:var(--muted);font-size:.88rem}.section-title{margin:14px 0 7px}.items>div{border-top:1px solid #ecf1ea;padding:6px 0}.items strong{font-size:.9rem}.material-block,.repeat-row{background:#f7faf5;border:1px solid var(--edge);border-radius:9px;padding:10px;display:grid;gap:8px}.material-rows{display:grid;gap:7px}.material-rows .repeat-row{background:#fff}.material-rows:empty{display:none}output{color:#285b42;font-weight:735;padding:5px 9px;border-radius:7px;background:#e8f2e7}.callout{background:#f6eedb;border:1px solid #ecdcc1;color:#66491f;padding:9px 12px;border-radius:8px;margin-bottom:12px;display:flex;align-items:center;gap:7px;font-size:.9rem}.file-list{display:flex;gap:7px;flex-wrap:wrap}.toast{position:fixed;right:15px;bottom:16px;z-index:20;background:#edf7eb;border:1px solid #cddfce;color:#2c5842;max-width:min(430px,calc(100% - 30px));padding:10px 13px;border-radius:8px;box-shadow:0 4px 20px #1a32232c;display:flex;gap:8px;align-items:center;font-size:.91rem}.toast.problem,.error{background:#fff1ec;color:#862f24;border:1px solid #efd2ca}.error{padding:7px 9px;border-radius:7px;font-size:.88rem}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-visual{position:relative;overflow:hidden;isolation:isolate;min-height:100dvh;background:var(--dark);color:#edf6e8;padding:clamp(30px,6vw,82px);display:flex;flex-direction:column;justify-content:space-between}.auth-visual>div:nth-child(2){padding-bottom:clamp(35px,10vh,98px)}.auth-visual h1{font-size:clamp(2.65rem,5.6vw,5.6rem);line-height:1.01}.auth-visual p{color:#cddccf;margin-top:18px;max-width:30ch}.blueprint{position:absolute;inset:25% -25% -65% 5%;transform:rotate(-25deg);z-index:-1;opacity:.23;background-image:linear-gradient(90deg,#b5d0ba 1px,transparent 1px),linear-gradient(#b5d0ba 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(#000,transparent 75%)}.login-zone{display:grid;place-items:center;padding:20px}.login-card{width:min(100%,420px);background:#fff;border:1px solid var(--edge);border-radius:15px;padding:clamp(22px,4.3vw,37px);box-shadow:0 13px 32px #2033290b}.login-card>h2{font-size:1.71rem;margin:12px 0 5px}.login-card>p{font-size:.94rem;color:var(--muted);margin-bottom:17px}.login-card button{min-height:46px}.mobile-brand{display:none}
dialog{padding:0;width:min(620px,calc(100% - 20px));max-height:min(87dvh,800px);border:1px solid var(--edge);border-radius:13px;box-shadow:0 24px 70px #17302359;overflow:hidden;color:var(--ink)}dialog::backdrop{background:#162c247d}dialog form{display:flex;flex-direction:column;max-height:min(87dvh,800px)}dialog header,dialog footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 16px;border-bottom:1px solid var(--edge)}dialog footer{justify-content:end;border-bottom:0;border-top:1px solid var(--edge);background:#f8faf6}.dialog-body{overflow:auto;padding:15px 16px}#print{display:none}
@media(max-width:1100px){.dashboard{grid-template-columns:1fr}.dashboard .panel:last-child{max-width:600px}}
@media(max-width:920px){.shell{grid-template-columns:193px minmax(0,1fr)}.sidebar{padding-inline:12px}.sidebar .brand{gap:7px}.sidebar .brand img{width:34px;height:34px}.sidebar .brand strong{font-size:1rem}.sidebar .brand span{font-size:.67rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head{align-items:start}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;left:0;top:55px;z-index:10;width:min(265px,80vw);height:calc(100dvh - 55px);transform:translateX(-102%);transition:transform .16s}.menu-open .sidebar{transform:translateX(0)}.top{height:55px;padding:0 12px}.mobile{display:inline-grid!important}#content{padding:17px 12px 35px}.page-head{flex-wrap:wrap;margin-bottom:14px;gap:8px}.page-head .actions{justify-content:start}.page-head p{font-size:.91rem}.metrics{gap:7px}.metric{min-height:105px;padding:10px}.metric-icon{height:30px;width:30px;margin-bottom:5px}.info-grid{grid-template-columns:1fr;gap:0}.auth{display:block}.auth-visual{display:none}.login-zone{min-height:100dvh}.mobile-brand{display:block;margin-bottom:16px}.mobile-brand .brand strong{color:var(--dark)}.mobile-brand .brand span{color:var(--muted)}.project-nav>.badge{display:none}.project-nav a{padding:8px 9px}.panel>header,.pad,.filters{padding-inline:12px}}
@media(max-width:440px){.time-grid{grid-template-columns:1fr 1fr}.time-grid .field:last-child{grid-column:1/-1}.field-page .panel>footer{display:grid;grid-template-columns:1fr}.field-page .panel>footer .primary{grid-row:1}.diary-filters .field{min-width:90px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{body{background:white}#app,#notice,#dialog{display:none!important}#print{display:block;font-size:10pt}#print>header{padding-bottom:12pt;border-bottom:2pt solid var(--dark)}#print h2{margin:13pt 0 6pt;break-after:avoid}#print h1{font-size:23pt;margin:4pt 0}#print table{font-size:9pt}#print th,#print td{padding:4pt;white-space:normal}#print tr{break-inside:avoid}#print .empty{min-height:0;padding:5pt;display:block}#print .empty svg{display:none}}


.crm-board{display:grid;grid-template-columns:repeat(7,minmax(172px,1fr));gap:10px;overflow-x:auto;padding:13px 15px 15px;scroll-snap-type:x proximity}
.crm-stage{background:#f6f9f3;border-radius:11px;padding:9px;min-height:126px;display:grid;align-content:start;gap:8px;scroll-snap-align:start}
.crm-stage h3{color:var(--accent);font-size:.88rem;margin:3px 0}
.crm-stage .work-card{padding:9px;gap:3px;overflow-wrap:anywhere}
.crm-stage small{line-height:1.25}
.crm-stage .badge{justify-self:start;margin-top:4px}
.gantt-row{display:grid;grid-template-columns:minmax(144px,1.15fr) minmax(120px,2fr) minmax(110px,1fr);gap:9px;align-items:center;border-bottom:1px solid var(--edge);padding:6px 0}
.gantt-row svg{width:100%;height:16px}
.gantt-row button{text-align:left;justify-content:flex-start}
.filters select{max-width:190px}
.filters .field>span{font-size:.81rem}
@media(max-width:700px){.crm-board{grid-template-columns:repeat(7,172px)}.gantt-row{grid-template-columns:minmax(99px,1fr) minmax(94px,1fr)}.gantt-row>small{grid-column:2}.filters .field{width:min(100%,140px);min-width:0}.filters select{max-width:100%}}

.cash-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.cash-tab{border:1px solid var(--edge);border-radius:9px;background:#fff;padding:10px 14px;font-weight:650;color:var(--ink);text-align:left}
.cash-tab:hover,.cash-tab.selected{border-color:#729784;background:#e8f2e9;color:#23543c}
.cash-hint{margin:0;color:var(--muted);font-size:.84rem;line-height:1.5}
.cash-context{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--edge);border-radius:9px;background:#fff}
.cash-context>.cash-hint{flex:1 1 320px}
.cash-context.cash-preview{border-color:#e2cf98;background:#fff9e8}
.cash-preview>.cash-hint{color:#66511c}
.demo-bar{background:#fff9e8;border-bottom:1px solid #e2cf98;color:#66511c;padding:8px clamp(12px,3vw,30px);display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.demo-bar small{color:inherit}
.panel>.cash-hint{padding:9px 16px 0}
.panel>.cash-hint:last-child{padding-bottom:9px}
.dialog-body>.cash-hint{margin:0}
.cash-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));align-items:end;padding:13px 16px}
.cash-filters .field,.cash-filters .field>select{width:100%;min-width:0;max-width:none}
.cash-filters .actions{grid-column:1/-1;justify-content:flex-end}
.dialog-body>.cash-filters{padding:0}
.cash-description{font-weight:650;overflow-wrap:anywhere}
.cash-row-actions{display:flex;flex-wrap:wrap;gap:2px;min-width:105px}
.cash-amount,.cash-total strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.cash-amount{font-weight:700}
.cash-amount.income,.cash-total .income{color:#176849}
.cash-amount.expense,.cash-total .expense{color:#953d2b}
.cash-pager{padding:8px 16px;border-top:1px solid var(--edge)}
.cash-total{display:grid;grid-template-columns:minmax(155px,2fr) repeat(3,minmax(105px,1fr));gap:10px 16px;align-items:center;background:#f3f8f3;border-top:1px solid var(--edge);padding:14px 16px}
.cash-total>div{display:grid;gap:2px}
.cash-total span{font-size:.85rem;color:var(--muted)}
.cash-total-caption small{max-width:45ch}
@media(max-width:680px){.cash-total{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cash-total-caption{grid-column:1/-1}.cash-total strong{white-space:normal;overflow-wrap:anywhere}}
a.metric:hover,a.metric:focus-visible{border-color:#7ca594;background:#f6faf5}

:root{--dark:#202123;--ink:#212225;--muted:#5a5d60;--accent:#745000;--edge:#dededb;--canvas:#f6f6f4;--lime:#fff2cd}
.sidebar,.auth-visual{background:#202123;color:white}.brand img{height:54px;width:54px;object-fit:contain;padding:3px;background:white;border:0;border-radius:5px}.brand,.nav,.brand span,.profile small,.auth-visual p{color:#efefed}.nav:hover{background:#393a3d}.nav.selected,.btn.primary{background:#fec554;border-color:#fec554;color:#181818}.btn.primary:hover{background:#ffda85}.btn.secondary,.top{background:#fff;border-color:var(--edge)}.btn.secondary:hover,.btn.plain:hover{background:#fff3d4}.profile{border-color:#555}.profile>span{background:#484a4c}.metric-icon,.cash-tab.selected{color:#583e00;background:#fff0c8;border-color:#d9ae50}.project-nav a.selected{border-color:#b68115}.fund-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.fund-metrics .metric:first-child{border-top:3px solid #efb338}.portfolio-balances{margin:.75rem 0 1rem;background:white;border:1px solid var(--edge);border-radius:9px}.portfolio-balances summary{cursor:pointer;padding:.7rem 1rem;font-weight:650}.portfolio-balances p{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0}.terms{white-space:pre-line}.panel>.metrics{padding:0 1rem 1rem}.mobile-brand .brand{color:#202123}#project-shortcut:not(:empty){margin:.6rem 0}.mobile-brand .brand span{color:#555}
@media print{#print header:before{content:'';display:block;height:65px;width:65px;background:url('/arckon-logo.png') center/contain no-repeat;print-color-adjust:exact}}
.expense-kinds{display:flex;gap:.35rem;flex-wrap:wrap;border:0;padding:0;margin:0}.expense-kinds legend{font-size:.88rem;font-weight:650;margin-bottom:.4rem}.expense-kinds label{position:relative;cursor:pointer;flex:1 1 9rem}.expense-kinds input{position:absolute;opacity:0;width:1px;height:1px}.expense-kinds span{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid var(--edge);border-radius:8px;padding:.65rem .45rem;font-size:.88rem}.expense-kinds input:checked+span{background:#fff0ca;border-color:#b58528;color:#342607;font-weight:700}.expense-kinds input:focus-visible+span{outline:2px solid #77581e;outline-offset:2px}.cash-lookup{display:grid;gap:.3rem;min-width:0}.cash-lookup>input{grid-row:2;width:100%;min-width:0;border:1px solid var(--edge);border-radius:7px;padding:.5rem .65rem}.cash-lookup>label{display:contents}.cash-lookup>label>span{grid-row:1;font-size:.88rem;font-weight:650}.cash-lookup>label>select{grid-row:3;width:100%}.cash-lookup select[size]:not([size="1"]){background-image:none;height:auto}.cash-lookup small:empty{display:none}:is(.cash-add-category,.cash-add-income) summary{cursor:pointer;color:var(--accent);font-weight:650;padding:.4rem 0}:is(.cash-add-category,.cash-add-income) .stack{padding:.5rem 0}
.cash-search{padding:1rem 1.15rem .35rem;display:grid;gap:.4rem}.cash-search>label{font-weight:650}.cash-search-line{display:flex;align-items:center;gap:.55rem;border:1px solid var(--edge);border-radius:8px;padding:0 .75rem;background:white}.cash-search-line:focus-within{outline:2px solid #9f731c;outline-offset:1px}.cash-search-line>svg{flex-shrink:0;color:#6a6252}.cash-search-line>input{flex:1;min-width:0;padding:.72rem 0;border:0;outline:0;font:inherit;background:transparent}.cash-search-line>button{padding:.4rem;font-size:.87rem}

.password-row{display:flex;align-items:stretch;gap:.4rem}.password-row input{min-width:0;flex:1}.password-toggle{font:inherit;cursor:pointer;padding:.4rem .65rem;min-height:44px}