:root {
  color-scheme: dark;
  --bg: #070b18;
  --bg-deep: #030611;
  --ink: #f8fbff;
  --muted: #9ca9c8;
  --panel: rgba(14, 21, 42, 0.78);
  --panel-strong: rgba(20, 30, 56, 0.92);
  --panel-border: rgba(143, 178, 255, 0.18);
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-deep: #c4b5fd;
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --success: #34d399;
  --warning: #f59e0b;
  --info-soft: rgba(59, 130, 246, 0.18);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --focus-ring: rgba(34, 211, 238, 0.42);
  --glow-purple: 0 0 34px rgba(139, 92, 246, 0.3);
  --glow-cyan: 0 0 30px rgba(34, 211, 238, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.18), transparent 26%),
    radial-gradient(circle at 70% 92%, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(145deg, var(--bg-deep) 0%, #081025 52%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12), var(--glow-cyan);
}

a {
  color: inherit;
}

.login-shell,
.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.loading-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 34px;
  backdrop-filter: blur(12px);
}

.login-provider {
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.brand-block h1,
.topbar h2,
.hero-panel h2,
.login-card h1,
.loading-card h1 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.lede,
.soft,
small {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

.login-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #2563eb;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.login-fallback-form {
  margin-top: 10px;
}

.login-divider {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(31, 42, 55, 0.12);
}

.credential-strip {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.credential-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: #f7faf9;
  border: 1px solid rgba(15, 118, 110, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.harvest-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-rows: 1fr;
}

.harvest-topnav {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 22px;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(7, 11, 24, 0.96)),
    radial-gradient(circle at 40% 0%, rgba(139, 92, 246, 0.28), transparent 38%);
  color: white;
  border-right: 1px solid rgba(143, 178, 255, 0.16);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.34);
  overflow-y: auto;
}

.harvest-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(143, 178, 255, 0.14);
}

.harvest-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.9));
  color: white;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.44);
}

.harvest-brand-copy {
  display: grid;
  gap: 2px;
}

.harvest-brand-copy strong {
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.harvest-brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.harvest-main-nav,
.harvest-account-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.harvest-main-nav {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
}

.harvest-account-bar {
  margin-top: auto;
  align-items: stretch;
  flex-direction: column;
}

.harvest-main-link,
.section-tab,
.ghost,
.secondary,
.primary,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 12px 14px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.harvest-main-link {
  position: relative;
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  border: 1px solid transparent;
  overflow: hidden;
}

.nav-link-inner,
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icons8-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.harvest-topnav .icons8-icon {
  filter: none;
  opacity: 0.94;
}

.harvest-main-link.active {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.34), rgba(34, 211, 238, 0.12));
  color: white;
  border-color: rgba(167, 139, 250, 0.44);
  box-shadow: inset 3px 0 0 var(--accent-cyan), 0 0 26px rgba(139, 92, 246, 0.2);
}

.harvest-main-link:hover {
  background: rgba(143, 178, 255, 0.09);
  border-color: rgba(143, 178, 255, 0.18);
}

.harvest-account-bar .ghost {
  background: rgba(143, 178, 255, 0.1);
  color: white;
  border: 1px solid rgba(143, 178, 255, 0.14);
}

.harvest-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(143, 178, 255, 0.1);
  border: 1px solid rgba(143, 178, 255, 0.14);
  color: white;
  font-weight: 600;
}

.harvest-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.78), rgba(34, 211, 238, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.harvest-main-shell {
  min-height: 100vh;
}

.main-shell {
  padding: 28px;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.harvest-secondary-nav {
  margin: 0;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid rgba(143, 178, 255, 0.13);
  border-radius: 22px;
  background: rgba(13, 20, 40, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.harvest-secondary-link {
  position: relative;
  border: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.harvest-secondary-link.active {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, 0.38);
}

.shell-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 24px;
  background: #22211f;
  color: white;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.shell-promo .icons8-icon {
  filter: brightness(0) invert(1);
}

.shell-promo-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(249, 115, 22, 0.82);
  background: #243041;
}

.shell-promo-badge {
  position: absolute;
  top: 18px;
  left: 42px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ff6b1a;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.shell-promo-copy {
  display: grid;
  gap: 6px;
}

.shell-promo-copy h3,
.shell-promo-copy p {
  margin: 0;
}

.shell-promo-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.shell-promo-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.shell-promo-link,
.shell-promo-close {
  border: 0;
  background: transparent;
  color: #fb923c;
  font-weight: 700;
}

.shell-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-decoration: none;
}

.shell-promo-link.secondary {
  color: #fb923c;
}

.shell-promo-close {
  padding: 2px;
  align-self: start;
  opacity: 0.85;
}

.shell-promo-close:hover,
.shell-promo-link:hover {
  opacity: 0.9;
}

.flash-toast-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 -4px;
  position: sticky;
  top: 14px;
  z-index: 12;
  pointer-events: none;
}

.flash-toast {
  width: min(420px, 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
}

.flash-toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 2px 4px;
}

.topbar-compact {
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
}

.topbar-compact .topbar-actions {
  gap: 16px;
}

.topbar-compact .link-button {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(143, 178, 255, 0.08);
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(34, 211, 238, 0.14);
}

.topbar h2,
.topbar p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.section-tab {
  background: rgba(143, 178, 255, 0.08);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid rgba(143, 178, 255, 0.12);
}

.section-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(34, 211, 238, 0.14));
  color: white;
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--glow-cyan);
}

.panel,
.hero-panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.accent-panel {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.1));
}

.hero-panel {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(18, 28, 56, 0.9), rgba(13, 20, 40, 0.72));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 68%);
  pointer-events: none;
}

.report-hero {
  padding: 22px 24px;
  align-items: center;
}

.hero-detail {
  min-width: 210px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(143, 178, 255, 0.1);
  border: 1px solid rgba(143, 178, 255, 0.16);
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(34, 211, 238, 0.24);
  pointer-events: none;
}

.metric-card p,
.metric-label {
  margin: 0 0 8px;
  color: var(--muted);
}

.metric-card strong,
.metric-value {
  font-size: 1.55rem;
  color: #f8fbff;
}

.metric-value.smallish {
  font-size: 1.15rem;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-span-all {
  grid-column: 1 / -1;
}

.auth-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-status-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(143, 178, 255, 0.08);
  border: 1px solid rgba(143, 178, 255, 0.12);
}

.auth-status-card h4 {
  margin: 0 0 12px;
}

.auth-status-card p {
  margin: 0 0 10px;
}

.mono-inline {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.95em;
}

.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.workspace-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid rgba(143, 178, 255, 0.12);
  border-radius: 16px;
  background: rgba(13, 20, 40, 0.56);
  box-shadow: none;
}

.workspace-toolbar p {
  display: none;
}

.compact-stat-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.compact-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(143, 178, 255, 0.08);
  border: 1px solid rgba(143, 178, 255, 0.12);
}

