@font-face{font-family:Inter;src:url('/assets/Inter.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{--canvas:#c9cdc4;--surface:#fff;--shell:#f8f9f3;--ink:#171914;--muted:#73796d;--line:#e9ece3;--accent:#FF4019;--accent-soft:#fff0eb;--danger:#b6433e;--radius:14px;--shadow:0 10px 35px #20271907;font-family:Inter,Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);height:100dvh;overflow:hidden}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button{color:inherit}a{color:inherit}input,select,textarea{width:100%;border:1px solid #dce1d4;border-radius:8px;background:#fff;padding:11px 12px;color:var(--ink);outline:none;min-width:0}textarea{resize:vertical;min-height:100px;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:#cc3314;box-shadow:0 0 0 3px #FF401933}label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}form label:not(:first-child){margin-top:18px}button:focus-visible,a:focus-visible{outline:2px solid #c43113;outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:600;letter-spacing:-1px;line-height:1.2}h2{font-size:20px;font-weight:600;letter-spacing:-.5px}h3{font-size:14px;font-weight:600}p{line-height:1.6}small{font-size:11px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.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}
.workspace{height:calc(100dvh - 48px);margin:24px;border:1px solid #ffffff70;border-radius:24px;background:var(--shell);display:flex;overflow:hidden;box-shadow:0 35px 80px #23291e1a}.sidebar{width:212px;flex:0 0 212px;padding:25px 15px 16px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:linear-gradient(165deg,#fafbf6e8,#f6f8edbf);backdrop-filter:blur(12px);height:100%;overflow:hidden}.brand{display:block;margin:0 10px 27px}.brand img{width:83px;height:36px;object-fit:contain;object-position:left}.studio-switch{display:flex;align-items:center;gap:9px;padding:11px 9px;border:1px solid #e4e8dc;border-radius:10px;margin-bottom:27px;background:#ffffffa6}.studio-avatar{width:29px;height:29px;background:var(--accent);border-radius:8px;display:grid;place-items:center;flex:none;font-size:12px;font-weight:600}.studio-switch strong{font-size:11px;line-height:1.5;display:block;overflow:hidden;max-width:132px;text-overflow:ellipsis;white-space:nowrap}.studio-switch span:not(.studio-avatar){font-size:10px;color:var(--muted);display:block;margin-top:3px}.nav-label{font-size:9px;letter-spacing:1.2px;color:var(--muted);margin:0 10px 10px}nav{display:flex;flex-direction:column;gap:3px}.nav-item{display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;padding:10px;border-radius:6px;font-size:12px;font-weight:500;min-height:36px}.nav-item svg{width:16px;height:16px}.nav-item:hover{background:#fff2ed}.nav-item.active{background:var(--accent);color:#171a10}.nav-count{margin-left:auto;background:#ffe4db;min-width:19px;text-align:center;padding:2px 5px;border-radius:6px;font-size:9px}.nav-item.active .nav-count{background:#ffffff88}.nav-divider{height:14px}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;border-top:1px solid var(--line);padding-top:14px;gap:3px}.user-card{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;background:none;text-align:left;padding:0}.user-card strong{display:block;font-size:11px;max-width:105px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.user-card small{color:var(--muted);font-size:9px;margin-top:4px;display:block}.avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#191c16;color:#fff;font-size:10px;font-weight:500;flex:none}.main{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.topbar{height:66px;flex:none;padding:0 30px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e8ebdf88;background:#fafbf5cc;backdrop-filter:blur(12px)}.breadcrumb{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center}.breadcrumb strong{color:var(--ink);font-weight:500}.breadcrumb span{color:#b7beb0}.topbar-right{margin-left:auto;display:flex;gap:14px;align-items:center}.search-launch{border:0;background:none;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.search-launch svg{width:15px;height:15px}.search-launch kbd{font-size:10px;border:1px solid var(--line);padding:2px 5px;border-radius:4px;margin-left:17px}.icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:22px;flex:none}.icon-button:hover{background:#fff2ed}.icon-button svg{width:16px;height:16px}.mobile-menu{display:none}.scroll-content{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:30px 30px 40px;scrollbar-width:thin;scrollbar-color:#ccd3c1 transparent}#page{max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.page-heading p{font-size:12px;color:var(--muted);margin-top:9px}.eyebrow{display:block;font-size:9px;font-weight:600;letter-spacing:1.3px;margin-bottom:12px;color:var(--muted)}.button{border:1px solid transparent;border-radius:7px;padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap;min-height:38px}.button svg{width:15px;height:15px}.primary{background:#171a14;color:#fff}.primary:hover{background:#30362a}.secondary{background:#fff;border-color:#dfe4d7}.secondary:hover{background:#fff5f1}.lime{background:var(--accent);color:#1d2412}.danger{color:var(--danger);background:#fff5f4;border-color:#efd9d7}.text-button{border:0;background:none;color:var(--muted);font-size:11px;padding:5px;text-decoration:underline;text-underline-offset:3px}.wide{width:100%}.button-group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;min-height:115px}.stat.black{background:#191c16;color:#fff;border-color:#191c16}.stat.lime{background:var(--accent);border-color:var(--accent)}.stat-label{font-size:11px;font-weight:500;line-height:1.4;opacity:.8}.stat-value{font-size:30px;letter-spacing:-1px;margin-top:13px;font-weight:500}.stat-hint{font-size:10px;margin-top:7px;opacity:.6}.panel{background:#ffffffed;border:1px solid #e9ece2;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;backdrop-filter:blur(8px)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.panel-head p{font-size:11px;color:var(--muted);margin-top:5px}.panel-body{padding:24px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px}.stack{display:flex;flex-direction:column;gap:20px}.span-full{grid-column:1/-1}.empty{padding:48px 22px;text-align:center;color:var(--muted);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.empty-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#f6f8f0;color:#909985}.empty-mark svg{width:20px;height:20px}.empty h3{color:var(--ink);font-weight:500}.empty p{max-width:330px;font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:9px;letter-spacing:.65px;color:var(--muted);font-weight:500;background:#fafbf7;padding:12px 20px;white-space:nowrap}td{padding:17px 20px;border-top:1px solid #eef0e8;vertical-align:middle}tr[data-action]{cursor:pointer}tbody tr:hover{background:#fff9f6}td strong{display:block;font-size:12px;font-weight:500}td small{display:block;color:var(--muted);margin-top:6px;font-size:10px}.cell-actions{display:flex;gap:6px;justify-content:flex-end}.badge{display:inline-flex;align-items:center;border-radius:5px;font-size:9px;font-weight:500;padding:5px 7px;white-space:nowrap;background:#eff2e9;color:#5c6554}.badge.green{background:var(--accent-soft);color:#8a230e}.badge.red{background:#fbefed;color:#9c5149}.badge.black{background:#242a1d;color:#fff}.progress{height:4px;width:90px;background:#ffebe4;border-radius:5px;margin-top:7px;overflow:hidden}.progress span{display:block;height:100%;background:#FF4019}.toolbar{padding:16px 20px;display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid var(--line)}.toolbar input{width:240px;font-size:11px;padding:9px 11px}.toolbar select{width:auto;max-width:180px;font-size:11px;padding:9px 30px 9px 11px}.segment{display:flex;padding:3px;background:#f1f4eb;border:1px solid var(--line);border-radius:7px}.segment button{border:0;background:none;border-radius:4px;padding:6px 10px;font-size:10px;color:var(--muted)}.segment button.active{background:#fff;color:#111;box-shadow:0 1px 4px #1a201012}.board{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;overflow-x:auto;min-height:430px;padding:20px}.board-column{background:#f7f9f3;border-radius:9px;padding:12px;min-width:160px}.board-column.done{background:#fff0e9}.column-head{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.8px;color:#69725e;padding:3px 0 15px}.task-card{border:1px solid #edf0e6;background:#fff;padding:15px 12px;display:block;width:100%;border-radius:7px;text-align:left;margin-bottom:9px;box-shadow:0 2px 7px #1a201003}.task-card:hover{border-color:#ffb29e}.task-card h3{font-size:12px;font-weight:500;line-height:1.5;margin:0 0 14px}.task-card p{font-size:10px;color:var(--muted);margin-top:5px}.card-footer{display:flex;justify-content:space-between;gap:8px;margin-top:15px;align-items:center}.mini-avatar{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#ffe8df;font-size:8px}.list-row{display:flex;align-items:center;gap:12px;padding:17px 24px;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-row .row-copy{flex:1;min-width:0}.list-row strong{font-size:12px;font-weight:500;display:block}.list-row small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.list-row button{flex:none}.calendar-list{padding:8px 0}.date-box{width:37px;height:42px;background:#fff3ed;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;font-size:15px}.date-box small{font-size:8px;margin-top:3px;text-transform:uppercase}.chart{height:205px;display:flex;align-items:flex-end;gap:12px;padding:20px 10px 0;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0e7 calc(25% - 1px),#edf0e7 25%)}.chart-bar{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%;position:relative;gap:3px}.chart-bar i{display:block;background:#1b2015;width:10px;border-radius:6px;min-height:2px}.chart-bar i.light{background:#FF4019}.chart-axis{display:flex;justify-content:space-around;font-size:9px;color:var(--muted);padding:15px 0 0}.chart-caption{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;margin-bottom:10px}.chart-legend{display:flex;gap:14px;font-size:10px;color:var(--muted);margin-top:20px}.chart-legend i{display:inline-block;width:7px;height:7px;background:#1b2015;border-radius:3px;margin-right:5px}.chart-legend i.light{background:#FF4019}.privacy-note{padding:45px 24px;display:flex;align-items:center;flex-direction:column;gap:12px;text-align:center;color:var(--muted);font-size:12px}.privacy-note svg{width:24px;height:24px}.billing-metrics{display:flex;gap:12px;flex-wrap:wrap;padding:20px}.billing-metrics .stat{flex:1;min-width:180px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.report-stat{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.report-stat:last-child{border:0}.muted{color:var(--muted)}.notice{background:#fff2ec;border:1px solid #ffd6c9;padding:15px 18px;font-size:12px;line-height:1.6;border-radius:8px;margin-bottom:18px}.linked-file{display:flex;align-items:center;gap:9px;background:#fff5f1;border:1px solid #ffddd2;padding:15px;border-radius:8px;text-decoration:none;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{min-width:0}.field label{margin-top:0}.field.full{grid-column:1/-1}.form-section{margin-top:26px;margin-bottom:15px;padding-top:21px;border-top:1px solid var(--line);font-size:11px;font-weight:600}.form-section:first-child{margin-top:0;padding-top:0;border:0}.hint{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.5}.form-error{color:var(--danger);font-size:12px;line-height:1.5;margin:16px 24px}.form-error:empty{display:none}.form-dialog,.detail-dialog,.search-dialog{border:1px solid #e6ebdd;box-shadow:0 30px 90px #1c24152b;padding:0;background:#fff;border-radius:16px;max-height:calc(100dvh - 48px);color:var(--ink);width:min(620px,calc(100vw - 32px));overflow:auto;scrollbar-width:thin}dialog::backdrop{background:#20271840;backdrop-filter:blur(3px)}.form-dialog.invoice-editor{width:min(840px,calc(100vw - 32px))}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:2}.dialog-header .eyebrow{margin-bottom:7px}.dialog-body{padding:24px}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 24px;background:#fbfcf7;border-top:1px solid var(--line);position:sticky;bottom:0;z-index:2}.detail-dialog{width:min(660px,calc(100vw - 32px))}.detail-section{padding:24px;border-bottom:1px solid var(--line)}.detail-section h3{margin-bottom:15px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid dt{font-size:10px;color:var(--muted);margin-bottom:7px}.detail-grid dd{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.detail-text{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.invoice-detail{width:min(970px,calc(100vw - 32px))}.invoice-document{margin:25px;background:#fff;border:1px solid #e3e7da;padding:35px;min-height:500px;font-size:12px;line-height:1.7}.invoice-doc-top{display:flex;justify-content:space-between;gap:25px;margin-bottom:40px}.invoice-document h2{font-size:23px;margin-bottom:12px}.invoice-document .bill-to{margin-bottom:30px}.invoice-document table{margin:25px 0}.invoice-document td,.invoice-document th{padding:12px 8px}.invoice-totals{margin-left:auto;width:285px}.invoice-totals div{display:flex;justify-content:space-between;padding:7px 0}.invoice-totals .total{font-weight:600;background:#fff0e9;padding:12px;margin:8px -12px}.invoice-notes{margin-top:30px;white-space:pre-wrap;overflow-wrap:anywhere}.line-items{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.line-item{display:grid;grid-template-columns:minmax(150px,1fr) 75px 110px 32px;gap:8px;align-items:end}.line-item label{font-size:10px;margin-bottom:6px}.line-item textarea{min-height:43px;height:43px;padding:10px;font-size:12px}.line-item input{font-size:12px}.line-item .icon-button{height:43px}.invoice-live-total{padding:15px;background:#fff0e9;border-radius:8px;margin-top:16px;font-size:12px;display:flex;justify-content:space-between}.payment-row{padding:15px 0;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);font-size:12px}.search-dialog{width:min(660px,calc(100vw - 32px));margin-top:10vh}.search-dialog-top{display:flex;align-items:center;padding:15px;gap:8px;border-bottom:1px solid var(--line)}.search-dialog input{border:0;font-size:14px;box-shadow:none}.search-result{border:0;background:none;text-align:left;width:100%;display:flex;justify-content:space-between;padding:17px 22px;font-size:12px}.search-result:hover{background:#fff2ed}.search-result small{color:var(--muted)}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:10;border:1px solid #38432a;background:#20271a;color:#fff;border-radius:10px;padding:13px 20px;font-size:12px;box-shadow:0 8px 25px #1b241e22;max-width:calc(100vw - 40px);text-align:center}.auth-screen{height:100dvh;overflow:auto;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 18% 70%,#ffe5db,transparent 50%),#f5f7ee;position:relative;padding:50px 24px;gap:100px}.auth-brand img{width:155px;height:80px;object-fit:contain;object-position:left;display:block;margin-bottom:30px}.auth-brand span{font-size:31px;font-weight:500;letter-spacing:-1px;line-height:1.4}.auth-card{width:375px;background:#ffffffc9;border:1px solid #fff;border-radius:18px;padding:35px;box-shadow:0 15px 60px #2736190a;backdrop-filter:blur(10px)}.auth-card h1{font-size:29px;margin-bottom:12px}.auth-card>p{font-size:12px;color:var(--muted)}.auth-card form{margin-top:29px}.auth-card .form-error{margin:14px 0}.auth-card .wide{margin-top:22px;justify-content:space-between}.password-wrap{position:relative}.password-wrap input{padding-right:60px}.password-wrap button{position:absolute;right:10px;top:11px;font-size:10px;background:none;border:0;padding:4px}.auth-help{font-size:10px!important;margin-top:23px}.auth-footer{position:absolute;bottom:25px;font-size:9px;letter-spacing:1.5px;color:#7d886f}.nav-scrim{display:none}.error-state{padding:50px;text-align:center}.error-state p{margin:15px;color:var(--muted)}
@media(min-width:1500px){.sidebar{width:225px;flex-basis:225px}.topbar{padding:0 42px}.scroll-content{padding:36px 42px 48px}.stats{gap:16px}.overview-grid{gap:24px}}
@media(max-height:800px) and (min-width:901px){.sidebar{padding-top:18px}.brand{margin-bottom:15px}.studio-switch{margin-bottom:16px}.nav-item{padding:8px 10px;min-height:32px}.nav-divider{height:7px}.sidebar-bottom{padding-top:10px}}
@media(max-height:650px) and (min-width:901px){.workspace{margin:12px;height:calc(100dvh - 24px)}.studio-switch{display:none}.brand{margin-bottom:12px}.nav-item{padding:6px 10px;min-height:29px}.nav-label{margin-bottom:6px}.sidebar-bottom{padding-top:8px}.user-card small{display:none}}
@media(max-width:1100px){.sidebar{width:190px;flex-basis:190px}.overview-grid{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:16px}.stat-value{font-size:26px}.scroll-content{padding:25px}.topbar{padding:0 25px}.search-launch span:not(:first-child),.search-launch kbd{display:none}.board{gap:8px;padding:15px}.report-grid{grid-template-columns:1fr}}
@media(max-width:900px){.workspace{margin:12px;height:calc(100dvh - 24px);border-radius:17px}.sidebar{position:fixed;left:12px;top:12px;bottom:12px;height:calc(100dvh - 24px);width:220px;z-index:5;border-radius:17px 0 0 17px;transform:translateX(-250px);transition:transform .2s ease;background:#f9fbf2}.sidebar.open{transform:translateX(0)}.nav-scrim.open{display:block;position:fixed;inset:0;z-index:4;background:#1d25143d;border:0;backdrop-filter:blur(2px)}.mobile-menu{display:grid}.topbar{height:60px;padding:0 20px}.scroll-content{padding:25px 20px}.stats{grid-template-columns:repeat(4,1fr)}.board{grid-template-columns:repeat(4,200px)}.auth-screen{gap:50px}.auth-brand span{font-size:26px}}
@media(max-width:600px){.workspace{margin:0;height:100dvh;border-radius:0;border:0}.sidebar{left:0;top:0;bottom:0;height:100dvh;border-radius:0}.topbar{padding:0 15px}.topbar-right{gap:7px}.topAvatar{display:none}.breadcrumb{font-size:10px;gap:6px}.scroll-content{padding:23px 15px 35px}.page-heading{align-items:flex-start;gap:15px;margin-bottom:22px;flex-wrap:wrap}h1{font-size:25px}.page-heading p{font-size:11px;max-width:280px}.stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:18px}.stat{min-height:102px;padding:17px}.stat-value{font-size:26px}.overview-grid,.stack{gap:16px}.panel-head{padding:18px;gap:10px}.panel-body{padding:18px}.panel-head .button{font-size:10px;padding:8px 10px;min-height:32px}.toolbar{padding:13px;flex-wrap:wrap}.toolbar input{width:100%}.toolbar select{flex:1;max-width:100%}.list-row{padding:16px 18px}.form-grid,.detail-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.dialog-header,.dialog-body,.detail-section{padding:20px}.dialog-footer{padding:15px 20px}.form-dialog,.detail-dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);border-radius:12px}.invoice-document{margin:10px;padding:20px;font-size:11px}.invoice-doc-top{flex-direction:column;gap:20px;margin-bottom:25px}.invoice-document table{font-size:10px}.invoice-document td,.invoice-document th{padding:9px 4px;white-space:normal}.invoice-totals{width:100%}.line-item{grid-template-columns:1fr 70px 85px 28px}.line-item textarea{grid-column:1/-1}.line-item{display:flex;flex-wrap:wrap}.line-item .field:first-child{width:100%}.line-item .field:nth-child(2){width:70px}.line-item .field:nth-child(3){flex:1}.line-item .icon-button{width:28px}.auth-screen{flex-direction:column;gap:25px;padding:35px 20px 60px;justify-content:flex-start}.auth-brand img{width:95px;height:45px;margin-bottom:0}.auth-brand span{display:none}.auth-card{width:100%;max-width:380px;padding:28px}.auth-footer{position:static;margin-top:15px}.button-group{gap:6px}.button{font-size:11px;padding:10px 12px}.money{white-space:normal}.chart{gap:6px}.chart-bar i{width:7px}.stat-label{font-size:10px}.board{padding:12px;grid-template-columns:repeat(4,190px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{height:auto;overflow:visible;background:white}.workspace,.auth-screen,.toast{display:none!important}dialog[open]{position:static;width:100%;height:auto;max-height:none;border:0;box-shadow:none;overflow:visible}.dialog-header,.dialog-footer{display:none}.invoice-document{border:0;margin:0;padding:0}}
.page-stack{margin-top:20px}.totals-fields{margin-top:20px}.form-extra-actions{margin-top:20px}.preview-note{font-size:11px;color:var(--muted);padding:15px 25px;background:#fff5f1;border-bottom:1px solid var(--line)}

.project-actions{width:44px;text-align:right}.project-actions .icon-button{width:34px;height:34px;opacity:.55;transition:opacity .15s ease,background .15s ease,color .15s ease}.project-actions .delete-project:hover,.project-actions .delete-project:focus-visible{opacity:1;background:#fff0ed;color:#a93627;border-color:#f0c6bf}.project-actions .delete-project:focus-visible{outline:2px solid var(--accent);outline-offset:2px}tr:hover .project-actions .icon-button{opacity:.9}
@media(max-width:700px){.project-actions .icon-button{opacity:1}}

/* The on-screen invoice uses the same monochrome hierarchy as the PDF. */
@font-face{font-family:BaaalanceDisplay;src:url('/assets/BaaalanceDisplay-ExtraBold.ttf') format('truetype');font-weight:850;font-style:normal;font-display:swap}
.invoice-editorial{color:#000;border:1px solid #ddd;padding:38px;min-height:1060px;line-height:1.5;box-shadow:0 8px 30px #00000006}
.invoice-editorial .invoice-wordmark{font-family:BaaalanceDisplay,Inter,sans-serif;font-size:clamp(28px,4.4vw,54px);font-weight:850;line-height:1.02;letter-spacing:-.055em;text-transform:uppercase;margin:0;overflow-wrap:anywhere}
.invoice-meta-row{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:18px;align-items:start;margin-top:76px;font-size:12px;line-height:1.35}
.invoice-meta-row strong{display:block;overflow-wrap:anywhere}
.invoice-editorial .invoice-meta-row h2{font-family:BaaalanceDisplay,Inter,sans-serif;font-size:38px;font-weight:850;letter-spacing:-1.8px;line-height:1;margin:0;text-align:right}
.invoice-address-row{display:grid;grid-template-columns:1.4fr 1fr;gap:30px;margin:27px 0 24px}
.invoice-address-row .detail-text{font-size:11px;line-height:1.5;color:#000}
.invoice-address-row>p:last-child{justify-self:end;min-width:160px}
.invoice-line-items{overflow-x:auto}
.invoice-editorial table{table-layout:fixed;border-top:1px solid #000;border-bottom:1px solid #000;margin:0;font-size:12px}
.invoice-editorial td,.invoice-editorial th{border:0;background:#fff;color:#000;letter-spacing:0;white-space:normal;padding:12px 0;vertical-align:top;overflow-wrap:anywhere}
.invoice-editorial th{font-size:9px;font-weight:700;padding:12px 0 17px}
.invoice-editorial th:first-child,.invoice-editorial td:first-child{width:56%;padding-right:22px}
.invoice-editorial th:nth-child(2),.invoice-editorial td:nth-child(2){width:6%}
.invoice-editorial th:nth-child(3),.invoice-editorial td:nth-child(3){width:18%}
.invoice-editorial th:nth-child(4),.invoice-editorial td:nth-child(4){width:20%}
.invoice-editorial td:not(:first-child),.invoice-editorial th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.invoice-editorial tr:last-child td{padding-bottom:22px}
.invoice-editorial tr:hover{background:#fff}
.invoice-item-title{font-weight:700;display:block;white-space:pre-wrap}
.invoice-item-subline{display:block;padding-left:13px;white-space:pre-wrap}
.invoice-doc-totals{width:49%;margin:60px 0 0 auto;font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}
.invoice-doc-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:4px 0}
.invoice-doc-totals strong{white-space:nowrap}
.invoice-doc-totals .invoice-balance{border-top:1px solid #000;padding-top:14px;margin-top:12px;font-size:13px;font-weight:750}
.invoice-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;margin-top:118px;padding-top:13px;border-top:1px solid #000}
.invoice-payment-grid h3{font-family:BaaalanceDisplay,Inter,sans-serif;font-size:31px;line-height:1.1;letter-spacing:-1px;font-weight:850;margin:0 0 22px}
.invoice-payment-grid .detail-text{font-size:11px;line-height:1.55;color:#000}
.invoice-payment-grid .invoice-terms h3{font-family:Inter,sans-serif;font-size:10px;font-weight:750;letter-spacing:0;margin:4px 0 26px}
.invoice-issuer{border-top:1px solid #000;margin-top:30px;padding-top:12px;display:grid;grid-template-columns:1.3fr 1fr .6fr;gap:20px}
.invoice-issuer .detail-text{font-size:9px;line-height:1.45;color:#000}
@media(max-width:600px){.invoice-editorial{padding:22px;min-height:0}.invoice-editorial .invoice-wordmark{font-size:29px}.invoice-meta-row{grid-template-columns:1fr 1fr;margin-top:48px;font-size:10px}.invoice-editorial .invoice-meta-row h2{grid-column:1/-1;text-align:left;font-size:32px;margin-top:14px}.invoice-address-row{grid-template-columns:1fr;gap:15px}.invoice-address-row>p:last-child{justify-self:start}.invoice-line-items table{min-width:480px}.invoice-doc-totals{width:100%;margin-top:35px}.invoice-payment-grid{grid-template-columns:1fr;gap:24px;margin-top:65px}.invoice-issuer{grid-template-columns:1fr;gap:12px}}
@media print{.invoice-editorial{padding:0;margin:0;border:0;box-shadow:none}.invoice-line-items{overflow:visible}.invoice-editorial table{min-width:0}.invoice-payment-grid,.invoice-issuer,.invoice-doc-totals{break-inside:avoid}.invoice-editorial tr{break-inside:avoid}}

/* Solid brand accents use white type; pale accents retain dark type. */
.lime,.nav-item.active,.studio-avatar{color:#fff}
.stat.lime .stat-label,.stat.lime .stat-hint{opacity:1}
.nav-item.active .nav-count{background:#00000026;color:#fff}
.link-editor-rows{display:flex;flex-direction:column;gap:14px;margin:18px 0}
.link-editor-row{display:grid;grid-template-columns:minmax(120px,.85fr) minmax(180px,1.4fr) 32px;gap:10px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fafafa}
.link-editor-row .field label{margin:0 0 8px;font-size:11px}
.link-editor-row .icon-button{height:42px}
.saved-link-group{padding-bottom:18px;border-bottom:1px solid var(--line)}
.saved-link-group>.list-row{border-bottom:0}
.saved-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:0 24px}
.named-link{justify-content:space-between;min-width:0;background:#fff;border-color:var(--line)}
.named-link:hover{background:var(--accent-soft);border-color:#ffb29e}
.named-link-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.named-link-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--muted)}
.detail-links{display:flex;flex-direction:column;gap:10px}
@media(max-width:600px){.link-editor-row{grid-template-columns:minmax(0,1fr) 30px;padding:13px}.link-editor-row .field:first-child{grid-column:1/-1}.saved-links{padding:0 18px;grid-template-columns:1fr}}

.task-assignee-picker{min-width:0;border:0;padding:0;margin:0}
.task-assignee-picker legend{font-size:12px;font-weight:600;margin-bottom:8px;padding:0}
.task-assignee-picker>.hint{margin:0 0 9px}
.assignee-options{max-height:190px;overflow-y:auto;border:1px solid #dce1d4;border-radius:8px;background:#fff;padding:4px}
.assignee-options .assignee-option{display:flex;align-items:center;gap:10px;padding:10px 8px;margin:0;cursor:pointer;border-radius:5px}
.assignee-option:hover{background:#fff2ed}
.assignee-option:has(input:checked){background:var(--accent-soft)}
.assignee-option input[type=checkbox]{width:16px;height:16px;margin:0;padding:0;flex:none;accent-color:var(--accent);box-shadow:none}
.assignee-option span{min-width:0;display:flex;flex-direction:column;gap:4px}
.assignee-option strong{font-size:12px;font-weight:550;overflow-wrap:anywhere}
.assignee-option small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.task-assignee-picker #assigneeSelection{margin-top:8px;margin-bottom:0}
.assignee-avatars{display:inline-flex;padding-left:4px;flex-wrap:nowrap}
.assignee-avatars .mini-avatar{margin-left:-4px;border:2px solid #fff;width:25px;height:25px}

.invoice-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.invoice-selection-bar .button{font-size:11px;padding:8px 11px;min-height:34px}
.invoice-select-cell{width:42px;padding-left:20px;padding-right:7px}
.invoice-select-cell input[type=checkbox]{width:16px;height:16px;margin:0;padding:0;accent-color:var(--accent);box-shadow:none;cursor:pointer;vertical-align:middle}
tr.invoice-selected td{background:var(--accent-soft)}
@media(max-width:600px){.invoice-selection-bar{padding:13px;align-items:flex-start;flex-direction:column;gap:10px}.invoice-select-cell{padding-left:13px;width:35px}}

.onboarding-share{display:flex;justify-content:space-between;align-items:center;gap:24px}.onboarding-share a:not(.button){display:block;color:var(--text);font-size:18px;letter-spacing:-.03em;margin:10px 0;text-decoration:none}.onboarding-question{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0;background:#fafbf8}.onboarding-question-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.onboarding-question-top .button{padding:6px 9px;font-size:10px;min-height:30px}.onboarding-question-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.onboarding-question-grid label{display:block;font-size:11px;font-weight:550}.onboarding-question-grid input,.onboarding-question-grid select,.onboarding-question-grid textarea{margin-top:7px}.onboarding-question-grid .full{grid-column:1/-1}@media(max-width:650px){.onboarding-share{align-items:flex-start;flex-direction:column}.onboarding-share a:not(.button){font-size:16px}.onboarding-question-grid{grid-template-columns:1fr}}

/* Let the form builder use the entire dialog, with consistent control rows. */
.onboarding-questions-section{grid-column:1/-1;min-width:0}
.onboarding-question{width:100%;margin:16px 0;padding:22px}
.onboarding-question-top{margin-bottom:20px}
.onboarding-question-top .eyebrow{margin:0}
.onboarding-question-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 18px;align-items:start}
.onboarding-question-grid label,.onboarding-question-grid label:not(:first-child){margin:0;min-width:0;font-size:12px;line-height:1.5}
.onboarding-question-grid label:first-child,.onboarding-question-grid .full{grid-column:1/-1}
.onboarding-question-grid input,.onboarding-question-grid select,.onboarding-question-grid textarea{display:block;width:100%;min-width:0;margin:8px 0 0;font-size:13px}
.onboarding-question-grid [hidden]{display:none!important}
@media(max-width:600px){.onboarding-question{padding:18px}.onboarding-question-grid{grid-template-columns:1fr;gap:18px}.onboarding-question-top{gap:10px}.onboarding-question-top .button{flex-shrink:0}}

/* Consistent dropdown chevrons with room for both the label and arrow. */
select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6559' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;padding-right:42px!important}
select:disabled{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23858b80' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
select[multiple]{background-image:none;padding-right:14px!important}
@media(forced-colors:active){select{appearance:auto;background-image:none;padding-right:14px!important}}
