:root,
html[data-theme="dark"] {
	color-scheme: dark;
	--hub-bg: #0d0f14;
	--hub-bg-deep: #090b0f;
	--hub-panel: #171a21;
	--hub-panel-strong: #1c2029;
	--hub-panel-gradient: linear-gradient(135deg, rgba(132, 92, 255, 0.055), rgba(23, 26, 33, 0) 58%), var(--hub-panel);
	--hub-line: #30343e;
	--hub-line-soft: #252932;
	--hub-blue: #9b7cff;
	--hub-blue-bright: #825bff;
	--hub-text: #f7f7fb;
	--hub-muted: #c5c1d2;
	--hub-dim: #969aaa;
	--hub-green: #2ee59d;
	--hub-orange: #ffad21;
	--hub-danger: #ff646f;
	--hub-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
	--hub-chart-grid: rgba(151, 156, 172, 0.18);
}

html[data-theme="light"] {
	color-scheme: light;
	--hub-bg: #f7f7f8;
	--hub-bg-deep: #efeff1;
	--hub-panel: #ffffff;
	--hub-panel-strong: #fafafe;
	--hub-panel-gradient: linear-gradient(135deg, rgba(130, 91, 255, 0.035), rgba(255, 255, 255, 0) 62%), #fff;
	--hub-line: #dedfe5;
	--hub-line-soft: #e8e8ed;
	--hub-blue: #6844e8;
	--hub-blue-bright: #7651ff;
	--hub-text: #12131a;
	--hub-muted: #4e5365;
	--hub-dim: #777d90;
	--hub-green: #14b979;
	--hub-orange: #f39b0b;
	--hub-danger: #ed4c5c;
	--hub-shadow: 0 10px 26px rgba(33, 35, 45, 0.055);
	--hub-chart-grid: rgba(78, 83, 101, 0.14);
}