.compact-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-stat strong {
  font-size: 1.15rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-portfolio-shell {
  display: grid;
  gap: 14px;
}

.project-portfolio-toolbar {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.project-toolbar-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}

.project-toolbar-search {
  min-width: min(100%, 360px);
  display: grid;
  gap: 6px;
}

.project-toolbar-search input {
  width: min(360px, 100%);
  background: rgba(255, 255, 255, 0.96);
}

.project-filter-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.project-filter-field {
  min-width: 168px;
  display: grid;
  gap: 0;
}

.project-filter-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
}

.project-toolbar-summary {
  margin: 0;
  font-size: 0.95rem;
}

.project-portfolio-head {
  margin-bottom: 0;
}

.project-portfolio-table-wrap {
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 20px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
}

.project-portfolio-table {
  min-width: 820px;
}

.project-portfolio-table th,
.project-portfolio-table td {
  padding: 10px 10px;
  vertical-align: top;
}

.project-portfolio-table thead th {
  background: #f2f2f0;
  border-bottom-color: rgba(31, 42, 55, 0.12);
  white-space: nowrap;
}

.team-week-summary-bar,
.contractor-report-summary {
  margin-bottom: 14px;
}

.team-overview-panel {
  padding: 16px 18px 18px;
}

.team-shell-toolbar,
.team-overview-toolbar,
.team-period-bar,
.team-person-cell,
.team-summary-meter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.team-shell-toolbar {
  margin-bottom: 14px;
}

.team-overview-toolbar {
  margin-bottom: 14px;
}

.team-shell-toolbar-left,
.team-period-side {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.team-period-side {
  justify-content: flex-end;
}

.team-filter-form {
  margin: 0;
  min-width: min(220px, 100%);
}

.team-filter-form select {
  min-width: 180px;
}

.team-period-bar {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.team-period-bar h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.team-period-note {
  font-size: 0.92rem;
}

.team-summary-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.72fr) minmax(260px, 1.56fr);
  margin-bottom: 18px;
}

.team-summary-figure {
  display: grid;
  gap: 6px;
  align-content: start;
}

.team-summary-figure span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.team-summary-figure strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.team-summary-meter-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.team-summary-meter-copy {
  display: grid;
  gap: 8px;
}

.team-summary-meter-row span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

.team-summary-meter-row strong {
  font-size: 1.08rem;
}

.team-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.team-dot.billable,
.team-summary-meter-fill.billable {
  background: #365ecf;
}

.team-dot.unbillable,
.team-summary-meter-fill.unbillable {
  background: #90afe9;
}

.team-summary-meter-track {
  position: relative;
  height: 22px;
  border: 1px solid rgba(31, 42, 55, 0.14);
  border-radius: 4px;
  background: rgba(31, 42, 55, 0.03);
  overflow: hidden;
}

.team-summary-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
}

.team-summary-meter-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-client-row td {
  background: #f2f2f0;
  font-weight: 700;
  border-bottom-color: rgba(31, 42, 55, 0.12);
  padding-top: 7px;
  padding-bottom: 7px;
}

.project-client-row .soft {
  margin-left: 8px;
  font-weight: 500;
  font-size: 0.88rem;
}

.project-project-cell strong {
  display: block;
  line-height: 1.25;
  font-size: 1.02rem;
}

.project-project-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-type-tag,
.project-archive-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.project-type-tag {
  border: 1px solid rgba(31, 42, 55, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
}

.project-archive-tag {
  border: 1px solid rgba(180, 35, 24, 0.16);
  color: var(--danger);
  background: rgba(180, 35, 24, 0.06);
}

.project-project-cell .soft {
  margin-top: 1px;
  font-size: 0.88rem;
  line-height: 1.15;
}

.project-compact-stack {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.project-compact-stack > div:first-child {
  font-weight: 700;
}

.project-compact-stack .soft {
  font-size: 0.88rem;
}

.project-metric-cell {
  min-width: 118px;
}

.project-metric-note {
  line-height: 1.1;
}

.project-table-actions {
  min-width: 116px;
  gap: 6px;
  white-space: nowrap;
}

.danger-text {
  color: var(--danger);
}

.report-toolbar {
  display: grid;
  gap: 14px;
}

.report-period-shell {
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.report-period-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.report-period-title-wrap {
  display: grid;
  gap: 10px;
}

.report-period-title-wrap h2 {
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.report-period-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.inline-action-menu {
  position: relative;
  display: inline-flex;
}

.inline-action-menu summary {
  list-style: none;
  cursor: pointer;
}

.inline-action-menu summary::-webkit-details-marker {
  display: none;
}

.inline-action-menu[open] .inline-action-menu-trigger {
  background: rgba(31, 42, 55, 0.1);
}

.inline-action-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 182px;
  padding: 8px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(31, 42, 55, 0.14);
  display: grid;
  gap: 4px;
  z-index: 36;
}

.inline-action-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.inline-action-menu-item:hover,
.inline-action-menu-item:focus-visible {
  background: rgba(31, 42, 55, 0.06);
  outline: none;
}

.report-period-picker {
  display: grid;
  gap: 6px;
}

.report-period-picker select {
  min-width: 132px;
}

.report-period-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.report-period-date-range {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.report-period-range-chip {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  padding: 10px 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.report-period-helper {
  margin: 0;
  max-width: 840px;
}

.report-period-form {
  display: grid;
  gap: 12px;
}

.report-export-menu {
  margin-right: 2px;
}

.harvest-secondary-nav-reports {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.harvest-secondary-nav-reports .harvest-secondary-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.report-period-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.9fr) repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
}

.report-inline-field {
  min-width: 0;
}

.report-inline-field span {
  font-size: 0.88rem;
}

.report-date-field input {
  min-width: 0;
}

.report-checkbox-row {
  padding-top: 0;
}

.report-table-panel .panel-head {
  align-items: end;
}

.contractor-report-panel {
  padding-top: 14px;
}

.contractor-report-head {
  margin-bottom: 6px;
}

.contractor-report-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.contractor-report-total strong {
  font-size: 1.3rem;
}

.contractor-report-total span {
  color: var(--muted);
  font-size: 0.9rem;
}

.report-table tfoot th,
.report-table tfoot td {
  background: rgba(31, 42, 55, 0.04);
  font-weight: 700;
}

.contractor-report-table td strong + .soft {
  margin-top: 4px;
}

.contractor-report-table td .soft + .soft {
  margin-top: 2px;
}

.report-aging-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-aging-card {
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 14px;
  padding: 14px;
  background: #f7f7f4;
  display: grid;
  gap: 4px;
}

.report-aging-card p {
  margin: 0;
  color: var(--muted);
}

.report-aging-card strong {
  font-size: 1.12rem;
}

.report-detail-head {
  align-items: flex-start;
  gap: 16px;
}

.report-detail-summary {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.report-detail-summary strong {
  font-size: 1.28rem;
}

.report-detail-summary span {
  color: var(--muted);
  font-size: 0.9rem;
}

.report-detail-table td,
.report-detail-table th,
.report-activity-table td,
.report-activity-table th {
  vertical-align: top;
}

.report-detail-table td strong + .soft,
.report-activity-table td strong + .soft {
  margin-top: 4px;
}

.report-notes-cell {
  min-width: 220px;
  max-width: 340px;
}

.team-summary-row.is-selected td {
  background: rgba(15, 118, 110, 0.08);
}

.team-summary-row.is-selected td:first-child {
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.65);
}

.team-overview-table thead th {
  background: #f2f2f0;
  border-bottom-color: rgba(31, 42, 55, 0.12);
  white-space: nowrap;
}

.team-group-block table td,
.team-group-block table th,
.contractor-report-table td,
.contractor-report-table th {
  padding-top: 11px;
  padding-bottom: 11px;
}

.team-person-cell {
  justify-content: flex-start;
  gap: 10px;
}

.team-person-link {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.team-person-link strong,
.team-person-link .soft {
  margin: 0;
}

.team-person-link:hover strong,
.team-person-link:focus-visible strong {
  text-decoration: underline;
}

.team-person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 55, 0.8);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  flex-shrink: 0;
}

.team-person-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-person-copy strong,
.team-person-copy .soft {
  margin: 0;
}

.team-actions-menu-wrap {
  position: relative;
  display: inline-flex;
}

.team-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 42, 55, 0.14);
  display: grid;
  gap: 4px;
  z-index: 30;
}

.team-actions-menu-item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
}

