:root{--olive:#535c46;--dark:#343b2c;--paper:#f5f3ef;--cream:#ebe7e0;--white:#fffefa;--ink:#20231e;--muted:#69705f;--line:#dfded5;--red:#a34c3b;--amber:#876a26;--serif:"Iowan Old Style",Baskerville,Georgia,serif;--sans:Avenir,"Avenir Next","Helvetica Neue",Arial,sans-serif;--side:232px}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--paper);font:14px/1.6 var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}body.dialog-open{overflow:hidden}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:400}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--olive);outline-offset:4px}[hidden]{display:none!important}.ico{height:20px;width:20px;display:inline-block;vertical-align:middle;flex:none}.eyebrow{display:block;color:var(--olive);font-size:9px;font-weight:600;letter-spacing:.19em;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-80px;left:20px;z-index:100;background:var(--olive);color:#fff;padding:10px 20px}.skip:focus{top:10px}.loading-screen,.setup-unavailable{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100dvh;padding:35px;gap:25px;text-align:center}.loading-screen img,.setup-unavailable img{width:220px}.loading-screen p{color:var(--muted);font-size:12px}.setup-unavailable h1{font:38px/1.1 var(--serif)}.setup-unavailable p{max-width:550px;color:var(--muted)}.auth-layout{display:grid;grid-template-columns:1fr 1.1fr;min-height:100dvh}.auth-brand{background:var(--dark);color:var(--paper);padding:48px 55px;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.auth-brand img{width:230px;filter:brightness(0) invert(1)}.auth-brand .eyebrow{color:#cbd1c1;margin-bottom:19px}.auth-brand h1{font:48px/1.13 var(--serif);letter-spacing:-.03em}.auth-brand h1 em{color:#c4cbb9}.auth-brand p{color:#d2d7c9;font-size:14px;line-height:1.9;margin-top:25px}.auth-brand>small{font-size:9px;letter-spacing:.18em;color:#aebba0}.auth-panel{padding:40px 70px;display:flex;justify-content:center;align-items:center;position:relative}.back-link{position:absolute;top:28px;left:35px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;min-height:40px}.back-link .ico{width:15px;height:15px}.auth-card{width:100%;max-width:390px;padding:35px 0}.auth-symbol{display:grid;place-items:center;width:52px;height:52px;border:1px solid #c9d0bd;border-radius:50%;color:var(--olive);background:#e8ece0;margin-bottom:25px}.auth-symbol .ico{width:23px;height:23px}.auth-card h2{font:38px/1.1 var(--serif);letter-spacing:-.03em;margin:10px 0 16px}.auth-card>p{color:var(--muted);font-size:13px;line-height:1.9;margin-bottom:25px}.auth-card .auth-foot{font-size:10px;line-height:1.9;margin:24px 0 0}.field{display:flex;flex-direction:column;gap:7px;margin:0 0 17px;min-width:0}.field>span{font-size:11px;color:var(--muted)}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid #d7dbce;background:var(--white);border-radius:5px;padding:11px 12px;min-height:43px;outline-offset:3px;font-size:13px}input:focus,select:focus,textarea:focus{border-color:var(--olive)}textarea{resize:vertical;line-height:1.7}input[readonly]{background:#eeeee7}.field-help{font-size:10px;line-height:1.9;color:var(--muted);margin:-5px 0 18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;padding:11px 18px;border:1px solid transparent;border-radius:5px;background:var(--olive);color:white;font-size:12px;font-weight:500;line-height:1.4;text-align:center;transition:background .15s}.button:hover{background:var(--dark)}.button:disabled{opacity:.55;cursor:wait}.button .ico{width:17px;height:17px}.button.secondary{background:transparent;color:var(--olive);border-color:#c8cfbb}.button.secondary:hover{background:#e8ecdf}.button.small{min-height:36px;padding:9px 13px;font-size:10px}.button.full{width:100%}.text-link{display:inline-flex;align-items:center;gap:8px;color:var(--olive);font-size:11px;min-height:34px;padding:0}.text-link:hover{text-decoration:underline;text-underline-offset:3px}.text-link>.ico{height:15px;width:15px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-height:38px;padding:8px;border-radius:6px;color:var(--olive)}.icon-button:hover{background:#e6eadd}.icon-button:disabled{opacity:.5;cursor:wait}.icon-button .ico{width:17px;height:17px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);height:100dvh;background:var(--dark);color:var(--paper);display:flex;flex-direction:column;padding:35px 19px 25px;z-index:20}.brand{width:174px;display:block;margin:0 auto}.brand img{filter:brightness(0) invert(1)}.side-label{font-size:8px;letter-spacing:.22em;color:#bfc9b1;margin:27px 13px 22px}.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;text-align:left;border-radius:5px;color:#e1e5d8;font-size:11px;position:relative;min-height:42px}.nav-item>.ico{width:18px;height:18px}.nav-item.active{background:#ffffff14;color:white}.nav-item.active::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:2px;background:#c3ccb7}.nav-item:hover{background:#ffffff0a}.sidebar-footer{margin-top:auto;padding:28px 13px 0}.lock-label{display:flex;align-items:center;gap:8px;color:#b7c2aa;font-size:10px}.lock-label>.ico{width:13px;height:13px}.sidebar-footer>a{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#d9dfd0;font-size:10px;padding:15px 0;border-bottom:1px solid #ffffff17}.sidebar-footer>a .ico{height:14px;width:14px}.sidebar-footer small{display:block;margin-top:14px;font-size:9px;line-height:1.9;color:#aab79c}.workspace{margin-left:var(--side);min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);height:83px;padding:0 40px;background:var(--paper)}.topbar .eyebrow{font-size:7px;margin-bottom:3px}.topbar strong{font-size:13px;font-weight:500}.top-actions{display:flex;gap:12px;align-items:center}.user-pill{display:flex;gap:8px;align-items:center;color:var(--olive);font-size:11px}.user-pill>span{width:31px;height:31px;display:grid;place-items:center;background:#e3e8d8;border:1px solid #d2dac5;border-radius:50%;font-size:9px}.user-pill b{font-weight:400}main{max-width:1480px;padding:33px 40px 40px;margin:auto;outline:none}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:10px}.page-heading h1{font:39px/1.13 var(--serif);letter-spacing:-.035em;max-width:650px}.page-heading h1 em{color:var(--olive)}.page-heading p{color:var(--muted);font-size:12px;line-height:1.8;max-width:620px;margin-top:13px}.heading-actions{display:flex;flex-wrap:wrap;gap:9px;flex:none}.heading-actions .button{white-space:nowrap}.dashboard-date{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}.dashboard-date>span{text-transform:capitalize;font-size:12px;color:var(--muted)}.dashboard-date .field{margin:0;flex-direction:row;align-items:center;gap:12px}.dashboard-date .field select{width:210px;min-height:36px;padding:7px 11px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:26px}.stat{border:1px solid var(--line);background:var(--white);border-radius:6px;padding:21px 22px;display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:8px}.stat>span{font-size:10px;color:var(--muted)}.stat strong{font-family:var(--serif);font-size:38px;font-weight:400;line-height:1;color:var(--dark)}.stat small{font-size:9px;color:#858c7a}.stat.danger{background:#f7eee8;border-color:#ead4c6}.stat.danger strong{color:var(--red)}.dashboard-columns{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(230px,1fr);gap:22px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:23px;min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.section-title h2{font:26px/1.2 var(--serif);letter-spacing:-.025em}.section-title>span{font-size:10px;color:var(--muted)}.item-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:17px 0;min-width:0}.completion{width:20px;height:20px;min-width:20px;border:1px solid #c1cab4;border-radius:50%;display:grid;place-items:center;padding:0;background:transparent}.completion.checked{background:var(--olive);color:#fff;border-color:var(--olive)}.completion .ico{width:13px;height:13px}.item-main{display:flex;align-items:flex-start;flex-direction:column;gap:4px;text-align:left;min-width:0;flex:1;padding:0}.item-title{font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.item-sub{font-size:9px;color:var(--muted);line-height:1.7}.item-meta{display:flex;align-items:flex-end;flex-direction:column;gap:6px;flex:none}.due{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);white-space:nowrap}.due>.ico{width:13px;height:13px}.due.late{color:var(--red)}.due.today{color:var(--amber)}.tag{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #dce0d2;border-radius:3px;background:#eff2e8;color:var(--olive);font-size:8px;line-height:1.6;white-space:nowrap}.tag.status-done,.tag.status-closed{background:#e8efe1;border-color:#d0dcc2}.tag.status-doing{background:#e7edf3;color:#4e6c80;border-color:#d4dfe9}.tag.status-blocked,.tag.status-paused{background:#f2eddf;color:#8b743b;border-color:#e4d9b8}.tag.status-cancelled{background:#eeece9;color:#827c71;border-color:#ddd9d2}.urgent-dot{width:5px;height:5px;background:var(--red);border-radius:50%;display:inline-block;margin-left:8px;vertical-align:middle}.side-panel>.eyebrow{font-size:8px;margin-bottom:13px}.side-panel h2{font:30px/1.1 var(--serif);letter-spacing:-.025em}.workflow-counts{margin:25px 0}.workflow-counts>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.workflow-counts>div>span{display:flex;align-items:center;gap:7px}.workflow-counts b{font-weight:500;font-size:13px}.dot{display:inline-block;width:5px;height:5px;background:#a6b293;border-radius:50%}.dot.doing{background:#7895ad}.dot.blocked{background:#b7a069}.dot.done{background:#6b8e56}.dot.cancelled{background:#aaa194}.integration-mini{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.integration-mini>span{font-size:8px;letter-spacing:.16em;color:var(--muted);display:block;margin-bottom:6px}.integration-mini strong{font-size:11px;font-weight:400;display:block;color:var(--olive)}.integration-mini small{font-size:9px;color:var(--muted);line-height:1.8}.empty{padding:35px 15px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:225px}.empty-icon{width:45px;height:45px;border:1px solid #d4dcc8;border-radius:50%;display:grid;place-items:center;color:#81916e;margin-bottom:20px;background:#edf0e5}.empty h2{font:28px/1.15 var(--serif);letter-spacing:-.025em;max-width:430px}.empty p{font-size:11px;line-height:1.9;color:var(--muted);max-width:430px;margin:14px 0 20px}.empty .button{font-size:11px}.quiet-empty{padding:23px 0;color:var(--muted);font-size:12px}.filter-bar{display:flex;align-items:center;gap:20px;margin-bottom:23px}.filter-bar .field{margin:0;min-width:190px}.filter-bar .field>span{display:none}.filter-bar select{font-size:11px}.search{display:flex;align-items:center;gap:9px;flex:1;max-width:390px;border-bottom:1px solid #c5cfb6;color:var(--olive)}.search>.ico{width:16px;height:16px}.search input{background:none;border:0;font-size:11px;padding:10px 0}.toggle{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}.toggle input{accent-color:var(--olive)}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.case-card{padding:22px;background:var(--white);border:1px solid var(--line);border-radius:6px;min-width:0}.case-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:8px;color:var(--muted);margin-bottom:23px}.case-card-top>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-open{width:100%;text-align:left;padding:0}.case-open h2{font:27px/1.14 var(--serif);letter-spacing:-.025em;overflow-wrap:anywhere}.case-open p{font-size:10px;color:var(--muted);margin-top:11px;overflow-wrap:anywhere}.case-client{margin-top:24px}.case-client>span{display:block;font-size:9px;color:#858d79;margin-bottom:3px}.case-client strong{font-weight:400;font-size:11px}.case-counts{display:flex;gap:15px;flex-wrap:wrap;margin-top:18px;color:var(--muted);font-size:9px}.case-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:19px;font-size:9px;color:var(--muted)}.chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px}.chip{border:1px solid #d6dcce;padding:7px 14px;min-height:36px;font-size:10px;color:var(--muted);border-radius:25px}.chip.active{background:var(--olive);color:white;border-color:var(--olive)}.kanban{display:flex;gap:15px;overflow-x:auto;align-items:flex-start;padding-bottom:20px;scroll-snap-type:x proximity}.kanban-column{flex:1;min-width:250px;max-width:400px;background:#ebece4;border:1px solid #dfe3d5;border-radius:6px;padding:14px;scroll-snap-align:start;min-height:300px}.column-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;padding:2px 1px 18px}.column-title>span{display:flex;gap:7px;align-items:center}.column-title b{font-size:9px;font-weight:400;padding:1px 6px;border-radius:3px;background:#dfe4d5;color:var(--olive)}.column-empty{font-size:10px;color:#8c957f;padding:20px 0;text-align:center}.task-card{background:var(--white);border:1px solid #dfe2d7;border-radius:5px;padding:16px;margin-bottom:11px}.task-open{text-align:left;width:100%;padding:0}.priority{display:inline-block;padding:2px 5px;font-size:7px;letter-spacing:.08em;text-transform:uppercase;background:#eff1e9;color:var(--olive);border-radius:2px;margin-bottom:12px}.priority-high{background:#f2ebd9;color:#8f7430}.priority-urgent{background:#f4e6dc;color:var(--red)}.task-open h3{font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.task-open p{font-size:9px;line-height:1.7;color:var(--muted);margin:7px 0 16px}.task-person{font-size:9px;color:var(--muted);margin-top:12px}.task-actions{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:10px;margin-top:12px}.task-actions select{min-height:32px;padding:6px 7px;font-size:9px;background:transparent}.task-actions .icon-button{min-height:30px;height:30px;width:30px;padding:6px}.calendar-toolbar{display:flex;align-items:center;gap:18px;margin:5px 0 20px}.calendar-toolbar h2{font:28px/1.2 var(--serif);text-transform:capitalize;letter-spacing:-.02em}.calendar-toolbar .button{margin-left:auto}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line);border-radius:5px;overflow:hidden}.weekday{text-align:center;font-size:9px;color:var(--muted);padding:10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#eeeee5}.calendar-day{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--white);min-height:107px;text-align:left;padding:10px 8px;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}.calendar-day>span{font-size:11px;align-self:flex-start;display:grid;place-items:center;width:22px;height:22px}.calendar-day.is-today>span{background:var(--olive);color:white;border-radius:50%}.calendar-day.other-month{opacity:.55;background:#efefe8}.calendar-day.selected{background:#eaf0df;box-shadow:inset 0 0 0 1px #a8b790}.calendar-day>div{display:flex;flex-direction:column;gap:4px;min-width:0}.calendar-day small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 4px;font-size:8px;border-radius:2px}.deadline-event{background:#e0e8d4;color:var(--olive)}.task-event{background:#e5eaf0;color:#647c8f}.calendar-day b{font-size:8px;color:var(--olive);font-weight:400}.day-panel{margin-top:23px}.provider-banner{display:flex;align-items:center;gap:23px;padding:18px 22px;background:#e9ece2;border:1px solid #d6deca;border-radius:5px;margin-bottom:22px}.provider-banner>div{display:flex;flex-direction:column;gap:4px}.provider-banner strong{font-weight:500;font-size:11px}.provider-banner small{font-size:9px;color:var(--muted)}.provider-banner>.button{margin-left:auto}.provider-name{font-size:30px;letter-spacing:-1px;font-weight:600;color:var(--olive)}.provider-name>span{font-size:10px;vertical-align:top;margin:5px 0 0 2px;display:inline-block}.finance-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.finance-stats strong{font-size:30px;overflow-wrap:anywhere}.footnote{font-size:10px;line-height:1.8;color:var(--muted);margin:5px 0 22px}.table-wrap{overflow-x:auto;background:var(--white);border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse;text-align:left;min-width:700px}th{font-size:9px;font-weight:500;color:var(--muted);background:#eeeee7;padding:14px 20px;border-bottom:1px solid var(--line)}td{font-size:11px;padding:18px 20px;border-bottom:1px solid var(--line)}td>strong{display:block;font-size:12px;font-weight:500;line-height:1.7}td>small{display:block;font-size:10px;color:var(--muted);margin-top:4px}td .text-link{font-size:10px}td.amount{white-space:nowrap}.payment-late{color:var(--red);border-color:#e4c8b7;background:#f8ece4}.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;align-items:start}.integration-card{padding:28px}.provider-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.trello-wordmark{font-size:25px;letter-spacing:-.04em;color:var(--olive);font-weight:600}.integration-card h2{font:31px/1.1 var(--serif);letter-spacing:-.03em}.integration-card>p{font-size:12px;color:var(--muted);line-height:1.9;margin:18px 0 24px}.integration-card>small{font-size:10px;color:var(--muted);display:block;margin:17px 0}.integration-card>.text-link{font-size:10px}.integration-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px;padding-top:20px;border-top:1px solid var(--line)}.list-mappings{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.list-mappings .field>span{font-size:10px}.list-mappings select{font-size:11px}.info-callout{padding:23px 27px;margin:26px 0;border:1px solid #d6decb;background:#eaf0e1;border-radius:5px}.info-callout h3{font:25px/1.2 var(--serif);letter-spacing:-.02em;margin-bottom:11px}.info-callout p{font-size:11px;color:var(--muted);line-height:1.9;max-width:850px}.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.team-card{display:flex;align-items:flex-start;flex-direction:column;gap:16px}.person-avatar{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:#e6ecdb;border:1px solid #d2ddc2;color:var(--olive);font-size:13px}.team-card h2{font:28px/1.1 var(--serif);letter-spacing:-.025em}.team-card p{font-size:11px;color:var(--muted);margin-top:-7px;overflow-wrap:anywhere}.team-tags{display:flex;gap:8px;flex-wrap:wrap}.team-card>small{font-size:10px;color:var(--muted)}.team-card>.button{margin-top:3px}.history-list{border-left:1px solid #cbd5bd;margin-left:5px}.history-row{display:flex;align-items:flex-start;gap:22px;position:relative;padding:0 0 30px}.history-marker{width:9px;height:9px;position:absolute;background:var(--olive);border:2px solid var(--paper);border-radius:50%;top:4px;left:-5px}.history-row>div{padding-left:22px}.history-row strong{font-size:12px;font-weight:500}.history-row p{font-size:11px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.history-row small{font-size:9px;color:#8b9480}.footer{max-width:1480px;margin:auto;padding:0 40px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:9px;color:#8b9380}.mobile-nav{display:none}dialog{width:min(730px,calc(100vw - 30px));max-height:92dvh;border:1px solid var(--line);border-radius:9px;padding:0;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1e281b80;backdrop-filter:blur(3px)}.dialog-body{padding:35px;position:relative}.dialog-close{position:absolute;right:13px;top:12px;font-size:28px;line-height:1;width:36px;min-height:36px;color:var(--muted)}.dialog-body>.eyebrow,.dialog-body #dialog-content>.eyebrow{font-size:8px}.dialog-body h2{font:35px/1.1 var(--serif);letter-spacing:-.03em;margin:10px 32px 26px 0;overflow-wrap:anywhere}.dialog-body .field input,.dialog-body .field select{font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:23px;border-top:1px solid var(--line);padding-top:20px}.form-error,.inline-error{border:1px solid #e5c9b7;background:#f8eee5;color:var(--red);padding:11px 14px;font-size:12px;line-height:1.7;border-radius:4px;margin:15px 0}.inline-error{margin-bottom:22px}.dialog-description{font-size:12px;color:var(--muted);margin:-10px 0 22px;line-height:1.9}.dialog-extra{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.case-detail-meta{display:flex;gap:12px 25px;flex-wrap:wrap;margin:15px 0;font-size:11px;color:var(--muted)}.case-detail-meta strong{font-weight:500;color:var(--ink)}.case-notes{white-space:pre-wrap;font-size:12px;line-height:1.9;color:var(--muted);border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin:23px 0}.detail-section-title{font:27px/1.2 var(--serif);margin:28px 0 18px}.lookup-results{border:1px solid var(--line);border-radius:4px;background:var(--white);padding:8px;margin:5px 0 20px;font-size:11px;max-height:230px;overflow:auto}.lookup-results button{display:block;width:100%;text-align:left;padding:10px;border-bottom:1px solid var(--line);font-size:12px}.lookup-results button:last-child{border-bottom:0}.lookup-results button:hover{background:#eef1e7}.lookup-results small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.webhook-events{font-size:11px;color:var(--muted);line-height:2;overflow-wrap:anywhere;margin-bottom:25px}.notice{position:fixed;bottom:25px;left:calc(50% + var(--side)/2);transform:translateX(-50%);padding:14px 22px;max-width:min(650px,calc(100vw - 35px));width:max-content;background:var(--dark);color:var(--paper);box-shadow:0 6px 30px #0002;border-radius:6px;font-size:12px;line-height:1.7;z-index:90}.notice.error{background:#744235}.muted{font-size:10px;color:var(--muted)}
@media(min-width:1650px){:root{--side:255px}.sidebar{padding-inline:27px}.brand{width:190px}.topbar{padding-inline:55px}main{padding-inline:55px}.page-heading h1{font-size:45px}.panel{padding:27px}.item-row{padding-block:20px}.item-title{font-size:13px}.stat{padding:25px}.case-card{padding:26px}.footer{padding-inline:55px}}
@media(max-width:1250px){:root{--side:208px}.sidebar{padding-inline:14px}.brand{width:159px}.topbar{padding-inline:27px}main{padding:29px 27px 35px}.page-heading h1{font-size:35px}.page-heading{gap:15px}.heading-actions .button{font-size:10px;padding:11px 13px}.stats{gap:10px}.stat{padding:18px}.stat strong{font-size:34px}.stat>span{font-size:9px}.dashboard-columns{grid-template-columns:minmax(0,2fr) minmax(210px,1fr);gap:17px}.panel{padding:19px}.section-title h2{font-size:24px}.item-row{gap:9px}.item-meta .tag{display:none}.item-title{font-size:11px}.item-sub{font-size:8px}.item-meta .due{font-size:9px}.item-row>.icon-button{width:27px;padding:5px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-grid{gap:17px}.integration-card{padding:23px}.integration-card h2{font-size:29px}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar{gap:15px}.filter-bar .field{min-width:170px}.finance-stats strong{font-size:25px}.footer{padding-inline:27px}.auth-brand{padding:40px}.auth-brand h1{font-size:42px}.auth-panel{padding-inline:45px}}
@media(max-width:1000px){:root{--side:0px}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:78px;padding-inline:30px}main{padding:29px 30px 35px}.page-heading h1{font-size:40px}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;background:#f7f7effa;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:7px 10px max(8px,env(safe-area-inset-bottom));height:calc(71px + env(safe-area-inset-bottom));z-index:25;gap:5px;overflow-x:auto}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:76px;flex:1;color:var(--muted);font-size:8px;padding:5px;border-radius:6px}.mobile-nav button>.ico{width:20px;height:20px}.mobile-nav button.active{background:#e5ecd9;color:var(--dark)}.footer{padding-bottom:calc(100px + env(safe-area-inset-bottom));padding-inline:30px}.notice{left:50%;bottom:calc(87px + env(safe-area-inset-bottom))}.auth-layout{grid-template-columns:.9fr 1fr}.auth-brand{padding:35px}.auth-brand h1{font-size:38px}.auth-panel{padding-inline:35px}.auth-brand img{width:195px}.auth-brand p{font-size:12px}.auth-card h2{font-size:34px}.item-title{font-size:12px}.item-sub{font-size:9px}.item-meta .tag{display:inline-flex}.item-meta .due{font-size:10px}.stats .stat>span{font-size:10px}.stat strong{font-size:38px}.stat small{font-size:9px}}
@media(max-width:700px){.topbar{padding-inline:21px;height:73px}.topbar .eyebrow{font-size:6px}.topbar strong{font-size:12px}.top-actions{gap:6px}.user-pill b{display:none}.top-actions .icon-button{width:33px;padding:7px}.user-pill{padding:0 3px}main{padding:26px 21px 30px}.page-heading{flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:23px}.page-heading h1{font-size:36px;line-height:1.12}.page-heading .eyebrow{font-size:8px}.page-heading p{font-size:12px;line-height:1.9;margin-top:14px}.heading-actions{gap:8px}.heading-actions .button{font-size:11px;min-height:42px;padding:10px 14px}.dashboard-date{align-items:flex-start;flex-direction:column;gap:14px}.dashboard-date>span{font-size:11px}.dashboard-date .field{width:100%;justify-content:space-between}.dashboard-date .field>span{font-size:10px}.dashboard-date .field select{width:65%;font-size:11px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.stat{padding:19px 18px;gap:8px}.stats .stat>span{font-size:10px}.stat strong{font-size:39px}.stat small{font-size:9px}.dashboard-columns{grid-template-columns:1fr;gap:20px}.panel{padding:20px}.section-title h2{font-size:26px}.section-title .text-link{font-size:10px;gap:5px}.item-row{gap:11px;position:relative;flex-wrap:wrap;padding:18px 0}.completion{margin-top:2px;width:20px;height:20px}.item-main{flex-basis:calc(100% - 65px);min-width:0}.item-title{font-size:13px}.item-sub{font-size:10px}.item-meta{flex-direction:row;align-items:center;gap:10px;margin-left:31px;width:calc(100% - 64px)}.item-row>.icon-button{position:absolute;right:-3px;top:15px;width:29px}.item-meta .due{font-size:10px}.item-meta .tag{font-size:8px}.side-panel h2{font-size:32px}.workflow-counts>div{font-size:12px;padding:13px 0}.workflow-counts b{font-size:15px}.side-panel .button{font-size:11px}.integration-mini strong{font-size:12px}.integration-mini small{font-size:10px}.empty{padding:25px 7px;min-height:220px}.empty h2{font-size:29px}.empty p{font-size:12px}.empty .button{font-size:11px;min-height:42px}.filter-bar{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}.filter-bar .field{width:100%}.filter-bar select{font-size:12px}.search{max-width:none;width:100%}.search input{font-size:12px}.toggle{margin-left:0;font-size:11px;min-height:31px}.case-grid{grid-template-columns:1fr;gap:15px}.case-card{padding:24px}.case-card-top{font-size:9px}.case-open h2{font-size:31px}.case-open p{font-size:11px}.case-client>span{font-size:10px}.case-client strong{font-size:12px}.case-counts{font-size:10px}.case-card-foot{font-size:10px}.case-card-foot .text-link{font-size:11px}.chips{gap:6px}.chip{font-size:10px;padding:8px 13px;min-height:38px}.kanban-column{min-width:calc(100vw - 70px);padding:17px;max-width:none;flex:none}.column-title{font-size:13px}.column-title b{font-size:10px}.task-card{padding:20px}.task-open h3{font-size:14px}.task-open p{font-size:11px}.priority{font-size:8px}.task-card .due{font-size:11px}.task-person{font-size:10px}.task-actions select{min-height:37px;font-size:11px;padding:8px}.task-actions .icon-button{width:34px;min-height:34px}.column-empty{font-size:11px}.calendar-toolbar{gap:6px}.calendar-toolbar h2{font-size:25px;flex:1;text-align:center}.calendar-toolbar>.icon-button{width:30px}.calendar-toolbar>.button{font-size:9px;min-height:33px;padding:8px}.calendar-day{min-height:70px;padding:7px 4px;gap:5px}.calendar-day>span{font-size:10px;width:20px;height:20px}.calendar-day small{height:5px;line-height:0;color:transparent!important;padding:0;font-size:0;border-radius:2px}.calendar-day b{font-size:8px}.weekday{font-size:8px;padding:9px 2px}.day-panel{margin-top:20px}.provider-banner{gap:18px;padding:16px 18px;flex-wrap:wrap}.provider-name{font-size:31px}.provider-banner strong{font-size:11px}.provider-banner small{font-size:9px}.provider-banner .button{margin-left:0}.finance-stats{grid-template-columns:1fr;gap:10px}.finance-stats .stat{padding:20px;display:grid;grid-template-columns:1fr auto}.finance-stats .stat strong{font-size:30px;grid-column:2;grid-row:1/3}.finance-stats .stat small{grid-column:1}.footnote{font-size:10px}.integration-grid{grid-template-columns:1fr;gap:22px}.integration-card{padding:24px}.integration-card h2{font-size:33px}.integration-card>p{font-size:12px;line-height:1.9}.provider-title .tag{font-size:8px}.integration-card .field>span{font-size:11px}.list-mappings{gap:0 10px}.list-mappings select{font-size:11px}.integration-actions .button{font-size:11px;min-height:40px}.integration-actions .text-link{font-size:11px}.integration-card>small{font-size:10px}.info-callout{padding:22px}.info-callout h3{font-size:27px}.info-callout p{font-size:12px}.team-grid{grid-template-columns:1fr;gap:16px}.team-card{padding:25px}.team-card h2{font-size:31px}.team-card p{font-size:12px}.team-card>small{font-size:11px}.history-row strong{font-size:13px}.history-row p{font-size:12px}.history-row small{font-size:10px}.footer{padding-inline:21px;font-size:8px;align-items:flex-start;flex-direction:column;gap:5px}.mobile-nav button{min-width:70px;font-size:8px}.notice{font-size:11px;width:calc(100vw - 35px);text-align:center}.dialog-body{padding:30px 23px}.dialog-body h2{font-size:32px;margin-bottom:25px}.form-grid{grid-template-columns:1fr;gap:0}.field>span{font-size:12px}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:45px}.dialog-body .field input,.dialog-body .field select{font-size:16px}.form-footer .button{font-size:12px;min-height:43px}.dialog-description{font-size:12px}.case-detail-meta{font-size:11px;flex-direction:column;align-items:flex-start;gap:9px}.case-notes{font-size:12px}.detail-section-title{font-size:27px}.detail-actions .button{font-size:10px;min-height:36px}.auth-layout{grid-template-columns:1fr}.auth-brand{padding:29px 25px;gap:35px;min-height:auto}.auth-brand img{width:165px}.auth-brand h1{font-size:34px}.auth-brand .eyebrow{font-size:7px;margin-bottom:15px}.auth-brand p{display:none}.auth-brand>small{display:none}.auth-panel{padding:48px 26px 30px;align-items:flex-start}.back-link{left:26px;top:13px;font-size:10px;min-height:28px}.auth-card{max-width:none;padding:22px 0}.auth-symbol{width:43px;height:43px;margin-bottom:19px}.auth-card h2{font-size:34px}.auth-card>p{font-size:12px}.auth-card .auth-foot{font-size:10px}.auth-card .field input{font-size:16px}.auth-card .button{min-height:46px;font-size:13px}.setup-unavailable{padding:25px}.setup-unavailable h1{font-size:34px}.setup-unavailable p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}

.mail-warning{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:15px 18px;border:1px solid var(--line);border-radius:6px;background:var(--cream);margin-bottom:22px}.mail-warning strong{display:block;font-size:13px}.mail-warning p{font-size:12px;color:var(--muted);margin:4px 0}@media(max-width:760px){.mail-warning{flex-direction:column;align-items:flex-start}}

/* Conferência, comprovantes, recuperação e modelos de rotina. */
.workflow-box{padding:18px;margin:18px 0;border:1px solid var(--line);border-radius:6px;background:var(--white)}.workflow-box h3{font:24px/1.25 var(--serif);margin:0 0 16px}.workflow-check{display:flex;gap:10px;align-items:flex-start;margin:16px 0;font-size:13px;line-height:1.6}.workflow-check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--olive)}.workflow-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}.danger-link{color:var(--red)}.review-tag{display:inline-block;font-size:10px;padding:3px 8px;border:1px solid var(--line);border-radius:4px;white-space:normal;font-weight:500;margin:4px 6px 4px 0}.reviewed{color:var(--olive)}.unreviewed{color:var(--red)}.internal-date{display:block;color:var(--muted);font-size:11px;font-weight:400;margin:3px 0}.receipt-link{display:flex;gap:10px;align-items:center;padding:12px 0;overflow-wrap:anywhere;color:var(--olive)}.receipt-link small{margin-left:auto;color:var(--muted);font-size:10px;flex:none}.workflow-dates{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin:22px 0}.workflow-dates dt{color:var(--muted)}.workflow-dates dd{margin:0;font-weight:500}.history-changes{margin:12px 0 0;max-width:850px}.history-changes>div{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:10px 0;border-top:1px solid var(--line)}.history-changes dt{font-size:11px;color:var(--muted)}.history-changes dd{margin:0;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.change-before{color:var(--muted)}.change-after{font-weight:500}.trash-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.trash-row:last-child{border:0}.trash-row h3{font:26px/1.3 var(--serif);overflow-wrap:anywhere}.trash-row p{margin:8px 0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.trash-row small{color:var(--muted)}.trash-row .button{flex:none}.workflow-preferences{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}.workflow-preferences h2{font:30px/1.2 var(--serif);margin-bottom:20px}.workflow-preferences p{color:var(--muted)}.workflow-preferences .text-link,.workflow-preferences aside>.button{display:flex;margin-top:22px}.workflow-spaced{margin-top:20px}.routine-card h2{font:31px/1.2 var(--serif);margin:12px 0}.routine-card>p{color:var(--muted);font-size:12px;min-height:42px}.routine-card ol{padding-left:18px;font-size:12px;margin:18px 0}.routine-card li{padding:5px 0}.routine-step{border:1px solid var(--line);border-radius:5px;margin:22px 0;padding:18px;min-width:0}.routine-step legend{font-size:12px;color:var(--olive);padding:0 8px}.routine-preview{margin:20px 0;padding:0;list-style:none;border-top:1px solid var(--line)}.routine-preview li{padding:15px 0;border-bottom:1px solid var(--line)}.routine-preview strong,.routine-preview span,.routine-preview small{display:block}.routine-preview strong{font-weight:500}.routine-preview span{font-size:12px;color:var(--olive);margin-top:4px}.routine-preview small{font-size:11px;color:var(--muted);white-space:pre-wrap;margin-top:6px}
@media(max-width:760px){.workflow-preferences{grid-template-columns:1fr}.workflow-dates{grid-template-columns:1fr;gap:5px}.workflow-dates dd{margin-bottom:12px}.history-changes>div{grid-template-columns:1fr;gap:4px}.trash-row{align-items:flex-start;flex-direction:column}.receipt-link{flex-wrap:wrap}.receipt-link small{width:100%;margin-left:30px}.routine-step{padding:15px}.workflow-actions{gap:10px}.workflow-actions .button{flex:1;min-width:150px}}
html[data-cm-theme=dark] :is(.unreviewed,.danger-link){color:#ffc3a7}

/* Unified finance entry. */
.finance-intro{padding:25px;margin:20px 0}.finance-intro p{margin:12px 0 20px;color:var(--muted)}.finance-history{padding:20px}.finance-history>div{margin-top:25px}
