.tf-mobile-bar,.tf-menu-shade{display:none}
@media screen and (max-width:770px){
 body.tf-mobile-auth .tf-mobile-bar{display:flex;position:sticky;top:0;z-index:22;align-items:center;gap:12px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#171b20;border-bottom:1px solid #465057;min-height:64px}
 .tf-mobile-bar button{flex-shrink:0;min-height:44px;padding:10px 14px;border-radius:10px;border:1px solid #59636b;background:#eef0f2;color:#14191d;font-weight:750}
 .tf-mobile-title{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .shell{display:block}
 .shell>.side{display:none;position:fixed;inset:0 auto 0 0;width:min(340px,88vw);height:100dvh;max-height:none;z-index:26;overflow-y:auto;overscroll-behavior:contain;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom));background:#171b20;border-right:1px solid #59636b}
 body.tf-menu-open .shell>.side{display:flex}
 .shell>.side .brand{min-height:0;padding:6px 0;justify-content:flex-start}
 .shell>.side .brand img{width:110px;max-width:110px;max-height:60px}
 .shell>.side .nav{display:grid;width:100%;flex:none;overflow:visible;gap:6px}
 .shell>.side .nav button{width:100%;min-height:48px;white-space:normal;text-align:left;padding:12px 14px;font-size:14px;flex-shrink:0}
 .shell>.side .side-foot{display:none}
 .tf-menu-close{display:block;min-height:44px;border:1px solid #59636b;border-radius:10px;background:#2c343b;color:#fff;padding:10px 14px;text-align:left;font-weight:700}
 body.tf-menu-open{overflow:hidden}
 body.tf-menu-open .tf-menu-shade{display:block;position:fixed;inset:0;z-index:25;background:#0009;border:0;width:100%;height:100%;padding:0}
 .main{padding-top:20px}
 .filters{flex-wrap:wrap}.filters .search{min-width:0;max-width:100%}
 .controls .btn{max-width:100%;white-space:normal;min-height:44px}
 .field input,.field select,.field textarea{font-size:16px}
}
@media screen and (min-width:771px){.tf-menu-close{display:none}}

.tf-calendar-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.tf-calendar-legend{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:11px;color:#b6c3ce;line-height:1.5}.tf-calendar-legend>span{display:inline-flex;align-items:center;gap:5px}.tf-calendar-legend .v13-dot{flex-shrink:0}

.v13-chip.v13-done{background:#080b0d;color:#f5f5f5;border:1px solid #63717b;opacity:1;text-decoration:none;max-height:80px}.v13-dot.v13-completed{background:#050607;border:1px solid #aab4bc;width:9px;height:9px}.v13-activity-day.tf-day-completed{background:#090d10;border-color:#63717b}.tf-day-completed span{color:#d0d8dd}

.tf-cash-summary{margin-top:18px}.tf-cash-heading,.tf-cash-label{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.tf-cash-heading h2{margin:0}.tf-cash-row{margin-top:20px}.tf-cash-label{margin-bottom:8px}.tf-cash-label strong{font-size:20px;font-variant-numeric:tabular-nums}.tf-cash-track{height:14px;border-radius:8px;overflow:hidden;background:#10161b;border:1px solid #52616a}.tf-cash-track>span{display:block;height:100%;background:#dce4e9;border-radius:7px}.tf-cash-due>span{background:#c69b61}@media(max-width:770px){.tf-cash-label{font-size:13px}.tf-cash-label strong{font-size:19px}.tf-cash-track{height:16px}}

.v10-launcher>.tf-cash-summary{margin:0;padding:18px;border:1px solid var(--line,#40505b);border-radius:18px;background:#20282e;min-width:0;grid-column:auto}.tf-cash-summary .tf-cash-label strong{font-size:18px}.tf-cash-caption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;margin:9px 0}.tf-cash-summary .tiny{font-size:11px}.tf-cash-summary .tf-cash-track>span{background:#27b98b}@media(max-width:770px){.v10-launcher>.tf-cash-summary{grid-column:auto}}

/* Compact overview actions: one equal-width tile per action. */
@media(min-width:771px){.v10-launcher{grid-template-columns:repeat(5,minmax(145px,1fr));gap:10px;overflow-x:auto}.v10-launcher-btn{padding:13px 12px;min-height:115px}.v10-launcher-btn strong{font-size:13px}.v10-launcher-btn small{font-size:10px}}
.v10-launcher>.tf-cash-summary{padding:12px;border-radius:17px;min-height:115px;display:flex;flex-direction:column;justify-content:center}.tf-cash-summary .tf-cash-label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;font-size:10px;line-height:1.25;margin-bottom:7px}.tf-cash-summary .tf-cash-label strong{font-size:13px;white-space:nowrap}.tf-cash-summary .tf-cash-track{height:9px;flex-shrink:0}.tf-cash-summary .tf-cash-caption{font-size:10px;line-height:1.35;gap:3px;margin:7px 0 0}.tf-cash-summary .tiny{display:none}

/* Clearer figures within the compact finance tile. */
.tf-cash-summary .tf-cash-label{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:13px;line-height:1.25;margin-bottom:9px}.tf-cash-summary .tf-cash-label strong{font-size:19px}.tf-cash-summary .tf-cash-caption{font-size:12px;line-height:1.45;gap:4px;margin-top:9px}

.tf-task-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.work-line{gap:12px}.work-line>div:first-child{min-width:0;flex:1}.tf-task-actions button{min-height:38px}@media(max-width:770px){.work-line{flex-wrap:wrap}.tf-task-actions{width:100%;justify-content:flex-start}.tf-task-actions button{min-height:44px}}

/* Keep the overview grid; the first two lower tiles become one project panel. */
.tf-overview-review{color:var(--text);text-align:left;font:inherit;display:flex;flex-direction:column;gap:9px;justify-content:center;min-width:0;cursor:pointer}
.tf-overview-review:hover{background:#303940;border-color:#c1cad0}.tf-overview-review .v10-icon{font-size:23px;line-height:1}.tf-overview-review .v14-counters{font-size:10px;line-height:1.35;gap:5px}
.v10-launcher.tf-overview-launcher{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;align-items:stretch}
.tf-overview-projects{grid-column:span 2;min-width:0;border:1px solid #434b53;border-radius:17px;background:rgba(34,40,46,.92);padding:13px 14px}
.tf-overview-projects-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px}.tf-overview-projects-head>strong{font-size:21px;font-variant-numeric:tabular-nums}
.tf-overview-projects-title{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#aeb9c1;margin:10px 0 5px}
.tf-overview-projects-list{max-height:122px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px;border-radius:6px}
.tf-overview-project{display:block;width:100%;border:0;border-top:1px solid #414c55;background:transparent;color:#edf2f5;text-align:left;padding:8px 0 3px;font:inherit}
.tf-overview-project:hover{background:#ffffff07}.tf-overview-project-name{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.tf-overview-project-name>strong{font-size:12px;overflow-wrap:anywhere}.tf-overview-project-name>span{white-space:nowrap;color:#c8d3db;font-variant-numeric:tabular-nums}.tf-overview-project-dates{display:block;font-size:10px;color:#aeb9c1;margin-top:3px}.tf-overview-project .progress{display:block;margin:6px 0 3px;height:6px}.tf-overview-project-empty{padding:10px 0;color:#aeb9c1;font-size:12px}
.tf-overview-review:focus-visible,.tf-overview-project:focus-visible,.tf-overview-projects-list:focus-visible{outline:2px solid #b7ded1;outline-offset:2px}
.panel>.tf-cash-summary{padding:16px;margin:17px 0;border:1px solid #3c7664;border-radius:12px;background:#1b332c}.panel>.tf-cash-summary .tf-cash-label{flex-direction:row;align-items:center;justify-content:space-between;font-size:14px}.panel>.tf-cash-summary .tf-cash-label strong{font-size:23px}.panel>.tf-cash-summary .tf-cash-track{height:12px}.panel>.tf-cash-summary .tf-cash-caption{font-size:13px}.panel>.tf-cash-summary .tiny{display:block;margin-top:9px;color:#b4c9c0}
@media(max-width:770px){.v10-launcher.tf-overview-launcher{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tf-overview-projects{grid-column:1/-1}.tf-overview-projects-list{max-height:220px}.tf-overview-project{min-height:60px}.tf-overview-launcher .v10-launcher-btn{padding:11px 8px;min-height:112px}.tf-overview-launcher .v10-launcher-btn strong{font-size:12px;overflow-wrap:anywhere}.tf-overview-launcher .v10-launcher-btn small{font-size:10px}.panel>.tf-cash-summary .tf-cash-label strong{font-size:22px}}

/* Two project rows remain visible; closer deadlines lead the list. */
.metrics>.tf-overview-review{background:rgba(34,40,46,.92)!important;border:1px solid #434b53!important}.metrics>.tf-overview-review:hover{background:#303940!important;border-color:#c1cad0!important}
.metrics>.tf-overview-review .v14-counters>span{background:#080c0f}
.tf-overview-projects-title{font-size:11px;align-items:center;margin:0 0 7px}.tf-overview-projects-title strong{color:#e5ebef;font-size:12px}
.tf-overview-projects-list{height:116px;max-height:116px;min-height:116px}
.tf-overview-project{height:58px;min-height:58px;padding:6px 0 3px}.tf-overview-project-name>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-overview-project-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px;font-size:10px}.tf-overview-project-dates{margin:0;white-space:nowrap}.tf-overview-project-deadline{color:#adb9c2;white-space:nowrap}
.tf-project-urgent .tf-overview-project-deadline{color:#ff999e;font-weight:700}.tf-overview-project.tf-project-urgent .progress{background:#59272f;outline:1px solid #a44c58}.tf-overview-project.tf-project-urgent .progress>span{background:#ef6673}
@media(max-width:400px){.tf-overview-project-meta{gap:3px;font-size:9px}.tf-overview-project-dates{font-size:9px}}

.tf-prospect-row{align-items:flex-start}.tf-prospect-actions{justify-content:flex-end;flex:0 1 55%}.tf-prospect-actions .btn{white-space:normal}
.tf-calendar-entry{display:block;width:100%;text-align:left;border:1px solid transparent;cursor:pointer;min-height:27px}.tf-calendar-entry:hover{border-color:#bbc7d0}.tf-calendar-entry:focus-visible,.tf-calendar-dot-button:focus-visible,.tf-calendar-day-open:focus-visible{outline:2px solid #d9e3ea;outline-offset:2px}
.tf-calendar-day-open{display:flex;flex-direction:column;gap:5px;text-align:left;background:none;border:0;color:inherit;padding:0;width:100%}.tf-calendar-dot-button{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:7px;background:none;border:1px solid #3c4750;border-radius:6px}.tf-calendar-dot-button .v13-dot{width:9px;height:9px;flex:none}
.tf-calendar-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.tf-calendar-details>div{min-width:0;padding:12px;background:#192127;border:1px solid #44515b;border-radius:10px}.tf-calendar-details dt{font-size:12px;color:#aebbc5;margin-bottom:6px}.tf-calendar-details dd{margin:0;overflow-wrap:anywhere}.tf-calendar-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.tf-visit-history{border-top:1px solid #52616a;padding-top:14px;margin:20px 0}.tf-visit-history summary{cursor:pointer;font-weight:700}
@media(max-width:770px){.tf-prospect-actions{flex-basis:100%;justify-content:flex-start}.tf-prospect-actions .btn{min-height:44px}.tf-calendar-details{grid-template-columns:1fr}.tf-calendar-entry{min-height:44px}.tf-calendar-dot-button{width:34px;height:34px}.tf-calendar-day-open{min-height:44px}}

/* Match the adjacent metric title, with the check on the same line. */
.metrics>.tf-overview-review{justify-content:flex-start}
.v13-metrics>.tf-overview-review .tf-review-heading{display:flex;align-items:baseline;gap:6px;min-height:32px;font-weight:400}
.tf-overview-review .tf-review-heading .v10-icon{font-size:13px;font-weight:400;line-height:inherit;flex:none}