.team-actions-menu-item:hover,
.team-actions-menu-item:focus-visible {
  background: rgba(31, 42, 55, 0.06);
  outline: none;
}

.team-row-actions-button {
  min-width: 92px;
  justify-content: center;
}

.secret-note {
  margin: 0;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
}

.composer-panel {
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.composer-panel.collapsed {
  padding: 14px 16px;
  box-shadow: none;
}

.composer-panel.collapsed .panel-head {
  margin-bottom: 8px;
}

.composer-panel.collapsed .panel-head .soft {
  display: none;
}

.composer-panel.expanded {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.composer-panel-preview {
  padding: 14px 16px;
  border: 1px dashed rgba(143, 178, 255, 0.2);
  border-radius: 16px;
  background: rgba(143, 178, 255, 0.07);
}

.composer-panel-preview p {
  margin: 0;
  line-height: 1.4;
}

.project-composer-panel.collapsed .composer-panel-preview,
.project-task-panel.collapsed .composer-panel-preview,
.team-invite-panel.collapsed .composer-panel-preview {
  padding: 8px 10px;
  border-style: solid;
  border-color: rgba(143, 178, 255, 0.12);
  border-radius: 12px;
  background: rgba(143, 178, 255, 0.06);
  font-size: 0.95rem;
}

.composer-panel-body {
  display: grid;
  gap: 14px;
}

.composer-panel.collapsed .composer-panel-body {
  display: none;
}

.composer-panel.expanded .composer-panel-preview {
  display: none;
}

.two-up,
.setup-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-up.wide-first {
  grid-template-columns: 1.25fr 1fr;
}

.setup-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
}

label span {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(143, 178, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: rgba(156, 169, 200, 0.74);
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row.inline {
  padding-top: 4px;
}

.checkbox-row input {
  width: auto;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: white;
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.26);
}

.secondary {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.9));
  color: #03111d;
  font-weight: 800;
}

.ghost,
.link-button {
  background: rgba(143, 178, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(143, 178, 255, 0.14);
}

.danger {
  color: var(--danger);
}

.primary:hover,
.secondary:hover,
.ghost:hover,
.harvest-main-link:hover,
.section-tab:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.projects-filter-grid {
  margin-bottom: 16px;
}

.top-gap {
  margin-top: 16px;
}

.project-budget-block {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 42, 55, 0.04);
}

.project-detail-actions {
  margin: 8px 0 4px;
}

.project-detail-shell {
  display: grid;
  gap: 14px;
}

.project-detail-head {
  align-items: start;
}

.project-detail-workspace {
  display: grid;
  grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1.62fr);
  gap: 16px;
  align-items: start;
}

.project-detail-section-rail {
  display: grid;
  gap: 14px;
}

.project-detail-section-card {
  padding: 14px 16px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  background: rgba(31, 42, 55, 0.03);
  display: grid;
  gap: 4px;
}

.project-detail-section-card p,
.project-detail-section-card strong {
  margin: 0;
}

.project-detail-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.project-detail-tab-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.project-detail-tab-button {
  width: 100%;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(31, 42, 55, 0.04);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 14px;
  text-align: left;
  display: block;
}

.project-detail-tab-button strong,
.project-detail-tab-button small,
.project-detail-tab-copy h4,
.project-detail-tab-copy p {
  display: block;
}

.project-detail-tab-button.active {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--accent-deep);
  font-weight: 700;
}

.project-detail-tab-panel {
  gap: 16px;
}

.project-overview-summary-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-detail-tab-copy h4,
.project-detail-tab-copy p {
  margin: 0;
}

.project-setup-section {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.project-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.project-section-head h4,
.project-section-head p {
  margin: 0;
}

.project-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-type-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.project-type-card strong,
.project-type-card span {
  display: block;
}

.project-type-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.project-type-card.active {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.16);
  background: rgba(249, 115, 22, 0.06);
}

.project-rate-budget-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: rgba(249, 115, 22, 0.05);
}

.project-rate-budget-panel p,
.project-rate-budget-panel strong {
  margin: 0;
}

.project-sheet-form {
  gap: 18px;
}

.project-sheet-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.project-sheet-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.project-sheet-section-head h4,
.project-sheet-section-head p {
  margin: 0;
}

.project-sheet-basics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-hidden-control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-type-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-type-choice {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.project-type-choice strong,
.project-type-choice span {
  display: block;
}

.project-type-choice span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.project-type-choice.active {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.16);
  background: rgba(249, 115, 22, 0.06);
}

.project-sheet-billing-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: rgba(249, 115, 22, 0.05);
}

.project-sheet-billing-head strong,
.project-sheet-billing-head p {
  margin: 0;
}

.project-segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  justify-content: start;
}

.project-segmented-option {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.project-segmented-option.active {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
}

.project-sheet-billing-grid,
.project-sheet-invoice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-form-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.project-form-table-head,
.project-form-table-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.project-form-table-head {
  background: rgba(31, 42, 55, 0.06);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.project-form-table-row + .project-form-table-row {
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.project-task-table-head,
.project-task-table-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px 130px auto;
}

.project-task-table-row.draft input[type="text"],
.project-task-table-row.draft input[type="number"] {
  min-width: 0;
}

.project-team-table-head,
.project-team-table-row {
  grid-template-columns: minmax(0, 1.9fr) 120px 120px 160px auto;
}

.project-team-person {
  display: flex;
  gap: 12px;
  align-items: start;
}

.project-team-person span {
  display: grid;
  gap: 2px;
}

.project-manager-toggle {
  justify-content: flex-start;
}

.project-sheet-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.project-budget-progress {
  display: grid;
  gap: 8px;
}

.project-notes-panel {
  margin-top: 2px;
}

.project-budget-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 42, 55, 0.12);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #4b83d8);
}

