:root {
	--hub-bg: #0d122f;
	--hub-bg-deep: #0a0f2a;
	--hub-panel: #171f58;
	--hub-panel-gradient: linear-gradient(135deg, rgba(111, 142, 255, 0.06) 0%, rgba(23, 31, 88, 0) 58%, rgba(10, 15, 42, 0.14) 100%), var(--hub-panel);
	--hub-line: #314782;
	--hub-blue: #6f8eff;
	--hub-blue-bright: #4d6fff;
	--hub-text: #f4f5ff;
	--hub-muted: #7893ef;
	--hub-dim: #7280ad;
	--hub-green: #09bd72;
	--hub-radius: 3px;
	--hub-page-gutter: clamp(20px, 2.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--hub-bg); }
body { min-height: 100vh; margin: 0; background: var(--hub-bg); color: var(--hub-text); font-family: "DM Sans", Arial, sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
input, select, textarea, button { border-radius: var(--hub-radius); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.client-hub-shell { width: min(1900px, 100%); min-height: 100vh; margin: 0 auto; padding-inline: var(--hub-page-gutter); }
.client-hub-greeting { margin: 0; padding-top: clamp(34px, 5vw, 64px); color: var(--hub-muted); font-size: clamp(15px, 1.45vw, 24px); font-weight: 500; }
.client-hub-header { display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); min-height: clamp(120px, 11vw, 178px); }
.client-hub-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: clamp(27px, 2.5vw, 42px); font-weight: 500; letter-spacing: -0.045em; text-decoration: none; }
.client-hub-brand strong { color: var(--hub-blue-bright); font: inherit; }
.client-hub-brand-mark { width: clamp(34px, 3vw, 50px); height: auto; fill: none; stroke: var(--hub-blue-bright); stroke-width: 3.5; }
.client-hub-brand-logo { display: block; width: clamp(180px, 16vw, 320px); max-width: 100%; height: 70px; object-fit: contain; object-position: left center; }

