:root {
  --bg-dark: #0f1115;
  --bg-dark-soft: #151922;
  --bg-panel: rgba(18, 23, 31, 0.74);
  --bg-panel-strong: rgba(20, 26, 35, 0.9);
  --bg-light: #eef3f8;
  --bg-light-soft: #f7fafd;
  --bg-light-muted: #e5edf5;
  --text-light: #e7ecf4;
  --text-dark: #161b24;
  --muted-light: #aeb8c8;
  --muted-dark: #5e6674;
  --accent: #2ed3f3;
  --accent-deep: #1b6cff;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(17, 24, 39, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --shadow-dark: 0 26px 50px rgba(0, 0, 0, 0.24);
  --shadow-light: 0 20px 40px rgba(23, 33, 47, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  font-family: "General Sans", "Inter", sans-serif;
  color: var(--text-light);
  background:
    radial-gradient(70vw 70vw at 92% -8%, rgba(46, 211, 243, 0.16), transparent 62%),
    radial-gradient(48vw 48vw at 3% 96%, rgba(27, 108, 255, 0.1), transparent 62%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-dark-soft));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .shell {
  transform: scale(0.985);
  filter: blur(22px) saturate(0.82);
  pointer-events: none;
  user-select: none;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 18, 0.56);
  backdrop-filter: blur(16px);
}

.lock-screen.is-active {
  display: flex;
}

.lock-card {
  width: min(540px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(20, 26, 35, 0.96), rgba(14, 18, 25, 0.96));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.lock-card h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.94;
}

.lock-copy {
  margin-top: 0.9rem;
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 44ch;
}

.lock-copy strong {
  color: #ffffff;
}

.lock-form {
  display: grid;
  gap: 12px;
  margin-top: 1.35rem;
}

.lock-field,
.form-field {
  display: grid;
  gap: 0.45rem;
}

.lock-field span,
.form-field span {
  color: var(--muted-light);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.lock-error {
  margin-top: 0.1rem;
  color: #ff998f;
  font-size: 0.92rem;
}

.lock-submit {
  margin-top: 0.25rem;
  justify-content: center;
}

.lock-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-light);
  font-size: 0.92rem;
}

.lock-hint strong {
  color: #ffffff;
  font-weight: 600;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(52vw 52vw at 82% 12%, rgba(46, 211, 243, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-theme-switching::after {
  opacity: 1;
}

body,
.sidebar,
.topbar,
.panel,
.metric,
.quick-item,
.project-card,
.bar-row,
.tab-btn,
select,
input,
.theme-toggle,
.ghost-btn {
  transition:
    background 340ms cubic-bezier(0.22, 1, 0.36, 1),
    color 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 340ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Satoshi", "General Sans", sans-serif;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  width: 26rem;
  height: 26rem;
  top: -7rem;
  right: -5rem;
  background: rgba(46, 211, 243, 0.16);
}

.ambient-b {
  width: 20rem;
  height: 20rem;
  left: -5rem;
  bottom: 6rem;
  background: rgba(27, 108, 255, 0.12);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 20px;
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0;
  align-items: start;
  transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1), filter 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-theme-switching .shell {
  transform: scale(0.996);
  filter: saturate(1.02) brightness(1.01);
}

.card {
  border-radius: var(--radius-lg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 10%, rgba(46, 211, 243, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(19, 24, 33, 0.88), rgba(15, 19, 26, 0.94));
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #88e9ff);
  color: #0a1620;
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(46, 211, 243, 0.26);
}

.brand-label {
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.brand h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.88;
  color: var(--text-light);
}

.nav {
  display: grid;
  gap: 10px;
}

.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-light);
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: 180ms ease;
}

.tab-btn:hover {
  border-color: rgba(46, 211, 243, 0.42);
  color: #ffffff;
}

.tab-btn.is-active {
  border-color: rgba(46, 211, 243, 0.45);
  background: rgba(46, 211, 243, 0.1);
  box-shadow: inset 0 0 0 1px rgba(46, 211, 243, 0.12);
}

.sidebar-foot {
  margin-top: auto;
  color: var(--muted-light);
  font-size: 0.9rem;
  line-height: 1.45;
}

.main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(20, 26, 35, 0.94), rgba(17, 22, 30, 0.92));
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.topbar h2 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.9rem;
}