.progress-fill.danger {
  background: linear-gradient(90deg, #d97706, #dc2626);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.action-cell {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.action-cell .team-actions-menu-wrap {
  margin-left: auto;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.project-task-panel .list-stack,
.team-directory-panel .list-stack {
  gap: 8px;
}

.project-task-panel.collapsed .list-stack,
.team-directory-panel .list-stack {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.list-stack.tight {
  gap: 8px;
}

.data-health-grid {
  margin-top: 16px;
}

.list-row,
.line-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(31, 42, 55, 0.04);
}

.project-task-panel .list-row,
.team-directory-panel .list-row {
  padding: 10px 12px;
  border-radius: 14px;
}

.user-row .ghost {
  min-width: 88px;
}

.manage-directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.5fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
  background: transparent;
}

.manage-directory-row:last-child {
  border-bottom: 0;
}

.manage-directory-copy {
  min-width: 0;
}

.manage-directory-copy p {
  margin: 4px 0 0;
  line-height: 1.35;
}

.manage-directory-meta {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.manage-directory-meta strong,
.manage-directory-meta small {
  display: block;
}

.manage-directory-row .button-row,
.manage-directory-row .align-right {
  justify-content: flex-end;
}

.manage-directory-row .ghost {
  min-width: 72px;
}

.manage-category-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.manage-category-leading {
  justify-self: start;
}

.manage-category-copy p {
  margin-top: 5px;
}

.manage-category-row .button-row {
  gap: 8px;
}

.manage-client-row {
  grid-template-columns: auto minmax(0, 1.4fr) minmax(90px, 0.28fr) auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.manage-task-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.45fr) auto;
}

.manage-client-leading {
  display: flex;
  align-items: center;
}

.manage-client-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.manage-client-actions .icon-button {
  gap: 8px;
}

.client-contact-modal {
  width: min(520px, 100%);
}

.client-contact-actions {
  justify-content: flex-end;
}

.task-filter-form {
  min-width: min(100%, 360px);
}

.task-directory-group + .task-directory-group {
  margin-top: 18px;
}

.task-directory-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.task-directory-group-head h4,
.task-directory-group-head p {
  margin: 0;
}

.task-directory-group-head > span {
  white-space: nowrap;
}

.panel-head .soft {
  margin: 4px 0 0;
}

.team-directory-panel.compact-empty .panel-head {
  margin-bottom: 10px;
}

.empty-directory-note {
  margin: 0;
}

.align-right {
  text-align: right;
}

.inset-panel {
  background: rgba(31, 42, 55, 0.02);
  border: 1px solid rgba(31, 42, 55, 0.06);
}

.project-activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 55, 0.06);
  background: rgba(31, 42, 55, 0.03);
}

.project-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(39, 146, 49, 0.08);
}

.project-activity-copy strong,
.project-activity-copy p,
.project-activity-copy small {
  display: block;
}

.project-activity-copy p,
.project-activity-copy small {
  margin: 4px 0 0;
}

.project-activity-value {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.timer-live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.timer-live-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timer-live-clock,
.timer-live-work {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.timer-live-time {
  display: flex;
  gap: 8px;
  align-items: center;
}

.timer-live-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 146, 49, 0.12);
}

.timer-live h3 {
  margin: 0;
  font-size: 1.28rem;
}

.timer-live-work p {
  margin: 0;
  line-height: 1.35;
}

.timer-live-context {
  color: var(--muted);
}

.timer-actions {
  display: flex;
  align-items: center;
  justify-self: end;
}

.day-entry-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.timesheet-header,
.day-entry-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.timesheet-header {
  justify-content: space-between;
  align-items: center;
}

.timesheet-header h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.timesheet-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.week-state-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.week-state-banner h4,
.week-state-banner p {
  margin: 0;
}

.week-state-banner.submitted {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.22);
}

.week-state-banner.approved {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.2);
}

.week-state-banner.open {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
}

.week-state-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.week-state-meta strong {
  font-size: 1.1rem;
}

.week-state-meta span,
.week-state-meta small {
  color: var(--muted);
}

.timesheet-period-bar,
.timesheet-nav,
.timesheet-toggle-bar,
.timesheet-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.timesheet-toggle-bar {
  justify-content: flex-end;
}

.timesheet-overview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.slim {
  padding: 10px 12px;
  border-radius: 12px;
}

.square {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.active-toggle {
  background: rgba(34, 211, 238, 0.1);
  color: #0e7490;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.timesheet-panel {
  padding: 0;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
}

.timesheet-grid-head,
.timesheet-row,
.timesheet-grid-foot {
  display: grid;
  grid-template-columns: minmax(338px, 2.7fr) repeat(7, minmax(74px, 1fr)) 70px;
  min-width: 1036px;
}

.timesheet-grid-days,
.timesheet-row-days,
.timesheet-foot-days {
  display: contents;
}

.timesheet-grid-head {
  background: #efefeb;
  border-bottom: 1px solid rgba(31, 42, 55, 0.1);
}

.timesheet-grid-spacer,
.timesheet-grid-total {
  padding: 10px 12px;
}

.timesheet-grid-total {
  display: flex;
  align-items: end;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.timesheet-day-header {
  border: 0;
  border-left: 1px solid rgba(31, 42, 55, 0.08);
  background: #efefeb;
  min-height: 58px;
  display: grid;
  gap: 3px;
  place-content: center;
  text-align: center;
  padding: 8px 6px;
}

.timesheet-day-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timesheet-day-header strong {
  font-size: 1rem;
}

.timesheet-day-header small,
.timesheet-row-total small,
.timesheet-cell small {
  color: var(--muted);
}

.timesheet-day-header.selected {
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 -2px 0 rgba(34, 211, 238, 0.62);
}

.timesheet-grid-body {
  display: grid;
}

.timesheet-row {
  background: white;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.timesheet-row-summary,
.timesheet-row-total {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.timesheet-row-summary {
  position: relative;
  border-left: 2px solid rgba(34, 211, 238, 0.72);
}

.timesheet-row-summary.empty {
  border-left-color: rgba(31, 42, 55, 0.12);
}

.timesheet-row-copy p {
  margin: 2px 0 0;
  line-height: 1.3;
}

.timesheet-row-copy strong {
  display: block;
  line-height: 1.25;
}

.timesheet-row-actions {
  justify-content: end;
  max-width: none;
  align-self: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.timesheet-cell {
  position: relative;
  margin: 5px 5px;
  border: 1px solid rgba(31, 42, 55, 0.14);
  border-radius: 12px;
  background: white;
  min-height: 48px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timesheet-cell span {
  min-height: 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.timesheet-cell.filled {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.timesheet-cell.selected {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.28);
  padding: 5px;
}

.timesheet-cell.saving {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.24);
}

.timesheet-cell.save-error {
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.22);
}

.timesheet-cell.saved {
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.22);
}

.timesheet-cell.read-only {
  opacity: 0.82;
}

.timesheet-cell input {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px;
  border: 1px solid rgba(31, 42, 55, 0.14);
  background: white;
}

.cell-save-status {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--muted);
}

.cell-save-status.error {
  color: #fb7185;
}

.cell-retry-button {
  margin-top: 4px;
  min-height: 30px;
  padding: 5px 8px;
}

.cell-note-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
}

.week-note-button.has-note {
  color: #0891b2;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
}

.timesheet-row-menu-wrap {
  position: relative;
}

.timesheet-row-menu {
  position: absolute;
  z-index: 12;
  right: 0;
  top: calc(100% + 6px);
  min-width: 132px;
  padding: 6px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.timesheet-row-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  color: var(--text);
}

.timesheet-row-menu-item:hover,
.timesheet-row-menu-item:focus-visible {
  background: rgba(34, 211, 238, 0.1);
}

.timesheet-row-menu-item.danger {
  color: #be123c;
}

.week-note-popover {
  position: absolute;
  z-index: 14;
  right: 12px;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  border-radius: 14px;
  background: white;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.22);
}

.week-note-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.week-note-popover textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
}

