/* Project Dashboard — the reference's pale canvas, white cards and dark teal controls. */
#workspace .project-heading h1,#workspace .card-head h2{font-weight:500}
.invoice-note{color:var(--muted);font-size:.76rem}
#workspace{--bg:#edf1f2;--surface:#fcfdfd;--ink:#101516;--rail:#102325;--muted:#4b585b;--line:#d4dadd;--accent:#102c30;--accent-bg:#e9eff0;--focus:#2d7881;--radius:18px;display:grid;grid-template-columns:clamp(66px,6.2vw,92px) minmax(0,1fr);grid-template-rows:132px 1fr;background:linear-gradient(145deg,#f0f2f2,#e7edf0 66%,#e5eff5);color:var(--ink);min-height:100dvh;font-family:'Avenir Next',Avenir,'Segoe UI',sans-serif}
.masthead{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 clamp(18px,2.2vw,34px);min-width:0}.wordmark{justify-self:start;position:relative;min-height:48px;border:0;background:none;padding:0 0 8px;color:var(--rail);font-size:clamp(23px,2.6vw,39px);font-weight:780;letter-spacing:-.09em;line-height:1}.wordmark span{font-weight:680}.wordmark small{position:absolute;right:0;bottom:0;font-size:9px;letter-spacing:.045em}.period-nav,.mast-tools,.card-tools{display:flex;align-items:center;gap:5px}.period-nav button,.task-switch button{border-radius:40px;background:transparent;white-space:nowrap;font-size:.86rem;min-height:42px;padding:7px 15px;font-weight:540}.period-nav button[aria-pressed=true],.task-switch button[aria-pressed=true]{background:var(--rail);color:white;border-color:var(--rail)}.mast-tools{justify-self:end}.mast-tools .circle-action{background:#fff;border-color:transparent}.masthead .account{color:var(--ink);background:none;border:0;padding:0;margin-left:4px;min-width:0;gap:8px}.masthead .account small{color:var(--muted)}.masthead .account strong{color:var(--ink);font-size:.96rem}.masthead .avatar{width:42px;height:42px;background:#f7b65c;color:#172526;border-radius:50%;flex:none}
#workspace .sidebar{position:sticky;top:12px;align-self:start;height:auto;min-width:0;background:transparent;color:var(--muted);padding:13px 0;overflow:visible;z-index:2}.sidebar nav{display:grid;justify-items:center;gap:4px}.sidebar .nav-item,.circle-action{display:inline-grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--rail);flex:none}.sidebar .nav-item{border:0;background:#fff}.sidebar .nav-item[aria-current]{background:var(--rail);color:#fff}.nav-item svg,.circle-action svg,#project-search svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.sidebar .nav-item span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}#menu-toggle{display:none}
#workspace main{padding:9px clamp(18px,2vw,31px) 24px 0;min-width:0}#workspace .demo{position:absolute;top:105px;right:30px;margin:0;background:none;border:0;padding:0;color:var(--muted);font-size:.72rem}.project-heading{display:grid;grid-template-columns:1fr minmax(0,.72fr);align-items:center;gap:18px;margin:0 0 32px}.project-heading p{font-size:clamp(1rem,1.39vw,1.28rem);line-height:1.3;font-weight:520;color:#304143}.project-heading h1{font-size:clamp(2rem,3.25vw,3.05rem);letter-spacing:-.055em;margin:7px 0 0;font-weight:620;line-height:1.1}#project-search{position:relative}#project-search input{font:inherit;width:100%;min-height:62px;border-radius:60px;padding:0 18px 0 57px;background:transparent}#project-search>svg{position:absolute;width:27px;height:27px;left:17px;top:18px;color:#626e70;pointer-events:none}.search-results{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;padding:8px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #14242722}.search-match{display:block;text-align:left;width:100%;border:0;border-radius:10px}.search-match:hover{background:var(--bg)}
.operations-board{display:grid;grid-template-columns:minmax(170px,.79fr) minmax(0,1.05fr) minmax(0,1.05fr) minmax(185px,1.05fr);grid-template-areas:'tasks projects finance agenda' 'tasks invoice invoice agenda';align-items:stretch;grid-template-rows:auto 1fr;gap:6px}.operations-board.no-finance{grid-template-areas:'tasks projects projects agenda'}.project-card{min-width:0;background:var(--surface);border-radius:clamp(22px,3.15vw,47px);padding:clamp(14px,1.65vw,25px);scroll-margin:12px}.task-column{grid-area:tasks;margin-right:clamp(4px,1.25vw,19px)}.overview-card{grid-area:projects;min-height:335px}.income-card{grid-area:finance;min-height:335px}.agenda-column{grid-area:agenda}.invoice-card{grid-area:invoice;min-height:300px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:43px;margin:6px 0 14px}.card-head h2{font-size:clamp(1rem,1.43vw,1.32rem);font-weight:620;letter-spacing:-.04em}.card-tools .circle-action{width:39px;height:39px;min-height:39px}.task-switch{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 14px}.task-switch button{padding-inline:10px;min-height:40px}.task-status{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:40px;margin-bottom:14px;font-size:.87rem}.task-status span{background:var(--rail);color:#fff;border-radius:50%;min-width:26px;height:26px;display:grid;place-items:center;padding-inline:4px}.board-list{display:grid;gap:5px}.board-entry{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px;padding:14px 13px;border:1px solid var(--line);border-radius:23px;min-height:88px}.board-entry button{text-align:left;color:var(--ink);white-space:normal;overflow-wrap:anywhere;font-size:.9rem;line-height:1.25;padding:0;min-height:28px;font-weight:700}.board-entry small{display:block;color:var(--muted);overflow-wrap:anywhere;font-size:.76rem;margin-top:4px}.entry-icon{display:grid;place-items:center;border-radius:50%;width:33px;height:33px;background:#e6edfb;color:#294985;font-size:.78rem;font-weight:700}.task-column .board-entry{display:block;border:0;min-height:122px;background:#fbf3ea}.task-column .board-entry:nth-child(4n+2){background:#eaf7fb}.task-column .board-entry:nth-child(4n+3){background:#fbecfa}.task-column .board-entry:nth-child(4n){background:#e8faf2}.task-column .entry-icon{background:#fff9;color:#964117;margin-bottom:10px}.board-entry:nth-child(3n+2) .entry-icon{background:#d4f4e7;color:#286b58}.board-entry:nth-child(3n) .entry-icon{background:#f7dbf3;color:#77366c}.agenda-link{display:flex;gap:9px;align-items:center;color:var(--ink);font-weight:530;margin-top:9px}.followup-head{margin-top:25px}
.donut{width:min(100%,184px);margin:14px auto 10px;position:relative}.donut svg{display:block;width:100%}.donut>div{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;color:var(--muted)}.donut strong{color:var(--ink);font-size:1.45rem;line-height:1.1}.donut-track,.donut-slice{fill:none;stroke-width:15}.donut-track{stroke:#edf0f7}.donut-active{--series:#f48e31}.donut-planned,.donut-other{--series:#dae0ed}.donut-paused{--series:#9765c8}.donut-closed{--series:#3997e8}.donut-slice{stroke:var(--series)}.board-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 13px;margin:0;padding:0;list-style:none;font-size:.78rem}.board-legend li{display:flex;align-items:center;gap:5px}.legend-dot{width:10px;height:10px;border-radius:50%;background:var(--series);flex:none}.series-cash{--series:#2287dd}.series-expense{--series:#e88129}.chart-line{fill:none;stroke:var(--series);stroke-width:1.6}.series-fill,.chart-dot{fill:var(--series)}.series-fill{opacity:.09}.chart-guide,.chart-zero{stroke:#dbe4e8;stroke-dasharray:2 3}.income-card .chart-box{padding:0;background:none;margin-top:10px}.income-card .chart-box svg{width:100%;height:164px;display:block}.chart-extents{display:flex;justify-content:space-between;color:var(--muted);font-size:.74rem}.chart-data{margin-top:8px;font-size:.78rem}.chart-data .table-wrap{max-height:180px}
.invoice-row{--bar:#e84e61;margin:0 0 20px}.invoice-row>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:.94rem}.invoice-overdue{--bar:#9714df}.invoice-partial{--bar:#25aee4}.invoice-paid{--bar:#2eac52}.invoice-row progress{display:block;width:100%;height:21px;margin-top:9px;appearance:none;border:0;border-radius:40px;background:#dfe2e6;overflow:hidden}.invoice-row progress::-webkit-progress-bar{background:#dfe2e6;border-radius:40px}.invoice-row progress::-webkit-progress-value{background:repeating-linear-gradient(0deg,#fff0 0 4px,#fff2 4px 6px),var(--bar);border-radius:40px}.invoice-row progress::-moz-progress-bar{background:var(--bar);border-radius:40px}.report-actions{justify-content:flex-end;margin-bottom:10px}#dashboard-state:empty{display:none}#dashboard-state{margin-top:10px}
@media(max-width:1120px){.operations-board,.operations-board.no-finance{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'tasks projects' 'finance agenda' 'invoice invoice'}.operations-board.no-finance{grid-template-areas:'tasks projects' 'agenda agenda'}.task-column{margin:0}.mast-tools .circle-action{width:34px;height:34px;min-height:34px}.masthead .account div{display:none}}
@media(max-width:850px){#workspace{display:block}.masthead{position:sticky;top:0;z-index:4;grid-template-columns:1fr auto auto;padding:9px 14px;background:#eff2f3;border-bottom:1px solid var(--line);gap:6px 8px}.period-nav{grid-column:1/-1;grid-row:2;flex-wrap:wrap}.period-nav button{padding-inline:10px}.mast-tools{grid-column:2;grid-row:1}.mast-tools .circle-action{display:none}.masthead .avatar{width:34px;height:34px}#menu-toggle{display:block;grid-column:3;grid-row:1;border-radius:30px}.wordmark{min-height:42px}#workspace main{padding:17px 14px}.project-heading{margin-bottom:20px}#workspace .sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;background:#eef2f3;color:var(--ink);width:min(282px,85vw);padding:20px 14px;overflow:auto;z-index:8}.sidebar nav{justify-items:stretch}.sidebar .nav-item{display:flex;width:100%;justify-content:flex-start;gap:11px;padding:0 12px;border-radius:12px}.sidebar .nav-item span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}#workspace .demo{position:static;text-align:right;margin-bottom:6px}}
@media(max-width:620px){.project-heading{grid-template-columns:1fr;gap:12px}#project-search input{min-height:50px;padding-left:45px}#project-search>svg{top:13px;left:13px;width:24px;height:24px}.operations-board,.operations-board.no-finance{grid-template-columns:minmax(0,1fr);grid-template-areas:'tasks' 'projects' 'finance' 'invoice' 'agenda';gap:10px}.operations-board.no-finance{grid-template-areas:'tasks' 'projects' 'agenda'}.project-card{padding:16px}.overview-card,.income-card,.invoice-card{min-height:0}.report-search{width:100%}}
@media(min-width:851px){
  #workspace{position:relative;--rail-surface:#f0f5f5;--rail-expanded:244px}
  #workspace::before{content:'';position:absolute;top:0;inset-inline-start:0;height:132px;width:0;pointer-events:none;background:var(--rail-surface)}
  #workspace:has(#sidebar:is(:hover,:has(.nav-item:focus-visible)))::before{width:var(--rail-expanded)}
  #workspace .masthead{position:relative}
  #workspace #sidebar{--rail-offset:max(12px,calc((clamp(66px,6.2vw,92px) - 42px) / 2));top:0;z-index:6;padding-block:0}
  #sidebar nav{position:relative;justify-items:start;align-content:start;width:clamp(66px,6.2vw,92px);min-height:calc(100dvh - 132px);max-height:calc(100dvh - 132px);overflow:auto;padding-block:13px;padding-inline-start:var(--rail-offset)}
  #sidebar .nav-item{position:relative;isolation:isolate;display:grid;grid-template-columns:42px minmax(0,1fr);justify-items:start;text-align:start;background:none}
  #sidebar .nav-item::before{content:'';position:absolute;z-index:-1;inset:0 auto 0 0;width:42px;border-radius:50%;background:#fff;pointer-events:none}
  #sidebar .nav-item[aria-current]::before{background:var(--rail)}
  #sidebar .nav-item svg{justify-self:center;color:var(--rail)}
  #sidebar .nav-item[aria-current] svg{color:white}
  #sidebar .nav-item span{opacity:0}
  /* The masthead scrolls away, so the expanded sticky rail must cover the full viewport. */
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) nav{width:var(--rail-expanded);min-height:100dvh;max-height:100dvh;padding-inline-end:12px;background:var(--rail-surface)}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item{border-radius:0 22px 22px 0;gap:10px;margin-inline-start:calc(-1 * var(--rail-offset));width:calc(100% + var(--rail-offset));padding-inline-start:var(--rail-offset)}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item::before{background:transparent}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item:hover{background:#e8efef}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item[aria-current]{background:#d7e8e7}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item[aria-current] svg{color:var(--rail)}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item span{position:static;width:auto;height:auto;clip-path:none;opacity:1;font-size:.84rem;font-weight:650;color:var(--rail)}
  #sidebar:is(:hover,:has(.nav-item:focus-visible)) .nav-item[aria-current] span{font-weight:750}
}
@media(min-width:851px) and (prefers-reduced-motion:no-preference){
  #workspace::before,#sidebar nav{transition:width 180ms ease-out}
}

/* Keep all three task periods visible on the dashboard card's narrowest layout. */
#monitor-view .task-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#monitor-view .task-switch button{min-width:0;min-height:44px;padding-inline:2px;font-size:.75rem}