html, body { background: var(--hub-bg); color: var(--hub-text); }
body { transition: background-color 180ms ease, color 180ms ease; }
.client-hub-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.client-hub-app { display: grid; min-height: 100vh; grid-template-columns: 244px minmax(0, 1fr); }
.client-hub-sidebar { position: sticky; top: 0; z-index: 30; display: flex; width: 244px; height: 100vh; flex-direction: column; padding: 24px 18px 18px; overflow-y: auto; border-right: 1px solid #2a2d35; background: radial-gradient(circle at 15% 0%, rgba(123, 82, 255, 0.08), transparent 28%), #11141a; color: #f6f6fb; }
.client-hub-sidebar .client-hub-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; margin: 0 7px 34px; color: #f6f6fb; font-size: 25px; letter-spacing: -0.04em; }
.client-hub-sidebar .client-hub-brand strong { color: #845dff; }
.client-hub-sidebar .client-hub-brand-mark { width: 33px; stroke: #875fff; }
.client-hub-sidebar .client-hub-brand-logo { width: 160px; height: 42px; object-fit: contain; object-position: left center; }
.client-hub-workspace-name { display: grid; gap: 7px; padding: 0 8px 22px; border-bottom: 1px solid #30333b; }
.client-hub-workspace-name small, .client-hub-integrations > small { color: #969bab; font-size: 9px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.client-hub-workspace-name strong { font-size: 14px; font-weight: 500; }
.client-hub-sidebar .client-hub-nav { display: grid; width: 100%; align-items: stretch; justify-content: stretch; gap: 4px; padding: 16px 0 20px; border-bottom: 1px solid #30333b; }
.client-hub-sidebar .client-hub-nav a { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: flex-start; gap: 14px; padding: 0 13px; border-radius: var(--hub-radius); background-color: transparent; color: #e4e4ec; font-size: 14px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease; }
.client-hub-sidebar .client-hub-nav a:hover, .client-hub-sidebar .client-hub-nav a:focus { background-color: rgba(126, 89, 255, 0.13); color: #fff; }
.client-hub-sidebar .client-hub-nav a.is-current { background: linear-gradient(90deg, rgba(126, 89, 255, 0.22), rgba(126, 89, 255, 0.12)); color: #fff; }
.client-hub-sidebar .client-hub-nav a.is-current .client-hub-icon { color: #936fff; fill: rgba(147, 111, 255, 0.16); }
.client-hub-nav-group { width: 100%; }
.client-hub-nav-group summary { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 14px; padding: 0 13px; border-radius: var(--hub-radius); background-color: transparent; color: #e4e4ec; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; transition: background-color 200ms ease, color 200ms ease; }
.client-hub-nav-group summary::-webkit-details-marker { display: none; }
.client-hub-nav-group summary:hover, .client-hub-nav-group summary:focus-visible { background-color: rgba(126, 89, 255, 0.13); color: #fff; }
.client-hub-nav-group summary.is-current { background: linear-gradient(90deg, rgba(126, 89, 255, 0.22), rgba(126, 89, 255, 0.12)); color: #fff; }
.client-hub-nav-group summary.is-current .client-hub-icon { color: #936fff; fill: rgba(147, 111, 255, 0.16); }
.client-hub-nav-group summary b { margin-left: auto; color: #969bab; font-size: 16px; font-weight: 400; transition: transform 150ms ease; }
.client-hub-nav-group[open] summary b { transform: rotate(90deg); }
.client-hub-sidebar .client-hub-subnav { display: grid; width: 100%; gap: 2px; margin: 3px 0 7px; padding-left: 0; }
.client-hub-sidebar .client-hub-subnav a { width: 100%; min-height: 36px; padding: 0 13px 0 47px; color: #969bab; font-size: 11px; }
.client-hub-sidebar .client-hub-subnav a:hover, .client-hub-sidebar .client-hub-subnav a:focus, .client-hub-sidebar .client-hub-subnav a.is-current { background: rgba(126, 89, 255, 0.1); color: #fff; }
.client-hub-integrations { padding: 25px 5px; }
.client-hub-integrations > small { display: block; margin-bottom: 13px; }
.client-hub-integrations > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 8px; align-items: center; gap: 10px; padding: 8px 0; }
.client-hub-integration-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #737784; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.client-hub-integration-mark--harvest { border: 0; border-radius: var(--hub-radius); background: linear-gradient(135deg, #ff9848, #f26739); }
.client-hub-integration-mark--google { border: 0; border-radius: var(--hub-radius); background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.client-hub-integrations p { min-width: 0; margin: 0; }
.client-hub-integrations p strong, .client-hub-integrations p span { display: block; }
.client-hub-integrations p strong { color: #f5f5f9; font-size: 12px; }
.client-hub-integrations p span { margin-top: 3px; color: #9298aa; font-size: 10px; }
.client-hub-integrations i { width: 8px; height: 8px; border-radius: 50%; background: #555a66; }
.client-hub-integrations i.is-connected { background: var(--hub-green); box-shadow: 0 0 10px rgba(46, 229, 157, 0.25); }
.client-hub-sidebar-bottom { display: grid; gap: 18px; margin-top: auto; }
.client-hub-settings-link { display: flex; align-items: center; gap: 14px; padding: 16px 8px; border-top: 1px solid #30333b; border-bottom: 1px solid #30333b; color: #e2e2e8; font-size: 13px; text-decoration: none; }
.client-hub-account { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 3px; }
.client-hub-account img, .client-hub-header-avatar { border-radius: 50%; object-fit: cover; }
.client-hub-account p { min-width: 0; margin: 0; }
.client-hub-account strong, .client-hub-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-account strong { font-size: 11px; }
.client-hub-account span { margin-top: 3px; color: #9298aa; font-size: 10px; }
.client-hub-account > a { color: #9398a7; text-decoration: none; }

.client-hub-workspace { min-width: 0; }
.client-hub-header { position: sticky; top: 0; z-index: 20; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; padding: 8px clamp(20px, 2.3vw, 36px); border-bottom: 1px solid var(--hub-line-soft); background: color-mix(in srgb, var(--hub-bg) 92%, transparent); backdrop-filter: blur(14px); }
.client-hub-breadcrumb, .client-hub-header-tools { display: flex; align-items: center; }
.client-hub-breadcrumb { gap: 12px; color: var(--hub-dim); font-size: 12px; }
.client-hub-breadcrumb b { color: var(--hub-dim); font-size: 18px; font-weight: 400; }
.client-hub-breadcrumb strong { color: var(--hub-text); }
.client-hub-breadcrumb-brand { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; padding: 4px; border: 1px solid transparent; border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-blue) 8%, transparent); cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease; }
.client-hub-breadcrumb-brand img { display: block; width: 15px; height: 14px; }
.client-hub-breadcrumb-brand:hover, .client-hub-breadcrumb-brand:focus-visible { border-color: color-mix(in srgb, var(--hub-blue) 50%, var(--hub-line)); background: color-mix(in srgb, var(--hub-blue) 15%, transparent); outline: 0; transform: translateY(-1px); }
.client-hub-header-tools { gap: 12px; }
.client-hub-menu-button { display: none; padding: 7px; border: 0; background: transparent; color: var(--hub-text); }
.client-hub-global-search { position: relative; width: min(340px, 34vw); }
.client-hub-global-search .client-hub-icon { position: absolute; top: 50%; left: 13px; z-index: 1; width: 17px; color: var(--hub-dim); transform: translateY(-50%); }
.client-hub-global-search input { width: 100%; height: 38px; padding: 0 14px 0 40px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-panel) 62%, transparent); color: var(--hub-text); font-size: 12px; }
.client-hub-global-search input::placeholder { color: var(--hub-dim); }
.client-hub-theme-toggle { position: relative; display: grid; width: 58px; height: 30px; grid-template-columns: 1fr 1fr; align-items: center; padding: 3px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-panel); color: var(--hub-dim); cursor: pointer; }
.client-hub-theme-toggle::before { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--hub-blue-bright); content: ""; transform: translateX(28px); transition: transform 180ms ease; }
.client-hub-theme-toggle span { z-index: 1; display: grid; place-items: center; }
.client-hub-theme-toggle .client-hub-icon { width: 14px; height: 14px; }
html[data-theme="light"] .client-hub-theme-toggle::before { transform: translateX(0); }
.client-hub-header-avatar { width: 36px; height: 36px; }
.client-hub-sidebar-scrim { display: none; }

html.client-hub-about-is-open { overflow: hidden; }
.client-hub-about-dialog { width: min(82vh, 82vw, 1080px); height: min(82vh, 82vw, 1080px); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #4c49cd; color: #0d0f14; box-shadow: 0 35px 110px rgba(0, 0, 0, 0.58); }
.client-hub-about-dialog[open] { animation: client-hub-about-reveal 920ms cubic-bezier(0.16, 0.74, 0.2, 1) both; }
.client-hub-about-dialog::backdrop { background: rgba(3, 4, 8, 0.82); backdrop-filter: blur(11px); animation: client-hub-about-backdrop 850ms ease both; }
.client-hub-about-dialog-inner { position: relative; display: grid; height: 100%; grid-template-rows: minmax(150px, 1fr) auto minmax(82px, .65fr); align-items: center; justify-items: center; padding: clamp(38px, 6vmin, 82px) clamp(28px, 7vmin, 96px) clamp(26px, 4vmin, 58px); overflow: hidden; text-align: center; }
.client-hub-about-close { position: absolute; z-index: 4; top: 16px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid rgba(13, 15, 20, 0.22); border-radius: 50%; background: transparent; color: #0d0f14; cursor: pointer; font-size: 24px; line-height: 1; opacity: .72; transition: opacity 180ms ease, background-color 180ms ease; }
.client-hub-about-close:hover, .client-hub-about-close:focus-visible { background: rgba(13, 15, 20, 0.08); color: #0d0f14; opacity: 1; outline: 0; }
.client-hub-about-mark { position: relative; align-self: end; width: clamp(132px, 17vmin, 220px); aspect-ratio: 131.07975 / 120.94555; margin-bottom: clamp(20px, 3vmin, 42px); }
.client-hub-about-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.client-hub-about-copy { align-self: center; max-width: 34ch; color: #0d0f14; font-size: clamp(20px, 2.55vmin, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.6; text-wrap: balance; }
.client-hub-about-copy p { margin: 0 0 1em; }
.client-hub-about-copy p:last-child { margin-bottom: 0; }
.client-hub-about-dialog footer { align-self: end; line-height: 0; }
.client-hub-about-dialog footer img { display: block; width: clamp(132px, 17vmin, 205px); height: auto; }
.client-hub-about-dialog[open] .client-hub-about-mark, .client-hub-about-dialog[open] .client-hub-about-copy, .client-hub-about-dialog[open] footer { opacity: 0; animation: client-hub-about-content 720ms ease forwards; filter: blur(8px); transform: translateY(10px); }
.client-hub-about-dialog[open] .client-hub-about-mark { animation-delay: 260ms; }
.client-hub-about-dialog[open] .client-hub-about-copy { animation-delay: 430ms; }
.client-hub-about-dialog[open] footer { animation-delay: 570ms; }

@keyframes client-hub-about-reveal { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes client-hub-about-backdrop { from { background: rgba(3, 4, 8, 0); backdrop-filter: blur(0); } to { background: rgba(3, 4, 8, 0.82); backdrop-filter: blur(11px); } }
@keyframes client-hub-about-content { to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.client-hub-main { width: min(1540px, 100%); margin: 0 auto; padding: 32px clamp(20px, 2.3vw, 38px) 56px; }
.client-hub-test-mode-banner { display: flex; min-height: 38px; align-items: center; gap: 10px; margin: -14px 0 22px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--hub-orange) 58%, transparent); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-orange) 9%, var(--hub-panel)); color: var(--hub-muted); font-size: 11px; }
.client-hub-test-mode-banner strong { color: var(--hub-orange); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.client-hub-test-mode-banner a { margin-left: auto; color: var(--hub-orange); font-weight: 700; text-decoration: none; }
.client-hub-test-mode-banner a:hover { color: var(--hub-text); }

/* Personal four-week forecast. */
.client-hub-forecast-page { display: grid; gap: 20px; }
.client-hub-forecast-add-primary { background: transparent; color: var(--hub-blue); cursor: pointer; }
.client-hub-forecast-add-primary:hover { background: color-mix(in srgb, var(--hub-blue) 9%, transparent); color: var(--hub-blue); }
.client-hub-forecast-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.client-hub-forecast-summary article { display: grid; min-height: 118px; align-content: center; padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.client-hub-forecast-summary small { color: var(--hub-muted); font-size: 11px; }
.client-hub-forecast-summary strong { margin: 2px 0; color: var(--hub-text); font-size: clamp(25px, 2.2vw, 36px); line-height: 1; letter-spacing: -0.045em; }
.client-hub-forecast-summary span { color: var(--hub-dim); font-size: 10px; }
.client-hub-forecast-board { display: grid; gap: 16px; }
.client-hub-forecast-week { min-width: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.client-hub-forecast-week > header { padding: 16px 18px 13px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-forecast-week > header small { display: block; margin-bottom: 2px; color: var(--hub-blue); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.client-hub-forecast-week > header h2 { margin: 0; color: var(--hub-text); font-size: 15px; }
.client-hub-forecast-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.client-hub-forecast-day { position: relative; display: flex; min-width: 0; min-height: 210px; flex-direction: column; padding: 13px 10px 11px; border-right: 1px solid var(--hub-line-soft); background: color-mix(in srgb, var(--hub-panel) 97%, var(--hub-blue) 3%); }
.client-hub-forecast-day:last-child { border-right: 0; }
.client-hub-forecast-day.is-today { background: color-mix(in srgb, var(--hub-panel) 91%, var(--hub-blue) 9%); box-shadow: inset 0 2px 0 var(--hub-blue); }
.client-hub-forecast-day.is-past { background: color-mix(in srgb, var(--hub-bg) 55%, var(--hub-panel)); opacity: 0.55; }
.client-hub-forecast-day > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.client-hub-forecast-day > header div { display: flex; align-items: baseline; gap: 5px; }
.client-hub-forecast-day > header small { color: var(--hub-dim); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; }
.client-hub-forecast-day > header strong { color: var(--hub-text); font-size: 18px; letter-spacing: -0.04em; }
.client-hub-forecast-day > header span { padding-top: 4px; color: var(--hub-dim); font-size: 8px; font-weight: 700; white-space: nowrap; }
.client-hub-forecast-capacity { height: 3px; margin: 8px 0 10px; overflow: hidden; border-radius: var(--hub-radius); background: var(--hub-line-soft); }
.client-hub-forecast-capacity i { display: block; width: var(--forecast-fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hub-blue-bright), var(--hub-blue)); transition: width 200ms ease; }
.client-hub-forecast-day.is-full .client-hub-forecast-capacity i { background: var(--hub-green); }
.client-hub-forecast-entries { display: grid; gap: 6px; }
.client-hub-forecast-entry { position: relative; min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--hub-blue) 24%, var(--hub-line)); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-blue) 9%, var(--hub-panel-strong)); }
.client-hub-forecast-entry::before { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 3px; background: var(--hub-blue); content: ""; }
.client-hub-forecast-entry[style*="--forecast-project:1"]::before { background: #2ee59d; }
.client-hub-forecast-entry[style*="--forecast-project:2"]::before { background: #ffad21; }
.client-hub-forecast-entry[style*="--forecast-project:3"]::before { background: #5fa8ff; }
.client-hub-forecast-entry[style*="--forecast-project:4"]::before { background: #e777ff; }
.client-hub-forecast-entry[style*="--forecast-project:5"]::before { background: #ff7a83; }
.client-hub-forecast-entry-main { display: grid; width: 100%; min-width: 0; gap: 1px; padding: 8px 22px 8px 9px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.client-hub-forecast-entry-main strong, .client-hub-forecast-entry-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-forecast-entry-main strong { color: var(--hub-text); font-size: 9px; }
.client-hub-forecast-entry-main span { color: var(--hub-blue); font-size: 9px; font-weight: 700; }
.client-hub-forecast-entry-main small { color: var(--hub-dim); font-size: 8px; }
.client-hub-forecast-delete { position: absolute; z-index: 2; top: 4px; right: 3px; display: grid; width: 20px; height: 20px; place-items: center; border: 0; background: transparent; color: var(--hub-dim); cursor: pointer; font-size: 14px; line-height: 1; }
.client-hub-forecast-delete:hover { color: var(--hub-danger); }
.client-hub-forecast-day-add { display: flex; width: 100%; min-height: 30px; align-items: center; justify-content: center; gap: 4px; margin-top: auto; padding: 6px; border: 1px dashed var(--hub-line); border-radius: var(--hub-radius); background: transparent; color: var(--hub-dim); cursor: pointer; font-size: 9px; font-weight: 700; transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease; }
.client-hub-forecast-day-add:hover { border-color: var(--hub-blue); background: color-mix(in srgb, var(--hub-blue) 7%, transparent); color: var(--hub-blue); }
.client-hub-forecast-day-state { margin-top: auto; padding: 7px 0; color: var(--hub-dim); font-size: 8px; text-align: center; text-transform: uppercase; }
.client-hub-forecast-day-state.is-full { color: var(--hub-green); font-weight: 700; }
.client-hub-forecast-dialog { width: min(480px, calc(100vw - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-text); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42); }
.client-hub-forecast-dialog::backdrop { background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(4px); }
.client-hub-forecast-dialog form { display: grid; gap: 17px; padding: 22px; }
.client-hub-forecast-dialog form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-forecast-dialog header small { color: var(--hub-blue); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.client-hub-forecast-dialog h2 { margin: 3px 0 1px; font-size: 21px; }
.client-hub-forecast-dialog header p { margin: 0; color: var(--hub-dim); font-size: 11px; }
.client-hub-forecast-dialog header > button { width: 30px; height: 30px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: transparent; color: var(--hub-muted); cursor: pointer; font-size: 20px; }
.client-hub-forecast-dialog label { display: grid; gap: 6px; color: var(--hub-muted); font-size: 10px; font-weight: 700; }
.client-hub-forecast-dialog label span { display: flex; justify-content: space-between; }
.client-hub-forecast-dialog label i { color: var(--hub-dim); font-style: normal; font-weight: 500; }
.client-hub-forecast-dialog select, .client-hub-forecast-dialog textarea { width: 100%; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-strong); color: var(--hub-text); font: inherit; font-size: 12px; }
.client-hub-forecast-dialog select { min-height: 42px; padding: 0 11px; }
.client-hub-forecast-dialog textarea { min-height: 94px; padding: 10px 11px; resize: vertical; }
.client-hub-forecast-dialog select:focus, .client-hub-forecast-dialog textarea:focus { border-color: var(--hub-blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hub-blue) 15%, transparent); outline: 0; }
.client-hub-forecast-dialog label > small { color: var(--hub-dim); font-size: 9px; font-weight: 500; }
.client-hub-forecast-form-error { margin: 0; padding: 9px 10px; border: 1px solid color-mix(in srgb, var(--hub-danger) 45%, transparent); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-danger) 8%, transparent); color: var(--hub-danger); font-size: 10px; }
.client-hub-forecast-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.client-hub-forecast-dialog footer .hub-outline-button { border: 0; background: transparent; color: var(--hub-dim); }
.client-hub-forecast-dialog footer .hub-outline-button:hover { border: 0; background: var(--hub-panel-strong); color: var(--hub-muted); }
.client-hub-forecast-save { min-height: 38px; padding: 0 17px; border: 1px solid var(--hub-blue); border-radius: var(--hub-radius); background: var(--hub-blue-bright); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.client-hub-forecast-save:hover { background: color-mix(in srgb, var(--hub-blue-bright) 82%, #000); }
.client-hub-forecast-save:disabled { cursor: wait; opacity: 0.55; }

/* Team Forecast overview. */
.client-hub-forecast-overview-page { display: grid; gap: 20px; }
.client-hub-team-forecast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-hub-team-forecast-card { min-width: 0; padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.client-hub-team-forecast-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.client-hub-team-forecast-person { display: flex; min-width: 0; align-items: center; gap: 11px; }
.client-hub-team-forecast-person > img, .client-hub-team-forecast-person > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.client-hub-team-forecast-person > span { display: grid; place-items: center; background: color-mix(in srgb, var(--hub-blue) 16%, var(--hub-panel-strong)); color: var(--hub-blue); font-weight: 700; }
.client-hub-team-forecast-person div { min-width: 0; }
.client-hub-team-forecast-person small { display: block; margin-bottom: 2px; color: var(--hub-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-team-forecast-person h2 { overflow: hidden; margin: 0; color: var(--hub-text); font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-team-forecast-total { flex: 0 0 auto; text-align: right; }
.client-hub-team-forecast-total strong, .client-hub-team-forecast-total span { display: block; }
.client-hub-team-forecast-total strong { color: var(--hub-text); font-size: 29px; line-height: 1; letter-spacing: -0.045em; }
.client-hub-team-forecast-total span { margin-top: 5px; color: var(--hub-dim); font-size: 11px; }
.client-hub-team-forecast-meter { height: 5px; margin: 16px 0 18px; overflow: hidden; border-radius: var(--hub-radius); background: var(--hub-line-soft); }
.client-hub-team-forecast-meter i { display: block; width: var(--team-forecast-fill); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hub-blue-bright), var(--hub-blue)); }
.client-hub-team-forecast-unmatched { margin: -7px 0 15px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--hub-orange) 36%, transparent); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-orange) 7%, transparent); color: var(--hub-muted); font-size: 11px; line-height: 1.5; }
.client-hub-team-forecast-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.client-hub-team-forecast-weeks > div { min-width: 0; padding: 10px; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-panel-strong) 94%, var(--hub-blue) 6%); }
.client-hub-team-forecast-weeks small, .client-hub-team-forecast-weeks strong, .client-hub-team-forecast-weeks span { display: block; }
.client-hub-team-forecast-weeks small { color: var(--hub-blue); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.client-hub-team-forecast-weeks strong { margin: 4px 0 2px; color: var(--hub-text); font-size: 22px; letter-spacing: -0.04em; }
.client-hub-team-forecast-weeks span { overflow: hidden; color: var(--hub-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-team-forecast-weeks > div > i { display: block; height: 3px; margin-top: 8px; overflow: hidden; border-radius: var(--hub-radius); background: var(--hub-line); }
.client-hub-team-forecast-weeks > div > i b { display: block; width: var(--week-forecast-fill); height: 100%; border-radius: inherit; background: var(--hub-blue); }
.client-hub-team-forecast-clients { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hub-line-soft); }
.client-hub-team-forecast-clients > strong { color: var(--hub-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-team-forecast-clients > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.client-hub-team-forecast-clients > div span { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); color: var(--hub-muted); font-size: 10px; }
.client-hub-team-forecast-clients > div span > i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--hub-blue); }
.client-hub-team-forecast-clients > div span > i[style*="--forecast-client-color:1"] { background: #2ee59d; }
.client-hub-team-forecast-clients > div span > i[style*="--forecast-client-color:2"] { background: #ffad21; }
.client-hub-team-forecast-clients > div span > i[style*="--forecast-client-color:3"] { background: #5fa8ff; }
.client-hub-team-forecast-clients > div span > i[style*="--forecast-client-color:4"] { background: #e777ff; }
.client-hub-team-forecast-clients > div span > i[style*="--forecast-client-color:5"] { background: #ff7a83; }
.client-hub-team-forecast-clients > div span b { margin-left: 2px; color: var(--hub-text); font-size: 10px; }
.client-hub-team-forecast-clients > p { margin: 8px 0 0; color: var(--hub-dim); font-size: 11px; }
.client-hub-team-forecast-calendar { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--hub-line-soft); }
.client-hub-team-forecast-calendar > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.client-hub-team-forecast-calendar > header strong { color: var(--hub-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-team-forecast-calendar > header span { color: var(--hub-dim); font-size: 10px; }
.client-hub-team-forecast-weekdays, .client-hub-team-forecast-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.client-hub-team-forecast-weekdays { margin-bottom: 4px; }
.client-hub-team-forecast-weekdays span { color: var(--hub-dim); font-size: 10px; font-weight: 700; text-align: center; }
.client-hub-team-forecast-calendar-grid > div { position: relative; display: grid; min-width: 0; min-height: 52px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 3px; padding: 7px 7px 9px; overflow: hidden; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-panel-strong) 96%, var(--hub-blue) 4%); }
.client-hub-team-forecast-calendar-grid > div.is-today { border-color: var(--hub-blue); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-blue) 30%, transparent); }
.client-hub-team-forecast-calendar-grid > div.is-past { opacity: 0.48; }
.client-hub-team-forecast-calendar-grid > div.has-hours { background: color-mix(in srgb, var(--hub-panel-strong) 84%, var(--hub-blue) 16%); }
.client-hub-team-forecast-calendar-grid > div > span { display: flex; min-width: 0; align-items: baseline; gap: 3px; }
.client-hub-team-forecast-calendar-grid > div > span small { overflow: hidden; color: var(--hub-dim); font-size: 9px; font-weight: 700; text-overflow: clip; text-transform: uppercase; }
.client-hub-team-forecast-calendar-grid > div > span b { color: var(--hub-muted); font-size: 11px; }
.client-hub-team-forecast-calendar-grid > div > strong { color: var(--hub-text); font-size: 10px; white-space: nowrap; }
.client-hub-team-forecast-calendar-grid > div > i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--hub-line); }
.client-hub-team-forecast-calendar-grid > div > i b { display: block; width: var(--day-forecast-fill); height: 100%; background: var(--hub-blue); }
.client-hub-team-forecast-calendar--bands { margin-top: 16px; }
.client-hub-forecast-band-weekdays { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 7px; }
.client-hub-forecast-band-weekdays b { color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-align: center; text-transform: uppercase; }
.client-hub-forecast-bands { display: grid; gap: 13px; }
.client-hub-forecast-band { display: grid; min-width: 0; grid-template-columns: 56px minmax(0, 1fr); gap: 7px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-forecast-band:last-child { padding-bottom: 0; border-bottom: 0; }
.client-hub-forecast-band-date { display: flex; grid-row: 1 / 3; align-items: flex-start; justify-content: space-between; flex-direction: column; padding: 5px 0 3px; }
.client-hub-forecast-band-date strong, .client-hub-forecast-band-date span { color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.035em; white-space: nowrap; }
.client-hub-forecast-band-days { display: grid; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.client-hub-forecast-band-days > div { position: relative; min-width: 0; min-height: 43px; overflow: hidden; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-panel-strong) 96%, var(--hub-blue) 4%); }
.client-hub-forecast-band-days > div > i { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: var(--day-forecast-fill); background: color-mix(in srgb, var(--hub-blue) 64%, transparent); opacity: 0.84; }
.client-hub-forecast-band-days > div > span, .client-hub-forecast-band-days > div > b { position: absolute; z-index: 1; }
.client-hub-forecast-band-days > div > span { top: 5px; left: 6px; color: var(--hub-muted); font-size: 8px; font-weight: 700; }
.client-hub-forecast-band-days > div > b { right: 5px; bottom: 4px; color: var(--hub-text); font-size: 8px; }
.client-hub-forecast-band-days > div.is-today { border-color: var(--hub-blue); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hub-blue) 28%, transparent); }
.client-hub-forecast-band-days > div.is-past { opacity: 0.46; }
.client-hub-forecast-band-allocations { display: grid; grid-column: 2; gap: 5px; min-width: 0; }
.client-hub-forecast-band-allocations article { display: grid; min-width: 0; grid-template-columns: minmax(92px, 0.3fr) minmax(0, 1fr); align-items: baseline; gap: 9px; }
.client-hub-forecast-band-allocations article > strong { overflow: hidden; color: var(--hub-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-forecast-band-allocations article > p { display: flex; min-width: 0; align-items: baseline; gap: 6px; margin: 0; }
.client-hub-forecast-band-allocations article b { flex: 0 0 auto; color: var(--hub-blue); font-size: 10px; text-transform: uppercase; }
.client-hub-forecast-band-allocations article span { overflow: hidden; color: var(--hub-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-forecast-band-allocations article time { flex: 0 0 auto; color: var(--hub-dim); font-size: 9px; font-weight: 700; }
.client-hub-forecast-band-allocations > p { margin: 0; color: var(--hub-dim); font-size: 9px; }
.client-hub-forecast-member-links { padding: 20px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.client-hub-forecast-member-links > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-forecast-member-links small { color: var(--hub-blue); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-forecast-member-links h2 { margin: 3px 0 0; color: var(--hub-text); font-size: 18px; }
.client-hub-forecast-member-links header p { margin: 0; color: var(--hub-dim); font-size: 10px; }
.client-hub-forecast-member-links > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 15px; }
.client-hub-forecast-member-links a { min-height: 44px; background: color-mix(in srgb, var(--hub-blue) 5%, transparent); }
.client-hub-forecast-member-links a img, .client-hub-forecast-member-links a > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hub-blue) 18%, var(--hub-panel-strong)); object-fit: cover; color: var(--hub-blue); font-size: 9px; }
.client-hub-forecast-member-links a b { font-size: 14px; font-weight: 400; }
.client-hub-readonly-forecast-heading .client-hub-team-forecast-person > img, .client-hub-readonly-forecast-heading .client-hub-team-forecast-person > span { width: 52px; height: 52px; }
.client-hub-readonly-forecast-heading .client-hub-team-forecast-person h1 { margin: 3px 0 0; }
.client-hub-readonly-forecast-board .client-hub-forecast-entry-main { padding-right: 9px; cursor: default; }
.client-hub-readonly-forecast-board .client-hub-forecast-day-state { margin-top: auto; }
.client-hub-footer { width: min(1540px, 100%); margin: 0 auto; padding: 16px clamp(20px, 2.3vw, 38px) 24px; border-top: 1px solid var(--hub-line-soft); color: var(--hub-dim); }
.client-hub-footer span { color: var(--hub-blue); }

.hub-overview-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hub-overview-hero small { color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.hub-overview-hero h1 { margin: 9px 0 3px; color: var(--hub-text); font-size: clamp(31px, 3vw, 44px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.hub-overview-hero p { margin: 0; color: var(--hub-dim); font-size: 15px; }
.hub-outline-button { display: inline-flex; min-height: 40px; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--hub-blue-bright); border-radius: var(--hub-radius); color: var(--hub-blue); font-size: 12px; font-weight: 700; text-decoration: none; }

.hub-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.hub-stat-card { position: relative; display: grid; min-width: 0; min-height: 136px; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 18px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.hub-stat-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: rgba(130, 91, 255, 0.16); color: var(--hub-blue); }
.hub-stat-card--warning .hub-stat-icon { background: rgba(255, 173, 33, 0.16); color: var(--hub-orange); }
.hub-stat-card--money .hub-stat-icon { background: rgba(46, 229, 157, 0.13); color: var(--hub-green); }
.hub-stat-card > div { min-width: 0; }
.hub-stat-card small, .hub-stat-card p { color: var(--hub-dim); font-size: 11px; }
.hub-stat-card small { display: block; margin-top: 3px; }
.hub-stat-card strong { display: block; margin: 5px 0 4px; overflow: hidden; color: var(--hub-text); font-size: clamp(27px, 2.4vw, 39px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.hub-stat-card p { margin: 0; }
.hub-stat-card > b { color: var(--hub-dim); font-size: 20px; font-weight: 400; }

.hub-overdue-alert { display: flex; min-height: 52px; align-items: center; gap: 14px; margin: 14px 0; padding: 0 18px; border: 1px solid rgba(243, 155, 11, 0.5); border-radius: var(--hub-radius); background: linear-gradient(90deg, rgba(243, 155, 11, 0.14), rgba(243, 155, 11, 0.035)); color: var(--hub-text); font-size: 12px; }
.hub-overdue-alert .client-hub-icon { color: var(--hub-orange); }
.hub-overdue-alert i { width: 1px; height: 22px; background: var(--hub-line); }
.hub-overdue-alert span { color: var(--hub-muted); }
.hub-overdue-alert a { margin-left: auto; color: var(--hub-blue); font-weight: 700; text-decoration: none; }

.hub-dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); align-items: start; gap: 14px; }
.hub-dashboard-main-column, .hub-dashboard-side-column { display: grid; gap: 14px; }
.hub-card, .client-hub-outline-panel { min-width: 0; min-height: 0; padding: 18px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.hub-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hub-line-soft); }
.hub-card-header h2 { margin: 0; color: var(--hub-text); font-size: 18px; font-weight: 700; letter-spacing: -0.025em; }
.hub-card-header p { margin: 4px 0 0; color: var(--hub-dim); font-size: 11px; }
.hub-card-header > a, .hub-card-header > span { color: var(--hub-dim); font-size: 20px; text-decoration: none; }
.hub-priority-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hub-my-tasks-toggle { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--hub-dim); cursor: pointer; white-space: nowrap; }
.hub-my-tasks-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hub-my-tasks-toggle > span { position: relative; width: 30px; height: 17px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-bg); transition: border-color 150ms ease, background 150ms ease; }
.hub-my-tasks-toggle > span::after { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--hub-dim); content: ''; transition: transform 150ms ease, background 150ms ease; }
.hub-my-tasks-toggle input:checked + span { border-color: var(--hub-blue); background: color-mix(in srgb, var(--hub-blue) 24%, transparent); }
.hub-my-tasks-toggle input:checked + span::after { background: var(--hub-blue); transform: translateX(13px); }
.hub-my-tasks-toggle input:focus-visible + span { outline: 2px solid var(--hub-blue); outline-offset: 2px; }
.hub-my-tasks-toggle b { font-size: 10px; font-weight: 600; }
.hub-segmented { display: flex; padding: 3px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-bg); }
.hub-segmented button { min-width: 110px; height: 31px; border: 0; background: transparent; color: var(--hub-dim); cursor: pointer; font: inherit; font-size: 10px; }
.hub-priorities .hub-segmented button { min-width: 88px; }
.hub-segmented button.is-active { background: rgba(130, 91, 255, 0.15); color: var(--hub-blue); }
.hub-segmented button[data-priority-tab="overdue"].is-active { background: rgba(255, 100, 111, 0.13); color: var(--hub-danger); }
.hub-segmented span { display: inline-grid; min-width: 17px; height: 17px; margin-left: 6px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hub-blue) 18%, transparent); }
.hub-priority-list { display: none; }
.hub-priority-list.is-active { display: block; }
.hub-priority-labels, .hub-priority-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 92px 96px 22px; align-items: center; gap: 12px; }
.hub-priority-labels { padding: 13px 0 8px; color: var(--hub-dim); font-size: 10px; }
.hub-priority-labels span:first-child { grid-column: 2; }
.hub-priority-row { min-height: 66px; border-top: 1px solid var(--hub-line-soft); }
.hub-priority-row[hidden] { display: none !important; }
.hub-priority-row > i { width: 18px; height: 18px; border: 1px solid var(--hub-dim); border-radius: 4px; }
.hub-priority-row div { min-width: 0; }
.hub-priority-row a, .hub-priority-row div > strong { display: block; overflow: hidden; color: var(--hub-text); font-size: 12px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.hub-priority-row small { display: block; margin-top: 3px; overflow: hidden; color: var(--hub-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hub-priority-row .hub-priority-assignees { color: var(--hub-muted); font-size: 9px; }
.hub-priority-row time { color: var(--hub-muted); font-size: 10px; }
.hub-priority-status { color: var(--hub-dim); font-size: 10px; }
.hub-priority-status.is-overdue { width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(255, 100, 111, 0.13); color: var(--hub-danger); }
.hub-priority-row > b { color: var(--hub-dim); font-size: 10px; letter-spacing: 1px; }
.hub-empty-row { margin: 0; padding: 26px 0 12px; color: var(--hub-dim); text-align: center; }

.client-hub-team-list { max-height: none; gap: 0; padding: 0; }
.client-hub-person { min-height: 82px; grid-template-columns: 42px minmax(0, 1fr) 10px; padding: 12px 0; border-bottom: 1px solid var(--hub-line-soft); background: transparent; }
.client-hub-person:last-child { border-bottom: 0; }
.client-hub-person strong { color: var(--hub-text); font-size: 12px; }
.client-hub-person .client-hub-person-assignment, .client-hub-person .client-hub-person-hours { color: var(--hub-dim); font-size: 10px; }
.client-hub-person .client-hub-person-forecast { color: var(--hub-blue); font-size: 10px; }
.client-hub-timer-light { width: 9px; height: 9px; }
.client-hub-calendar-list { gap: 0; }
.client-hub-calendar-event { grid-template-columns: 58px minmax(0, 1fr) 20px; min-height: 82px; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hub-line-soft); background: transparent; }
.client-hub-calendar-event:last-child { border-bottom: 0; }
.client-hub-calendar-event:hover { background: color-mix(in srgb, var(--hub-blue) 4%, transparent); }
.client-hub-calendar-event time { display: grid; width: 58px; min-height: 58px; place-items: center; align-content: center; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: var(--hub-panel-strong); text-align: center; }
.client-hub-calendar-event time strong { color: var(--hub-blue); font-size: 9px; letter-spacing: 0.06em; line-height: 1; }
.client-hub-calendar-event time em { margin-top: 4px; color: var(--hub-text); font-size: 23px; font-style: normal; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.client-hub-calendar-event > span > strong { color: var(--hub-text); font-size: 13px; }
.client-hub-calendar-event small { margin-top: 5px; color: var(--hub-dim); font-size: 10px; line-height: 1.35; white-space: normal; }
.client-hub-calendar-event > b { color: var(--hub-dim); font-size: 9px; }

.client-hub-activity { padding: 18px; overflow: hidden; }
.client-hub-activity .client-hub-activity-toolbar { position: static; padding: 0; background: transparent; transform: none; }
.client-hub-activity-track { grid-auto-columns: calc((100% - 42px) / 4); }
.client-hub-activity-card { min-height: 205px; border: 1px solid var(--hub-line-soft); background: color-mix(in srgb, var(--hub-bg) 45%, transparent); }
.client-hub-activity-card h3 { color: var(--hub-text); }
.client-hub-activity-action { color: var(--hub-muted); }
.client-hub-activity-empty { min-height: 170px; place-items: center; text-align: center; }

.client-hub-retainers { margin-top: 14px; border-top: 2px solid color-mix(in srgb, var(--hub-blue) 72%, var(--hub-line)); }
.client-hub-retainer-summary { margin-top: 18px; padding: 22px; border: 1px solid color-mix(in srgb, var(--hub-blue) 42%, var(--hub-line)); background: linear-gradient(105deg, color-mix(in srgb, var(--hub-blue) 13%, var(--hub-panel)) 0%, var(--hub-panel) 62%); }
.client-hub-retainer-summary header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.client-hub-retainer-summary header div { display: grid; gap: 4px; }
.client-hub-retainer-summary header div small { color: var(--hub-blue); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.client-hub-retainer-summary header strong { color: var(--hub-text); font-size: 16px; }
.client-hub-retainer-summary header > span { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--hub-blue) 30%, var(--hub-line)); border-radius: var(--hub-radius); color: var(--hub-muted); font-size: 10px; }
.client-hub-retainer-summary-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--hub-line-soft); }
.client-hub-retainer-summary-metrics > span { min-width: 0; padding: 18px 18px 2px; border-left: 1px solid var(--hub-line-soft); }
.client-hub-retainer-summary-metrics > span:first-child { padding-left: 0; border-left: 0; }
.client-hub-retainer-summary-metrics small, .client-hub-retainer-summary-metrics strong { display: block; }
.client-hub-retainer-summary-metrics small { margin-bottom: 7px; color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-retainer-summary-metrics strong { color: var(--hub-text); font-size: clamp(20px, 2vw, 31px); font-weight: 700; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.client-hub-retainer-summary-metrics .is-primary strong { color: var(--hub-blue); font-size: clamp(25px, 2.6vw, 39px); }
.client-hub-retainer-summary-metrics .is-contract strong { color: var(--hub-text); }
.client-hub-retainer-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 12px; }
.client-hub-retainer-directory-heading div { display: grid; gap: 3px; }
.client-hub-retainer-directory-heading strong { color: var(--hub-text); font-size: 14px; }
.client-hub-retainer-directory-heading small { color: var(--hub-dim); font-size: 10px; }
.client-hub-retainer-directory-heading > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hub-blue) 13%, transparent); color: var(--hub-blue); font-size: 10px; font-weight: 700; }
.client-hub-retainer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.client-hub-retainer-project { padding: 19px; border: 1px solid var(--hub-line); background: var(--hub-panel-strong); box-shadow: 0 8px 20px color-mix(in srgb, var(--hub-bg-deep) 42%, transparent); }
.client-hub-retainer-project header { align-items: flex-start; flex-direction: column; gap: 4px; }
.client-hub-retainer-project header a, .client-hub-retainer-project header > strong { width: 100%; color: var(--hub-text); font-size: 14px; }
.client-hub-retainer-project header small { width: 100%; color: var(--hub-dim); }
.client-hub-retainer-hours { grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr)); align-items: end; gap: 0; margin-top: 10px; padding: 14px; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: var(--hub-bg); }
.client-hub-retainer-hours > span { padding-left: 13px; border-left: 1px solid var(--hub-line-soft); }
.client-hub-retainer-hours > span:first-child { padding-left: 0; border-left: 0; }
.client-hub-retainer-hours strong { color: var(--hub-text); font-size: 17px; font-weight: 700; letter-spacing: -0.035em; }
.client-hub-retainer-hours .is-current strong { font-size: clamp(27px, 2.2vw, 35px); letter-spacing: -0.055em; line-height: 0.95; }
.client-hub-retainer-hours small { margin-top: 7px; color: var(--hub-dim); font-size: 9px; }
.client-hub-retainer-monthly { display: flex; min-height: 78px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 16px; padding: 14px; border: 1px solid var(--hub-line); border-left: 3px solid var(--hub-blue); border-radius: var(--hub-radius); background: var(--hub-panel-gradient); }
.client-hub-retainer-monthly > div { display: grid; gap: 4px; min-width: 0; }
.client-hub-retainer-monthly small, .client-hub-retainer-monthly span { display: block; }
.client-hub-retainer-monthly small { color: var(--hub-text); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-retainer-monthly span { color: var(--hub-dim); font-size: 9px; }
.client-hub-retainer-monthly > strong { color: var(--hub-text); font-size: clamp(23px, 2vw, 31px); font-weight: 700; letter-spacing: -0.05em; white-space: nowrap; }
.client-hub-retainer-monthly > strong.is-empty { color: var(--hub-dim); font-size: 16px; letter-spacing: 0; }
.client-hub-retainer-paid-heading { margin-top: 17px; }
.client-hub-retainer-paid-totals { margin-top: 9px; padding-top: 0; border-top: 0; }
.client-hub-retainer-paid-totals strong { color: var(--hub-text); }

.client-hub-page-heading { margin: 18px 0 26px; }
.client-hub-page-heading p { color: var(--hub-dim); }
.client-hub-page-heading h1 { margin-top: 8px; color: var(--hub-text); font-size: clamp(34px, 4vw, 52px); font-weight: 700; }
.client-hub-project-tabs { border-color: var(--hub-line); }
.client-hub-project-tabs a { color: var(--hub-dim); }
.client-hub-project-tabs a.is-active { background: rgba(130, 91, 255, 0.12); color: var(--hub-blue); }
.client-hub-outline-panel > h1, .client-hub-outline-panel > h2 { position: static; margin: 0 0 8px; padding: 0; background: transparent; color: var(--hub-text); font-size: 16px; letter-spacing: 0; text-transform: none; transform: none; }
.client-hub-directory { padding: 0; overflow: hidden; }
.client-hub-project-row { min-height: 88px; border-color: var(--hub-line-soft); }
.client-hub-project-row:hover { background: color-mix(in srgb, var(--hub-blue) 5%, transparent); }
.client-hub-project-row h2 { color: var(--hub-text); }
.client-hub-project-row p, .client-hub-project-row > a { color: var(--hub-dim); }
.client-hub-project-overview-grid { display: grid; gap: 18px; }
.client-hub-project-overview-card { padding: 22px; }
.client-hub-project-overview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-project-overview-header > div:first-child { min-width: 0; }
.client-hub-project-overview-header small { color: var(--hub-blue); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.client-hub-project-overview-header h2 { margin: 5px 0 0; color: var(--hub-text); font-size: 23px; letter-spacing: -0.035em; }
.client-hub-project-overview-header p { max-width: 760px; margin: 6px 0 0; color: var(--hub-dim); font-size: 11px; line-height: 1.5; }
.client-hub-project-overview-actions { display: flex; align-items: center; gap: 16px; }
.client-hub-project-overview-actions > a { color: var(--hub-blue); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.client-hub-project-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: var(--hub-bg); }
.client-hub-project-metrics span { min-width: 0; padding: 15px 18px; border-left: 1px solid var(--hub-line-soft); }
.client-hub-project-metrics span:first-child { border-left: 0; }
.client-hub-project-metrics strong, .client-hub-project-metrics small { display: block; }
.client-hub-project-metrics strong { color: var(--hub-text); font-size: 25px; line-height: 1; }
.client-hub-project-metrics .is-warning strong { color: var(--hub-danger); }
.client-hub-project-metrics small { margin-top: 7px; color: var(--hub-dim); font-size: 9px; text-transform: uppercase; }
.client-hub-project-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-hub-project-detail-grid > section, .client-hub-project-todo-lists { min-width: 0; padding: 16px; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-bg) 45%, transparent); }
.client-hub-project-detail-grid section > header, .client-hub-project-todo-lists > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-project-detail-grid h3, .client-hub-project-todo-lists h3 { margin: 0; color: var(--hub-text); font-size: 13px; }
.client-hub-project-detail-grid header > span, .client-hub-project-todo-lists > header > span { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--hub-blue) 13%, transparent); color: var(--hub-blue); font-size: 9px; }
.client-hub-project-deadlines a { display: grid; grid-template-columns: 76px 17px minmax(0, 1fr); gap: 3px 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hub-line-soft); text-decoration: none; }
.client-hub-project-deadlines a:last-child { border-bottom: 0; }
.client-hub-project-deadlines .client-hub-todo-box { grid-row: 1 / 3; grid-column: 2; }
.client-hub-project-deadlines time { grid-row: 1 / 3; grid-column: 1; color: var(--hub-blue); font-size: 9px; font-weight: 700; }
.client-hub-project-deadlines strong { overflow: hidden; color: var(--hub-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-project-deadlines small { color: var(--hub-dim); font-size: 9px; }
.client-hub-project-changes article { padding: 11px 0; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-project-changes article:last-child { border-bottom: 0; }
.client-hub-project-changes strong { color: var(--hub-text); font-size: 11px; }
.client-hub-project-changes p { margin: 3px 0; color: var(--hub-muted); font-size: 10px; }
.client-hub-project-changes small { color: var(--hub-dim); font-size: 9px; }
.client-hub-project-todo-lists { margin-top: 14px; }
.client-hub-project-todo-lists > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 13px; }
.client-hub-project-todo-lists article { min-width: 0; padding: 13px; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: var(--hub-panel-strong); }
.client-hub-project-todo-lists article header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.client-hub-project-todo-lists article header strong { overflow: hidden; color: var(--hub-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-project-todo-lists article header span { color: var(--hub-blue); font-size: 9px; font-weight: 700; }
.client-hub-project-todo-lists ul { margin: 10px 0 0; padding: 0; list-style: none; }
.client-hub-project-todo-lists li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--hub-line-soft); }
.client-hub-project-todo-lists li a { overflow: hidden; color: var(--hub-muted); font-size: 10px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-project-todo-lists li time { color: var(--hub-dim); font-size: 8px; }
.client-hub-todo-box { display: block; width: 15px; height: 15px; border: 1px solid var(--hub-dim); border-radius: var(--hub-radius); background: color-mix(in srgb, var(--hub-bg) 72%, transparent); }
.client-hub-project-todo-lists article > small { display: block; margin-top: 8px; color: var(--hub-dim); font-size: 9px; }
.client-hub-project-detail-empty { margin: 18px 0 4px; color: var(--hub-dim); font-size: 10px; }
.client-hub-team-chart-panel, .client-hub-revenue-chart-panel { padding: 20px; }
.client-hub-chart-kicker { color: var(--hub-dim); }
.client-hub-chart-footer { color: var(--hub-dim); }
.client-hub-report-summary { gap: 14px; margin-bottom: 14px; }
.client-hub-report-summary article { min-height: 140px; border: 1px solid var(--hub-line); background: var(--hub-panel-gradient); box-shadow: var(--hub-shadow); }
.client-hub-report-summary strong { background: none; color: var(--hub-text); -webkit-text-fill-color: currentColor; }
.client-hub-report-summary small, .client-hub-report-summary span { color: var(--hub-dim); }
.client-hub-report-notice { border-color: var(--hub-line); background: var(--hub-bg); color: var(--hub-dim); }
.client-hub-hosting-invoice-disclosure { margin-top: 10px; text-align: right; }
.client-hub-hosting-invoice-disclosure > button { padding: 5px 2px; border: 0; background: transparent; color: color-mix(in srgb, var(--hub-dim) 72%, transparent); cursor: pointer; font: inherit; font-size: 9px; transition: color 200ms ease; }
.client-hub-hosting-invoice-disclosure > button:hover, .client-hub-hosting-invoice-disclosure > button:focus-visible, .client-hub-hosting-invoice-disclosure > button[aria-expanded="true"] { color: var(--hub-muted); }
.client-hub-hosting-invoice-disclosure > button span { margin-left: 3px; }
.client-hub-hosting-invoice-disclosure > button b { display: inline-block; margin-left: 3px; font-size: 11px; font-weight: 400; transition: transform 200ms ease; }
.client-hub-hosting-invoice-disclosure > button[aria-expanded="true"] b { transform: rotate(180deg); }
.client-hub-hosting-invoices { margin-top: 8px; overflow: hidden; border: 1px solid var(--hub-line-soft); border-radius: var(--hub-radius); background: var(--hub-panel); text-align: left; }
.client-hub-hosting-invoices[hidden] { display: none !important; }
.client-hub-hosting-invoice-head, .client-hub-hosting-invoices article { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(130px, 1fr) 100px 80px 110px; align-items: center; gap: 14px; }
.client-hub-hosting-invoice-head { padding: 10px 16px; border-bottom: 1px solid var(--hub-line-soft); color: var(--hub-dim); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-hosting-invoice-head span:last-child { text-align: right; }
.client-hub-hosting-invoices article { min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--hub-line-soft); }
.client-hub-hosting-invoices article:last-child { border-bottom: 0; }
.client-hub-hosting-invoices article div { min-width: 0; }
.client-hub-hosting-invoices article div a, .client-hub-hosting-invoices article div > strong { display: block; overflow: hidden; color: var(--hub-text); font-size: 10px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-hosting-invoices article div small { display: block; margin-top: 3px; color: var(--hub-dim); font-size: 8px; }
.client-hub-hosting-invoices article > span, .client-hub-hosting-invoices article time { color: var(--hub-muted); font-size: 9px; }
.client-hub-hosting-invoices article > strong { color: var(--hub-text); font-size: 10px; text-align: right; }
.client-hub-hosting-invoice-state { text-transform: capitalize; }
.client-hub-hosting-invoices > p { margin: 0; padding: 18px; color: var(--hub-dim); font-size: 10px; text-align: center; }

body.login { position: relative; display: grid; min-height: 100vh; place-items: center; overflow-x: hidden; background: radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--hub-blue) 15%, transparent), transparent 34%), radial-gradient(circle at 86% 88%, color-mix(in srgb, var(--hub-blue) 8%, transparent), transparent 30%), var(--hub-bg); isolation: isolate; }
body.login::before { position: fixed; z-index: -1; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--hub-line) 22%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--hub-line) 22%, transparent) 1px, transparent 1px); background-size: 46px 46px; content: ''; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 78%); opacity: 0.3; pointer-events: none; }
body.login #login { position: relative; z-index: 1; width: min(380px, calc(100% - 32px)); padding: 34px 0; }
body.login h1 { margin: 0; }
body.login h1 a { width: auto; max-width: 100%; height: auto; margin: 0 auto; background: none; font-size: 0; line-height: 1; text-indent: 0; }
body.login h1 a::before, body.login h1 a::after { font-size: 34px; }
body.login .client-hub-login-credit { margin: 8px 0 25px; color: color-mix(in srgb, var(--hub-dim) 76%, transparent); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; }
body.login form { position: relative; margin-top: 0; padding: 27px; overflow: hidden; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: linear-gradient(145deg, color-mix(in srgb, var(--hub-panel-strong) 92%, var(--hub-blue) 8%), var(--hub-panel)); box-shadow: 0 22px 70px color-mix(in srgb, var(--hub-bg-deep) 72%, transparent); }
body.login form::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--hub-blue), transparent); content: ''; opacity: 0.72; }
body.login label { color: var(--hub-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
body.login .input, body.login input[type="text"], body.login input[type="email"], body.login input[type="password"] { min-height: 46px; margin-top: 7px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-bg); color: var(--hub-text); font-size: 16px; box-shadow: none; transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease; }
body.login .input:focus, body.login input[type="text"]:focus, body.login input[type="email"]:focus, body.login input[type="password"]:focus { border-color: color-mix(in srgb, var(--hub-blue) 78%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-blue) 15%, transparent); }
body.login .forgetmenot { display: flex; min-height: 40px; align-items: center; }
body.login .button-primary { min-height: 40px; padding-inline: 19px; border: 1px solid color-mix(in srgb, var(--hub-blue) 82%, #fff); border-radius: var(--hub-radius); background: var(--hub-blue-bright); color: #fff; font-weight: 700; box-shadow: 0 8px 22px color-mix(in srgb, var(--hub-blue) 24%, transparent); transition: none; }
body.login .button-primary:hover, body.login .button-primary:focus { background: color-mix(in srgb, var(--hub-blue-bright) 88%, #000); filter: none; transform: none; box-shadow: 0 8px 22px color-mix(in srgb, var(--hub-blue) 24%, transparent); }
body.login #login_error, body.login .message, body.login .success { border-left-color: var(--hub-blue); border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-muted); box-shadow: var(--hub-shadow); }
body.login #nav, body.login #backtoblog { padding: 0; text-align: center; }
body.login #nav { margin-top: 21px; }
body.login #backtoblog { margin-top: 12px; }
body.login #nav a, body.login #backtoblog a, body.login .privacy-policy-page-link a { color: var(--hub-dim); font-size: 10px; transition: color 200ms ease; }
body.login #nav a:hover, body.login #backtoblog a:hover, body.login .privacy-policy-page-link a:hover { color: var(--hub-blue); }
body.login .language-switcher { margin-top: 24px; }
body.login .language-switcher form { padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
body.login .language-switcher form::before { content: none; }
body.login .language-switcher label { color: var(--hub-dim); }
body.login .language-switcher select { border-color: var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-muted); }
.client-hub-login-theme-toggle { position: fixed; z-index: 3; top: 18px; right: 18px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--hub-line); border-radius: 50%; background: var(--hub-panel); color: var(--hub-text); cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease; }
.client-hub-login-theme-toggle:hover { border-color: var(--hub-blue); transform: rotate(8deg); }

@media (prefers-reduced-motion: no-preference) {
	body.login #login > h1, body.login .client-hub-login-credit, body.login #login_error, body.login .message, body.login .success, body.login #login > form, body.login #nav, body.login #backtoblog, body.login .privacy-policy-page-link, body.login .language-switcher, body.login .client-hub-login-theme-toggle { opacity: 0; animation: client-hub-login-reveal 360ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; filter: blur(7px); transform: translateY(8px); }
	body.login #login > h1 { animation-delay: 40ms; }
	body.login .client-hub-login-credit { animation-delay: 105ms; }
	body.login #login_error, body.login .message, body.login .success { animation-delay: 155ms; }
	body.login #login > form { animation-delay: 175ms; }
	body.login #nav { animation-delay: 245ms; }
	body.login #backtoblog { animation-delay: 290ms; }
	body.login .privacy-policy-page-link, body.login .language-switcher { animation-delay: 325ms; }
	body.login .client-hub-login-theme-toggle { animation-delay: 360ms; }
}

@keyframes client-hub-login-reveal { to { opacity: 1; filter: blur(0); transform: translateY(0); } }

@media (max-width: 1280px) {
	.hub-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-retainer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-project-todo-lists > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-forecast-days { min-width: 1050px; }
	.client-hub-forecast-week { overflow-x: auto; }
	.client-hub-team-forecast-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
	.client-hub-app { grid-template-columns: 1fr; }
	.client-hub-sidebar { position: fixed; left: 0; transform: translateX(-102%); transition: transform 200ms ease; }
	.client-hub-sidebar .client-hub-brand,
	.client-hub-sidebar .client-hub-workspace-name,
	.client-hub-sidebar .client-hub-nav,
	.client-hub-sidebar .client-hub-integrations,
	.client-hub-sidebar .client-hub-sidebar-bottom { order: 0; }
	.client-hub-sidebar .client-hub-nav { overflow: visible; }
	.client-hub-nav-open .client-hub-sidebar { transform: translateX(0); }
	.client-hub-sidebar-scrim { position: fixed; z-index: 25; display: block; inset: 0; border: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
	.client-hub-nav-open .client-hub-sidebar-scrim { opacity: 1; pointer-events: auto; }
	.client-hub-menu-button { display: inline-grid; place-items: center; }
	.hub-dashboard-columns { grid-template-columns: 1fr; }
	.hub-dashboard-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-forecast-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.client-hub-sidebar { width: min(86vw, 300px); padding: 20px 16px 16px; }
	.client-hub-sidebar .client-hub-brand { width: auto; margin-bottom: 24px; }
	.client-hub-sidebar .client-hub-brand-logo { width: 150px; height: 38px; }
	.client-hub-sidebar .client-hub-nav { width: 100%; justify-content: stretch; }
	.client-hub-sidebar .client-hub-nav a { min-height: 44px; padding-inline: 12px; font-size: 14px; }
	.client-hub-header { min-height: 58px; padding-inline: 14px; }
	.client-hub-breadcrumb { gap: 8px; }
	.client-hub-breadcrumb-brand { width: 29px; height: 29px; }
	.client-hub-breadcrumb > span, .client-hub-breadcrumb > b { display: none; }
	.client-hub-global-search { display: none; }
	.client-hub-main { padding: 22px 14px 42px; }
	.client-hub-test-mode-banner { align-items: flex-start; flex-wrap: wrap; margin-top: -7px; }
	.hub-overview-hero { align-items: flex-start; flex-direction: column; }
	.hub-stat-grid, .hub-dashboard-side-column, .client-hub-retainer-list, .client-hub-report-summary { grid-template-columns: 1fr; }
	.client-hub-forecast-summary { grid-template-columns: 1fr; }
	.client-hub-forecast-summary article { min-height: 96px; }
	.client-hub-forecast-week > header { position: sticky; left: 0; }
	.client-hub-forecast-dialog form { padding: 18px; }
	.client-hub-team-forecast-card { padding: 16px; }
	.client-hub-team-forecast-card > header { align-items: flex-start; }
	.client-hub-team-forecast-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-forecast-band-weekdays { grid-template-columns: 45px repeat(7, minmax(0, 1fr)); gap: 3px; }
	.client-hub-forecast-band { grid-template-columns: 45px minmax(0, 1fr); gap: 6px; }
	.client-hub-forecast-band-days { gap: 3px; }
	.client-hub-forecast-band-days > div { min-height: 38px; }
	.client-hub-forecast-band-allocations article { grid-template-columns: 1fr; gap: 2px; }
	.client-hub-forecast-member-links > header { align-items: flex-start; flex-direction: column; }
	.client-hub-project-overview-header, .client-hub-project-overview-actions { align-items: flex-start; flex-direction: column; }
	.client-hub-project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-project-metrics span:nth-child(odd) { border-left: 0; }
	.client-hub-project-metrics span:nth-child(n+3) { border-top: 1px solid var(--hub-line-soft); }
	.client-hub-project-detail-grid, .client-hub-project-todo-lists > div { grid-template-columns: 1fr; }
	.client-hub-hosting-invoice-head { display: none; }
	.client-hub-hosting-invoices article { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; }
	.client-hub-hosting-invoices article > span, .client-hub-hosting-invoices article time { grid-column: 1; }
	.client-hub-hosting-invoices article > strong { grid-row: 1; grid-column: 2; }
	.client-hub-retainer-summary { padding: 17px; }
	.client-hub-retainer-summary header { align-items: flex-start; flex-direction: column; }
	.client-hub-retainer-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-retainer-summary-metrics > span, .client-hub-retainer-summary-metrics > span:first-child { padding: 14px 10px 4px; border-top: 1px solid var(--hub-line-soft); border-left: 0; }
	.client-hub-retainer-summary-metrics > span:nth-child(even) { border-left: 1px solid var(--hub-line-soft); }
	.hub-overdue-alert { align-items: flex-start; flex-wrap: wrap; padding-block: 14px; }
	.hub-overdue-alert a { width: 100%; margin-left: 34px; }
	.hub-card-header { flex-direction: column; }
	.hub-priority-controls { width: 100%; align-items: stretch; flex-direction: column; }
	.hub-my-tasks-toggle { align-self: flex-end; }
	.hub-segmented { width: 100%; }
	.hub-segmented button { flex: 1; min-width: 0; }
	.hub-priority-labels { display: none; }
	.hub-priority-row { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 10px 0; }
	.hub-priority-row time { grid-column: 2; }
	.hub-priority-status { grid-row: 1; grid-column: 3; }
	.hub-priority-row > b { display: none; }
	.client-hub-activity-track { grid-auto-columns: 88%; }
	.client-hub-page-heading { align-items: flex-start; flex-direction: column; }
	.client-hub-about-dialog { width: calc(100vw - 24px); height: min(720px, calc(100dvh - 24px)); max-width: none; max-height: none; overflow-y: auto; }
	.client-hub-about-dialog-inner { min-height: 100%; grid-template-rows: minmax(130px, .8fr) auto minmax(72px, .55fr); padding: 48px 22px 28px; }
	.client-hub-about-mark { width: 122px; margin-bottom: 16px; }
	.client-hub-about-copy { font-size: clamp(18px, 5.3vw, 26px); }
	.client-hub-about-dialog footer img { width: 142px; }
	.client-hub-chart-wrap, .client-hub-revenue-chart-wrap { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
	.client-hub-sidebar, .client-hub-sidebar-scrim, .client-hub-theme-toggle::before { transition: none; }
	.client-hub-about-dialog[open], .client-hub-about-dialog::backdrop, .client-hub-about-dialog[open] .client-hub-about-mark, .client-hub-about-dialog[open] .client-hub-about-copy, .client-hub-about-dialog[open] footer { animation-duration: 1ms; animation-delay: 0ms; }
}
