/* BBF / Studio — light reporting surfaces, violet actions and categorical colour. */
:root{--ink:#25253e;--muted:#9293aa;--brand:#7160e8;--line:#e9eaf3;--radius:12px;--green:#348c83;--bg:#f6f7fb}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#30304a;background:#f7f8fc;font-size:14px}
#app{grid-template-columns:244px minmax(0,1fr)}.sidebar{background:#fafafe;border-color:#ebebf5;padding:20px 14px;gap:3px}.brand{gap:12px;padding:0 8px 29px}.brand-mark{width:39px;height:39px;background:#7561e9;box-shadow:0 4px 12px #7561e92b;border-radius:11px;font-size:11px;letter-spacing:-.3px}.brand strong{font-size:14px;font-weight:650;color:#28273f}.brand span{font-size:10px;color:#80758f;margin-top:4px}.nav-row{font-size:12px;min-height:40px;padding:10px;border-radius:8px;color:#79788f}.nav-row.active{background:#eeebff;color:#7160da}.nav-row.active .ui-icon{color:#7160da}.sidebar .primary{background:#fff;border:1px dashed #dad8eb;color:#858198;min-height:35px;border-radius:7px}.sidebar .primary:hover{background:#f0edff;border-color:#b4a9ef}.side-actions{padding:10px 8px 18px}.group-head{color:#80758f;font-size:10px;font-weight:550;letter-spacing:.05em;padding:9px 9px}.group-head span{display:flex;align-items:center;gap:8px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}.status-0{--status-color:#a18ada;--status-bg:#f1ecfc}.status-1{--status-color:#d5a257;--status-bg:#fcf4e5}.status-2{--status-color:#6f80e4;--status-bg:#eef0fd}.status-3{--status-color:#51a598;--status-bg:#e8f6f2}.status-dot{background:var(--status-color)}.project-row{display:flex;gap:8px;align-items:center;padding:10px 9px 10px 18px;color:#89869e;font-size:12px;border-radius:7px}.project-row.active{background:#eceafb;color:#6655c1}.side-project-icon{display:flex}.side-project-icon .ui-icon{width:14px;height:14px;opacity:.7}.project-row>span:last-child{overflow:hidden;text-overflow:ellipsis}.sidebar-bottom{border-color:#eae8f4}.topbar{height:78px;background:#fff;border-bottom:1px solid #f0eff7;padding:15px 27px}.eyebrow{font-size:9px;letter-spacing:.075em;color:#80758f;margin-bottom:5px}h1{font-size:20px;font-weight:650;letter-spacing:-.45px;color:#26253f}.topbar-actions{gap:10px}.history-controls{border-color:#f0eff7;padding-right:12px}.icon-control{color:#9691ae;width:30px;height:30px}.icon-control:hover{background:#f0ecfe;color:#7762d7}.save-state{font-size:10px;color:#80758f}.ghost{border:1px solid #e6e3f0;padding:8px 12px;border-radius:7px;font-size:11px;color:#847c9a}.topbar-actions #exportMenuBtn{background:#7662e5;border:1px solid #7662e5;color:white;padding:9px 13px;border-radius:7px;font-weight:550}.tabs{height:49px;background:#fff;padding:0 27px;gap:29px;border-bottom-color:#ecebf5}.tabs button{font-size:12px;color:#9590ab;font-weight:450;border-bottom-width:3px;padding:0 1px}.tabs button.active{color:#7461d9;border-color:#806bec;font-weight:600}.tabs button.active .ui-icon{color:#806bec}.tabs .ui-icon{width:15px;height:15px;margin-right:5px;color:#80758f}.content{padding:27px;background:#f7f8fc}.sheet-mode .content{padding:0 19px 16px;background:#f7f8fc}#sheetSummary{background:transparent;padding-top:17px;padding-bottom:0}.sheet-kpis{gap:9px;padding-bottom:4px}.sheet-kpis .kpi{min-width:138px;padding:13px 12px;background:#fff;border:1px solid #e9eaf3!important;border-radius:9px;flex:1}.sheet-kpis .kpi:first-child{background:#f0edff;border-color:#ded7fb!important}.sheet-kpis .label{font-size:10px;font-weight:500;color:#9690af;gap:5px}.sheet-kpis .label .ui-icon{color:#9d8ccc}.sheet-kpis .value{margin-top:10px;font-size:17px;font-weight:650;color:#373351;letter-spacing:-.45px}.sheet-kpis .sub{margin-top:6px;color:#7d728d;font-size:9px}.sheet-kpis .positive .value{color:#41918b}.sheet-kpis .negative .value{color:#7d728d}.sheet-page .row-actions{margin:13px 0 12px;gap:7px;min-height:30px}.row-actions strong{color:#7d7694;font-size:12px;font-weight:550}.row-actions button{font-size:11px;color:#8b82a3;padding:7px 10px;background:white;border-color:#e5e1ef;border-radius:6px}.row-actions button:first-of-type{background:#eee9ff;color:#7b60ce;border-color:#dfd5f7}.sheet-page .table-shell{background:white;border:1px solid #e2e3ef;border-radius:9px;box-shadow:0 3px 12px #37335a03}.sheet{font-size:12px}.sheet th{height:37px;font-size:10px;font-weight:500;color:#9991ac;background:#fcfbff;padding:10px 9px;border-bottom:1px solid #eae6f2}.sheet th .ui-icon{color:#80758f;width:12px;height:12px}.sheet td{height:37px;border-bottom:1px solid #efedf5;border-right:1px solid #f7f5fa;background:#fff}.sheet input{height:37px;color:#5e5673}.sheet input:focus{box-shadow:inset 0 0 0 2px #ab91ed;background:#fbf8ff}.sheet td.lp{color:var(--section-accent,#998aa9);font-size:10px;min-width:56px;background:color-mix(in srgb,var(--section-accent,#998aa9) 5%,white)}.sheet td.name{min-width:290px}.sheet td.num{min-width:105px}.sheet tr.category td{background:#f4f3fa;font-weight:600;border-top:1px solid #e6e2f0;border-bottom:1px solid #e6e2f0;height:38px}.sheet tr.category input{font-size:11px;letter-spacing:.035em;color:#756787}.sheet tr.subcategory td{background:color-mix(in srgb,var(--section-accent) 8%,white);font-weight:500}.sheet tr.subcategory td.lp{background:color-mix(in srgb,var(--section-accent) 13%,white)}.group-icon{background:color-mix(in srgb,var(--section-accent) 12%,white);color:var(--section-accent);border-radius:5px;width:25px;height:25px;padding:5px;margin-right:5px}.group-icon .ui-icon{width:15px;height:15px}.fold-button{color:#80758f}.row-menu{color:#7d728d}.row-menu:hover{color:#8b73ac;background:#eae2f5}.group-label{gap:4px}.group-label input{font-weight:500;flex:1}.sheet .group-label input[readonly]{color:#80718f!important}.section-count{font-size:9px;color:#7d728d;background:#ffffff7a;border:1px solid #ffffffb0;border-radius:4px;padding:3px 6px!important;white-space:nowrap;flex-shrink:0}.section-amount{font-size:10px;color:#9a89a6;font-weight:500;padding:4px 10px!important;white-space:nowrap;flex-shrink:0}.sheet td.computed,.sheet td.readonly-cell,.sheet td:has(>input[readonly]){background-color:#f4f2f8!important;background-image:none!important;color:#877d94;border-color:#e9e3ef}.sheet td.readonly-cell input,.sheet input[readonly]{color:#a093ad!important}.sheet tr.subcategory td:has(input[readonly]){background:color-mix(in srgb,var(--section-accent) 8%,white)!important}.sheet td.row-tools{background:#fcfaff;border-left:1px solid #ebe4f1;min-width:32px}.row-tools .trash-button{color:#7d728d}.row-tools .trash-button:disabled{color:#7d728d;opacity:.65}.type-picker.type-badge{display:inline-flex;align-items:center;gap:5px;min-width:0;width:auto;max-width:100%;margin:4px 7px;height:25px;padding:4px 8px;border-radius:5px;font-size:10px;background:#f3f0f8;color:#80758f}.type-badge[data-type-tone=bbf]{background:#eee6fd;color:#9573bb}.type-badge[data-type-tone=external]{background:#e7f3f4;color:#78a2a7}.type-badge[data-type-tone=fee]{background:#fbefd9;color:#7d728d}.type-badge[data-type-tone=empty]{border:1px dashed #e5dced;background:#fff;color:#7d728d}.type-picker .ui-icon{width:12px;height:12px}.fee-panel{border-color:#e3dcef;background:#fdfaff;border-radius:0 0 9px 9px;box-shadow:0 5px 10px #34254004}.fee-line{border-color:#efe7f5;color:#80758f;min-height:36px}.fee-label{font-size:11px;padding:8px 13px}.fee-label .ui-icon{color:#7d728d}.fee-value{font-size:12px;min-width:190px;padding-right:15px}.fee-value input{border-color:#e0d1ed;color:#9d7bb5;background:white;border-radius:5px}.fee-value input:focus{border-color:#a885d1;box-shadow:0 0 0 2px #e4d6f6}.fee-value[data-commission]{background:#f8f2fc;color:#80758f}.fee-line.grand-total{background:#f2eafb;color:#73539b;font-weight:600}.fee-line.grand-total .fee-value{font-size:15px}.commission-row td{background:#faf1df!important;border-color:#eddfbe!important}.card{border:1px solid #e8e8f1;border-radius:12px;padding:22px;background:#fff;box-shadow:0 3px 10px #33285503}.section-title{margin-bottom:20px}.section-title h2{font-size:18px;color:#575068}.section-title p{font-size:12px;color:#80758f}.field label{font-size:10px;color:#80758f;letter-spacing:.04em;font-weight:500}.field input,.field select{padding:11px 12px;border:1px solid #e8e1ed;border-radius:7px;color:#74637e;background:#fff}.field input:focus{border-color:#b59acb;box-shadow:0 0 0 3px #f3eaf9}.grid-2{gap:18px}.page>.kpis:not(.sheet-kpis){gap:13px}.kpi{padding:18px;border-radius:10px;border-color:#e9e4ef}.kpi .label{color:#80758f;font-size:11px}.kpi .value{font-size:23px;font-weight:650;color:#53455f}.kpi .sub{color:#7d728d}.kpi.positive .value{color:#4e958f}.summary-row{gap:8px}.chip{background:#efe8f7;color:#80758f;padding:7px 10px;border-radius:5px}.dashboard-intro{display:flex;justify-content:space-between;align-items:center;margin:2px 0 25px;gap:20px}.section-eyebrow{font-size:9px;color:#7d728d;font-weight:600;letter-spacing:.12em}.dashboard-intro h2{font-size:28px;font-weight:650;letter-spacing:-.8px;margin:7px 0 8px;color:#493553}.dashboard-intro p{color:#7d728d;font-size:12px;margin:0}.primary{background:#8765da;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;padding:10px 14px}.dashboard-kpis .kpi:first-child{background:#f0eafa;border-color:#e6d9f4}.dashboard-kpis{margin:0 0 21px}.dashboard-reports{grid-template-columns:1.25fr 1fr;margin-top:0;gap:18px}.report-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.report-heading h3{font-size:13px;font-weight:600;color:#7c658b;margin:0}.report-unit{border:1px solid #ede3f3;border-radius:5px;padding:4px 8px;font-size:9px;color:#7d728d}.donut-layout{display:flex;align-items:center;gap:27px;min-height:220px}.donut{width:210px;height:210px;border-radius:50%;background:var(--segments);padding:21px;flex-shrink:0;transform:rotate(-.01deg)}.donut>div{height:100%;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 6px white}.donut span{font-size:9px;color:#80758f}.donut strong{font-size:19px;color:#373051;font-weight:650;letter-spacing:-.6px;margin:9px 0}.donut small{font-size:8px;color:#7d728d}.report-legend{flex:1;min-width:0}.report-legend>div{display:grid;grid-template-columns:7px 1fr;gap:4px 8px;padding:10px 0;border-bottom:1px solid #f0e8f6;font-size:10px;color:#80758f}.report-legend>div:last-child{border:0}.legend-dot{width:7px;height:7px;border-radius:2px;margin-top:2px}.report-legend strong{grid-column:2;font-size:12px;color:#91729f;font-weight:550}.phase-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eee6f4;padding:15px 0;font-size:11px;color:#80758f}.phase-row>span:nth-child(2){flex:1;text-transform:capitalize}.phase-row strong{font-size:11px;font-weight:500;color:#80758f}.phase-row b{min-width:24px;text-align:center;border-radius:5px;padding:4px 7px;background:#f6eefb;font-weight:500;color:#7d728d}.phase-summary{padding-top:17px;font-size:10px;color:#7d728d}.project-section-heading{display:flex;align-items:center;gap:10px;margin:26px 0 14px}.project-section-heading h3{font-size:15px;color:#4c435e;margin:0}.project-section-heading span{color:#7d728d;font-size:10px}.project-cards{margin-top:0;gap:16px}.project-card{padding:20px;border:1px solid #e9def1;border-radius:12px;background:white}.project-card:hover{border-color:#b89bcd;box-shadow:0 6px 20px #ab89bf12}.project-card>div{border:0;margin:0;padding:0}.project-card-top{display:flex;justify-content:space-between;align-items:center}.project-symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:#f3eafa;color:#7d728d}.project-symbol .ui-icon{width:19px;height:19px}.status-pill{background:var(--status-bg);color:var(--status-color);font-size:9px;border-radius:5px;padding:5px 8px}.project-card h3{font-size:17px;color:#353149;margin:16px 0 7px}.project-card p{font-size:11px;color:#7d728d}.project-card-numbers{display:flex!important;justify-content:space-between;border-top:1px solid #f2e7f8!important;padding-top:16px!important;margin-top:18px!important}.project-card-numbers small{display:block;font-size:9px;color:#7d728d}.project-card-numbers strong{font-size:15px;color:#625174;font-weight:550;display:block;margin-top:6px}.project-open{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f2e7f8;padding-top:13px;margin-top:18px;color:#7d728d;font-size:10px}.project-open .ui-icon{width:12px;height:12px}.financial-reports{grid-template-columns:1.25fr 1fr}.bar-row{margin-top:23px}.bar-row>div:first-child{color:#7d728d;font-size:11px}.bar-row strong{color:#7d728d;font-size:11px}.bar-track{height:8px;border-radius:4px;background:#f5edf9;margin-top:10px}.bar-track>div{background:#b899dd!important}.crew-grid h3{font-size:14px;color:#91709f}.role-assignment strong{color:#80758f}.role-assignment{border-color:#eee5f3}.role-assignment input{border-color:#e4d6ed;color:#80758f;padding:10px;border-radius:7px}.avatar{background:#f0e3f7;color:#7d728d;border-radius:10px}.person-meta strong{color:#80758f;font-weight:550}.person-meta span{color:#7d728d}.person{border-color:#efe5f4}.mini{border-color:#e6d7ee;color:#7d728d}.context-menu,.type-menu{border-color:#e3d4ed;border-radius:10px;box-shadow:0 12px 36px #67478424}.context-menu button:hover,.type-menu button:hover{background:#f1e7fa}.context-menu button{color:#80758f}.context-menu kbd{color:#7d728d}.modal{border-radius:13px;box-shadow:0 24px 90px #4a2f6129}.history-entry.current{background:#efe3f8;border-color:#d9c2eb}.history-entry{color:#80758f}.history-entry small{color:#7d728d}.history-entry:hover{background:#f5edf9}.history-caption{color:#7d728d}
/* Drag feedback is outside the scrolling table and never intercepts the pointer. */
.is-drag-source td{opacity:.32}#dragGhost{position:fixed;z-index:180;width:290px;background:#fff;border:1px solid #c4b4fa;border-radius:11px;box-shadow:0 15px 45px #4e348a35;pointer-events:none;overflow:hidden;color:#514467;transform:rotate(1deg)}.drag-ghost-heading{display:flex;gap:11px;padding:15px;background:#f5f1ff;border-bottom:1px solid #e7dff9}.drag-ghost-heading>.ui-icon{color:#9674d1;margin-top:2px;width:19px;height:19px}.drag-ghost-heading strong{font-size:12px;display:block;max-width:226px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drag-ghost-heading small{display:block;color:#80758f;font-size:10px;margin-top:5px}.drag-preview-rows{padding:7px 14px}.drag-preview-rows>div{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:10px;color:#80758f}.drag-preview-rows .ui-icon{width:12px;height:12px}.drag-preview-rows span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drag-destination{padding:9px 13px;background:#eee5fc;font-size:9px;color:#80758f}.invalid-drop .drag-destination{background:#f5f1f7;color:#7d728d}#dropIndicator{position:fixed;height:3px;z-index:170;background:#9870ed;pointer-events:none;box-shadow:0 0 0 2px #e9d9ff70}#dropIndicator:before{content:'';position:absolute;width:9px;height:9px;left:-1px;top:-3px;border-radius:50%;background:#fff;border:2px solid #9870ed}.native-drag-card{position:fixed;left:-1000px;top:0;background:#f2eaff;color:#9675ba;border:1px solid #cbb3e5;padding:12px 18px;border-radius:8px;font-size:12px}
@media(max-width:1200px){.donut-layout{gap:16px}.donut{width:170px;height:170px;padding:17px}.donut strong{font-size:16px}.dashboard-reports,.financial-reports{grid-template-columns:1fr 1fr}.sheet-kpis .kpi{min-width:128px}.save-state{display:none}}
@media(max-width:950px){.dashboard-reports,.financial-reports{grid-template-columns:1fr}.donut-layout{justify-content:space-evenly}.donut{width:210px;height:210px}.report-legend{max-width:300px}.sheet .section-amount{display:none}.dashboard-intro h2{font-size:24px}}
@media(max-width:760px){#app{display:block}.sidebar{width:min(86vw,320px)}.topbar{height:70px;padding:9px}.topbar-left h1{font-size:13px;max-width:29vw;letter-spacing:-.2px}.eyebrow{font-size:8px}.history-controls{padding:0;border:0}.history-controls .icon-control{width:23px}.topbar-actions{gap:2px}.topbar-actions #exportMenuBtn{padding:7px;font-size:10px}.topbar-actions #exportMenuBtn>.ui-icon{display:none}.topbar-actions #duplicateProject{width:23px;padding:4px}.tabs{height:45px;padding:0 11px;gap:16px}.tabs button{font-size:11px}.tabs .ui-icon{width:13px;height:13px;margin-right:3px}.content{padding:17px 12px}.sheet-mode .content{padding:0 6px 7px}#sheetSummary{padding-top:10px}.sheet-kpis{gap:6px}.sheet-kpis .kpi{min-width:125px;padding:10px}.sheet-kpis .value{font-size:15px;margin-top:8px}.sheet-kpis .label{font-size:9px}.sheet-kpis .sub{font-size:8px;margin-top:4px}.sheet-page .row-actions{margin:8px 0;gap:5px}.row-actions button{padding:6px 9px;font-size:10px;min-height:32px}.sheet input,.sheet td{height:39px}.sheet th{height:34px}.sheet .section-count{display:none}.sheet td.name{min-width:260px}.fee-label{font-size:9px;padding:6px 8px}.fee-value{min-width:100px;padding:4px 8px;font-size:11px}.fee-line{min-height:32px}.fee-line.grand-total .fee-value{font-size:12px}.fee-value input{width:54px}.dashboard-intro{align-items:flex-start;margin-bottom:20px;gap:10px}.dashboard-intro h2{font-size:21px}.dashboard-intro p{font-size:11px;line-height:1.6;max-width:230px}.dashboard-intro .primary{font-size:10px;padding:8px;white-space:nowrap}.dashboard-intro .primary .ui-icon{display:none}.section-eyebrow{font-size:8px}.dashboard-kpis{gap:9px}.dashboard-kpis .kpi{padding:13px}.kpi .value{font-size:19px}.kpi .label{font-size:10px}.kpi .sub{font-size:9px}.card{padding:17px}.donut-layout{gap:16px;min-height:180px}.donut{width:155px;height:155px;padding:15px}.donut strong{font-size:14px}.donut span{font-size:8px}.donut small{font-size:7px}.report-legend>div{font-size:9px}.report-legend strong{font-size:10px}.report-heading h3{font-size:12px}.phase-row{font-size:11px}.project-card{padding:19px}.project-card h3{font-size:16px}.type-picker.type-badge{height:29px}.section-title h2{font-size:16px}}
.sheet-kpis .kpi .value{font-size:17px;letter-spacing:-.45px}
@media(max-width:760px){.sheet-kpis .kpi .value{font-size:15px}}