.topbar-meta p {
  color: var(--muted-light);
  font-size: 0.96rem;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.topbar-pill.is-admin {
  color: #0f6770;
  background: rgba(46, 211, 243, 0.16);
}

.topbar-pill.is-employee {
  color: #305f94;
  background: rgba(27, 108, 255, 0.12);
}

.topbar-select {
  display: grid;
  gap: 0.35rem;
}

.topbar-select label {
  font-size: 0.82rem;
}

.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  font: inherit;
  font-weight: 600;
  padding: 0.76rem 1rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(46, 211, 243, 0.38);
  color: #ffffff;
}

.panel-heading {
  display: grid;
  gap: 0.35rem;
}

.panel-copy {
  color: var(--muted-light);
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.45;
}

label {
  color: var(--muted-light);
}

select,
input {
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font: inherit;
  padding: 0.7rem 0.95rem;
}

select:focus,
input:focus {
  outline: 2px solid rgba(46, 211, 243, 0.22);
  border-color: rgba(46, 211, 243, 0.48);
}

.ghost-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  background: linear-gradient(125deg, var(--accent), var(--accent-deep), var(--accent));
  background-size: 180% 180%;
  color: #08131d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 0 26px rgba(46, 211, 243, 0.24),
    0 0 0 1px rgba(46, 211, 243, 0.14) inset;
  animation: accentFlow 8s ease infinite;
}

.ghost-btn[disabled] {
  opacity: 0.44;
  cursor: not-allowed;
  animation: none;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  font: inherit;
  font-weight: 600;
  padding: 0.78rem 1rem;
  cursor: pointer;
  transition: 200ms ease;
}

.secondary-btn:hover {
  border-color: rgba(46, 211, 243, 0.34);
  color: #ffffff;
}

.secondary-btn[disabled],
.card-action-btn[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
}

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

.metric {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-light-soft), var(--bg-light));
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.metric:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #f0f5fa);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(27, 108, 255, 0.56));
}

.metric p {
  color: var(--muted-dark);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric h3 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 2.1vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.metric span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted-dark);
  font-size: 0.94rem;
}

.panel-wrap {
  min-height: 520px;
}

.section-kicker {
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.panel {
  display: none;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(18, 23, 31, 0.78), rgba(15, 19, 26, 0.9));
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(12px);
}

.panel.is-visible {
  display: block;
  animation: panelIn 220ms ease;
}

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