.client-hub-nav { display: flex; align-items: stretch; justify-content: center; }
.client-hub-nav a { display: grid; place-items: center; min-height: 64px; padding: 0 clamp(18px, 2vw, 30px); border-radius: var(--hub-radius); color: #ececff; font-size: clamp(14px, 1.25vw, 20px); font-weight: 600; text-decoration: none; }
.client-hub-nav a:hover, .client-hub-nav a:focus, .client-hub-nav .is-current { background: #172461; color: var(--hub-blue); }
.client-hub-nav .is-disabled { cursor: default; }

.client-hub-global-search { justify-self: end; width: min(100%, 310px); }
.client-hub-global-search input { width: 100%; height: 52px; padding: 0 18px; border: 2px solid #243773; border-radius: var(--hub-radius); outline: 0; background: #131a4d; color: var(--hub-text); font: inherit; font-size: clamp(14px, 1.1vw, 18px); }
.client-hub-global-search input::placeholder { color: #5268b0; opacity: 1; }
.client-hub-global-search input:focus { border-color: var(--hub-blue); }
.client-hub-main { padding: 10px 0 clamp(60px, 8vw, 110px); }

.client-hub-dashboard-grid { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1.1fr); align-items: start; gap: clamp(26px, 3vw, 44px); }
.client-hub-dashboard-primary { display: grid; min-width: 0; gap: 34px; }
.client-hub-outline-panel { position: relative; min-width: 0; min-height: clamp(330px, 40vh, 480px); padding: clamp(44px, 4vw, 64px) clamp(28px, 2.6vw, 44px) clamp(28px, 3vw, 44px); border: 2px solid var(--hub-line); border-radius: var(--hub-radius); }
.client-hub-outline-panel > h1, .client-hub-outline-panel > h2 { position: absolute; top: 0; left: clamp(34px, 3vw, 56px); margin: 0; padding: 0 12px; background: var(--hub-bg); color: var(--hub-muted); font-size: clamp(12px, 0.9vw, 15px); font-weight: 700; letter-spacing: 0.12em; line-height: 1; text-transform: uppercase; transform: translateY(-50%); }

.client-hub-glance { min-height: 0; padding-top: clamp(36px, 3vw, 48px); padding-bottom: clamp(24px, 2.5vw, 36px); }
.client-hub-glance-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px) clamp(18px, 2vw, 32px); }
.client-hub-glance-metric { container-type: inline-size; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 145px; }
.client-hub-glance-metric strong { display: flex; min-height: clamp(54px, 5vw, 76px); max-width: 100%; margin-right: -0.08em; padding-right: 0.08em; align-items: flex-end; background: linear-gradient(135deg, #91a9ff 0%, #6f8eff 58%, #5877e6 100%); background-clip: text; color: var(--hub-blue); font-size: clamp(58px, 6vw, 104px); font-size: clamp(58px, 22cqw, 104px); font-weight: 700; letter-spacing: -0.065em; line-height: 0.9; white-space: nowrap; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.client-hub-glance-metric--money strong { font-size: clamp(32px, 3vw, 52px); font-size: clamp(32px, 14cqw, 52px); }
.client-hub-glance-metric span { margin-top: 15px; color: var(--hub-muted); font-size: clamp(15px, 1.1vw, 19px); font-weight: 500; }
.client-hub-glance-metric small { margin-top: 8px; color: var(--hub-dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.client-hub-activity { min-height: 0; padding: 50px 28px 30px; overflow: visible; }
.client-hub-activity-toolbar { position: absolute; top: 0; right: 24px; display: flex; align-items: center; gap: 12px; padding-left: 12px; background: var(--hub-bg); transform: translateY(-50%); }
.client-hub-activity.has-one-page .client-hub-activity-toolbar { display: none; }
.client-hub-activity-page { min-width: 32px; color: var(--hub-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-align: right; }
.client-hub-activity-controls { display: flex; gap: 6px; }
.client-hub-activity-controls button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-bg); color: var(--hub-muted); cursor: pointer; font: inherit; font-size: 15px; line-height: 1; }
.client-hub-activity-controls button:hover:not(:disabled), .client-hub-activity-controls button:focus-visible { border-color: var(--hub-blue); background: var(--hub-panel); color: var(--hub-text); outline: 0; }
.client-hub-activity-controls button:disabled { cursor: default; opacity: 0.35; }
.client-hub-activity-viewport { width: 100%; overflow-x: auto; outline: 0; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.client-hub-activity-viewport::-webkit-scrollbar { display: none; }
.client-hub-activity-viewport:focus-visible { box-shadow: 0 0 0 2px var(--hub-blue); }
.client-hub-activity-track { display: grid; grid-auto-columns: calc((100% - 42px) / 4); grid-auto-flow: column; gap: 14px; }
.client-hub-activity-card { display: flex; min-width: 0; min-height: 245px; flex-direction: column; padding: 17px; overflow: hidden; border-radius: var(--hub-radius); background: var(--hub-panel-gradient); scroll-snap-align: start; }
.client-hub-activity-meta { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.client-hub-activity-meta span, .client-hub-activity-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-activity-meta span { color: var(--hub-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.client-hub-activity-meta small { color: var(--hub-dim); font-size: 9px; text-align: right; }
.client-hub-activity-card h3 { margin: 18px 0 0; color: var(--hub-text); font-size: 16px; font-weight: 600; line-height: 1.25; }
.client-hub-activity-card h3 a { text-decoration: none; }
.client-hub-activity-card h3 a:hover { color: var(--hub-blue); }
.client-hub-activity-action { display: -webkit-box; margin: 10px 0 0; overflow: hidden; color: #a0afe2; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.client-hub-activity-excerpt { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--hub-dim); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.client-hub-activity-card footer { display: flex; min-width: 0; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px; }
.client-hub-activity-card footer img { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.client-hub-activity-card footer > span { min-width: 0; overflow: hidden; color: var(--hub-muted); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-activity-card footer time { display: block; margin-top: 2px; color: var(--hub-dim); font-size: 9px; font-weight: 500; }
.client-hub-activity-empty { display: grid; min-height: 180px; align-content: center; }
.client-hub-activity-empty p { max-width: 42ch; margin: 0; color: var(--hub-dim); font-size: 13px; line-height: 1.55; }

.client-hub-team { overflow: visible; }
.client-hub-team-list { display: grid; align-content: start; gap: 16px; max-height: 340px; overflow: auto; padding-right: 5px; }
.client-hub-person { display: grid; grid-template-columns: 42px minmax(0, 1fr) 14px; align-items: center; gap: 14px; min-height: 82px; padding: 12px 20px; border-radius: var(--hub-radius); background: var(--hub-panel-gradient); }
.client-hub-person img, .client-hub-person-placeholder { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #273477; object-fit: cover; font-size: 13px; font-weight: 700; }
.client-hub-person > div { min-width: 0; }
.client-hub-person strong { display: block; overflow: hidden; color: var(--hub-muted); font-size: clamp(15px, 1.25vw, 20px); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-person small { display: block; margin-top: 3px; overflow: hidden; color: #8592bd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-person .client-hub-person-assignment { margin-top: 5px; color: #a0afe2; font-size: 13px; font-weight: 600; }
.client-hub-person .client-hub-person-notes { margin-top: 4px; color: var(--hub-dim); font-size: 12px; font-style: italic; }
.client-hub-person .client-hub-person-hours { margin-top: 5px; color: var(--hub-muted); font-size: 12px; font-weight: 600; }
.client-hub-person .client-hub-person-forecast { margin-top: 3px; color: var(--hub-blue); font-size: 11px; font-weight: 600; }
.client-hub-timer-light { width: 12px; height: 12px; border-radius: 50%; background: #53618f; }
.client-hub-person.is-tracking .client-hub-timer-light { background: var(--hub-green); box-shadow: 0 0 0 0 rgba(9, 189, 114, 0.6); animation: client-hub-timer-pulse 1.8s ease-out infinite; }
.client-hub-team-empty { display: grid; place-items: start; align-content: center; min-height: 240px; max-width: 28ch; }
.client-hub-team-empty p { margin: 0 0 16px; color: var(--hub-dim); font-size: 16px; line-height: 1.55; }
.client-hub-team-empty a { color: var(--hub-blue); font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; }

.client-hub-dashboard-sidebar { display: grid; min-width: 0; gap: 34px; }
.client-hub-dashboard-sidebar .client-hub-outline-panel { min-height: 0; padding: 42px 28px 28px; }
.client-hub-dashboard-sidebar .client-hub-outline-panel > h2 { left: 28px; }
.client-hub-calendar-list { display: grid; gap: 10px; }
.client-hub-calendar-event { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px; border-radius: var(--hub-radius); background: var(--hub-panel); text-decoration: none; }
.client-hub-calendar-event:hover { background: #202b70; }
.client-hub-calendar-event time { display: flex; flex-direction: column; color: var(--hub-muted); font-size: 10px; font-style: normal; line-height: 1.35; text-transform: uppercase; }
.client-hub-calendar-event time strong { font-size: 11px; letter-spacing: 0.04em; }
.client-hub-calendar-event time span { color: var(--hub-dim); }
.client-hub-calendar-event > span { min-width: 0; }
.client-hub-calendar-event > span > strong, .client-hub-calendar-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-calendar-event > span > strong { color: var(--hub-text); font-size: 13px; font-weight: 600; }
.client-hub-calendar-event small { margin-top: 4px; color: var(--hub-dim); font-size: 10px; }
.client-hub-calendar-empty { display: grid; align-content: center; min-height: 100px; }
.client-hub-calendar-empty p { margin: 0 0 12px; color: var(--hub-dim); font-size: 13px; line-height: 1.5; }
.client-hub-calendar-error { display: block; margin: -4px 0 12px; color: #f0a3a3; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.client-hub-calendar-empty a { color: var(--hub-blue); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.client-hub-due-groups { display: grid; max-height: 500px; gap: 24px; overflow: auto; padding-right: 4px; }
.client-hub-due-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.client-hub-due-group h3 { margin: 0; color: var(--hub-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-due-group > header span { min-width: 25px; padding: 4px 7px; border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-muted); font-size: 10px; font-weight: 700; text-align: center; }
.client-hub-due-list { display: grid; gap: 8px; }
.client-hub-due-todo { display: grid; min-width: 0; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 62px; padding: 10px 13px; border-radius: var(--hub-radius); background: var(--hub-panel-gradient); }
.client-hub-due-todo time { color: var(--hub-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.client-hub-due-todo > div { min-width: 0; }
.client-hub-due-todo a, .client-hub-due-todo strong, .client-hub-due-todo small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-due-todo a, .client-hub-due-todo strong { color: var(--hub-text); font-size: 12px; font-weight: 600; text-decoration: none; }
.client-hub-due-todo a:hover { color: var(--hub-blue); }
.client-hub-due-todo small { margin-top: 4px; color: var(--hub-dim); font-size: 10px; }
.client-hub-due-empty { margin: 0; padding: 10px 0 4px; color: var(--hub-dim); font-size: 12px; }
.client-hub-retainer-list { display: grid; gap: 12px; }
.client-hub-retainer-summary { min-width: 0; padding: 16px; border: 1px solid rgba(111, 142, 255, 0.34); border-radius: var(--hub-radius); background: linear-gradient(135deg, rgba(111, 142, 255, 0.13) 0%, rgba(23, 31, 88, 0.92) 52%, rgba(10, 15, 42, 0.22) 100%); }
.client-hub-retainer-summary header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.client-hub-retainer-summary header strong { color: var(--hub-text); font-size: 13px; font-weight: 700; }
.client-hub-retainer-summary header small { color: var(--hub-dim); font-size: 10px; }
.client-hub-retainer-project { width: 100%; max-width: 100%; min-width: 0; padding: 15px; overflow: hidden; border-radius: var(--hub-radius); background: var(--hub-panel-gradient); }
.client-hub-retainer-project header { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.client-hub-retainer-project header a, .client-hub-retainer-project header > strong { min-width: 0; overflow: hidden; color: var(--hub-text); font-size: 13px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-retainer-project header a:hover { color: var(--hub-blue); }
.client-hub-retainer-project header small { min-width: 0; overflow: hidden; color: var(--hub-dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-retainer-subhead { margin: 15px 0 0; color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-retainer-hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.client-hub-retainer-hours span { min-width: 0; }
.client-hub-retainer-hours strong, .client-hub-retainer-hours small { display: block; }
.client-hub-retainer-hours strong { color: var(--hub-muted); font-size: 19px; font-weight: 600; white-space: nowrap; }
.client-hub-retainer-hours small { margin-top: 5px; color: var(--hub-dim); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.client-hub-retainer-revenue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(49, 71, 130, 0.58); }
.client-hub-retainer-revenue-head .client-hub-retainer-subhead { margin: 0; }
.client-hub-retainer-revenue-head > span { color: var(--hub-muted); font-size: 10px; font-weight: 700; text-align: right; }
.client-hub-retainer-revenue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.client-hub-retainer-revenue > span { min-width: 0; }
.client-hub-retainer-revenue strong, .client-hub-retainer-revenue small { display: block; }
.client-hub-retainer-revenue strong { color: var(--hub-muted); font-size: clamp(14px, 1.15vw, 18px); font-weight: 700; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.client-hub-retainer-revenue small { margin-top: 5px; color: var(--hub-dim); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.client-hub-retainer-paid-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(49, 71, 130, 0.48); }
.client-hub-retainer-paid-totals span { min-width: 0; }
.client-hub-retainer-paid-totals strong, .client-hub-retainer-paid-totals small { display: block; }
.client-hub-retainer-paid-totals strong { color: var(--hub-muted); font-size: 17px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.client-hub-retainer-paid-totals small { margin-top: 5px; color: var(--hub-dim); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.client-hub-retainer-summary-ytd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(111, 142, 255, 0.2); }
.client-hub-retainer-summary-ytd small { color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.client-hub-retainer-summary-ytd strong { color: var(--hub-muted); font-size: 21px; font-weight: 700; letter-spacing: -0.035em; }
.client-hub-retainer-revenue-error { margin: 12px 0 0; color: #f0a3a3; font-size: 10px; line-height: 1.4; }
.client-hub-retainer-project.needs-mapping { border: 1px dashed var(--hub-line); background: transparent; }

.client-hub-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 24px 0 44px; }
.client-hub-page-heading p { margin: 0 0 8px; color: var(--hub-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.client-hub-page-heading h1 { margin: 0; font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.client-hub-project-tabs { display: flex; overflow: hidden; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); }
.client-hub-project-tabs a { padding: 13px 22px; color: var(--hub-dim); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.client-hub-project-tabs a.is-active { background: var(--hub-panel); color: var(--hub-blue); }

.client-hub-directory { min-height: 300px; padding: 0; overflow: hidden; }
.client-hub-project-list { display: grid; }
.client-hub-project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(140px, auto); align-items: center; gap: 28px; min-height: 104px; padding: 20px clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--hub-line); }
.client-hub-project-row.has-feature-toggle { grid-template-columns: minmax(0, 1fr) auto auto minmax(140px, auto); }
.client-hub-project-row:last-child { border-bottom: 0; }
.client-hub-project-row:hover { background: rgba(23, 31, 88, 0.38); }
.client-hub-project-row h2, .client-hub-project-row p { margin: 0; }
.client-hub-project-row h2 { color: var(--hub-text); font-size: 19px; font-weight: 600; }
.client-hub-project-row p { margin-top: 7px; overflow: hidden; color: var(--hub-dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-hub-project-row > a { color: var(--hub-muted); font-size: 12px; font-weight: 600; text-align: right; text-decoration: none; }
.client-hub-project-row > a:hover { color: var(--hub-text); }
.client-hub-project-state { padding: 7px 11px; border-radius: var(--hub-radius); background: rgba(9, 189, 114, 0.14); color: #43d798; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-project-state--archived { background: rgba(120, 147, 239, 0.12); color: var(--hub-dim); }
.client-hub-feature-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--hub-dim); cursor: pointer; white-space: nowrap; }
.client-hub-feature-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.client-hub-feature-toggle > span { position: relative; width: 32px; height: 18px; border: 1px solid var(--hub-line); border-radius: 999px; background: var(--hub-bg); transition: border-color 150ms ease, background 150ms ease; }
.client-hub-feature-toggle > span::after { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--hub-dim); content: ''; transition: transform 150ms ease, background 150ms ease; }
.client-hub-feature-toggle input:checked + span { border-color: var(--hub-blue); background: color-mix(in srgb, var(--hub-blue) 22%, transparent); }
.client-hub-feature-toggle input:checked + span::after { background: var(--hub-blue); transform: translateX(14px); }
.client-hub-feature-toggle input:focus-visible + span { outline: 2px solid var(--hub-blue); outline-offset: 2px; }
.client-hub-feature-toggle input:disabled + span { opacity: 0.55; }
.client-hub-feature-toggle b { font-size: 10px; font-weight: 600; }
.client-hub-empty { display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; }
.client-hub-empty h2, .client-hub-empty p { margin: 0; }
.client-hub-empty h2 { color: var(--hub-blue); font-size: 26px; }
.client-hub-empty p { margin-top: 10px; color: var(--hub-dim); }

.client-hub-team-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.client-hub-team-chart-panel { min-width: 0; min-height: 0; padding: clamp(46px, 4vw, 58px) clamp(20px, 2.5vw, 36px) 24px; }
.client-hub-chart-kicker { margin: 0 0 24px; color: var(--hub-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.client-hub-chart-wrap { position: relative; width: 100%; height: clamp(260px, 32vw, 390px); }
.client-hub-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; color: var(--hub-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-chart-empty { display: grid; min-height: 340px; place-items: center; align-content: center; text-align: center; }
.client-hub-chart-empty p { margin: 0 0 14px; color: var(--hub-dim); font-size: 15px; }
.client-hub-chart-empty a { color: var(--hub-blue); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; }

.client-hub-report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-bottom: 36px; }
.client-hub-report-summary article { display: flex; min-width: 0; min-height: 154px; flex-direction: column; justify-content: center; padding: 22px; border-radius: var(--hub-radius); background: var(--hub-panel-gradient); }
.client-hub-report-summary small, .client-hub-report-summary span { color: var(--hub-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.client-hub-report-summary strong { display: block; margin: 12px -0.08em 10px 0; padding-right: 0.08em; overflow-wrap: anywhere; background: linear-gradient(135deg, #91a9ff 0%, #6f8eff 58%, #5877e6 100%); background-clip: text; color: var(--hub-blue); font-size: clamp(26px, 2.4vw, 43px); font-weight: 700; letter-spacing: -0.055em; line-height: 1; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.client-hub-report-summary span { color: var(--hub-muted); letter-spacing: 0; text-transform: none; }
.client-hub-revenue-chart-panel { min-height: 0; padding: clamp(46px, 4vw, 60px) clamp(22px, 3vw, 44px) 28px; }
.client-hub-revenue-chart-wrap { position: relative; width: 100%; height: clamp(360px, 44vw, 540px); }
.client-hub-report-notice { margin: -8px 0 22px; padding: 12px 14px; border: 1px solid rgba(49, 71, 130, 0.75); border-radius: var(--hub-radius); background: rgba(23, 31, 88, 0.48); color: var(--hub-dim); font-size: 12px; line-height: 1.45; }
.client-hub-report-notice a { color: var(--hub-muted); font-weight: 700; text-decoration: none; }

.client-hub-footer { display: flex; justify-content: space-between; padding: 24px 0 34px; border-top: 1px solid rgba(49, 71, 130, 0.6); color: var(--hub-dim); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.client-hub-footer p { margin: 0; }
.client-hub-footer span { margin: 0 8px; color: var(--hub-blue); }
.client-hub-footer a { text-decoration: none; }
.client-hub-footer a:hover { color: var(--hub-text); }

/* Blur-to-focus entrance motion, retargeted to the application shell. */
.client-hub-motion-enabled .client-hub-sidebar .client-hub-brand,
.client-hub-motion-enabled .client-hub-workspace-name,
.client-hub-motion-enabled .client-hub-sidebar .client-hub-nav > a,
.client-hub-motion-enabled .client-hub-sidebar .client-hub-nav-group,
.client-hub-motion-enabled .client-hub-integrations,
.client-hub-motion-enabled .client-hub-sidebar-bottom,
.client-hub-motion-enabled .client-hub-header-tools > *,
.client-hub-motion-enabled .client-hub-breadcrumb,
.client-hub-motion-enabled .hub-overview-hero > *,
.client-hub-motion-enabled .hub-stat-card { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.client-hub-motion-enabled [data-hub-load-reveal] { animation: client-hub-blur-focus 260ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--hub-load-delay, 0ms); }
.client-hub-motion-enabled .hub-overdue-alert,
.client-hub-motion-enabled .hub-dashboard-main-column > .hub-card,
.client-hub-motion-enabled .hub-dashboard-side-column > .hub-card,
.client-hub-motion-enabled .client-hub-retainers,
.client-hub-motion-enabled .client-hub-page-heading,
.client-hub-motion-enabled .client-hub-main > .client-hub-outline-panel,
.client-hub-motion-enabled .client-hub-team-chart-panel,
.client-hub-motion-enabled .client-hub-report-summary article,
.client-hub-motion-enabled .client-hub-revenue-chart-panel,
.client-hub-motion-enabled .client-hub-project-row,
.client-hub-motion-enabled .client-hub-project-overview-card,
.client-hub-motion-enabled .client-hub-forecast-summary article,
.client-hub-motion-enabled .client-hub-forecast-week,
.client-hub-motion-enabled .client-hub-team-forecast-card, .client-hub-motion-enabled .client-hub-forecast-member-links { opacity: 0; filter: blur(7px); transform: translateY(8px); transition: opacity 310ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 310ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 310ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--hub-reveal-delay, 0ms); }
.client-hub-motion-enabled .is-client-hub-visible { opacity: 1 !important; filter: blur(0) !important; transform: translateY(0) !important; }

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

@keyframes client-hub-timer-pulse { 0% { box-shadow: 0 0 0 0 rgba(9, 189, 114, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(9, 189, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(9, 189, 114, 0); } }

body.login { display: grid; place-items: center; background: var(--hub-bg); }
body.login #login { width: min(420px, calc(100% - 36px)); padding: 40px 0; }
body.login h1 a { width: auto; height: auto; margin-bottom: 28px; background: none; font-size: 0; line-height: 1; text-indent: 0; }
body.login h1 a::before,
body.login h1 a::after { font-size: 38px; font-weight: 600; letter-spacing: -0.05em; }
body.login h1 a::before { content: "ridge"; color: var(--hub-text); }
body.login h1 a::after { content: "line"; color: var(--hub-blue-bright); }
body.login form { padding: 30px; border: 2px solid var(--hub-line); border-radius: var(--hub-radius); background: transparent; box-shadow: none; }
body.login label { color: var(--hub-muted); font-size: 11px; font-weight: 700; }
body.login input[type="text"], body.login input[type="password"] { border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-panel); color: var(--hub-text); box-shadow: none; }
body.login .button-primary { border: 0; border-radius: var(--hub-radius); background: var(--hub-blue-bright); font-weight: 700; }
body.login #nav a, body.login #backtoblog a, body.login .privacy-policy-page-link a { color: var(--hub-dim); }

@media (max-width: 1060px) {
	.client-hub-header { grid-template-columns: 1fr auto; }
	.client-hub-nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
	.client-hub-global-search { grid-column: 2; grid-row: 1; }
}

@media (max-width: 1200px) {
	.client-hub-dashboard-grid { grid-template-columns: 1fr; }
	.client-hub-outline-panel { min-height: 0; }
	.client-hub-team-list { max-height: none; }
	.client-hub-dashboard-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) and (min-width: 761px) {
	.client-hub-glance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.client-hub-activity-track { grid-auto-columns: calc((100% - 14px) / 2); }
}

@media (max-width: 760px) {
	.client-hub-shell { padding: 0 18px; }
	.client-hub-team-chart-grid { grid-template-columns: 1fr; }
	.client-hub-report-summary { grid-template-columns: 1fr; }
	.client-hub-report-summary article { min-height: 132px; }
	.client-hub-greeting { padding-top: 28px; font-size: 14px; }
	.client-hub-header { display: flex; flex-wrap: wrap; gap: 20px; padding: 28px 0 38px; }
	.client-hub-brand { order: 1; }
	.client-hub-brand-logo { width: clamp(150px, 42vw, 220px); height: 54px; }
	.client-hub-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
	.client-hub-nav a { min-height: 50px; padding: 0 16px; font-size: 13px; }
	.client-hub-global-search { order: 2; flex: 1; min-width: 150px; }
	.client-hub-global-search input { height: 52px; }
	.client-hub-dashboard-grid { grid-template-columns: 1fr; }
	.client-hub-dashboard-sidebar { grid-template-columns: 1fr; }
	.client-hub-outline-panel { min-height: 320px; }
	.client-hub-glance-metrics { grid-template-columns: 1fr; gap: 8px; }
	.client-hub-glance-metric { min-height: 140px; }
	.client-hub-glance-metric strong { min-height: 0; }
	.client-hub-activity { padding-inline: 18px; }
	.client-hub-activity-track { grid-auto-columns: 100%; }
	.client-hub-activity-card { min-height: 220px; }
	.client-hub-activity-toolbar { right: 14px; }
	.client-hub-activity-page { display: none; }
	.client-hub-team-list { max-height: none; }
	.client-hub-page-heading { align-items: flex-start; flex-direction: column; }
	.client-hub-project-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
	.client-hub-project-row.has-feature-toggle { grid-template-columns: minmax(0, 1fr) auto; }
	.client-hub-project-row > a { grid-column: 1 / -1; text-align: left; }
	.client-hub-footer { gap: 8px; flex-direction: column; }
	.client-hub-chart-wrap { height: 300px; }
	.client-hub-revenue-chart-wrap { height: 340px; }
	.client-hub-chart-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
	.client-hub-sidebar .client-hub-brand, .client-hub-workspace-name, .client-hub-sidebar .client-hub-nav > a, .client-hub-sidebar .client-hub-nav-group, .client-hub-integrations, .client-hub-sidebar-bottom, .client-hub-header-tools > *, .client-hub-breadcrumb, .hub-overview-hero > *, .hub-stat-card, .hub-overdue-alert, .hub-card, .client-hub-page-heading, .client-hub-outline-panel, .client-hub-team-chart-panel, .client-hub-report-summary article, .client-hub-revenue-chart-panel, .client-hub-project-row, .client-hub-project-overview-card { opacity: 1 !important; filter: none !important; transform: none !important; }
}