.timesheet-row-total {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sheet-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
}

.sheet-icon-button .icons8-icon {
  opacity: 0.72;
}

.sheet-icon-button.danger .icons8-icon,
.ghost.danger.sheet-icon-button .icons8-icon {
  opacity: 0.78;
}

.timesheet-grid-foot {
  background: rgba(247, 242, 233, 0.9);
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.timesheet-foot-actions,
.timesheet-foot-week-total,
.timesheet-foot-total {
  padding: 9px 12px;
}

.timesheet-foot-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.timesheet-foot-button-row,
.timesheet-foot-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.timesheet-foot-meta {
  min-width: 0;
  justify-content: flex-start;
}

.timesheet-foot-meta strong {
  font-size: 0.95rem;
}

.timesheet-foot-meta span,
.timesheet-foot-meta small {
  color: var(--muted);
}

.timesheet-foot-total,
.timesheet-foot-week-total {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timesheet-foot-total.selected {
  background: rgba(249, 115, 22, 0.1);
}

.timesheet-day-panel {
  margin-top: 18px;
}

.day-mode-panel {
  display: grid;
  gap: 14px;
}

.day-mode-shell {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.day-mode-launcher,
.day-mode-content {
  display: grid;
  gap: 12px;
}

.day-mode-launcher {
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.day-track-launch {
  width: 72px;
  min-height: 72px;
  border: 0;
  border-radius: 16px;
  background: #2f8f3a;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.day-track-launch-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.day-track-launch-icon .icons8-icon {
  filter: brightness(0) invert(1);
}

.day-track-launch-copy {
  display: grid;
  gap: 4px;
}

.day-track-launch-copy strong,
.day-track-launch-copy small {
  display: block;
}

.day-track-launch-copy small {
  color: var(--muted);
}

.day-mode-launcher-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.day-mode-content {
  gap: 12px;
}

.day-mode-content-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}

.day-mode-content-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.day-mode-content-head h3,
.day-mode-content-head p {
  margin: 0;
}

.day-mode-summary {
  display: grid;
  gap: 2px;
  min-width: 88px;
  text-align: right;
}

.day-mode-summary span {
  font-size: 1.08rem;
  font-weight: 700;
}

.day-mode-summary small {
  color: var(--muted);
  font-size: 0.88rem;
}

.day-mode-week-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.day-mode-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.day-mode-week-total {
  display: grid;
  gap: 4px;
  min-width: 96px;
  justify-items: end;
  text-align: right;
}

.day-mode-week-total span {
  color: var(--muted);
  font-size: 0.9rem;
}

.day-mode-week-total strong {
  font-size: 1.05rem;
}

.day-mode-week-total small {
  color: var(--muted);
  font-size: 0.88rem;
}

.day-mode-week-status {
  margin-top: 2px;
}

.day-mode-date-chip {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 4px 6px 12px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.day-mode-date-chip strong {
  font-size: 1rem;
}

.day-mode-date-chip span,
.day-mode-date-chip small {
  color: var(--muted);
}

.day-mode-date-chip.selected {
  background: transparent;
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: none;
}

.day-mode-actions,
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.day-empty-state {
  min-height: 260px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(31, 42, 55, 0.04);
  border: 1px solid rgba(31, 42, 55, 0.07);
  display: grid;
  place-items: center;
  text-align: center;
}

.day-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.copy-rows-modal {
  max-width: 680px;
}

.copy-row-preview-list {
  display: grid;
  gap: 10px;
  max-height: min(460px, 52vh);
  overflow: auto;
  padding-right: 4px;
}

.copy-row-preview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 55, 0.1);
  background: rgba(31, 42, 55, 0.04);
}

.copy-row-preview-item strong,
.copy-row-preview-item small {
  display: block;
}

.copy-row-preview-item small {
  color: var(--muted);
  margin-top: 2px;
}

.day-quick-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.day-mode-helper {
  margin: 0;
}

.day-mode-bottom-tools {
  display: flex;
  justify-content: flex-start;
}

.day-mode-copy-button {
  justify-content: flex-start;
}

.day-quick-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) minmax(150px, 0.72fr) minmax(224px, 1fr);
  gap: 18px;
  padding: 16px 14px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.day-quick-row.row-first {
  align-items: start;
}

.day-quick-row.saved-only {
  opacity: 0.96;
}

.day-quick-row-copy p {
  margin: 3px 0 0;
  line-height: 1.32;
}

.day-quick-row-copy strong {
  display: block;
  font-size: 1.05rem;
}

.day-quick-row-inputs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.day-quick-row-inputs label {
  display: grid;
  gap: 6px;
}

.day-quick-row-inputs input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
}

.day-row-notes {
  display: grid;
  gap: 8px;
}

.day-row-notes summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.day-row-notes[open] summary {
  color: var(--ink);
}

.day-row-notes textarea {
  min-height: 74px;
  resize: vertical;
}

.day-quick-row-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
}

.day-quick-row-statuses {
  min-height: 0;
  justify-self: end;
}

.day-quick-row-button-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.day-row-action-button {
  min-width: 0;
}

.day-row-secondary-action {
  color: var(--muted);
  background: transparent;
  padding-inline: 6px;
}

.day-row-saved-entries {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(31, 42, 55, 0.03);
}

.day-row-saved-entries summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.day-row-saved-entries[open] summary {
  color: var(--ink);
}

.day-row-saved-entry-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.day-entry-card.compact {
  padding: 10px 0;
  background: transparent;
}

.time-picker-row-note {
  align-self: center;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 42, 55, 0.04);
}

.selected-day-stat {
  text-align: right;
}

.selected-day-stat.compact strong {
  font-size: 1.15rem;
}

.selected-day-head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.selected-day-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.selected-day-stat strong {
  font-size: 1.25rem;
}

.day-entry-list {
  display: grid;
  gap: 0;
}

.day-entry-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.day-entry-main p {
  margin: 0;
  line-height: 1.35;
}

.day-entry-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.entry-duration {
  display: grid;
  gap: 2px;
}

.entry-duration.align-end {
  justify-items: end;
  text-align: right;
}

.entry-duration-primary {
  font-weight: 700;
  white-space: nowrap;
}