.panel-head h3 {
  font-size: clamp(1.9rem, 2.4vw, 3rem);
  line-height: 0.95;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.quick-item {
  min-height: 168px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #eff4f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.quick-item:nth-child(2) {
  background: linear-gradient(180deg, #f5f8fc, var(--bg-light-muted));
}

.quick-item p {
  color: var(--muted-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.quick-item h4 {
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.overview-side {
  display: grid;
  gap: 14px;
}

.overview-hero-card,
.overview-stack-card,
.roster-card,
.analytics-hero-card,
.analytics-block,
.insight-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.overview-hero-card {
  padding: 24px;
  min-height: 100%;
}

.overview-hero-head,
.stack-head,
.roster-card-head,
.analytics-hero-head,
.analytics-block-head,
.rhythm-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overview-hero-head h4,
.stack-head h4,
.roster-card-head h4,
.analytics-hero-head h4 {
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 0.96;
}

.overview-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.overview-pill.good {
  color: #0f6770;
  background: rgba(46, 211, 243, 0.16);
}

.overview-pill.live {
  color: #305f94;
  background: rgba(27, 108, 255, 0.12);
}

.overview-hero-copy {
  margin-top: 1rem;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 56ch;
}

.overview-hero-metrics,
.roster-stats,
.team-performance-stats,
.analytics-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

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

.overview-hero-metrics span,
.roster-stats span,
.team-performance-stats span,
.analytics-hero-metrics span {
  display: block;
  color: var(--muted-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-hero-metrics strong,
.roster-stats strong,
.team-performance-stats strong,
.analytics-hero-metrics strong {
  display: block;
  margin-top: 0.34rem;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.overview-hero-foot,
.roster-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0.9rem;
}

.overview-hero-foot strong,
.roster-foot strong {
  color: var(--text-dark);
}

.overview-hero-foot span,
.roster-foot span {
  color: var(--muted-dark);
  font-size: 0.92rem;
  text-align: right;
}

.overview-stack-card,
.analytics-block,
.insight-card {
  padding: 18px;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.signal-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.signal-card span,
.radar-item p,
.analytics-block-head p,
.insight-card span {
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.45;
}

.signal-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.signal-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.signal-card p {
  margin-top: 0.35rem;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.radar-list {
  display: grid;
  gap: 10px;
  margin-top: 1rem;
}

.radar-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.radar-item strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
}

.overview-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.roster-card {
  padding: 18px;
}

.analytics-hero {
  margin-bottom: 14px;
}

.analytics-hero-card {
  padding: 22px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
}

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

.analytics-block-head h4,
.insight-card h4 {
  font-size: 1.35rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.team-performance-grid {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.team-performance-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.analytics-notes {
  display: grid;
  gap: 12px;
}

.insight-card h4 {
  margin-top: 0.45rem;
}

.analytics-rhythm {
  margin-top: 14px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.rhythm-day {
  padding: 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.rhythm-day-head span,
.rhythm-day p {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.rhythm-bar {
  display: flex;
  align-items: flex-end;
  height: 128px;
  margin-top: 0.9rem;
  padding: 10px;
  border-radius: 16px;
  background: rgba(46, 211, 243, 0.08);
}

.rhythm-bar span {
  display: block;
  width: 100%;
  min-height: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 24px rgba(46, 211, 243, 0.18);
}

.rhythm-day p {
  margin-top: 0.75rem;
}

.task-overview,
.client-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.client-import-preview {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(13, 17, 23, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.client-import-preview__head,
.client-import-preview__actions,
.client-import-preview__summary,
.client-import-preview__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-import-preview__actions {
  align-items: center;
  flex-wrap: wrap;
}

.client-import-preview__summary {
  margin-top: 1rem;
  flex-wrap: wrap;
}

.client-import-preview__stat {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.client-import-preview__stat p,
.client-import-preview__list-head span,
.client-import-preview__item-copy,
.client-import-preview__empty {
  color: var(--muted-light);
}

.client-import-preview__stat p,
.client-import-preview__list-head span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.client-import-preview__stat strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-light);
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.4rem;
}

.client-import-preview__body {
  display: grid;
  gap: 14px;
}

.client-import-preview__list {
  display: grid;
  gap: 10px;
}

.client-import-preview__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-import-preview__item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.client-import-preview__item strong {
  color: var(--text-light);
  font-size: 1rem;
}

.client-import-preview__item-copy {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.client-import-preview__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.import-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.import-pill.create {
  color: #0f6670;
  background: rgba(46, 211, 243, 0.16);
}

.import-pill.update {
  color: #b7d2ff;
  background: rgba(27, 108, 255, 0.16);
}

.import-pill.skip {
  color: #b8a98a;
  background: rgba(255, 184, 92, 0.16);
}

.overview-chip {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 248, 0.96));
  box-shadow: var(--shadow-light);
  color: var(--text-dark);
}

.overview-chip p {
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.overview-chip strong {
  display: block;
  margin-top: 0.6rem;
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.overview-chip span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.task-editor {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.task-form {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.task-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.task-lane {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.task-lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-lane-head p {
  color: var(--text-light);
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.task-lane-head span {
  color: var(--muted-light);
  font-size: 0.86rem;
}

.task-lane-head strong {
  color: var(--text-light);
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.2rem;
}

.task-card-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.lane-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--muted-light);
  text-align: center;
  font-size: 0.92rem;
}

.task-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.task-card-top,
.task-card-meta,
.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-card h4 {
  margin-top: 0.9rem;
  font-size: 1.3rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.task-card-copy {
  margin-top: 0.65rem;
  color: var(--muted-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

.task-card-meta {
  margin-top: 0.9rem;
  color: var(--muted-dark);
  font-size: 0.86rem;
}

.task-card-footer {
  margin-top: 0.85rem;
  color: var(--muted-dark);
  font-size: 0.84rem;
}

.task-card-footer strong {
  color: var(--text-dark);
}

.task-card-footer .is-overdue {
  color: #d95a4f;
}

.card-actions,
.user-card-actions,
.user-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions {
  margin-top: 0.95rem;
}

.card-action-btn {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--muted-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.82rem;
  cursor: pointer;
}

.card-action-btn.danger {
  color: #a64a40;
  background: rgba(217, 90, 79, 0.08);
  border-color: rgba(217, 90, 79, 0.12);
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.priority-pill.high {
  color: #0f6670;
  background: rgba(46, 211, 243, 0.16);
}

.priority-pill.medium {
  color: #45668c;
  background: rgba(27, 108, 255, 0.12);
}

.priority-pill.low {
  color: var(--muted-dark);
  background: rgba(17, 24, 39, 0.06);
}

.table-wrap {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
}

th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

tbody tr:hover {
  background: rgba(46, 211, 243, 0.08);
}

.controls-note {
  color: var(--muted-light);
  font-size: 0.84rem;
  white-space: nowrap;
}

.sortable-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.sortable-head::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.24;
  transform: rotate(45deg) translateY(-1px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sortable-head.is-active::after {
  opacity: 0.8;
}

.sortable-head[data-direction="asc"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.sortable-head[data-direction="desc"]::after {
  transform: rotate(45deg) translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.badge.todo {
  color: #8fdff1;
  background: rgba(46, 211, 243, 0.12);
  border-color: rgba(46, 211, 243, 0.18);
}

.badge.in_progress {
  color: #b7d2ff;
  background: rgba(27, 108, 255, 0.14);
  border-color: rgba(27, 108, 255, 0.16);
}

.badge.done {
  color: #96edf2;
  background: rgba(46, 211, 243, 0.1);
  border-color: rgba(46, 211, 243, 0.16);
}

.deadline.overdue {
  color: #ff8c82;
  font-weight: 700;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.project-spotlight {
  margin-bottom: 14px;
}

.project-spotlight-card,
.project-editor {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.project-editor {
  padding: 20px;
}

.project-form {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.project-spotlight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-kicker {
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.project-spotlight-head h4 {
  font-size: clamp(1.8rem, 2.3vw, 2.7rem);
  line-height: 0.96;
}

.project-spotlight-copy,
.project-card-copy {
  margin-top: 0.8rem;
  color: var(--muted-dark);
  font-size: 0.98rem;
  line-height: 1.5;
}

.project-spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.project-spotlight-metrics span {
  display: block;
  color: var(--muted-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-spotlight-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1.32rem;
}

.progress--large {
  height: 11px;
  margin-top: 1rem;
}

.project-spotlight-foot,
.project-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0.9rem;
}

.project-spotlight-foot strong,
.project-card-foot strong {
  color: var(--text-dark);
}

.project-spotlight-foot span,
.project-card-foot span {
  color: var(--muted-dark);
  font-size: 0.9rem;
  text-align: right;
}

.health-pill,
.temperature-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.health-pill.good,
.temperature-pill.hot {
  color: #0f6770;
  background: rgba(46, 211, 243, 0.16);
}

.health-pill.stable,
.temperature-pill.warm {
  color: #305f94;
  background: rgba(27, 108, 255, 0.12);
}

.health-pill.risk,
.temperature-pill.cool {
  color: #7a5a2b;
  background: rgba(255, 184, 92, 0.16);
}

.project-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.project-card.is-selected,
.project-spotlight-card.is-selected {
  box-shadow:
    var(--shadow-light),
    0 0 0 1px rgba(46, 211, 243, 0.24) inset;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(27, 108, 255, 0.54));
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-row p {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.progress {
  width: 100%;
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(46, 211, 243, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.project-health {
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: 0.88rem;
}

.project-empty-card {
  display: flex;
  align-items: center;
  min-height: 160px;
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.client-table-wrap {
  padding: 12px;
}

.client-table {
  min-width: 1320px;
}

.client-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff, #eff4f8);
}

.client-table tbody tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.025);
}

.client-table tbody tr.is-status-hot {
  background:
    linear-gradient(90deg, rgba(46, 211, 243, 0.08), transparent 18%),
    rgba(17, 24, 39, 0.01);
}

.client-table tbody tr.is-status-warm {
  background:
    linear-gradient(90deg, rgba(27, 108, 255, 0.06), transparent 18%),
    rgba(17, 24, 39, 0.01);
}

.client-table tbody tr.is-status-cool {
  background:
    linear-gradient(90deg, rgba(255, 184, 92, 0.08), transparent 18%),
    rgba(17, 24, 39, 0.01);
}

.client-table tbody tr.is-selected {
  background: rgba(46, 211, 243, 0.12);
}

.client-cell-main,
.client-cell-stack {
  display: grid;
  gap: 4px;
}

.client-cell-main strong,
.client-cell-stack strong {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.35;
}

.client-cell-main span,
.client-cell-stack span,
.table-empty {
  color: var(--muted-dark);
  font-size: 0.84rem;
  line-height: 1.45;
}

.client-activity-line {
  color: #4f6b8f;
  font-size: 0.79rem;
  line-height: 1.4;
}

.client-inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.client-inline-tags span {
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: var(--muted-dark);
  font-size: 0.72rem;
  line-height: 1.2;
}

.table-link {
  color: #0f6670;
  text-decoration: none;
  font-weight: 600;
}

.table-link:hover {
  text-decoration: underline;
}

.table-number {
  display: inline-flex;
  align-items: center;
  min-width: 38px;
  font-family: "Satoshi", "General Sans", sans-serif;
  font-size: 1rem;
}

.table-inline-select,
.table-inline-number {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-dark);
  font: inherit;
  font-size: 0.84rem;
  padding: 0.55rem 0.72rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.table-inline-select:focus,
.table-inline-number:focus {
  border-color: rgba(46, 211, 243, 0.45);
  box-shadow: 0 0 0 3px rgba(46, 211, 243, 0.12);
}

.table-inline-select--status {
  font-weight: 600;
}

.table-inline-select--status.hot {
  border-color: rgba(46, 211, 243, 0.28);
  background: rgba(46, 211, 243, 0.12);
  color: #0f6670;
}

.table-inline-select--status.warm {
  border-color: rgba(27, 108, 255, 0.18);
  background: rgba(27, 108, 255, 0.08);
  color: #17457c;
}

.table-inline-select--status.cool {
  border-color: rgba(255, 184, 92, 0.28);
  background: rgba(255, 184, 92, 0.16);
  color: #8a5a12;
}

.table-inline-counter {
  display: inline-grid;
  grid-template-columns: 28px minmax(64px, 84px) 28px;
  align-items: center;
  gap: 6px;
}

.table-inline-number {
  text-align: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.table-inline-number--wide {
  min-width: 112px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-step-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(248, 251, 254, 0.9);
  color: var(--text-dark);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.table-step-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 211, 243, 0.32);
  background: rgba(46, 211, 243, 0.1);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-action-btn {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(248, 251, 254, 0.88);
  color: var(--text-dark);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.38rem 0.78rem;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.table-action-btn.accent {
  border-color: rgba(46, 211, 243, 0.22);
  background: rgba(46, 211, 243, 0.12);
  color: #0f6670;
}

.table-action-btn:hover {
  border-color: rgba(46, 211, 243, 0.34);
  transform: translateY(-1px);
}

.table-action-btn.danger {
  color: #8e4252;
}

.temperature-pill-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.temperature-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.client-empty-row {
  padding: 26px 18px;
  color: var(--muted-dark);
  text-align: center;
}

.client-editor {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.client-form {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.users-grid {
  display: grid;
  gap: 14px;
}

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

.users-card-grid {
  display: grid;
  gap: 12px;
}

.user-card,
.user-editor {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.user-card {
  padding: 18px;
}

.user-card.is-selected {
  box-shadow:
    var(--shadow-light),
    0 0 0 1px rgba(46, 211, 243, 0.22) inset;
}

.user-card-head,
.user-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-card-head h4,
.user-editor-head h4 {
  font-size: 1.38rem;
  line-height: 1.04;
}

.user-card-meta {
  margin-top: 0.9rem;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.user-card-copy {
  margin-top: 0.8rem;
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.52;
}

.user-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.user-card-stats span {
  display: block;
  color: var(--muted-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-card-stats strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.user-card-actions {
  margin-top: 1rem;
}

.user-editor {
  padding: 20px;
}

.user-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-form {
  display: grid;
  gap: 12px;
  margin-top: 1rem;
}

.form-hint {
  margin: -0.1rem 0 0;
  color: var(--muted-dark);
  font-size: 0.86rem;
  line-height: 1.45;
}

textarea {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
  font: inherit;
  padding: 0.8rem 0.95rem;
  resize: vertical;
}

textarea:focus {
  outline: 2px solid rgba(46, 211, 243, 0.22);
  border-color: rgba(46, 211, 243, 0.48);
}

.user-form-actions {
  margin-top: 0.35rem;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, #ffffff, #eff4f8);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bar-head span {
  color: var(--muted-dark);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(46, 211, 243, 0.12);
}

.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

@supports (view-transition-name: none) {
  ::view-transition-group(root) {
    animation-duration: 640ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  ::view-transition-old(root) {
    mix-blend-mode: normal;
    animation: themeFadeOut 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  ::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: themeFadeIn 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.tg-mode .ghost-btn {
  box-shadow:
    0 0 26px rgba(46, 211, 243, 0.18),
    0 0 0 1px rgba(46, 211, 243, 0.1) inset;
}

body[data-theme="light"] {
  color: var(--text-dark);
  background:
    radial-gradient(58vw 58vw at 92% -8%, rgba(46, 211, 243, 0.12), transparent 62%),
    radial-gradient(36vw 36vw at 2% 100%, rgba(27, 108, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #eef3f7, #e8eef4 52%, #f7fafd);
}

body[data-theme="light"] .ambient-a {
  background: rgba(46, 211, 243, 0.1);
}

body[data-theme="light"] .ambient-b {
  background: rgba(27, 108, 255, 0.08);
}

body[data-theme="light"] .sidebar {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at 16% 10%, rgba(46, 211, 243, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(248, 251, 254, 0.9), rgba(234, 240, 246, 0.96));
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .brand h1,
body[data-theme="light"] .tab-btn,
body[data-theme="light"] .sidebar-foot {
  color: var(--text-dark);
}

body[data-theme="light"] .brand-label,
body[data-theme="light"] .sidebar-foot {
  color: var(--muted-dark);
}

body[data-theme="light"] .tab-btn {
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] .tab-btn:hover {
  color: var(--text-dark);
}

body[data-theme="light"] .tab-btn.is-active {
  background: rgba(46, 211, 243, 0.12);
  border-color: rgba(46, 211, 243, 0.3);
}

body[data-theme="light"] .topbar {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 252, 0.94));
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .panel {
  color: var(--text-dark);
}

body[data-theme="light"] .eyebrow {
  color: var(--accent-deep);
}

body[data-theme="light"] label {
  color: var(--muted-dark);
}

body[data-theme="light"] select,
body[data-theme="light"] input,
body[data-theme="light"] textarea {
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-dark);
}

body[data-theme="light"] .topbar-meta p {
  color: var(--muted-dark);
}

body[data-theme="light"] .theme-toggle {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .theme-toggle:hover {
  color: var(--text-dark);
}

body[data-theme="light"] .secondary-btn {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .panel {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 247, 252, 0.8));
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .panel-copy {
  color: var(--muted-dark);
}

body[data-theme="light"] .controls {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

body[data-theme="light"] .client-import-preview {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at 100% 0, rgba(46, 211, 243, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 247, 252, 0.86));
  box-shadow: var(--shadow-light);
}

body[data-theme="light"] .client-import-preview__stat,
body[data-theme="light"] .client-import-preview__item {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

body[data-theme="light"] .client-import-preview__stat p,
body[data-theme="light"] .client-import-preview__list-head span,
body[data-theme="light"] .client-import-preview__item-copy,
body[data-theme="light"] .client-import-preview__empty {
  color: var(--muted-dark);
}

body[data-theme="light"] .client-import-preview__stat strong,
body[data-theme="light"] .client-import-preview__item strong,
body[data-theme="light"] .client-import-preview__list-head h5 {
  color: var(--text-dark);
}

body[data-theme="light"] .client-table tbody tr.is-status-hot {
  background:
    linear-gradient(90deg, rgba(46, 211, 243, 0.1), transparent 20%),
    rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .client-table tbody tr.is-status-warm {
  background:
    linear-gradient(90deg, rgba(27, 108, 255, 0.08), transparent 20%),
    rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .client-table tbody tr.is-status-cool {
  background:
    linear-gradient(90deg, rgba(255, 184, 92, 0.1), transparent 20%),
    rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .controls-note {
  color: var(--muted-dark);
}

body[data-theme="light"] .task-lane {
  border-color: rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(246, 249, 253, 0.88), rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

body[data-theme="light"] .overview-hero-card,
body[data-theme="light"] .overview-stack-card,
body[data-theme="light"] .roster-card,
body[data-theme="light"] .analytics-hero-card,
body[data-theme="light"] .analytics-block,
body[data-theme="light"] .insight-card,
body[data-theme="light"] .project-editor,
body[data-theme="light"] .task-editor,
body[data-theme="light"] .client-editor,
body[data-theme="light"] .user-card,
body[data-theme="light"] .user-editor {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.94));
}

body[data-theme="light"] .signal-card,
body[data-theme="light"] .radar-item,
body[data-theme="light"] .team-performance-card,
body[data-theme="light"] .rhythm-day,
body[data-theme="light"] .card-action-btn,
body[data-theme="light"] .table-action-btn {
  background: rgba(248, 251, 254, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

body[data-theme="light"] .table-action-btn.accent {
  background: rgba(46, 211, 243, 0.12);
}

body[data-theme="light"] .client-activity-line {
  color: #4c6f9d;
}

body[data-theme="light"] .table-inline-select,
body[data-theme="light"] .table-inline-number,
body[data-theme="light"] .table-step-btn {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

body[data-theme="light"] .task-lane-head p,
body[data-theme="light"] .task-lane-head strong {
  color: var(--text-dark);
}

body[data-theme="light"] .task-lane-head span,
body[data-theme="light"] .lane-empty {
  color: var(--muted-dark);
}

body[data-theme="light"] .lane-empty {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

body[data-theme="light"] th,
body[data-theme="light"] .panel-head h3 {
  color: var(--text-dark);
}

body[data-theme="light"] th {
  color: var(--muted-dark);
}

body[data-theme="light"] th,
body[data-theme="light"] td {
  border-bottom-color: rgba(17, 24, 39, 0.08);
  color: var(--text-dark);
}

body[data-role="employee"] .task-layout,
body[data-role="employee"] .project-layout,
body[data-role="employee"] .client-layout {
  grid-template-columns: 1fr;
}

@keyframes accentFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes themeFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.986);
    filter: blur(10px);
  }
}

@keyframes themeFadeIn {
  from {
    opacity: 0;
    transform: scale(1.014);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(1360px, calc(100vw - 24px));
    padding: 12px 0 18px;
  }

  .sidebar {
    position: sticky;
    top: 12px;
    z-index: 5;
  }

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

  .overview-layout,
  .analytics-grid,
  .users-layout,
  .project-layout,
  .task-layout,
  .task-board,
  .client-layout {
    grid-template-columns: 1fr;
  }

  .overview-roster,
  .users-summary,
  .rhythm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-meta,
  .panel-actions-group,
  .panel-actions,
  .user-form-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .metrics-grid,
  .quick-grid,
  .overview-roster,
  .users-summary,
  .project-list,
  .task-overview,
  .client-overview,
  .project-spotlight-metrics,
  .overview-hero-metrics,
  .analytics-hero-metrics,
  .roster-stats,
  .team-performance-stats,
  .signal-list,
  .user-card-stats,
  .rhythm-grid {
    grid-template-columns: 1fr;
  }

  .quick-item h4 {
    font-size: 2rem;
  }

  .task-board,
  .client-layout,
  .project-layout,
  .task-layout,
  .users-layout {
    grid-template-columns: 1fr;
  }

  .overview-hero-head,
  .overview-hero-foot,
  .stack-head,
  .analytics-hero-head,
  .client-import-preview__head,
  .client-import-preview__row,
  .user-card-head,
  .user-card-meta,
  .user-editor-head,
  .project-spotlight-head,
  .project-spotlight-foot,
  .project-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls-note {
    white-space: normal;
  }

  .client-import-preview__summary {
    flex-direction: column;
  }

  .client-table {
    min-width: 920px;
  }
}