.entry-duration-secondary {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.day-entry-side {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.day-entries-panel.embedded {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.selected-day-week-detail summary div p {
  margin: 4px 0 0;
}

.selected-day-review-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.timesheet-meta-detail summary div strong {
  display: block;
  margin-bottom: 4px;
}

.timesheet-meta-detail h4 {
  margin: 0 0 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 55, 0.24);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

.modal-card {
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(31, 42, 55, 0.18);
}

.time-picker-modal {
  width: min(560px, 100%);
  padding: 18px 22px 20px;
}

.time-picker-head {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
}

.time-picker-head h3,
.time-picker-head p {
  margin: 0;
}

.time-picker-inline-note {
  margin: 0;
}

.time-picker-work-fields {
  display: grid;
  gap: 10px;
}

.time-picker-field-label {
  font-weight: 700;
}

.time-picker-work-fields select {
  width: 100%;
}

.time-picker-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(130px, 0.6fr);
  gap: 10px;
  align-items: start;
}

.time-picker-notes textarea {
  min-height: 82px;
}

.time-picker-hours {
  align-self: stretch;
}

.time-picker-hours input {
  text-align: center;
  min-height: 52px;
  font-size: 1.32rem;
  font-weight: 700;
}

.time-picker-actions {
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.time-picker-quiet-action {
  color: var(--muted);
  background: transparent;
  padding-inline: 8px;
}

.time-picker-alt-action {
  color: var(--muted);
  background: transparent;
  padding-inline: 6px;
}

.time-picker-secondary-actions,
.time-picker-primary-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.time-picker-secondary-actions {
  justify-content: flex-end;
}

.invoice-detail {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 42, 55, 0.04);
}

.invoice-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.invoice-detail summary::-webkit-details-marker {
  display: none;
}

.invoice-meta {
  margin: 12px 0;
  color: var(--muted);
}

.line-list {
  display: grid;
  gap: 8px;
}

.invoice-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 42, 55, 0.08);
  text-transform: capitalize;
}

.status-pill.paid {
  background: var(--accent-soft);
  color: #065f46;
}

.status-pill.partial {
  background: rgba(249, 115, 22, 0.14);
  color: #9a3412;
}

.status-pill.draft {
  background: var(--info-soft);
  color: #1d4ed8;
}

.status-pill.neutral {
  background: rgba(31, 42, 55, 0.08);
  color: var(--ink);
  text-transform: none;
}

.banner {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.banner.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.banner.success {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
}

.banner.neutral {
  background: rgba(31, 42, 55, 0.08);
  color: var(--ink);
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(31, 42, 55, 0.035);
  border: 1px solid rgba(31, 42, 55, 0.07);
}

.empty-state.compact {
  padding: 12px 14px;
}

.empty-state strong,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.4;
}

.empty-table-cell {
  padding: 0;
}

.note-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.line-editor {
  display: grid;
  gap: 8px;
}

.line-editor-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr auto;
  gap: 10px;
}

.compact-row {
  padding: 10px 12px;
}

.group-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(31, 42, 55, 0.03);
  border: 1px solid rgba(31, 42, 55, 0.06);
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.team-group-block + .team-group-block {
  margin-top: 16px;
}

.group-head h4 {
  margin: 0;
}

.group-project-rollup {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-team-selector {
  display: grid;
  gap: 10px;
}

.project-team-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.project-team-copy {
  display: grid;
  gap: 4px;
}

.project-team-copy strong,
.project-team-copy small {
  margin: 0;
}

.project-task-editor {
  display: grid;
  gap: 10px;
}

.project-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(140px, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.project-task-row input[type="text"],
.project-task-row input[type="number"] {
  min-width: 0;
}

.team-member-detail-shell,
.team-member-detail-panel {
  display: grid;
  gap: 16px;
}

.team-member-detail-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.team-detail-topbar,
.team-member-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.team-detail-topbar.team-detail-topbar-actions {
  justify-content: end;
}

.team-member-detail-header p {
  margin: 0;
  max-width: 760px;
}

.team-member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #353535;
  color: white;
  font-size: 1.45rem;
  font-weight: 700;
}

.team-member-meta h3,
.team-member-meta p {
  margin: 0;
}

.team-member-meta {
  display: grid;
  gap: 4px;
}

.team-member-summary-bar,
.team-member-meta-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-member-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr);
  gap: 30px;
  align-items: start;
}

.team-member-section-rail {
  display: grid;
  gap: 18px;
}

.team-member-summary-grid {
  display: grid;
  gap: 10px;
}

.team-member-summary-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  background: rgba(247, 242, 233, 0.48);
}

.team-member-summary-stat span,
.team-member-summary-stat small {
  color: var(--muted);
}

.team-member-summary-stat strong {
  font-size: 1.08rem;
}

.team-member-identity-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.12);
}

.team-member-section-summary p,
.team-member-section-summary strong {
  margin: 0;
}

.team-member-section-summary {
  display: grid;
  gap: 6px;
}

.team-member-section-summary .group-project-rollup {
  margin-top: 4px;
}

.team-detail-tab-strip {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(31, 42, 55, 0.12);
  border-bottom: 1px solid rgba(31, 42, 55, 0.12);
  background: transparent;
}

.team-detail-tab {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
  background: transparent;
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 0;
  text-align: left;
  display: block;
  font-weight: 600;
}

.team-detail-tab:last-child {
  border-bottom: 0;
}

.team-detail-tab strong {
  display: block;
  margin: 0;
}

.team-detail-tab small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.team-detail-tab.active {
  background: rgba(15, 118, 110, 0.08);
  box-shadow: inset 4px 0 0 var(--accent);
  color: var(--ink);
}

.team-member-detail-panel {
  min-width: 0;
  background: white;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 20px;
  padding: 18px 20px 20px;
}

.team-member-page-head {
  align-items: start;
}

.team-member-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-member-sheet {
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: white;
  display: grid;
  gap: 0;
}

.team-member-sheet h4 {
  margin: 0;
  font-size: 1rem;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.team-member-sheet .list-stack,
.team-member-sheet > p.soft {
  padding: 14px 16px 16px;
}

.team-member-note {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.team-member-note strong,
.team-member-note p {
  margin: 0;
}

.team-rate-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.team-rate-section-head h4,
.team-rate-section-head p {
  margin: 0;
}

.team-rate-form {
  gap: 12px;
}

.team-rate-form-lockup {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 14px;
  background: rgba(31, 42, 55, 0.03);
}

.team-rate-form-lockup span {
  color: var(--muted);
}

.team-activity-list {
  display: grid;
  gap: 14px;
}

.team-activity-day {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 12px;
}

.team-activity-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.team-activity-day-body {
  display: grid;
  gap: 10px;
}

.team-entry-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
}

.team-entry-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.team-entry-line p {
  margin: 4px 0 0;
}

.team-entry-line-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.team-breakdown-table td {
  vertical-align: top;
}

.inline-action {
  margin-left: 0;
}

.approval-detail .table-wrap {
  margin: 14px 0;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .panel,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .hero-panel,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .metric-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .auth-status-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .group-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-type-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-detail-section-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-setup-section,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-sheet-section,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-sheet-billing-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-type-choice,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-rate-budget-panel,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-summary-meter-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-detail-panel,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-sheet,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-summary-stat,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-activity-day,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-aging-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .invoice-detail,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .empty-state,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .modal-card {
  background:
    linear-gradient(180deg, rgba(20, 30, 56, 0.86), rgba(11, 17, 34, 0.78));
  border-color: rgba(143, 178, 255, 0.17);
  box-shadow: var(--shadow);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .panel-head,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-period-meta-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-period-bar,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-client-row td,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .manage-directory-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-entry-line,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-activity-day-head,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-sheet h4,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-identity-block,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab-strip,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] th,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] td {
  border-color: rgba(143, 178, 255, 0.1);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .table-wrap,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-portfolio-table-wrap,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-form-table,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-task-table-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-team-table-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-team-selector,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-team-option,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-task-row {
  background: rgba(9, 14, 30, 0.64);
  border-color: rgba(143, 178, 255, 0.14);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] table,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-grid-foot,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-client-row td,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-portfolio-table thead th,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-overview-table thead th,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-summary-row.is-selected td,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-table tfoot th,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-table tfoot td {
  background: rgba(9, 14, 30, 0.58);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .list-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .line-row,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-entry-card,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-empty-state,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-row-saved-entries,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .copy-row-preview-item,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .time-picker-row-note,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .composer-panel-preview,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-period-range-chip,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .compact-stat,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .selected-day-stat {
  background: rgba(143, 178, 255, 0.07);
  border-color: rgba(143, 178, 255, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-quick-row {
  border-bottom-color: rgba(143, 178, 255, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-row-notes summary,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-row-saved-entries summary,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .copy-row-preview-item small {
  color: var(--muted);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-row-notes[open] summary,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-row-saved-entries[open] summary {
  color: var(--accent-cyan);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timer-live {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12));
  border-color: rgba(34, 211, 238, 0.24);
  box-shadow: var(--glow-cyan);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timer-live-label,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .report-period-title-wrap h2,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-period-bar h3 {
  color: var(--accent-cyan);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timer-live-icon,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-activity-icon,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .day-track-launch-icon {
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-person-avatar,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-avatar {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.86), rgba(34, 211, 238, 0.68));
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: var(--glow-cyan);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab {
  background: rgba(143, 178, 255, 0.04);
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab:hover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab:focus-visible {
  background: rgba(34, 211, 238, 0.1);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-detail-tab.active {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: inset 4px 0 0 var(--accent-cyan), 0 0 22px rgba(139, 92, 246, 0.16);
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-member-sheet h4 {
  background: rgba(13, 20, 40, 0.72);
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-state-banner,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .banner.neutral {
  background: rgba(143, 178, 255, 0.08);
  border-color: rgba(143, 178, 255, 0.14);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-state-banner.submitted,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .status-pill.partial {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fde68a;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-state-banner.approved,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .status-pill.paid,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .banner.success {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.22);
  color: #bbf7d0;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-state-banner.open,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .status-pill.draft {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.24);
  color: #bfdbfe;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .status-pill,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .status-pill.neutral {
  border: 1px solid rgba(143, 178, 255, 0.16);
  background: rgba(143, 178, 255, 0.1);
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-detail-tab-button.active,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-type-card.active,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-type-choice.active,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .project-segmented-option.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(34, 211, 238, 0.26);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-period-bar,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-day-header {
  background: rgba(13, 20, 40, 0.74);
  border-color: rgba(143, 178, 255, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .active-toggle {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.16)),
    rgba(13, 20, 40, 0.9);
  border-color: rgba(34, 211, 238, 0.32);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.14), var(--glow-cyan);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .active-toggle:disabled {
  opacity: 1;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-panel {
  background: rgba(9, 14, 30, 0.66);
  border-color: rgba(143, 178, 255, 0.18);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-grid-head {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.06)),
    rgba(13, 20, 40, 0.92);
  border-bottom-color: rgba(143, 178, 255, 0.16);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-grid-spacer,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-grid-total {
  background: rgba(13, 20, 40, 0.92);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row {
  background: rgba(10, 16, 32, 0.82);
  border-bottom-color: rgba(143, 178, 255, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-summary {
  background: rgba(10, 16, 32, 0.72);
  border-left-color: rgba(34, 211, 238, 0.58);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-summary.empty {
  border-left-color: rgba(143, 178, 255, 0.18);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-grid-foot {
  background: rgba(9, 14, 30, 0.86);
  border-top-color: rgba(143, 178, 255, 0.16);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-day-header.selected,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell.selected,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-foot-total.selected {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.1)),
    rgba(20, 30, 56, 0.88);
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 -2px 0 rgba(34, 211, 238, 0.58);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell input {
  background: rgba(20, 30, 56, 0.78);
  border-color: rgba(143, 178, 255, 0.16);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell.filled {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3), 0 0 16px rgba(34, 211, 238, 0.08);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-actions .sheet-icon-button {
  background: rgba(143, 178, 255, 0.08);
  border-color: rgba(143, 178, 255, 0.16);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-actions .sheet-icon-button:hover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-actions .sheet-icon-button:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-note-button.has-note {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.36);
  color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell.saving {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28), 0 0 16px rgba(34, 211, 238, 0.08);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-cell.save-error {
  border-color: rgba(251, 113, 133, 0.48);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.22);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .cell-save-status {
  color: var(--muted);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .cell-save-status.error {
  color: #fda4af;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-note-popover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-menu {
  background: rgba(12, 18, 36, 0.98);
  border-color: rgba(143, 178, 255, 0.18);
  box-shadow: var(--shadow);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .week-note-popover textarea {
  background: rgba(20, 30, 56, 0.92);
  border-color: rgba(143, 178, 255, 0.18);
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-menu-item {
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-menu-item:hover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-menu-item:focus-visible {
  background: rgba(34, 211, 238, 0.12);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .timesheet-row-menu-item.danger {
  color: #fda4af;
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .inline-action-menu-panel,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-actions-menu {
  background: rgba(12, 18, 36, 0.98);
  border-color: rgba(143, 178, 255, 0.18);
  box-shadow: var(--shadow);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .inline-action-menu-item,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-actions-menu-item {
  color: var(--ink);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .inline-action-menu-item:hover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .inline-action-menu-item:focus-visible,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-actions-menu-item:hover,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-actions-menu-item:focus-visible {
  background: rgba(34, 211, 238, 0.1);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-dot.billable,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-summary-meter-fill.billable {
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-dot.unbillable,
.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-summary-meter-fill.unbillable {
  background: rgba(143, 178, 255, 0.32);
}

.harvest-shell[data-design-direction="dark-futuristic-dashboard"] .team-summary-meter-track {
  background: rgba(9, 14, 30, 0.8);
  border-color: rgba(143, 178, 255, 0.18);
}

@media (max-width: 1180px) {
  .metric-grid,
  .auth-status-grid,
  .setup-grid,
  .field-grid,
  .two-up,
  .two-up.wide-first {
    grid-template-columns: 1fr;
  }

  .day-quick-row {
    grid-template-columns: 1fr;
  }

  .project-activity-item {
    grid-template-columns: auto 1fr;
  }

  .project-activity-value {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .day-mode-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-mode-week-bar {
    grid-template-columns: 1fr;
  }

  .selected-day-head-actions {
    justify-content: flex-start;
  }

  .day-mode-shell,
  .time-picker-split {
    grid-template-columns: 1fr;
  }

  .selected-day-review-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-stat-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-summary-strip {
    grid-template-columns: 1fr;
  }

  .team-shell-toolbar,
  .team-period-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-toolbar-row {
    align-items: start;
    flex-direction: column;
  }

  .project-toolbar-search,
  .project-toolbar-search input {
    width: 100%;
  }

  .project-sheet-basics-grid,
  .project-sheet-billing-grid,
  .project-sheet-invoice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-workspace,
  .project-detail-tab-strip {
    grid-template-columns: 1fr;
  }

  .team-member-sheet-grid {
    grid-template-columns: 1fr;
  }

  .team-member-facts,
  .team-detail-tab-strip,
  .team-member-workspace {
    grid-template-columns: 1fr;
  }

  .team-member-detail-panel {
    padding: 16px;
  }

  .shell-promo {
    grid-template-columns: 1fr;
  }

  .shell-promo-close {
    justify-self: end;
  }

  .harvest-topnav {
    align-items: flex-start;
  }

  .harvest-main-nav,
  .harvest-account-bar {
    width: 100%;
  }

  .day-quick-row-actions {
    justify-items: start;
  }

  .day-quick-row-button-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .harvest-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .harvest-topnav {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 178, 255, 0.16);
    overflow: visible;
  }

  .harvest-brand-lockup {
    min-width: 220px;
    padding: 0;
    border-bottom: 0;
  }

  .harvest-main-nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .harvest-main-link {
    width: auto;
  }

  .harvest-main-link.active {
    box-shadow: inset 0 -2px 0 var(--accent-cyan), 0 0 22px rgba(139, 92, 246, 0.2);
  }

  .harvest-account-bar {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .harvest-user-chip {
    width: auto;
  }

  .harvest-main-shell {
    min-height: calc(100vh - 96px);
  }
}

@media (max-width: 760px) {
  .main-shell,
  .harvest-topnav {
    padding: 18px;
  }

  .harvest-secondary-nav {
    margin: -18px -18px 0;
    padding: 0 18px;
    gap: 14px;
  }

  .harvest-topnav {
    align-items: start;
    flex-direction: column;
  }

  .harvest-brand-lockup {
    width: 100%;
  }

  .harvest-account-bar,
  .harvest-main-nav,
  .section-tabs {
    width: 100%;
  }

  .harvest-main-link,
  .harvest-account-bar .ghost,
  .harvest-user-chip {
    width: 100%;
  }

  .team-shell-toolbar,
  .team-shell-toolbar-left,
  .team-overview-toolbar,
  .team-period-side,
  .team-person-cell,
  .team-summary-meter-row,
  .team-summary-meter-scale {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-shell-toolbar-left,
  .team-period-side {
    width: 100%;
  }

  .team-filter-form,
  .team-filter-form select {
    width: 100%;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .shell-promo {
    padding: 18px;
  }

  .compact-stat-bar {
    grid-template-columns: 1fr;
  }

  .report-period-actions,
  .report-period-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-period-date-range,
  .report-period-controls {
    grid-template-columns: 1fr;
  }

  .report-period-range-chip {
    justify-items: start;
    text-align: left;
    width: 100%;
  }

  .report-aging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-detail-summary {
    justify-items: start;
    text-align: left;
  }

  .project-budget-head {
    align-items: start;
    flex-direction: column;
  }

  .project-type-grid {
    grid-template-columns: 1fr;
  }

  .project-type-choice-grid,
  .project-sheet-basics-grid,
  .project-sheet-billing-grid,
  .project-sheet-invoice-grid {
    grid-template-columns: 1fr;
  }

  .project-segmented {
    grid-auto-flow: row;
  }

  .project-team-option {
    align-items: start;
    flex-direction: column;
  }

  .project-task-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-form-table-head {
    display: none;
  }

  .project-task-table-row,
  .project-team-table-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-activity-item {
    grid-template-columns: 1fr;
  }

  .project-activity-value {
    grid-column: auto;
  }

  .project-section-head {
    align-items: start;
    flex-direction: column;
  }

  .manage-directory-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .manage-client-row {
    grid-template-columns: 1fr;
  }

  .manage-task-row {
    grid-template-columns: 1fr;
  }

  .team-entry-line,
  .team-activity-day-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-entry-line-meta {
    justify-items: start;
  }

  .manage-client-leading {
    justify-content: flex-start;
  }

  .task-directory-group-head {
    align-items: start;
    flex-direction: column;
  }

  .manage-directory-row .button-row,
  .manage-directory-row .align-right {
    justify-content: flex-start;
    text-align: left;
  }

  .project-filter-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .project-filter-field {
    width: 100%;
  }

  .team-member-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .timesheet-header,
  .timesheet-period-bar {
    align-items: start;
    flex-direction: column;
  }

  .timesheet-grid-head,
  .timesheet-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 0.72fr) 78px;
    min-width: 0;
  }

  .timesheet-grid-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .timesheet-grid-head .timesheet-day-header:not(.selected),
  .timesheet-row .timesheet-cell:not(.selected),
  .timesheet-grid-foot .timesheet-foot-total:not(.selected) {
    display: none;
  }

  .timesheet-foot-actions {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .timesheet-row-summary {
    flex-direction: column;
  }

  .timesheet-row-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .timesheet-row-actions .sheet-icon-button,
  .day-quick-row-button-strip .sheet-icon-button,
  .day-row-action-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .day-row-secondary-action {
    min-height: 44px;
    padding-inline: 12px;
  }

  .timesheet-grid-total,
  .timesheet-row-total,
  .timesheet-foot-week-total,
  .timesheet-foot-total {
    padding-inline: 8px;
  }

  .timesheet-cell {
    margin: 8px 4px;
    min-height: 58px;
  }

  .action-cell,
  .line-editor-row {
    grid-template-columns: 1fr;
  }

  .day-mode-week-strip {
    grid-template-columns: 1fr;
  }

  .timer-live {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .timer-actions {
    justify-self: start;
  }

  .time-picker-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .time-picker-secondary-actions,
  .time-picker-primary-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .time-picker-secondary-actions > *,
  .time-picker-primary-actions > *,
  .invoice-actions > *,
  .topbar-actions > *,
  .report-period-actions > * {
    min-height: 44px;
  }

  .week-state-banner,
  .hero-panel,
  .list-row,
  .line-row,
  .day-entry-card,
  .invoice-actions {
    flex-direction: column;
    align-items: start;
  }

  .week-state-meta {
    justify-items: start;
    text-align: left;
  }

  .day-entry-title-row {
    flex-direction: column;
  }

  .day-entry-side {
    justify-items: start;
    text-align: left;
  }
}
