:root {
  color-scheme: light;
  --mobile-topbar-height: 112px;
  --bg: #f8f5ee;
  --surface: #fffdf8;
  --surface-2: #f2efe7;
  --ink: #191414;
  --muted: #625f58;
  --line: #ded8cc;
  --line-strong: #bdb4a5;
  --brand: #191414;
  --kaizen-klein: #4100f5;
  --kaizen-citric: #cdfa00;
  --kaizen-aquamarine: #9bf0e1;
  --kaizen-fushia: #f037a5;
  --kaizen-tangerine: #ff4632;
  --kaizen-storm: #2a2540;
  --teal: #087f73;
  --coral: var(--kaizen-tangerine);
  --yellow: #c7e800;
  --green: #00a77e;
  --blue: var(--kaizen-klein);
  --violet: #7c28f4;
  --citric-ink: #596600;
  --fushia-ink: #9d155f;
  --tangerine-ink: #9f2417;
  --shadow: 0 22px 70px rgba(25, 20, 20, 0.13);
  --radius: 8px;
  --ds-radius-sm: 6px;
  --ds-radius-md: 8px;
  --ds-radius-lg: 12px;
  --ds-radius-xl: 18px;
  --ds-control-height: 40px;
  --ds-control-padding: 9px 14px;
  --ds-border: 1px solid var(--line);
  --ds-border-strong: 1px solid var(--line-strong);
  --ds-focus-ring: 0 0 0 3px rgba(65, 0, 245, 0.13);
  --ds-shadow-button: 0 10px 22px rgba(65, 0, 245, 0.13), 0 8px 18px rgba(24, 21, 18, 0.08);
  --ds-shadow-card: 0 14px 44px rgba(24, 21, 18, 0.07);
  --ds-shadow-popover: 0 24px 80px rgba(24, 21, 18, 0.16);
  --ds-shadow-modal: 0 30px 90px rgba(24, 21, 18, 0.22);
  --ds-z-sticky: 40;
  --ds-z-popover: 460;
  --ds-z-modal: 720;
  --ds-z-toast: 900;
  --priority-low: #7a8793;
  --priority-normal: var(--kaizen-klein);
  --priority-high: #a27900;
  --priority-urgent: var(--kaizen-tangerine);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --motion-fast: 140ms;
  --motion-medium: 220ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1e1e;
  --surface: #262626;
  --surface-2: #303030;
  --ink: #f3f3f3;
  --muted: #c9c9c9;
  --line: #3e3e3e;
  --line-strong: #5a5a5a;
  --brand: #f3f3f3;
  --teal: #9bf0e1;
  --citric-ink: #d9ff33;
  --fushia-ink: #ff8aca;
  --tangerine-ink: #ffb1a8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --ds-focus-ring: 0 0 0 3px rgba(155, 240, 225, 0.2);
  --ds-shadow-button: 0 10px 22px rgba(0, 0, 0, 0.28), 0 8px 18px rgba(65, 0, 245, 0.12);
  --ds-shadow-card: 0 14px 44px rgba(0, 0, 0, 0.28);
  --ds-shadow-popover: 0 24px 80px rgba(0, 0, 0, 0.42);
  --ds-shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.5);
}

/* Design system primitives for new Kaizen UI. */
.ds-control,
.ds-button {
  min-height: var(--ds-control-height);
  border-radius: var(--ds-radius-md);
  padding: var(--ds-control-padding);
  font: inherit;
}

.ds-button {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fffdf8;
  font-weight: 740;
  text-align: center;
  box-shadow: var(--ds-shadow-button);
}

.ds-card,
.ds-surface {
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--ds-shadow-card);
}

.ds-popover,
.ds-modal {
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  box-shadow: var(--ds-shadow-popover);
}

.ds-modal {
  box-shadow: var(--ds-shadow-modal);
}

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

.ds-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 760;
}

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

@keyframes kaizenFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kaizenPopIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kaizenPageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.994);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes kaizenPageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.992);
    filter: blur(2px);
  }
}

@keyframes kaizenSlideInRight {
  from {
    transform: translateX(26px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes kaizenSlideOutRight {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(18px);
  }
}

@keyframes kaizenBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes kaizenBackdropOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes kaizenSoftPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(155, 240, 225, 0.24), transparent 34%),
    linear-gradient(48deg, rgba(205, 250, 0, 0.15), transparent 30%),
    linear-gradient(220deg, rgba(240, 55, 165, 0.08), transparent 38%),
    var(--bg);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(130deg, rgba(155, 240, 225, 0.1), transparent 34%),
    linear-gradient(48deg, rgba(205, 250, 0, 0.08), transparent 30%),
    linear-gradient(220deg, rgba(240, 55, 165, 0.12), transparent 38%),
    var(--bg);
}

:root[data-theme="dark"] .brand-logo-img-dark {
  filter: invert(1) brightness(1.9);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

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

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
}

.auth-brand {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(25, 20, 20, 0.98) 0%, rgba(42, 37, 64, 0.96) 34%, rgba(65, 0, 245, 0.86) 62%, rgba(240, 55, 165, 0.72) 80%, rgba(255, 70, 50, 0.76) 100%),
    linear-gradient(90deg, var(--kaizen-citric), var(--kaizen-aquamarine));
  color: #fffdf8;
}

.auth-brand h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.auth-brand p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.js-ready .auth-card,
.js-ready .page-header,
.js-ready .project-header,
.js-ready .metrics-grid,
.js-ready .panel,
.js-ready .asana-calendar-shell,
.js-ready .project-section-list,
.js-ready .rewards-hero,
.js-ready .command-center-grid,
.js-ready .client-portal-card,
.js-ready .approval-studio {
  animation: kaizenFadeUp var(--motion-slow) var(--ease-out) both;
}

.js-ready .content {
  transform-origin: top center;
  animation: kaizenPageIn 360ms var(--ease-out) both;
  will-change: opacity, transform, filter;
}

.js-ready.is-navigating .content {
  animation: kaizenPageOut 160ms ease-in both;
  pointer-events: none;
}

.js-ready.is-navigating .nav-link,
.js-ready.is-navigating .project-link,
.js-ready.is-navigating .topbar {
  pointer-events: none;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.brand-logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.auth-logo-lockup .brand-logo-img {
  height: 42px;
  max-width: min(220px, 56vw);
}

.app-logo-lockup {
  min-width: 0;
}

.app-logo-lockup .brand-logo-img {
  height: 24px;
  max-width: 136px;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--kaizen-klein), var(--kaizen-fushia) 58%, var(--kaizen-tangerine));
  color: #fffdf8;
  font-weight: 820;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-card h2,
.panel h2,
.section-heading h2,
.drawer-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

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

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.oauth-stack {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.google-btn {
  width: 100%;
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.microsoft-btn {
  width: 100%;
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.google-mark {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.microsoft-mark {
  display: grid;
  width: 22px;
  height: 22px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.btn.disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--ds-control-height);
  border: var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease, background var(--motion-fast) ease;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--kaizen-klein);
  box-shadow: var(--ds-focus-ring);
}

.btn {
  display: inline-flex;
  max-width: 100%;
  min-height: var(--ds-control-height);
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  border-radius: var(--ds-radius-md);
  background: var(--brand);
  color: #fffdf8;
  padding: var(--ds-control-padding);
  font-weight: 740;
  text-align: center;
  white-space: normal;
  box-shadow: var(--ds-shadow-button);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, color var(--motion-fast) ease;
}

.btn:not(:disabled):not(.disabled):hover,
.btn:not(:disabled):not(.disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(24, 21, 18, 0.13);
  outline: none;
}

.btn:not(:disabled):not(.disabled):active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 7px 16px rgba(24, 21, 18, 0.1);
}

.btn.secondary {
  border-color: color-mix(in srgb, var(--kaizen-aquamarine) 38%, var(--line));
  background: #fffdf8;
  color: var(--ink);
}

.btn.secondary:not(:disabled):not(.disabled):hover,
.btn.secondary:not(:disabled):not(.disabled):focus-visible {
  background: rgba(155, 240, 225, 0.18);
  color: var(--ink);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  border-color: var(--coral);
  background: var(--kaizen-tangerine);
}

.btn.small {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.notice {
  display: flex;
  max-height: 180px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 70, 50, 0.24);
  border-radius: 7px;
  background: rgba(255, 70, 50, 0.08);
  color: var(--tangerine-ink);
  padding: 12px;
  animation: kaizenPopIn 260ms var(--ease-pop) both;
  transition: opacity var(--motion-medium) ease, transform var(--motion-medium) ease, max-height var(--motion-medium) ease, margin var(--motion-medium) ease, padding var(--motion-medium) ease;
}

.notice.success {
  border-color: rgba(155, 240, 225, 0.58);
  background: rgba(155, 240, 225, 0.18);
  color: #057064;
}

.notice.info {
  border-color: rgba(65, 0, 245, 0.18);
  background: rgba(65, 0, 245, 0.06);
  color: var(--kaizen-klein);
}

.notice-message {
  min-width: 0;
}

.notice-close {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
  color: currentColor;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.notice-close:hover,
.notice-close:focus-visible {
  transform: scale(1.05);
  border-color: currentColor;
  background: rgba(255, 253, 248, 0.92);
  outline: none;
}

.notice.is-dismissing {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  max-width: 100vw;
  grid-template-columns: 276px minmax(0, 1fr);
  transition: grid-template-columns var(--motion-medium) var(--ease-out);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  width: 276px;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(155, 240, 225, 0.14), transparent 30%),
    rgba(255, 253, 248, 0.92);
  padding: 18px;
  transition: transform var(--motion-medium) var(--ease-out), opacity var(--motion-medium) ease, padding var(--motion-medium) var(--ease-out), border-color var(--motion-medium) ease;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  transform: translateX(-100%);
  border-right-color: transparent;
  opacity: 0;
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, color var(--motion-fast) ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 9px 18px rgba(24, 21, 18, 0.09);
  outline: none;
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.mobile-only {
  display: none;
}

.nav-group {
  margin-top: 22px;
}

.nav-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-label-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.nav-label-row .nav-label {
  margin: 0;
}

.nav-label span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11px;
}

.sidebar-project-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sidebar-project-menu {
  position: relative;
}

.sidebar-project-menu > summary {
  list-style: none;
}

.sidebar-project-menu > summary::-webkit-details-marker {
  display: none;
}

.sidebar-action-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.sidebar-project-menu[open] > .sidebar-action-btn,
.sidebar-action-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.08);
}

.sidebar-project-menu:not([open]) .sidebar-popover {
  display: none;
}

.sidebar-popover {
  position: fixed;
  z-index: var(--ds-z-popover);
  top: var(--sidebar-popover-top, 72px);
  left: var(--sidebar-popover-left, 18px);
  display: grid;
  width: min(268px, calc(100vw - 36px));
  max-height: calc(100vh - var(--sidebar-popover-top, 72px) - 16px);
  overflow: auto;
  gap: 10px;
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--ds-shadow-popover);
  transform-origin: top left;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.sidebar-create-popover {
  width: min(292px, calc(100vw - 36px));
}

.sidebar-popover > strong,
.sidebar-menu-section > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.sidebar-form,
.sidebar-menu-section {
  display: grid;
  gap: 8px;
}

.sidebar-menu-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.sidebar-menu-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-field {
  display: grid;
  gap: 6px;
}

.sidebar-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.sidebar-form-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
}

.sidebar-color-input {
  min-width: 0;
  padding: 5px;
}

.color-field-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.color-field-group .field {
  min-width: 0;
}

.color-picker-input {
  min-width: 0;
  padding: 5px;
}

.compact-color-form {
  grid-template-columns: 40px minmax(96px, 128px) auto;
  align-items: center;
  gap: 8px;
}

.compact-color-form .color-picker-input {
  width: 38px;
  height: 34px;
}

.compact-color-form .btn {
  min-height: 34px;
}

.sidebar-menu-item {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 720;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.sidebar-menu-item:hover,
.sidebar-menu-item:focus-visible,
.sidebar-menu-item.active {
  transform: translateX(2px);
  border-color: var(--line);
  background: var(--surface-2);
  outline: none;
}

.sidebar-project-search {
  min-height: 36px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.sidebar-project-list {
  display: grid;
  gap: 2px;
}

.project-list-dragging {
  cursor: grabbing;
}

.nav-link,
.project-link {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 650;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.nav-link::before,
.project-link::before {
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--kaizen-klein);
  content: "";
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.nav-link:hover,
.project-link:hover,
.nav-link.active,
.project-link.active {
  transform: translateX(2px);
  background: rgba(155, 240, 225, 0.22);
  color: var(--ink);
  box-shadow: inset 3px 0 var(--kaizen-klein);
}

.nav-link:hover::before,
.project-link:hover::before,
.nav-link.active::before,
.project-link.active::before,
.nav-link.is-navigation-target::before,
.project-link.is-navigation-target::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-link.is-navigation-target,
.project-link.is-navigation-target,
a.is-navigation-target:not(.nav-link):not(.project-link) {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.project-link.project-dragging {
  opacity: 0.64;
  transform: scale(0.985);
}

.project-link.project-drag-over {
  box-shadow: inset 3px 0 var(--kaizen-fushia), 0 10px 20px rgba(24, 21, 18, 0.08);
}

.nav-link.active .nav-icon,
.project-link.active .nav-icon {
  color: var(--kaizen-klein);
  transform: scale(1.08);
}

.nav-icon {
  display: inline-grid;
  width: 18px;
  place-items: center;
  color: currentColor;
  font-size: 14px;
  transition: transform var(--motion-fast) var(--ease-pop), color var(--motion-fast) ease;
}

.nav-link:hover .nav-icon,
.project-link:hover .nav-icon {
  transform: scale(1.08) rotate(-2deg);
}

.nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 999px;
  background: var(--kaizen-fushia);
  color: #fffdf8;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 840;
}

.dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kaizen-klein), var(--kaizen-aquamarine));
}

.project-link-main {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.sidebar-project-drag-handle {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  cursor: grab;
  opacity: 0.38;
  transition: opacity var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.project-link:hover .sidebar-project-drag-handle,
.sidebar-project-drag-handle:focus-visible {
  background: rgba(65, 0, 245, 0.08);
  color: var(--kaizen-klein);
  opacity: 1;
}

.sidebar-project-drag-handle:active {
  cursor: grabbing;
}

.sidebar-client-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 253, 248, 0.9);
  color: #fffdf8;
  font-size: 10px;
  box-shadow: 0 0 0 1px rgba(24, 21, 18, 0.08);
}

.sidebar-client-avatar.has-image {
  background: #fff;
}

.project-link-main span,
.project-link-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-link-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.project-link.active .project-link-main small,
.project-link:hover .project-link-main small {
  color: var(--muted);
}

.sidebar-empty-projects {
  margin-top: 8px;
}

.main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.88);
  padding: 12px 24px;
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .topbar {
  background: rgba(30, 30, 30, 0.9);
}

.topbar-leading {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}

.topbar-mobile-logo {
  min-width: 0;
}

.topbar-mobile-logo .brand-logo-img {
  height: 22px;
  max-width: 138px;
}

.sidebar-visibility-toggle {
  flex: 0 0 auto;
}

.search-box {
  width: min(520px, 42vw);
  min-width: 160px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-chip {
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.topbar-user-copy {
  min-width: 0;
  max-width: 190px;
  line-height: 1;
}

.topbar-avatar-form {
  display: inline-grid;
  margin: 0;
}

.topbar-avatar-upload {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.topbar-avatar-upload .avatar {
  width: 34px;
  height: 34px;
}

.topbar-avatar-action {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(24, 21, 18, 0.18);
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}

.topbar-avatar-action i,
.client-avatar-action i,
.team-avatar-action i {
  display: block;
  line-height: 1;
}

.topbar-avatar-upload:hover .topbar-avatar-action,
.topbar-avatar-upload:focus-within .topbar-avatar-action {
  transform: scale(1.08);
  background: var(--kaizen-klein);
}

.topbar-user-copy strong,
.topbar-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-copy strong {
  font-size: 14px;
  font-weight: 860;
  line-height: 1.08;
}

.topbar-logout-btn {
  white-space: nowrap;
}

.topbar-logout-btn i {
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}

.theme-toggle,
.notification-trigger {
  display: inline-flex;
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0;
  font-size: 16px;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.notification-trigger::-webkit-details-marker {
  display: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.notification-trigger:hover,
.notification-menu[open] .notification-trigger {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 10px 20px rgba(24, 21, 18, 0.09);
  outline: none;
}

.theme-toggle {
  flex: 0 0 auto;
}

.notification-count {
  display: inline-grid;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  background: var(--kaizen-fushia);
  color: #fffdf8;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 840;
  line-height: 1;
  animation: kaizenSoftPulse 1400ms ease-in-out 1;
}

.notification-popover {
  position: absolute;
  z-index: var(--ds-z-popover);
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, 92vw);
  overflow: hidden;
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  box-shadow: var(--ds-shadow-popover);
  transform-origin: top right;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.notification-heading-title {
  display: grid;
  gap: 2px;
}

.notification-heading-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.notification-close {
  width: 31px;
  height: 31px;
}

.notification-heading .muted {
  font-size: 12px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
}

.notification-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
  padding: 12px 13px;
  color: var(--muted);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.notification-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.notification-title {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.notification-body {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item:hover,
.notification-item:focus-visible {
  transform: translateX(2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  outline: none;
}

.notification-item.unread {
  border-color: rgba(65, 0, 245, 0.16);
  border-left-color: var(--kaizen-aquamarine);
  background: linear-gradient(90deg, rgba(155, 240, 225, 0.2), rgba(65, 0, 245, 0.04));
}

.notification-footer {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
}

.notification-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.notification-meta i {
  color: var(--kaizen-aquamarine);
  font-size: 11px;
}

.notification-email {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(132, 101, 0, 0.18);
  border-radius: 999px;
  background: rgba(205, 250, 0, 0.28);
  color: var(--citric-ink);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.notification-email.sent {
  border-color: rgba(0, 112, 102, 0.18);
  background: rgba(155, 240, 225, 0.42);
  color: #005f55;
}

.notification-email.skipped {
  border-color: rgba(101, 97, 90, 0.14);
  background: rgba(101, 97, 90, 0.12);
  color: var(--muted);
}

:root[data-theme="dark"] .sidebar {
  background:
    linear-gradient(180deg, rgba(155, 240, 225, 0.1), transparent 30%),
    rgba(30, 30, 30, 0.94);
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .notification-trigger,
:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .google-btn,
:root[data-theme="dark"] .microsoft-btn {
  background: #262626;
  color: var(--ink);
}

:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder {
  color: #9f9f9f;
}

:root[data-theme="dark"] .ds-card,
:root[data-theme="dark"] .ds-surface,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .linked-project-card,
:root[data-theme="dark"] .priority-card,
:root[data-theme="dark"] .upcoming-delivery-card,
:root[data-theme="dark"] .mini-item,
:root[data-theme="dark"] .report-row,
:root[data-theme="dark"] .onboarding-card,
:root[data-theme="dark"] .permission-tile,
:root[data-theme="dark"] .client-card,
:root[data-theme="dark"] .client-list-row,
:root[data-theme="dark"] .request-item,
:root[data-theme="dark"] .risk-row,
:root[data-theme="dark"] .workload-row,
:root[data-theme="dark"] .task-info-cell,
:root[data-theme="dark"] .task-field-create-panel,
:root[data-theme="dark"] .task-description-hero,
:root[data-theme="dark"] .comment-attachment-card,
:root[data-theme="dark"] .task-attachment-card,
:root[data-theme="dark"] .approval-asset-card {
  background: rgba(38, 38, 38, 0.9);
  color: var(--ink);
}

:root[data-theme="dark"] .ds-popover,
:root[data-theme="dark"] .ds-modal,
:root[data-theme="dark"] .notification-popover,
:root[data-theme="dark"] .sidebar-popover,
:root[data-theme="dark"] .client-edit-panel,
:root[data-theme="dark"] .drawer-panel {
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .notification-item.unread {
  border-color: rgba(155, 240, 225, 0.2);
  border-left-color: #9bf0e1;
  background: linear-gradient(90deg, rgba(155, 240, 225, 0.12), rgba(65, 0, 245, 0.14));
}

:root[data-theme="dark"] .notification-item {
  border-color: rgba(243, 243, 243, 0.12);
  background:
    linear-gradient(135deg, rgba(243, 243, 243, 0.04), rgba(65, 0, 245, 0.12)),
    #262626;
  color: #d9d9d9;
}

:root[data-theme="dark"] .notification-item:hover,
:root[data-theme="dark"] .notification-item:focus-visible {
  border-color: rgba(155, 240, 225, 0.32);
  background:
    linear-gradient(135deg, rgba(155, 240, 225, 0.08), rgba(65, 0, 245, 0.16)),
    #2b2b2b;
}

:root[data-theme="dark"] .notification-title {
  color: #f3f3f3;
}

:root[data-theme="dark"] .notification-body,
:root[data-theme="dark"] .notification-meta {
  color: #d2d2d2;
}

:root[data-theme="dark"] .notification-email {
  border-color: rgba(205, 250, 0, 0.42);
  background: rgba(205, 250, 0, 0.2);
  color: #e4ff64;
}

:root[data-theme="dark"] .notification-email.sent {
  border-color: #9bf0e1;
  background: #9bf0e1;
  color: #102b28;
}

:root[data-theme="dark"] .notification-email.skipped {
  border-color: rgba(243, 243, 243, 0.18);
  background: rgba(243, 243, 243, 0.1);
  color: #f3f3f3;
}

:root[data-theme="dark"] .notification-count,
:root[data-theme="dark"] .topbar-avatar-action {
  border-color: #1e1e1e;
}

:root[data-theme="dark"] .btn {
  color: #1e1e1e;
}

:root[data-theme="dark"] .btn.danger {
  color: #f3f3f3;
}

:root[data-theme="dark"] .btn.ghost,
:root[data-theme="dark"] .btn.secondary {
  color: var(--ink);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) ease;
}

.avatar:hover {
  transform: scale(1.04);
}

.avatar.has-image {
  background: var(--surface-2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.avatar-xl {
  width: 76px;
  height: 76px;
  font-size: 23px;
}

.content {
  width: min(1480px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px;
}

.panel,
.panel-pad,
.page-header,
.project-header,
.grid-2,
.grid-3,
.metrics-grid,
.command-center-grid {
  min-width: 0;
}

.page-header,
.project-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  overflow: visible;
}

.project-header {
  z-index: 20;
}

.page-header:has(.client-create-toggle[open]) {
  z-index: 420;
}

.page-header h1,
.project-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.header-actions {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  justify-content: flex-end;
}

.project-header-actions {
  position: relative;
  z-index: 2;
}

.inline-create-section-form {
  display: flex;
  min-width: 0;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inline-create-section-form .input {
  flex: 1 1 180px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(155, 240, 225, 0.1)),
    #fffdf8;
  padding: 16px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.metric-button {
  display: grid;
  align-content: start;
  min-height: 124px;
  gap: 6px;
}

.metric-button:hover,
.metric-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--kaizen-klein);
  box-shadow: 0 16px 34px rgba(24, 21, 18, 0.1);
  outline: none;
}

.metric-button.active {
  border-color: var(--kaizen-klein);
  background: rgba(155, 240, 225, 0.22);
  box-shadow: 0 18px 38px rgba(65, 0, 245, 0.11);
}

.metric-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(65, 0, 245, 0.16);
  border-radius: 8px;
  background: rgba(155, 240, 225, 0.24);
  color: var(--kaizen-klein);
  font-size: 15px;
}

.metric-icon.warning {
  border-color: rgba(255, 70, 50, 0.22);
  background: rgba(255, 70, 50, 0.11);
  color: var(--coral);
}

.metric-icon.approval {
  border-color: rgba(205, 250, 0, 0.42);
  background: rgba(205, 250, 0, 0.18);
  color: var(--citric-ink);
}

.metric strong {
  display: block;
  margin-top: 0;
  font-size: 32px;
  line-height: 1;
}

.metric-action {
  display: inline-flex;
  margin-top: 14px;
  color: var(--kaizen-klein);
  font-size: 12px;
  font-weight: 800;
}

#portfolio-risk,
#portfolio-approvals,
#portfolio-capacity,
#portfolio-projects,
#portfolio-workload {
  scroll-margin-top: 96px;
}

.linked-projects {
  margin-bottom: 20px;
  scroll-margin-top: 92px;
}

.linked-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 18px;
}

.linked-project-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  padding: 14px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}

.linked-project-card:hover,
.linked-project-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(24, 21, 18, 0.08);
  outline: none;
}

.linked-project-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.linked-project-main strong,
.linked-project-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-center {
  margin-bottom: 20px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.priority-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(155, 240, 225, 0.1)),
    #fffdf8;
  color: var(--ink);
  padding: 14px;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.priority-card:hover,
.priority-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(24, 21, 18, 0.1);
  outline: none;
}

.priority-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.priority-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(65, 0, 245, 0.12);
  border-radius: 8px;
  background: rgba(65, 0, 245, 0.07);
  color: var(--kaizen-klein);
}

.priority-head strong,
.priority-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-head strong {
  font-size: 15px;
  font-weight: 860;
}

.priority-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.priority-count {
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.priority-mini-list {
  display: grid;
  gap: 6px;
  min-height: 68px;
}

.priority-mini-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-radius: 8px;
  background: rgba(101, 97, 90, 0.07);
  padding: 7px 8px;
  color: var(--ink);
}

.priority-mini-item span,
.priority-mini-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-mini-item span {
  font-size: 12px;
  font-weight: 820;
}

.priority-mini-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.priority-card.tone-danger {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 70, 50, 0.08)),
    #fffdf8;
}

.priority-card.tone-danger .priority-icon {
  border-color: rgba(255, 70, 50, 0.22);
  background: rgba(255, 70, 50, 0.09);
  color: var(--kaizen-tangerine);
}

.priority-card.tone-approval .priority-icon {
  border-color: rgba(236, 54, 164, 0.2);
  background: rgba(236, 54, 164, 0.08);
  color: var(--kaizen-fushia);
}

.priority-card.tone-blocked .priority-icon {
  border-color: rgba(25, 20, 20, 0.16);
  background: rgba(25, 20, 20, 0.06);
  color: var(--ink);
}

.upcoming-delivery-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.upcoming-delivery-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(155, 240, 225, 0.09)),
    #fffdf8;
  padding: 12px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.upcoming-delivery-card:hover,
.upcoming-delivery-card:focus-within {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(24, 21, 18, 0.08);
}

.upcoming-delivery-card.overdue {
  border-color: rgba(255, 70, 50, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 70, 50, 0.07)),
    #fffdf8;
}

.upcoming-date {
  display: grid;
  width: 52px;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(65, 0, 245, 0.14);
  border-radius: 8px;
  background: rgba(65, 0, 245, 0.06);
  color: var(--kaizen-klein);
  line-height: 1;
}

.upcoming-date strong {
  font-size: 20px;
  line-height: 1;
}

.upcoming-date span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 860;
  letter-spacing: 0;
}

.upcoming-delivery-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.upcoming-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
}

.upcoming-task-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.22;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upcoming-task-title:hover,
.upcoming-task-title:focus-visible {
  color: var(--kaizen-klein);
  outline: none;
}

.upcoming-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.upcoming-meta > span {
  display: inline-flex;
  flex: 0 1 220px;
  max-width: min(100%, 220px);
  min-width: 0;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(101, 97, 90, 0.08);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 720;
}

.upcoming-meta > span i {
  flex: 0 0 auto;
  font-size: 10px;
}

.upcoming-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-open-link {
  display: inline-flex;
  justify-self: end;
  text-decoration: none;
}

.readable-clamp-2,
.mini-item strong,
.mini-item .muted,
.notification-item strong,
.section-heading p {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

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

.panel {
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--ds-shadow-card);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.panel-pad {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.section-heading.no-pad {
  padding: 0;
}

.command-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.command-card {
  display: grid;
  align-content: flex-start;
  gap: 16px;
}

.command-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.command-card-heading h2 {
  margin: 0;
}

.command-card-heading p {
  margin: 4px 0 0;
}

.insight-list,
.client-risk-grid {
  display: grid;
  gap: 9px;
}

.risk-row {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.risk-row:hover,
.risk-row:focus-visible,
.client-risk-card:hover,
.client-risk-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
  outline: none;
}

.risk-row strong,
.risk-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.risk-row .badge {
  width: fit-content;
  margin-top: 4px;
}

.client-risk-panel {
  margin-top: 20px;
}

.client-risk-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.client-risk-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.client-risk-card span {
  min-width: 0;
}

.client-risk-card strong,
.client-risk-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-risk-card small {
  color: var(--muted);
}

.inbox-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.inbox-filters h2,
.profile-preferences h2 {
  margin-top: 0;
}

.nav-stack {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.nav-stack a {
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 760;
}

.nav-stack a:hover,
.nav-stack a:focus-visible,
.nav-stack a.active {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.inbox-panel {
  min-width: 0;
  overflow: hidden;
}

.inbox-list,
.request-list,
.workload-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.inbox-item,
.request-card,
.template-card,
.workload-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.inbox-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.inbox-item > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  color: var(--ink);
}

.inbox-item small,
.inbox-item strong,
.request-card p,
.request-card h3,
.template-card p,
.template-card h2 {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.inbox-item small {
  margin-top: 4px;
  color: var(--muted);
}

.inbox-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.inbox-item.unread .inbox-dot {
  background: linear-gradient(135deg, var(--kaizen-fushia), var(--kaizen-tangerine));
  box-shadow: 0 0 0 4px rgba(240, 55, 165, 0.12);
}

.inbox-item:hover,
.inbox-item:focus-within,
.request-card:hover,
.request-card:focus-within,
.template-card:hover,
.template-card:focus-within,
.workload-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(24, 21, 18, 0.09);
}

.client-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.client-portal-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.client-portal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.client-portal-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.client-portal-title h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.client-portal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.client-portal-stats span {
  display: grid;
  gap: 5px;
  min-height: 78px;
  align-content: center;
  background: rgba(255, 253, 248, 0.95);
  padding: 12px;
}

.client-portal-stats strong {
  font-size: 24px;
  line-height: 1;
}

.client-portal-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.client-portal-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.portal-panel-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-block-heading h3 {
  margin: 0;
  font-size: 16px;
}

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

.portal-approval-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.portal-approval-row:hover,
.portal-approval-row:focus-visible,
.portal-deliverable-card:hover,
.portal-deliverable-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
  outline: none;
}

.portal-approval-row strong,
.portal-approval-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-approval-row small {
  margin-top: 3px;
  color: var(--muted);
}

.portal-thumbnail,
.portal-deliverable-preview {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--teal);
}

.portal-thumbnail {
  width: 44px;
  height: 44px;
}

.portal-thumbnail img,
.portal-deliverable-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.portal-deliverable-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.portal-deliverable-preview {
  aspect-ratio: 4 / 3;
}

.portal-deliverable-card strong,
.portal-deliverable-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-deliverable-card small {
  color: var(--muted);
  font-size: 12px;
}

.portal-request-toggle summary {
  list-style: none;
  width: fit-content;
}

.portal-request-toggle summary::-webkit-details-marker {
  display: none;
}

.portal-request-form {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 12px;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin: -6px 0 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 0 2px;
}

.focus-card {
  display: grid;
  min-height: 92px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  padding: 13px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.focus-card:hover,
.focus-card:focus-visible,
.focus-card.active {
  transform: translateY(-1px);
  border-color: var(--kaizen-klein);
  box-shadow: 0 14px 30px rgba(65, 0, 245, 0.1);
  outline: none;
}

.focus-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.focus-card strong {
  font-size: 26px;
  line-height: 1;
}

.project-control-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  margin: -4px 0 20px;
}

.project-summary-panel {
  display: grid;
  gap: 18px;
  margin-top: -4px;
}

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

.project-summary-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.project-summary-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.project-summary-block:first-child {
  grid-row: span 2;
}

.project-summary-block > span,
.project-summary-members strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-summary-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.summary-drive-link {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 720;
}

.compact-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.project-summary-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-summary-form .full-span,
.project-summary-actions {
  grid-column: 1 / -1;
}

.compact-textarea {
  min-height: 132px;
}

.project-summary-members {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.project-summary-actions {
  display: flex;
  justify-content: flex-end;
}

.project-filter-form {
  display: grid;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.toggle-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.toggle-row.compact {
  min-height: 34px;
}

.project-filter-toggle {
  align-self: end;
}

.project-filter-actions,
.project-saved-views,
.saved-view-list,
.save-view-form,
.custom-field-list,
.custom-field-form,
.request-actions,
.client-health-row {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-filter-actions {
  grid-column: 1 / -1;
}

.project-list-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.project-list-toolbar-left,
.project-list-toolbar-right {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-list-toolbar-right {
  justify-content: flex-end;
}

.project-list-add-task {
  min-height: 38px;
}

.project-list-tool-menu {
  position: relative;
}

.project-list-tool-menu > summary {
  list-style: none;
}

.project-list-tool-menu > summary::-webkit-details-marker {
  display: none;
}

.project-list-tool {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.project-list-tool:hover,
.project-list-tool:focus-visible,
.project-list-tool-menu[open] > .project-list-tool {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.project-list-tool.icon-only {
  width: 36px;
  justify-content: center;
  padding-inline: 0;
}

.project-list-toolbar-popover {
  position: absolute;
  z-index: 230;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 52px rgba(24, 21, 18, 0.18);
  padding: 9px;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.project-list-toolbar-popover.wide {
  width: min(380px, 82vw);
}

.project-list-toolbar-popover.column-visibility-popover {
  min-width: 240px;
}

.project-list-toolbar-popover > button {
  display: flex;
  min-height: 36px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-weight: 760;
  cursor: pointer;
}

.project-list-toolbar-popover > button:hover,
.project-list-toolbar-popover > button:focus-visible {
  background: var(--surface-2);
  outline: none;
}

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

.column-visibility-option {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

.column-visibility-option:hover {
  background: var(--surface-2);
}

.column-visibility-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.column-visibility-option input:disabled {
  cursor: not-allowed;
}

.column-visibility-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-table th[data-column-key] {
  position: sticky;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.project-list-table.column-drag-active th[data-column-key] {
  cursor: grabbing;
}

.project-list-table th.dragging {
  opacity: 0.55;
}

.project-list-table th.drag-over {
  background: rgba(155, 240, 225, 0.16);
  box-shadow: inset 3px 0 0 var(--kaizen-aquamarine);
}

.column-drag-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.column-drag-title i {
  color: var(--muted);
  font-size: 11px;
}

.column-resize-handle {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: -4px;
  bottom: 9px;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background var(--motion-fast) ease;
}

.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after,
body.is-column-resizing .column-resize-handle::after {
  background: var(--kaizen-aquamarine);
}

body.is-column-resizing,
body.is-column-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.project-saved-views {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.project-saved-views > div:first-child {
  min-width: min(100%, 180px);
}

.saved-view-list {
  flex: 1 1 260px;
}

.save-view-form {
  flex: 1 1 360px;
  justify-content: flex-end;
}

.save-view-form .input {
  flex: 1 1 190px;
  max-width: 100%;
}

.save-view-form .toggle-row {
  flex: 0 0 auto;
}

.save-view-button {
  flex: 0 1 auto;
  border-color: rgba(65, 0, 245, 0.16);
  background: rgba(65, 0, 245, 0.06);
  color: var(--kaizen-klein);
  box-shadow: none;
}

.save-view-button:hover,
.save-view-button:focus-visible {
  border-color: rgba(65, 0, 245, 0.28);
  background: rgba(155, 240, 225, 0.18);
}

.saved-view-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 4px 8px 4px 10px;
  font-size: 12px;
  font-weight: 760;
}

.saved-view-chip a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-view-chip form {
  display: inline-flex;
}

.saved-view-chip button {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 840;
}

.saved-view-chip button:hover {
  background: rgba(255, 70, 50, 0.1);
  color: var(--coral);
}

.project-custom-fields summary {
  list-style: none;
  cursor: pointer;
}

.project-custom-fields summary::-webkit-details-marker {
  display: none;
}

.custom-field-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 12px;
}

.custom-field-form {
  align-items: end;
}

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

.quick-edit-details {
  margin-top: 8px;
}

.quick-edit-details summary {
  display: inline-flex;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  list-style: none;
}

.quick-edit-details summary::-webkit-details-marker {
  display: none;
}

.quick-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 10px;
}

.quick-edit-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.quick-edit-form label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.task-inline-edit-form {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
}

.task-inline-control {
  width: 100%;
  max-width: 240px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  outline: none;
}

.task-inline-select {
  min-width: 132px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
}

.task-inline-date,
.task-inline-text,
.task-inline-number {
  min-width: 132px;
  padding: 6px 12px;
}

.task-inline-text {
  border-radius: 8px;
}

.task-inline-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(153, 239, 225, 0.22);
}

.task-inline-control.status-todo {
  background: #ece8df;
  color: #5e574d;
}

.task-inline-control.status-in_progress {
  background: rgba(65, 0, 245, 0.1);
  color: #2a147f;
}

.task-inline-control.status-en_ajustes,
.task-inline-control.status-en-ajustes {
  background: rgba(255, 184, 77, 0.22);
  color: #8a4f00;
}

.task-inline-control.status-en-proceso,
.task-inline-control.status-en_proceso,
.task-inline-control.status-en-trafico,
.task-inline-control.status-en_trafico,
.task-inline-control.status-trafico,
.task-inline-control.status-traffic {
  background: rgba(155, 240, 225, 0.24);
  color: #057064;
}

.task-inline-control.status-review,
.task-inline-control.status-approval {
  background: rgba(205, 250, 0, 0.2);
  color: var(--citric-ink);
}

.task-inline-control.status-cliente_interno,
.task-inline-control.status-cliente-interno {
  background: rgba(62, 144, 255, 0.16);
  color: #175aa6;
}

.task-inline-control.status-done,
.task-inline-control.approved {
  background: rgba(155, 240, 225, 0.26);
  color: #057064;
}

.task-inline-control.status-cancelada,
.task-inline-control.status-cancelado,
.task-inline-control.status-canceled,
.task-inline-control.status-cancelled {
  background: rgba(255, 70, 50, 0.14);
  color: #8d2219;
}

.task-inline-select.priority-select {
  --priority-select-color: var(--priority-normal);
  background: color-mix(in srgb, var(--priority-select-color) 18%, white);
  color: color-mix(in srgb, var(--priority-select-color) 76%, black);
}

.task-inline-select.priority-low {
  --priority-select-color: var(--priority-low);
}

.task-inline-select.priority-normal {
  --priority-select-color: var(--priority-normal);
}

.task-inline-select.priority-high {
  --priority-select-color: var(--priority-high);
}

.task-inline-select.priority-urgent {
  --priority-select-color: var(--priority-urgent);
}

.task-inline-menu {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.task-inline-summary {
  display: inline-flex;
  max-width: 260px;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  padding: 6px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-inline-summary.reward {
  background: rgba(205, 250, 0, 0.16);
  color: var(--green);
}

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

.task-inline-menu[open] .task-inline-summary {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(153, 239, 225, 0.18);
}

.task-inline-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 280px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px;
}

.task-inline-popover.compact {
  min-width: 240px;
}

.task-inline-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
  padding: 7px 8px;
}

.task-inline-option[hidden],
.assignee-assignment-option[hidden],
.member-toggle[hidden] {
  display: none !important;
}

.task-inline-option:hover {
  background: var(--surface-2);
}

.task-inline-points-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
}

.task-inline-points-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-inline-points-row .task-inline-number {
  min-width: 78px;
}

.task-inline-submit {
  justify-content: center;
  margin-top: 2px;
}

.board-dropzone {
  display: grid;
  align-content: flex-start;
  min-height: 360px;
  transition: background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.board-dropzone.drag-over {
  background: rgba(205, 250, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(65, 0, 245, 0.18);
}

.task-card[draggable="true"] {
  cursor: grab;
}

.task-card.dragging {
  transform: rotate(0.4deg) scale(0.98);
  cursor: grabbing;
  opacity: 0.62;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e1d7;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.project-progress-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.project-progress-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.workload-row {
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  gap: 10px;
}

.request-card h3,
.template-card h2 {
  margin: 0;
}

.request-actions form {
  display: flex;
  min-width: min(100%, 260px);
  flex-wrap: wrap;
  gap: 7px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.template-card {
  display: grid;
  gap: 14px;
}

.template-mark {
  width: 42px;
  height: 8px;
  border-radius: 999px;
}

.profile-preferences {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.table tbody tr:hover {
  background: rgba(241, 239, 231, 0.42);
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.task-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.task-star-form {
  display: inline-grid;
  flex: 0 0 auto;
  margin: 0;
}

.task-star-control {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-star-control:hover,
.task-star-control:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(162, 121, 0, 0.32);
  background: rgba(255, 184, 77, 0.12);
  color: #a27900;
  outline: none;
}

.task-star-control.starred {
  border-color: rgba(162, 121, 0, 0.28);
  background: rgba(255, 184, 77, 0.18);
  color: #a27900;
}

.task-title-star {
  width: 28px;
  height: 28px;
}

.task-row-delete-form {
  display: inline-grid;
  flex: 0 0 auto;
  margin-left: auto;
}

.task-row-delete-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-row-delete-button:hover,
.task-row-delete-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 52, 52, 0.38);
  background: rgba(222, 52, 52, 0.08);
  color: #b42323;
  outline: none;
}

.task-row-select {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  cursor: pointer;
}

.task-row-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.task-row-select span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: #fff;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.task-row-select input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(0, 128, 118, 0.16);
}

.task-row-select input:checked + span::before {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.task-row-select:hover span,
.task-row-select input:focus-visible + span {
  border-color: var(--kaizen-aquamarine);
  box-shadow: var(--ds-focus-ring);
}

.task-row-drag-handle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-row-drag-handle:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.task-row-drag-handle:active {
  cursor: grabbing;
}

body.is-list-task-dragging,
body.is-list-task-dragging * {
  cursor: grabbing !important;
}

.project-list-table tr.is-selected td {
  background: rgba(155, 240, 225, 0.13);
}

.project-list-table tr.task-row-dragging td {
  background: rgba(65, 0, 245, 0.08);
  opacity: 0.72;
}

.project-list-table tr.task-row-drag-over td {
  box-shadow: inset 0 3px 0 var(--kaizen-aquamarine);
}

.project-list-table tbody.task-row-dropzone {
  outline: 1px dashed rgba(0, 128, 118, 0.36);
  outline-offset: -2px;
}

.task-title a {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-list-table .task-title a {
  font-size: 13px;
  line-height: 1.25;
}

.check {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: transparent;
  cursor: default;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

button.check {
  appearance: none;
  cursor: pointer;
}

.inline-form.task-check-form,
.task-check-form {
  display: inline-grid;
  flex: 0 0 auto;
  margin: 0;
}

.check:hover,
.check:focus-visible {
  transform: scale(1.08);
  border-color: var(--line-strong);
  color: transparent;
  outline: none;
}

.check.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  animation: kaizenSoftPulse 420ms ease 1;
}

.check.done:hover,
.check.done:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.section-row {
  background: rgba(241, 239, 231, 0.72);
}

.section-row td {
  color: var(--ink);
  font-weight: 800;
}

.project-section-list {
  display: grid;
  gap: 12px;
}

.project-section-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(24, 21, 18, 0.06);
  transition: transform var(--motion-medium) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.project-section-accordion[open] {
  overflow: visible;
}

.project-section-accordion.section-dragging {
  transform: rotate(0.2deg) scale(0.99);
  opacity: 0.58;
}

.project-section-accordion.section-drag-over {
  border-color: var(--kaizen-klein);
  box-shadow: 0 0 0 3px rgba(65, 0, 245, 0.11), 0 16px 36px rgba(24, 21, 18, 0.08);
}

.project-section-summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  transition: background var(--motion-fast) ease;
}

.project-section-summary:hover,
.project-section-summary:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.project-section-summary::-webkit-details-marker {
  display: none;
}

.project-section-accordion[open] .project-section-summary {
  position: sticky;
  top: 0;
  z-index: 18;
  background: #fffdf8;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 22px rgba(24, 21, 18, 0.08);
}

.project-section-summary strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-delete-form {
  display: inline-grid;
  flex: 0 0 auto;
}

.section-edit-name-button,
.section-delete-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.section-edit-name-button:hover,
.section-edit-name-button:focus-visible,
.project-section-accordion.is-editing-section .section-edit-name-button {
  transform: translateY(-1px);
  border-color: rgba(65, 0, 245, 0.34);
  background: #ffffff;
  color: var(--kaizen-klein);
  outline: none;
}

.section-delete-button:hover,
.section-delete-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 52, 52, 0.38);
  background: rgba(222, 52, 52, 0.08);
  color: #b42323;
  outline: none;
}

.section-add-task-link {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.section-add-task-link:hover,
.section-add-task-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(65, 0, 245, 0.32);
  background: #ffffff;
  color: var(--kaizen-klein);
  outline: none;
}

.section-name-inline-form {
  position: sticky;
  top: 58px;
  z-index: 17;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  padding: 10px 14px;
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
}

.section-name-inline-form[hidden] {
  display: none;
}

.section-toggle-icon,
.section-drag-handle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0;
  font-weight: 820;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.section-toggle-icon::before {
  content: "+";
  font-size: 13px;
}

.project-section-accordion[open] .section-toggle-icon {
  transform: rotate(180deg);
  color: var(--teal);
}

.project-section-accordion[open] .section-toggle-icon::before {
  content: "-";
}

.section-drag-handle {
  cursor: grab;
  font-size: 13px;
  letter-spacing: -1px;
}

.task-assignee-picker {
  align-content: start;
}

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

.assignee-assignment-option {
  display: grid;
  grid-template-columns: auto 28px minmax(0, 1fr) minmax(96px, 120px);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}

.assignee-assignment-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.assignee-assignment-option.selected {
  border-color: rgba(0, 128, 118, 0.34);
  background: rgba(155, 240, 225, 0.16);
}

.assignee-assignment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.assignee-points-control {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.assignee-points-input {
  min-width: 0;
}

.points-suggestion {
  display: grid;
  gap: 8px;
  border-color: rgba(0, 128, 118, 0.22);
  background: rgba(155, 240, 225, 0.08);
}

.points-suggestion.compact {
  border: 1px solid rgba(0, 128, 118, 0.18);
  border-radius: 8px;
  padding: 10px;
}

.points-suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.points-suggestion-head span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 640;
}

.points-suggestion-head i {
  color: var(--teal);
}

.points-suggestion-head strong {
  color: var(--citric-ink);
  font-weight: 760;
  white-space: nowrap;
}

.points-suggestion p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.points-suggestion-apply {
  justify-content: center;
  min-height: 34px;
  white-space: normal;
}

.readonly-info-grid {
  margin-top: 12px;
}

.reward-points-readonly {
  color: var(--citric-ink);
  font-size: 18px;
}

.section-drag-handle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.section-drag-handle:active {
  cursor: grabbing;
}

.project-section-body {
  display: grid;
  gap: 0;
  padding: 0 12px 12px;
  transform-origin: top;
  animation: kaizenFadeUp var(--motion-medium) var(--ease-out) both;
}

.project-section-table {
  max-height: calc(58px + (90px * 10));
  overflow: auto;
  scrollbar-gutter: stable;
}

.project-section-table:has(.task-inline-menu[open]) {
  overflow: visible;
}

@supports (content-visibility: auto) {
  .project-section-accordion {
    content-visibility: auto;
    contain-intrinsic-size: 96px 760px;
  }

  .project-section-accordion[open] {
    contain-intrinsic-size: auto 760px;
  }

  .project-list-table tbody tr[data-list-row] {
    content-visibility: auto;
    contain-intrinsic-size: 90px;
  }
}

.project-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fffdf8;
  box-shadow: inset 0 -1px 0 var(--line);
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 760;
}

.badge.status-todo {
  background: #ece8df;
  color: #5e574d;
}

.badge.status-in_progress {
  background: rgba(65, 0, 245, 0.1);
  color: #2a147f;
}

.badge.status-en_ajustes,
.badge.status-en-ajustes {
  background: rgba(255, 184, 77, 0.22);
  color: #8a4f00;
}

.badge.status-en-proceso,
.badge.status-en_proceso,
.badge.status-en-trafico,
.badge.status-en_trafico,
.badge.status-trafico,
.badge.status-traffic {
  background: rgba(155, 240, 225, 0.24);
  color: #057064;
}

.badge.status-review,
.badge.status-approval {
  background: rgba(205, 250, 0, 0.2);
  color: var(--citric-ink);
}

.badge.status-cliente_interno,
.badge.status-cliente-interno {
  background: rgba(62, 144, 255, 0.16);
  color: #175aa6;
}

.badge.status-done,
.badge.approved {
  background: rgba(155, 240, 225, 0.26);
  color: #057064;
}

.badge.status-cancelada,
.badge.status-cancelado,
.badge.status-canceled,
.badge.status-cancelled {
  background: rgba(255, 70, 50, 0.14);
  color: #8d2219;
}

.badge.priority {
  background: color-mix(in srgb, var(--priority-color) 16%, white);
  color: color-mix(in srgb, var(--priority-color) 70%, black);
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 20px;
}

.tabs a {
  min-height: 42px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 11px 12px 9px;
  font-weight: 760;
  white-space: nowrap;
}

.tabs a[aria-selected="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.board-column {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
}

.board-column h3 {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.task-card {
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(24, 21, 18, 0.06);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.task-card-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.task-card-title-row a {
  min-width: 0;
}

.task-card-title-row strong {
  margin-bottom: 0;
}

.task-card-star {
  width: 28px;
  height: 28px;
}

.task-card:hover,
.task-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 30px rgba(24, 21, 18, 0.1);
}

.task-card strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-meta,
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.asana-calendar-shell {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(24, 21, 18, 0.08);
}

.asana-calendar-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
  padding: 8px 14px;
}

.asana-toolbar-left {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.asana-toolbar-button,
.asana-icon-button,
.asana-toolbar-pill,
.asana-primary-add-button,
.asana-mini-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 720;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.asana-toolbar-button:hover,
.asana-icon-button:hover,
.asana-primary-add-button:hover,
.asana-primary-add-button:focus-visible,
.asana-mini-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 9px 18px rgba(24, 21, 18, 0.08);
  outline: none;
}

.asana-toolbar-button.active {
  border-color: rgba(65, 0, 245, 0.28);
  background: rgba(155, 240, 225, 0.2);
  color: var(--kaizen-klein);
  box-shadow: inset 0 0 0 1px rgba(65, 0, 245, 0.05);
}

.asana-icon-button {
  width: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.asana-toolbar-pill {
  background: var(--surface-2);
  color: var(--muted);
}

.asana-month-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.asana-toolbar-separator {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.asana-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 2px;
}

.asana-view-switch .asana-toolbar-button {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  padding: 5px 9px;
}

.asana-view-switch .asana-toolbar-button.active {
  border-color: var(--line);
  background: #fffdf8;
  box-shadow: 0 6px 14px rgba(24, 21, 18, 0.06);
}

.asana-calendar-options {
  position: relative;
  flex: 0 0 auto;
}

.asana-calendar-options > summary {
  cursor: pointer;
  list-style: none;
}

.asana-calendar-options > summary::-webkit-details-marker {
  display: none;
}

.asana-calendar-menu {
  position: absolute;
  z-index: 9;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(230px, calc(100vw - 32px));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 8px;
  box-shadow: 0 22px 50px rgba(24, 21, 18, 0.16);
  transform-origin: top right;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.asana-calendar-menu button,
.asana-calendar-menu a {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.asana-calendar-menu button:hover,
.asana-calendar-menu button:focus-visible,
.asana-calendar-menu a:hover,
.asana-calendar-menu a:focus-visible {
  transform: translateX(2px);
  border-color: var(--line);
  background: var(--surface-2);
  outline: none;
}

.asana-calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  padding: 10px 14px;
}

.asana-legend-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.asana-legend-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 760;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.asana-legend-chip span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--assignee-color, var(--kaizen-klein));
}

.asana-legend-chip strong {
  color: var(--ink);
  font-size: 11px;
}

.asana-legend-chip:hover,
.asana-legend-chip:focus-visible,
.asana-legend-chip.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--assignee-color, var(--kaizen-klein)) 36%, var(--line));
  background: color-mix(in srgb, var(--assignee-color, var(--kaizen-aquamarine)) 14%, white);
  color: var(--ink);
  outline: none;
}

.asana-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 610px;
}

.asana-week-grid {
  display: grid;
  grid-template-columns: repeat(var(--calendar-days, 5), minmax(148px, 1fr));
  overflow-x: auto;
}

.asana-month-grid {
  display: grid;
  grid-template-columns: repeat(var(--calendar-days, 5), minmax(142px, 1fr));
  overflow-x: auto;
  background: var(--line);
  gap: 1px;
}

.asana-month-weekday {
  display: grid;
  min-height: 38px;
  place-items: center;
  background: rgba(255, 253, 248, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
}

.asana-month-day {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.86);
  transition: background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.asana-month-day.outside {
  background: rgba(241, 239, 231, 0.58);
}

.asana-month-day.today {
  background: rgba(155, 240, 225, 0.18);
  box-shadow: inset 0 0 0 1px rgba(65, 0, 245, 0.15);
}

.asana-month-day-header {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
}

.asana-month-day-header strong {
  font-size: 18px;
}

.asana-month-day.outside .asana-month-day-header strong,
.asana-month-day.outside .asana-month-day-header span {
  color: #aaa49a;
}

.asana-month-day .asana-day-tasks {
  min-height: 78px;
  padding: 6px;
}

.asana-month-day .asana-calendar-card {
  min-height: 32px;
  padding: 4px 6px;
  font-size: 11px;
}

.asana-month-day .avatar-xs {
  width: 19px;
  height: 19px;
  font-size: 8px;
}

.asana-month-day .asana-card-check {
  width: 15px;
  height: 15px;
}

.asana-month-day .asana-card-number {
  min-width: 24px;
  padding: 1px 5px;
}

.asana-month-day .month-extra-task {
  display: none;
}

.asana-month-day .month-extra-task.is-visible,
.asana-month-day.expanded .month-extra-task {
  display: grid;
}

.asana-more-tasks {
  width: calc(100% - 12px);
  min-height: 26px;
  margin: 0 6px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(65, 0, 245, 0.06);
  color: var(--kaizen-klein);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.asana-more-tasks:hover,
.asana-more-tasks:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(65, 0, 245, 0.16);
  background: rgba(155, 240, 225, 0.18);
  outline: none;
}

.asana-month-day .asana-add-task-link {
  min-height: 28px;
  margin: 0 6px 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.asana-day-column {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.asana-day-column:last-child {
  border-right: 0;
}

.asana-day-column.today {
  background: linear-gradient(180deg, rgba(155, 240, 225, 0.18), rgba(255, 253, 248, 0.76));
}

.asana-day-header {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  padding: 14px 12px 12px;
}

.asana-day-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.asana-day-header strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.asana-day-tasks {
  display: grid;
  align-content: flex-start;
  gap: 7px;
  flex: 1;
  padding: 10px 8px;
  transition: background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.asana-day-tasks.drag-over {
  background: rgba(205, 250, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(65, 0, 245, 0.2);
}

.asana-calendar-card {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--assignee-color, var(--teal));
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.05);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.asana-calendar-card[draggable="true"] {
  cursor: grab;
}

.asana-calendar-card.dragging {
  transform: rotate(0.4deg) scale(0.98);
  cursor: grabbing;
  opacity: 0.62;
}

.asana-calendar-card:hover,
.asana-calendar-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
  outline: none;
}

.asana-calendar-card.tone-in_progress {
  border-color: rgba(65, 0, 245, 0.28);
  border-left-color: var(--blue);
  background: rgba(65, 0, 245, 0.07);
  color: #2a147f;
}

.asana-calendar-card.tone-en_ajustes,
.asana-calendar-card.tone-en-ajustes {
  border-color: rgba(255, 184, 77, 0.34);
  border-left-color: #ffb84d;
  background: rgba(255, 184, 77, 0.12);
  color: #8a4f00;
}

.asana-calendar-card.tone-review,
.asana-calendar-card.tone-approval {
  border-color: rgba(240, 55, 165, 0.26);
  border-left-color: var(--kaizen-fushia);
  background: rgba(240, 55, 165, 0.08);
  color: var(--fushia-ink);
}

.asana-calendar-card.tone-cliente_interno,
.asana-calendar-card.tone-cliente-interno {
  border-color: rgba(62, 144, 255, 0.3);
  border-left-color: #3e90ff;
  background: rgba(62, 144, 255, 0.1);
  color: #175aa6;
}

.asana-calendar-card.tone-done {
  border-color: rgba(155, 240, 225, 0.58);
  border-left-color: var(--green);
  background: rgba(155, 240, 225, 0.16);
  color: #057064;
}

.asana-calendar-card.tone-cancelada,
.asana-calendar-card.tone-cancelado,
.asana-calendar-card.tone-canceled,
.asana-calendar-card.tone-cancelled {
  border-color: rgba(255, 70, 50, 0.32);
  border-left-color: #ff4632;
  background: rgba(255, 70, 50, 0.1);
  color: #8d2219;
}

.asana-calendar-card[data-assignee-color] {
  border-left-color: var(--assignee-color, var(--teal));
}

.asana-calendar-card[data-assignee-color] .avatar {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--avatar-accent, var(--assignee-color, var(--teal))) 32%, white);
}

.avatar-xs {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.asana-card-check {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: transparent;
  font-size: 10px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

button.asana-card-check {
  appearance: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.asana-card-check-form {
  display: inline-grid;
  margin: 0;
}

.asana-card-check:hover,
.asana-card-check:focus-visible {
  transform: scale(1.08);
  border-color: var(--line-strong);
  color: transparent;
  outline: none;
}

.asana-card-check.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  animation: kaizenSoftPulse 420ms ease 1;
}

.asana-card-check.done:hover,
.asana-card-check.done:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.asana-card-star {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
}

.drawer-star-button {
  width: var(--ds-control-height);
  height: var(--ds-control-height);
  border-color: var(--line);
  border-radius: var(--ds-radius-md);
  background: var(--surface);
  box-shadow: var(--ds-shadow-button);
}

.asana-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asana-card-title:hover,
.asana-card-title:focus-visible {
  color: var(--kaizen-klein);
  outline: none;
}

.asana-card-number {
  display: inline-flex;
  min-width: 26px;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--assignee-color, var(--teal)) 28%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--assignee-color, var(--teal)) 10%, white);
  color: color-mix(in srgb, var(--assignee-color, var(--teal)) 82%, black);
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
}

.asana-subtasks {
  color: var(--muted);
  font-size: 11px;
}

.approval-studio {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(241, 239, 231, 0.62);
  padding: 16px;
}

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

.approval-studio-head h2,
.approval-studio-head p {
  margin: 0;
}

.approval-studio-head p {
  margin-top: 6px;
}

.approval-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.approval-asset-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 21, 18, 0.05);
}

.approval-asset-preview {
  display: grid;
  min-height: 124px;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 28px;
}

.approval-asset-preview img,
.approval-asset-preview video {
  width: 100%;
  height: 100%;
  min-height: 124px;
  object-fit: cover;
}

.approval-asset-preview.pdf {
  color: var(--coral);
}

.approval-asset-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.approval-asset-body strong,
.approval-asset-body p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.approval-asset-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.approval-asset-meta,
.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.approval-decision-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
}

.approval-decision-form .textarea {
  min-height: 78px;
}

.approval-decision-list {
  display: grid;
  gap: 9px;
}

.approval-decision-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
}

.approval-decision-item.approved {
  border-color: rgba(155, 240, 225, 0.5);
  background: rgba(155, 240, 225, 0.14);
}

.approval-decision-item.changes {
  border-color: rgba(255, 70, 50, 0.26);
  background: rgba(255, 70, 50, 0.08);
}

.approval-decision-item p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.asana-add-task-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  margin: auto 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 780;
}

.asana-add-task-link:hover,
.asana-add-task-link:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.asana-calendar-side {
  display: grid;
  align-content: flex-start;
  gap: 14px;
  border-left: 1px solid var(--line);
  background: rgba(241, 239, 231, 0.66);
  padding: 14px;
}

.asana-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(24, 21, 18, 0.05);
}

.asana-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
}

.asana-side-title span {
  color: var(--muted);
}

.asana-unscheduled-list {
  display: grid;
  gap: 7px;
}

.asana-unscheduled-list a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
}

.asana-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  color: var(--ink);
  text-align: center;
}

.asana-mini-calendar span,
.asana-mini-calendar a {
  display: grid;
  min-height: 27px;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
}

.asana-mini-calendar .mini-head {
  color: var(--muted);
  font-weight: 820;
}

.asana-mini-calendar a.outside {
  color: #aaa49a;
}

.asana-mini-calendar a.in-week {
  background: rgba(155, 240, 225, 0.22);
  color: var(--kaizen-klein);
}

.asana-mini-calendar a.today {
  background: var(--teal);
  color: #fff;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.timeline-track {
  position: relative;
  height: 34px;
  border-radius: 999px;
  background: #e7e1d7;
  overflow: hidden;
}

.timeline-bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.clients-toolbar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.clients-sort-form {
  display: flex;
  min-width: min(100%, 280px);
  align-items: end;
}

.clients-sort-form .field {
  width: 100%;
}

.clients-view-switch {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.78);
  padding: 3px;
}

.clients-view-switch a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 760;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.clients-view-switch a:hover,
.clients-view-switch a:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
  outline: none;
}

.clients-view-switch a.active {
  background: #fff;
  color: var(--kaizen-klein);
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.08);
}

.client-card {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-rows: 54px 40px 34px minmax(52px, auto);
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 16px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.client-card:hover,
.client-card:focus-within {
  z-index: 20;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px rgba(24, 21, 18, 0.09);
}

.client-card:has(.client-edit-toggle[open]) {
  z-index: 360;
}

.client-card-head {
  display: flex;
  min-height: 54px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.clients-grid {
  overflow: visible;
}

.client-card h3 {
  display: -webkit-box;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  overflow: hidden;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.client-card > .muted {
  display: -webkit-box;
  min-height: 34px;
  max-height: 34px;
  margin: 0;
  overflow: hidden;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.client-card .client-health-row {
  align-content: flex-start;
  align-self: end;
  min-height: 52px;
  margin-top: 0;
  gap: 7px;
}

.clients-grid-section {
  min-width: 0;
  overflow: visible;
}

.clients-list-section,
.clients-list {
  min-width: 0;
  overflow: visible;
}

.clients-list {
  display: grid;
  gap: 12px;
}

.client-list-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 16px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.client-list-row:hover,
.client-list-row:focus-within {
  z-index: 20;
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(24, 21, 18, 0.08);
}

.client-list-row:has(.client-edit-toggle[open]) {
  z-index: 360;
}

.client-list-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.client-list-identity h3 {
  margin: 0 0 5px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.client-list-identity .muted {
  line-height: 1.35;
}

.client-list-row .client-health-row {
  row-gap: 8px;
}

.client-list-projects,
.client-list-actions {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.client-list-actions {
  justify-items: end;
}

.client-list-projects > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.client-list-project-links {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.client-card .mini-list {
  min-width: 0;
}

.client-project-link {
  min-width: 0;
  transition: transform var(--motion-fast) var(--ease-out), color var(--motion-fast) ease;
}

.client-project-link:hover,
.client-project-link:focus-visible {
  transform: translateX(2px);
  color: var(--teal);
  outline: none;
}

.client-project-link strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-edit-toggle {
  position: relative;
  display: inline-grid;
  justify-self: end;
  margin-top: 12px;
  z-index: 1;
}

.client-card-head .client-edit-toggle,
.client-list-actions .client-edit-toggle {
  margin-top: 0;
}

.client-edit-toggle[open] {
  z-index: 380;
}

.client-edit-summary {
  display: inline-grid;
  padding: 0;
  list-style: none;
}

.client-edit-summary::-webkit-details-marker {
  display: none;
}

.client-edit-panel {
  position: absolute;
  z-index: 390;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 56px));
  max-height: min(620px, calc(100vh - 140px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
  text-align: left;
  white-space: normal;
  box-shadow: 0 24px 54px rgba(24, 21, 18, 0.18);
  transform-origin: top right;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.client-edit-form {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.client-delete-form {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 70, 50, 0.2);
  border-radius: 7px;
}

.client-avatar-form {
  margin: 0;
}

.client-avatar-upload {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  cursor: pointer;
}

.client-avatar {
  width: 54px;
  height: 54px;
  border: 3px solid #fffdf8;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--client-accent, var(--teal)) 36%, transparent), 0 10px 24px rgba(24, 21, 18, 0.12);
}

.client-avatar-action {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf8;
  font-size: 10px;
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.18);
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}

.client-avatar-upload:hover .client-avatar-action,
.client-avatar-upload:focus-within .client-avatar-action {
  transform: scale(1.08);
  background: var(--kaizen-klein);
}

.client-delete-form > strong {
  color: var(--tangerine-ink);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.client-delete-form .btn {
  justify-self: flex-start;
}

.client-create-toggle {
  display: grid;
  gap: 14px;
}

.client-create-modal {
  position: relative;
  z-index: 1;
}

.client-create-modal[open] {
  z-index: var(--ds-z-popover);
}

.client-create-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.client-create-summary::-webkit-details-marker {
  display: none;
}

.client-create-toggle:not([open]) > form,
.client-create-toggle:not([open]) .client-create-panel {
  display: none;
}

.client-create-panel {
  position: absolute;
  z-index: 440;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 56px));
  max-height: min(620px, calc(100vh - 188px));
  overflow: auto;
  background: #fffdf8;
  text-align: left;
  white-space: normal;
  box-shadow: 0 24px 54px rgba(24, 21, 18, 0.18);
  transform-origin: top right;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.client-create-heading {
  margin-bottom: 16px;
}

.client-create-heading h2 {
  margin: 0;
}

.client-create-indicator {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.14);
  transition: transform 160ms ease;
}

.client-create-toggle[open] .client-create-indicator {
  transform: rotate(45deg);
}

.person-cell,
.profile-preview,
.integration-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-preview {
  margin-top: 16px;
}

.avatar-upload-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.avatar-upload-form.compact {
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  margin-top: 8px;
}

.user-actions-cell {
  position: relative;
  width: 1%;
}

.team-actions-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-edit-menu {
  position: relative;
  z-index: 1;
}

.team-edit-menu[open] {
  z-index: var(--ds-z-modal);
}

.team-edit-menu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(24, 21, 18, 0.24);
  cursor: default;
}

.team-edit-menu > summary {
  cursor: pointer;
  list-style: none;
}

.team-edit-menu > summary::-webkit-details-marker {
  display: none;
}

.team-edit-panel {
  position: fixed;
  z-index: 1;
  top: var(--team-edit-panel-top, 96px);
  right: auto;
  left: var(--team-edit-panel-left, 24px);
  width: min(560px, calc(100vw - 48px));
  max-height: var(--team-edit-panel-max-height, min(760px, calc(100vh - 48px)));
  overflow: auto;
  border: 1px solid var(--line);
  background: #fffdf8;
  text-align: left;
  white-space: normal;
  pointer-events: auto;
  box-shadow: 0 24px 54px rgba(24, 21, 18, 0.18);
  transform: none;
  transform-origin: top left;
  animation: none;
}

.team-client-options {
  display: grid;
  gap: 8px;
}

.team-client-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-delete-form {
  display: flex;
  margin: 0;
}

.team-delete-form .btn {
  box-shadow: none;
  white-space: nowrap;
}

.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.team-toolbar {
  align-items: center;
}

.team-toolbar .clients-view-switch {
  gap: 6px;
  padding: 4px;
}

.team-toolbar .clients-view-switch a {
  min-height: 44px;
  gap: 10px;
  padding: 5px 12px 5px 6px;
}

.team-toolbar .clients-view-switch a i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(101, 97, 90, 0.1);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.team-toolbar .clients-view-switch a:hover i,
.team-toolbar .clients-view-switch a:focus-visible i {
  transform: scale(1.04);
  background: rgba(65, 0, 245, 0.1);
  color: var(--kaizen-klein);
}

.team-toolbar .clients-view-switch a.active i {
  background: var(--kaizen-klein);
  color: #fffdf8;
}

.team-toolbar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-toolbar-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 880;
}

.team-toolbar-copy span {
  font-size: 12px;
}

.team-stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
}

.team-stat-card > div strong,
.team-stat-card > div span {
  display: block;
}

.team-stat-card .metric-icon {
  display: inline-grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
}

.team-stat-card .metric-icon i {
  display: inline-grid;
  width: 1em;
  height: 1em;
  place-items: center;
  line-height: 1;
}

.team-stat-card > div strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.team-stat-card > div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-directory {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-bottom: 22px;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 18px;
}

.team-card-grid.team-view-list {
  grid-template-columns: 1fr;
}

.team-card {
  position: relative;
  z-index: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(155, 240, 225, 0.08)),
    #fffdf8;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(24, 21, 18, 0.06);
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.team-card:hover,
.team-card:focus-within {
  z-index: 20;
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 42px rgba(24, 21, 18, 0.1);
}

.team-card:has(.team-edit-menu[open]),
.team-card:has(.team-color-chip-menu[open]) {
  z-index: 360;
}

.team-card:has(.team-edit-menu[open]) {
  transform: none;
}

.team-card-list {
  grid-template-columns: minmax(300px, 1fr) minmax(170px, auto);
  align-items: center;
}

.team-card-list .team-card-actions {
  justify-content: flex-end;
}

.team-card-list .team-edit-panel {
  right: 0;
}

.team-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
}

.team-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.team-avatar-form {
  margin: 0;
}

.team-avatar-upload {
  position: relative;
  display: block;
  width: 66px;
  height: 66px;
  cursor: pointer;
}

.team-avatar {
  width: 66px;
  height: 66px;
  border: 3px solid #fffdf8;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--avatar-accent, var(--teal)) 36%, transparent), 0 12px 28px rgba(24, 21, 18, 0.12);
  font-size: 19px;
}

.team-avatar-action {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf8;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.18);
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}

.team-avatar-upload:hover .team-avatar-action,
.team-avatar-upload:focus-within .team-avatar-action {
  transform: scale(1.08);
  background: var(--kaizen-klein);
}

.team-card-copy,
.team-card-title-row {
  min-width: 0;
}

.team-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-card-title-row h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-email {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.team-email:hover {
  color: var(--teal);
}

.team-email i,
.team-email {
  overflow: hidden;
}

.team-email {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-badge-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  overflow: visible;
}

.team-badge-row .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-color-chip-menu {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.team-color-chip-menu[open] {
  z-index: 40;
}

.team-color-chip-menu summary {
  cursor: pointer;
  list-style: none;
}

.team-color-chip-menu summary::-webkit-details-marker {
  display: none;
}

.team-color-chip {
  border-color: rgba(65, 0, 245, 0.16);
  background: rgba(255, 253, 248, 0.92);
}

.team-color-chip:hover,
.team-color-chip:focus-visible {
  border-color: rgba(65, 0, 245, 0.34);
  color: var(--kaizen-klein);
}

.team-calendar-swatch {
  display: inline-block;
  width: 34px;
  height: 18px;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 16px rgba(24, 21, 18, 0.1);
  vertical-align: middle;
}

.team-color-chip .team-calendar-swatch {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(24, 21, 18, 0.14), 0 6px 12px rgba(24, 21, 18, 0.12);
}

.team-color-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 52px minmax(120px, 1fr) auto;
  align-items: end;
  gap: 8px;
  width: min(310px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 48px rgba(24, 21, 18, 0.16);
  cursor: default;
}

.team-color-popover .field {
  gap: 5px;
}

.team-color-popover .color-picker-input {
  width: 52px;
  padding: 5px;
}

.team-color-inline {
  display: grid;
  grid-template-columns: 48px minmax(92px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.team-color-compact {
  grid-template-columns: 30px minmax(82px, 98px) 30px;
  align-items: center;
  justify-self: start;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.team-color-inline label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 860;
  text-transform: uppercase;
}

.team-color-compact label {
  display: block;
  min-width: 0;
}

.team-color-compact .color-picker-input {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 50%;
  padding: 4px;
  background: transparent;
  cursor: pointer;
}

.team-color-compact .color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.team-color-compact .color-picker-input::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.team-color-hex .input {
  width: 92px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
  padding: 0 4px;
  text-align: center;
  text-transform: uppercase;
}

.team-color-hex .input:focus {
  box-shadow: none;
}

.team-color-compact .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}

.team-color-compact .icon-btn:hover,
.team-color-compact .icon-btn:focus-visible {
  color: var(--kaizen-klein);
}

.team-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.team-card-actions .team-edit-menu {
  flex: 1 1 auto;
}

.team-card-actions .team-edit-menu > summary {
  justify-content: center;
  width: 100%;
}

.team-card-actions .team-delete-form {
  flex: 0 0 auto;
}

.file-input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integration-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 820;
}

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

.reward-points-badge {
  background: rgba(205, 250, 0, 0.22);
  color: var(--citric-ink);
}

.daily-digest-box {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.daily-digest-box h2 {
  margin: 0;
}

.rewards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(155, 240, 225, 0.28), rgba(205, 250, 0, 0.18) 28%, rgba(240, 55, 165, 0.12) 66%, rgba(255, 70, 50, 0.11)),
    #fffdf8;
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 18px 42px rgba(24, 21, 18, 0.14);
}

.rewards-hero .eyebrow {
  color: var(--kaizen-klein);
}

.rewards-hero-copy h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
}

.rewards-hero-copy p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rewards-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.rewards-hero-stats div {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: end;
  border: 1px solid rgba(222, 216, 204, 0.78);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.82);
  padding: 14px;
}

.rewards-hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.rewards-hero-stats strong {
  font-size: 27px;
  line-height: 1;
}

.rewards-catalog,
.rewards-admin,
.rewards-history {
  min-width: 0;
  margin-bottom: 20px;
}

.rewards-admin > *,
.rewards-history > * {
  min-width: 0;
}

.rewards-history .panel {
  overflow: hidden;
}

.rewards-history .table {
  table-layout: fixed;
}

.rewards-history .table th,
.rewards-history .table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 14px;
  padding: 18px;
}

.reward-card {
  display: grid;
  min-height: 276px;
  grid-template-rows: auto auto minmax(74px, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 16px;
  text-align: left;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease;
}

.reward-card:hover,
.reward-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 15px 32px rgba(24, 21, 18, 0.1);
}

.reward-card.locked {
  background: rgba(255, 253, 248, 0.64);
}

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

.reward-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(65, 0, 245, 0.16);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(155, 240, 225, 0.34), rgba(65, 0, 245, 0.08));
  color: var(--kaizen-klein);
  font-size: 18px;
}

.reward-card:nth-child(3n + 2) .reward-icon {
  border-color: rgba(240, 55, 165, 0.18);
  background: rgba(240, 55, 165, 0.1);
  color: var(--fushia-ink);
}

.reward-card:nth-child(3n) .reward-icon {
  border-color: rgba(255, 70, 50, 0.18);
  background: rgba(255, 70, 50, 0.1);
  color: var(--tangerine-ink);
}

.reward-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.reward-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.reward-card-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.reward-card-footer strong {
  font-size: 17px;
}

.rewards-admin {
  scroll-margin-top: 92px;
}

.rewards-admin .section-heading {
  padding: 0;
}

.reward-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.reward-summary-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
}

.reward-summary-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.reward-summary-person strong,
.reward-summary-person span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.reward-summary-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px;
}

.reward-summary-metrics small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-summary-metrics strong {
  font-size: 18px;
  line-height: 1;
}

.rewards-history .inline-form {
  display: inline-flex;
  margin-top: 8px;
}

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

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.mini-item:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(24, 21, 18, 0.07);
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.empty.compact {
  padding: 14px;
  font-size: 13px;
}

.task-drawer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 50vw);
  background: rgba(23, 23, 23, 0.36);
  animation: kaizenBackdropIn var(--motion-medium) ease both;
}

.task-drawer.is-closing {
  animation: kaizenBackdropOut 150ms ease both;
  pointer-events: none;
}

.task-drawer.is-closing .drawer-panel {
  animation: kaizenSlideOutRight 150ms ease both;
}

.drawer-scrim {
  min-width: 0;
}

.drawer-panel {
  height: 100vh;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 0 28px 34px;
  animation: kaizenSlideInRight var(--motion-slow) var(--ease-pop) both;
}

.drawer-top {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  justify-content: flex-end;
  margin: 0 -28px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
  padding: 18px 28px;
  backdrop-filter: blur(16px);
}

.drawer-title-row {
  display: block;
  min-width: 0;
  margin: 0 0 26px;
}

.drawer-title-copy {
  min-width: 0;
}

.drawer-title-copy h2 {
  margin: 0;
  font-size: clamp(26px, 2.25vw, 34px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.task-title-editor {
  position: relative;
}

.task-title-editor > summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.task-title-editor > summary::-webkit-details-marker {
  display: none;
}

.task-title-edit-icon {
  display: none;
}

.task-title-editor > summary:hover .task-title-edit-icon,
.task-title-editor > summary:focus-visible .task-title-edit-icon {
  transform: translateY(-1px);
  border-color: var(--teal);
  color: var(--teal);
}

.task-title-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.task-title-check {
  width: 48px;
  height: 48px;
  border-color: var(--teal);
  color: var(--teal);
  font-size: 26px;
}

.task-detail-form {
  display: grid;
  gap: 16px;
}

.task-create-title-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 14px 30px rgba(24, 21, 18, 0.06);
}

.task-create-title-field {
  display: grid;
  gap: 9px;
}

.task-create-title-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.task-create-title-field .input {
  min-height: 52px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 850;
  line-height: 1.12;
}

.task-description-hero {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 14px 30px rgba(24, 21, 18, 0.06);
}

.task-description-hero.readonly p,
.task-description-hero.readonly .rich-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.task-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.task-section-head.compact {
  align-items: start;
}

.task-section-head .eyebrow {
  margin: 0 0 2px;
}

.task-section-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.task-section-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
}

.description-editor-tools {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 6px;
}

.description-editor-tools.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}

.comment-editor-tools {
  gap: 8px;
  justify-content: flex-start;
  margin-top: -2px;
  padding: 8px;
}

.comment-editor-tools .description-tool-button {
  width: 38px;
  height: 38px;
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-size: 17px;
}

.comment-attachment-tool input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.description-insert-menu {
  position: relative;
}

.description-insert-menu > summary {
  list-style: none;
}

.description-insert-menu > summary::-webkit-details-marker {
  display: none;
}

.description-tool-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.description-tool-button:hover,
.description-tool-button:focus-visible,
.description-insert-menu[open] > .description-tool-button {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.description-tool-menu {
  position: absolute;
  z-index: 260;
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  display: grid;
  width: min(320px, 84vw);
  max-height: min(520px, 72vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 52px rgba(24, 21, 18, 0.18);
  padding: 8px;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.description-tool-menu p {
  margin: 4px 8px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.description-tool-menu button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: left;
  font-weight: 760;
  cursor: pointer;
}

.description-tool-menu button:hover,
.description-tool-menu button:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.task-description-input {
  min-height: 220px;
  border-color: var(--line);
  background: #fffdf8;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}

.rich-source-textarea {
  display: none !important;
}

.rich-composer {
  position: relative;
  min-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 14px;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.rich-composer.comment-composer {
  min-height: 118px;
}

.rich-composer:focus {
  border-color: var(--kaizen-aquamarine);
  box-shadow: var(--ds-focus-ring);
}

.rich-composer.is-invalid {
  border-color: #ff6b5f;
  box-shadow: 0 0 0 4px rgba(255, 107, 95, 0.15);
}

.rich-composer.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 14px auto auto 14px;
  color: var(--muted);
  pointer-events: none;
}

.rich-composer p,
.rich-composer ul,
.rich-composer ol,
.rich-composer blockquote,
.rich-composer .rich-table-wrap,
.rich-composer .rich-code-block,
.rich-composer .rich-image-embed {
  margin: 0 0 10px;
}

.rich-composer p:last-child,
.rich-composer ul:last-child,
.rich-composer ol:last-child,
.rich-composer blockquote:last-child,
.rich-composer .rich-table-wrap:last-child,
.rich-composer .rich-code-block:last-child,
.rich-composer .rich-image-embed:last-child {
  margin-bottom: 0;
}

.rich-composer h1,
.rich-composer h2,
.rich-composer h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  line-height: 1.12;
}

.rich-composer h1 {
  font-size: 24px;
}

.rich-composer h2 {
  font-size: 20px;
}

.rich-composer h3 {
  font-size: 17px;
}

.rich-composer ul,
.rich-composer ol {
  padding-left: 22px;
}

.rich-composer li + li {
  margin-top: 5px;
}

.rich-composer blockquote {
  border-left: 4px solid var(--kaizen-aquamarine);
  border-radius: 0 7px 7px 0;
  background: rgba(155, 240, 225, 0.1);
  color: var(--ink);
  padding: 9px 12px;
}

.rich-composer hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.rich-composer .rich-link-chip,
.rich-composer .mention-chip {
  margin: 2px 3px;
}

.rich-text {
  min-width: 0;
  color: var(--ink);
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote,
.rich-text .rich-table-wrap,
.rich-text .rich-code-block {
  margin: 0 0 10px;
}

.rich-text p:last-child,
.rich-text ul:last-child,
.rich-text ol:last-child,
.rich-text blockquote:last-child,
.rich-text .rich-table-wrap:last-child,
.rich-text .rich-code-block:last-child {
  margin-bottom: 0;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.12;
}

.rich-text h1 {
  font-size: 24px;
}

.rich-text h2 {
  font-size: 20px;
}

.rich-text h3 {
  font-size: 17px;
}

.rich-text ul,
.rich-text ol {
  padding-left: 22px;
}

.rich-text li + li {
  margin-top: 5px;
}

.rich-text blockquote {
  border-left: 4px solid var(--kaizen-aquamarine);
  border-radius: 0 7px 7px 0;
  background: rgba(155, 240, 225, 0.1);
  color: var(--ink);
  padding: 9px 12px;
}

.rich-text hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.rich-code-block {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e1e1e;
  color: #f3f3f3;
  padding: 12px;
  font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rich-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rich-table th,
.rich-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.rich-table th {
  background: rgba(155, 240, 225, 0.12);
  color: var(--ink);
  font-weight: 850;
}

.rich-table tr:last-child td {
  border-bottom: 0;
}

.mention-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  border: 1px solid rgba(65, 0, 245, 0.18);
  border-radius: 999px;
  background: rgba(65, 0, 245, 0.08);
  color: var(--kaizen-klein);
  padding: 3px 8px;
  font-size: 0.92em;
  font-weight: 850;
  line-height: 1.2;
}

.mention-chip i {
  font-size: 0.82em;
}

.rich-text .rich-link-chip {
  margin: 2px 3px;
}

.rich-image-embed {
  display: grid;
  max-width: min(100%, 520px);
  gap: 6px;
  margin: 10px 0;
}

.rich-image-embed a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.rich-image-embed img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.rich-image-embed figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rich-upload-placeholder,
.rich-missing-image {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border: 1px dashed rgba(0, 128, 118, 0.36);
  border-radius: 7px;
  background: rgba(155, 240, 225, 0.1);
  color: var(--teal);
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 780;
  margin: 10px 0;
}

.rich-upload-placeholder.failed {
  border-color: rgba(255, 70, 50, 0.42);
  background: rgba(255, 70, 50, 0.1);
  color: #c5392f;
}

.rich-link-chip {
  display: inline-flex;
  max-width: min(100%, 360px);
  align-items: center;
  gap: 7px;
  vertical-align: middle;
  border: 1px solid rgba(0, 128, 118, 0.22);
  border-radius: 7px;
  background: rgba(0, 128, 118, 0.08);
  color: var(--teal);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.rich-link-chip:hover,
.rich-link-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(65, 0, 245, 0.32);
  background: rgba(65, 0, 245, 0.08);
  box-shadow: 0 10px 24px rgba(65, 0, 245, 0.12);
  color: var(--kaizen-klein);
  outline: none;
}

.rich-link-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-link-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: -3px;
  border: 1px dashed rgba(0, 128, 118, 0.2);
  border-radius: 8px;
  background: rgba(0, 128, 118, 0.05);
  padding: 8px;
}

.rich-link-strip > span:first-child,
.rich-link-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.comment-body {
  margin: 4px 0 6px;
}

.mention-popover {
  position: absolute;
  z-index: var(--ds-z-toast);
  display: grid;
  gap: 4px;
  max-height: min(280px, 52vh);
  overflow: auto;
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  box-shadow: var(--ds-shadow-popover);
  padding: 6px;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.mention-popover[hidden] {
  display: none;
}

.mention-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.mention-option:hover,
.mention-option:focus-visible,
.mention-option.active {
  background: var(--surface-2);
  outline: none;
}

.mention-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(0, 128, 118, 0.22);
  border-radius: 999px;
  background: rgba(0, 128, 118, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 860;
}

.mention-option strong,
.mention-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-option strong {
  font-size: 14px;
  line-height: 1.15;
}

.mention-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.task-download-btn {
  background: var(--kaizen-klein);
  color: #fff;
  border-color: color-mix(in srgb, var(--kaizen-klein) 72%, #fff 28%);
  box-shadow: 0 14px 30px rgba(65, 0, 245, 0.16);
}

.task-download-btn:hover,
.task-download-btn:focus-visible {
  background: #2b00a8;
  color: #fff;
  border-color: #2b00a8;
}

.task-attachments-section {
  margin-top: 24px;
}

.task-attachments-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}

.task-attachments-heading h2 {
  margin: 0;
}

.task-attachment-add-form {
  margin-left: 6px;
}

.task-attachment-plus-inline {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-attachment-plus-inline:hover,
.task-attachment-plus-inline:focus-within {
  transform: translateY(-1px);
  background: var(--surface-2);
  color: var(--ink);
}

.task-attachment-plus-inline input,
.task-attachment-add-tile input {
  display: none;
}

.task-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.task-attachment-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(24, 21, 18, 0.05);
}

.task-attachment-thumb {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
}

.task-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-attachment-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.task-attachment-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.task-attachment-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.task-attachment-copy a {
  color: var(--kaizen-klein);
  font-weight: 820;
  text-decoration: none;
}

.task-attachment-add-tile {
  min-height: 94px;
}

.task-attachment-add-tile label {
  display: grid;
  height: 100%;
  min-height: 94px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-attachment-add-tile label:hover,
.task-attachment-add-tile label:focus-within {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: rgba(0, 128, 118, 0.06);
  color: var(--teal);
}

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

.task-info-cell {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  padding: 12px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.task-info-cell:hover,
.task-info-cell:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 128, 118, 0.3);
  box-shadow: 0 12px 26px rgba(24, 21, 18, 0.07);
}

.task-info-cell > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.task-info-label-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-info-label-row > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.task-info-cell > span i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 18px;
  color: var(--teal);
}

.task-info-label-row > span i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 18px;
  color: var(--teal);
}

.task-field-shortcut {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.task-field-shortcut:hover,
.task-field-shortcut:focus-visible {
  color: var(--kaizen-klein);
  text-decoration: underline;
}

.task-field-create-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px dashed rgba(0, 128, 118, 0.28);
  border-radius: 8px;
  background: rgba(0, 128, 118, 0.05);
  padding: 12px;
}

.task-field-create-panel summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 860;
  list-style: none;
}

.task-field-create-panel summary::-webkit-details-marker {
  display: none;
}

.task-field-create-panel .custom-field-form {
  margin-top: 12px;
}

.task-info-title .task-title-input {
  font-size: 18px;
  font-weight: 820;
}

.task-dependencies-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.dependency-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dependency-token,
.dependency-empty,
.dependency-alert {
  display: grid;
  min-width: min(100%, 240px);
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.dependency-token:hover,
.dependency-token:focus-visible {
  transform: translateY(-1px);
  border-color: var(--teal);
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.08);
  outline: none;
}

.dependency-token i,
.dependency-empty i,
.dependency-alert i {
  color: var(--teal);
}

.dependency-token span,
.dependency-empty span,
.dependency-alert span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-token em {
  font-style: normal;
}

.dependency-empty {
  grid-template-columns: auto minmax(0, 1fr);
  color: var(--muted);
}

.dependency-alert {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: rgba(255, 70, 50, 0.24);
  background: rgba(255, 70, 50, 0.06);
  color: var(--tangerine-ink);
}

.dependency-alert i {
  color: var(--tangerine-ink);
}

.dependency-edit-panel {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.dependency-edit-panel > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.dependency-edit-panel > summary::-webkit-details-marker {
  display: none;
}

.dependency-edit-panel[open] > summary {
  margin-bottom: 10px;
}

.dependency-edit-panel .select {
  width: 100%;
  min-height: 126px;
}

button.task-title-check:hover,
button.task-title-check:focus-visible {
  background: rgba(0, 128, 118, 0.1);
  box-shadow: 0 0 0 6px rgba(0, 128, 118, 0.1);
}

.drawer-top-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  width: min(100%, 760px);
  gap: 8px;
}

.drawer-top-actions > form,
.drawer-top-actions > .task-actions-menu,
.drawer-top-actions > .drawer-header-action {
  min-width: 0;
}

.drawer-top-actions > form {
  display: block;
}

.drawer-top-actions .drawer-header-action,
.drawer-top-actions .task-actions-menu > summary.drawer-header-action {
  box-sizing: border-box;
  display: inline-grid;
  width: 100%;
  min-height: 64px;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.drawer-top-actions .drawer-header-action:hover,
.drawer-top-actions .drawer-header-action:focus-visible,
.drawer-top-actions .task-actions-menu > summary.drawer-header-action:hover,
.drawer-top-actions .task-actions-menu > summary.drawer-header-action:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.drawer-top-actions .task-check-form .drawer-header-action {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.drawer-top-actions .drawer-star-button {
  box-shadow: none;
}

.drawer-top-actions .task-download-btn {
  background: var(--kaizen-klein);
  border-color: color-mix(in srgb, var(--kaizen-klein) 72%, #fff 28%);
  color: #fff;
}

.drawer-top-actions .task-members-trigger {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: center;
  gap: 4px;
  padding: 6px;
}

.drawer-top-actions .task-members-trigger .badge {
  min-width: 24px;
  padding-inline: 6px;
}

.task-create-drawer .drawer-top-actions {
  grid-template-columns: 64px;
  width: 64px;
}

.task-actions-menu {
  position: relative;
}

.task-actions-menu > summary {
  cursor: pointer;
  list-style: none;
}

.task-actions-menu > summary::-webkit-details-marker {
  display: none;
}

.task-actions-popover {
  position: absolute;
  z-index: var(--ds-z-popover);
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(360px, 86vw);
  max-height: min(680px, 82vh);
  overflow: auto;
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--surface);
  box-shadow: var(--ds-shadow-popover);
  transform-origin: top right;
  animation: kaizenPopIn var(--motion-medium) var(--ease-pop) both;
}

.task-members-popover {
  width: min(420px, 90vw);
}

.task-members-trigger {
  gap: 7px;
}

.project-members-menu {
  position: relative;
  flex: 0 0 auto;
}

.project-members-trigger {
  min-height: 42px;
}

.project-members-popover {
  right: 0;
  left: auto;
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack .avatar {
  border: 2px solid #fffdf8;
  box-shadow: 0 0 0 1px var(--line);
}

.avatar-stack .avatar + .avatar {
  margin-left: -8px;
}

.avatar-stack.compact {
  min-width: 22px;
}

.task-members-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-members-heading strong {
  display: block;
  margin-bottom: 3px;
}

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

.member-chip-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.member-chip-row:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.07);
}

.member-chip-row strong,
.member-chip-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-select {
  min-height: 128px;
}

.compact-member-select {
  min-height: 92px;
}

.member-manage-form {
  gap: 10px;
}

.member-search-field {
  display: grid;
  gap: 6px;
}

.member-search-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.member-toggle-list {
  display: grid;
  max-height: min(320px, 52vh);
  overflow: auto;
  gap: 8px;
  padding-right: 2px;
}

.member-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.member-toggle:hover,
.member-toggle:focus-within {
  transform: translateX(2px);
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(24, 21, 18, 0.07);
}

.member-toggle.selected {
  border-color: rgba(0, 128, 118, 0.34);
  background: rgba(0, 128, 118, 0.07);
}

.member-toggle.locked {
  cursor: default;
  opacity: 0.74;
}

.member-toggle.locked:hover,
.member-toggle.locked:focus-within {
  transform: none;
}

.member-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.member-toggle span,
.member-toggle strong,
.member-toggle small {
  display: block;
  min-width: 0;
}

.member-toggle strong,
.member-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.primary-menu-action {
  justify-content: center;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.primary-menu-action:hover,
.primary-menu-action:focus-visible {
  background: var(--kaizen-klein);
  color: #fff;
}

.task-menu-section {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.task-menu-section:last-child {
  border-bottom: 0;
}

.task-menu-section > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.task-menu-item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 720;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.task-menu-item i {
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
}

.task-menu-item:hover,
.task-menu-item:focus-visible {
  transform: translateX(2px);
  border-color: var(--line);
  background: var(--surface-2);
  outline: none;
}

.task-menu-inline {
  display: grid;
  gap: 7px;
}

.compact-input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.danger-zone {
  background: rgba(255, 70, 50, 0.06);
}

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

.comment {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment.system-comment {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(0, 128, 118, 0.24);
  border-radius: 8px;
  background: rgba(0, 128, 118, 0.04);
  padding: 12px;
}

.comment > strong {
  display: block;
  margin-bottom: 4px;
}

.comment-header strong {
  display: block;
  margin-bottom: 2px;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.comment-actions form {
  margin: 0;
}

.comment-edit-panel {
  position: relative;
}

.comment-edit-panel > summary {
  list-style: none;
}

.comment-edit-panel > summary::-webkit-details-marker {
  display: none;
}

.comment-action-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.comment-action-button:hover,
.comment-action-button:focus-visible,
.comment-edit-panel[open] > .comment-action-button {
  transform: translateY(-1px);
  border-color: rgba(0, 128, 118, 0.28);
  background: rgba(155, 240, 225, 0.14);
  color: var(--teal);
  outline: none;
}

.comment-action-button.danger:hover,
.comment-action-button.danger:focus-visible {
  border-color: rgba(255, 70, 50, 0.36);
  background: rgba(255, 70, 50, 0.1);
  color: var(--tangerine-ink);
}

.comment-edit-form {
  position: absolute;
  z-index: 280;
  top: calc(100% + 8px);
  right: 0;
  width: min(640px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 54px rgba(24, 21, 18, 0.18);
  padding: 12px;
}

.comment-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.comment-inline-images {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.comment-inline-image {
  display: grid;
  gap: 7px;
  margin: 0;
}

.comment-inline-image a {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.comment-inline-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.comment-inline-image figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.comment-inline-image figcaption a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.comment-attachment-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  padding: 8px;
}

.comment-attachment-thumb {
  display: grid;
  width: 72px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--teal);
  text-decoration: none;
}

.comment-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-attachment-thumb i {
  font-size: 24px;
}

.comment-attachment-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.comment-attachment-copy strong,
.comment-attachment-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-attachment-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comment-attachment-copy a {
  width: fit-content;
  color: var(--teal);
  font-size: 12px;
  font-weight: 840;
  text-decoration: none;
}

.comment-attachment-copy a:hover,
.comment-attachment-copy a:focus-visible {
  color: var(--kaizen-klein);
  text-decoration: underline;
}

.comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-attachment-picker {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px dashed rgba(0, 128, 118, 0.28);
  border-radius: 8px;
  background: rgba(0, 128, 118, 0.05);
  color: var(--teal);
  cursor: pointer;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 820;
}

.comment-attachment-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.comment-attachment-selection {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 128, 118, 0.22);
  border-radius: 8px;
  background: rgba(0, 128, 118, 0.07);
  color: var(--ink);
  padding: 10px 12px;
}

.comment-attachment-selection[hidden] {
  display: none;
}

.comment-attachment-selection strong {
  font-size: 13px;
  font-weight: 760;
}

.comment-attachment-selection-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-attachment-selection-items span {
  max-width: min(220px, 100%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 128, 118, 0.12);
  color: var(--teal);
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
}

.comment-attachment-picker:hover,
.comment-attachment-picker:focus-within {
  border-color: rgba(65, 0, 245, 0.32);
  color: var(--kaizen-klein);
}

.task-clipboard-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--ds-z-toast);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  background: #1e1e1e;
  color: #f3f3f3;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(31, 22, 47, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.task-clipboard-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.task-history-section {
  margin-top: 18px;
}

.task-history-panel {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.task-history-panel > summary {
  display: flex;
  min-width: 0;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 850;
}

.task-history-panel > summary::-webkit-details-marker {
  display: none;
}

.task-history-summary-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.task-history-summary-label i {
  color: var(--teal);
}

.task-history-list {
  max-height: 300px;
  overflow: auto;
  padding: 12px 4px 0 0;
}

.task-history-empty {
  margin-top: 10px;
}

.task-history-note {
  margin: 10px 0 0;
  font-size: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
}

.history-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.history-item strong,
.history-item span {
  display: block;
  line-height: 1.35;
}

.history-item strong {
  margin-bottom: 4px;
}

.task-history-item {
  background: rgba(255, 253, 248, 0.62);
  padding: 10px;
}

.task-history-item strong {
  font-size: 13px;
  font-weight: 780;
}

.task-history-item span {
  font-size: 12px;
}

.inline-form {
  display: inline;
}

.inline-form.task-star-form {
  display: inline-grid;
}

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

.wide {
  grid-column: 1 / -1;
}

.footer-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

/* Dark mode contrast audit: keep Kaizen's accents, but ensure every surface reads clearly. */
:root[data-theme="dark"] ::selection {
  background: #9bf0e1;
  color: #1e1e1e;
}

:root[data-theme="dark"] .ds-button,
:root[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.task-download-btn):not(.primary-menu-action) {
  border-color: #f3f3f3;
  background: #f3f3f3;
  color: #1e1e1e;
}

:root[data-theme="dark"] .ds-button:hover,
:root[data-theme="dark"] .ds-button:focus-visible,
:root[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.task-download-btn):not(.primary-menu-action):hover,
:root[data-theme="dark"] .btn:not(.secondary):not(.ghost):not(.danger):not(.task-download-btn):not(.primary-menu-action):focus-visible {
  border-color: #fff;
  background: #fff;
  color: #1e1e1e;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .task-download-btn,
:root[data-theme="dark"] .primary-menu-action {
  color: #fff;
}

:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .btn.ghost,
:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .notification-trigger,
:root[data-theme="dark"] .sidebar-action-btn,
:root[data-theme="dark"] .section-toggle-icon,
:root[data-theme="dark"] .section-drag-handle,
:root[data-theme="dark"] .section-edit-name-button,
:root[data-theme="dark"] .section-delete-button,
:root[data-theme="dark"] .task-row-delete-button,
:root[data-theme="dark"] .task-star-control,
:root[data-theme="dark"] .check,
:root[data-theme="dark"] .asana-toolbar-button,
:root[data-theme="dark"] .asana-icon-button,
:root[data-theme="dark"] .asana-toolbar-pill,
:root[data-theme="dark"] .asana-primary-add-button,
:root[data-theme="dark"] .asana-mini-button,
:root[data-theme="dark"] .asana-add-task-link,
:root[data-theme="dark"] .description-tool-button,
:root[data-theme="dark"] .task-title-edit-icon,
:root[data-theme="dark"] .task-attachment-plus-inline {
  border-color: var(--line);
  background: #262626;
  color: #f3f3f3;
}

:root[data-theme="dark"] .btn.secondary:hover,
:root[data-theme="dark"] .btn.secondary:focus-visible,
:root[data-theme="dark"] .btn.ghost:hover,
:root[data-theme="dark"] .btn.ghost:focus-visible,
:root[data-theme="dark"] .icon-btn:hover,
:root[data-theme="dark"] .icon-btn:focus-visible,
:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle:focus-visible,
:root[data-theme="dark"] .notification-trigger:hover,
:root[data-theme="dark"] .notification-menu[open] .notification-trigger,
:root[data-theme="dark"] .sidebar-project-menu[open] > .sidebar-action-btn,
:root[data-theme="dark"] .sidebar-action-btn:hover,
:root[data-theme="dark"] .sidebar-action-btn:focus-visible,
:root[data-theme="dark"] .section-drag-handle:hover,
:root[data-theme="dark"] .task-star-control:hover,
:root[data-theme="dark"] .task-star-control:focus-visible,
:root[data-theme="dark"] .check:hover,
:root[data-theme="dark"] .check:focus-visible,
:root[data-theme="dark"] .asana-toolbar-button:hover,
:root[data-theme="dark"] .asana-icon-button:hover,
:root[data-theme="dark"] .asana-primary-add-button:hover,
:root[data-theme="dark"] .asana-primary-add-button:focus-visible,
:root[data-theme="dark"] .asana-mini-button:hover,
:root[data-theme="dark"] .asana-add-task-link:hover,
:root[data-theme="dark"] .asana-add-task-link:focus-visible,
:root[data-theme="dark"] .description-tool-button:hover,
:root[data-theme="dark"] .description-tool-button:focus-visible,
:root[data-theme="dark"] .description-insert-menu[open] > .description-tool-button,
:root[data-theme="dark"] .project-list-tool:hover,
:root[data-theme="dark"] .project-list-tool:focus-visible,
:root[data-theme="dark"] .project-list-tool-menu[open] > .project-list-tool {
  border-color: var(--line-strong);
  background: #303030;
  color: #f3f3f3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .task-star-control.starred {
  border-color: rgba(255, 184, 77, 0.36);
  background: rgba(255, 184, 77, 0.16);
  color: #ffc96d;
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .task-description-input,
:root[data-theme="dark"] .rich-composer {
  border-color: var(--line);
  background: #262626;
  color: #f3f3f3;
}

:root[data-theme="dark"] .input:focus,
:root[data-theme="dark"] .select:focus,
:root[data-theme="dark"] .textarea:focus,
:root[data-theme="dark"] .task-description-input:focus,
:root[data-theme="dark"] .rich-composer:focus {
  border-color: var(--kaizen-aquamarine);
  box-shadow: var(--ds-focus-ring);
}

:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder,
:root[data-theme="dark"] .task-description-input::placeholder,
:root[data-theme="dark"] .rich-composer.is-empty::before {
  color: #9f9f9f;
}

:root[data-theme="dark"] .ds-card,
:root[data-theme="dark"] .ds-surface,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .focus-card,
:root[data-theme="dark"] .project-progress-card,
:root[data-theme="dark"] .project-section-accordion,
:root[data-theme="dark"] .section-name-inline-form,
:root[data-theme="dark"] .quick-edit-form,
:root[data-theme="dark"] .custom-field-panel,
:root[data-theme="dark"] .inbox-item,
:root[data-theme="dark"] .template-card,
:root[data-theme="dark"] .task-card,
:root[data-theme="dark"] .board-column,
:root[data-theme="dark"] .approval-studio,
:root[data-theme="dark"] .approval-asset-card,
:root[data-theme="dark"] .approval-decision-form,
:root[data-theme="dark"] .approval-decision-item,
:root[data-theme="dark"] .asana-calendar-shell,
:root[data-theme="dark"] .asana-side-panel,
:root[data-theme="dark"] .client-card,
:root[data-theme="dark"] .client-list-row,
:root[data-theme="dark"] .client-portal-card,
:root[data-theme="dark"] .portal-approval-row,
:root[data-theme="dark"] .portal-deliverable-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .reward-card,
:root[data-theme="dark"] .reward-summary-card,
:root[data-theme="dark"] .daily-digest-box,
:root[data-theme="dark"] .mini-item,
:root[data-theme="dark"] .history-item,
:root[data-theme="dark"] .task-create-title-card,
:root[data-theme="dark"] .task-description-hero,
:root[data-theme="dark"] .task-info-cell,
:root[data-theme="dark"] .task-field-create-panel,
:root[data-theme="dark"] .task-dependencies-panel,
:root[data-theme="dark"] .comment-edit-form,
:root[data-theme="dark"] .comment-attachment-card,
:root[data-theme="dark"] .task-attachment-card,
:root[data-theme="dark"] .dependency-token,
:root[data-theme="dark"] .dependency-empty,
:root[data-theme="dark"] .member-chip-row,
:root[data-theme="dark"] .member-toggle,
:root[data-theme="dark"] .request-item,
:root[data-theme="dark"] .request-card,
:root[data-theme="dark"] .risk-row,
:root[data-theme="dark"] .workload-row,
:root[data-theme="dark"] .report-row,
:root[data-theme="dark"] .onboarding-card,
:root[data-theme="dark"] .permission-tile {
  border-color: var(--line);
  background: rgba(38, 38, 38, 0.94);
  color: #f3f3f3;
}

:root[data-theme="dark"] .rich-image-embed a,
:root[data-theme="dark"] .comment-attachment-thumb,
:root[data-theme="dark"] .comment-inline-image a,
:root[data-theme="dark"] .comment.system-comment,
:root[data-theme="dark"] .comment-attachment-picker,
:root[data-theme="dark"] .comment-action-button {
  border-color: var(--line);
  background: rgba(30, 30, 30, 0.72);
}

:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .client-card,
:root[data-theme="dark"] .client-portal-card,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .focus-card,
:root[data-theme="dark"] .project-progress-card,
:root[data-theme="dark"] .project-section-accordion,
:root[data-theme="dark"] .template-card,
:root[data-theme="dark"] .reward-card,
:root[data-theme="dark"] .rewards-hero {
  background:
    linear-gradient(135deg, rgba(155, 240, 225, 0.08), rgba(240, 55, 165, 0.06)),
    #262626;
}

:root[data-theme="dark"] .asana-calendar-toolbar,
:root[data-theme="dark"] .asana-calendar-legend,
:root[data-theme="dark"] .asana-day-header,
:root[data-theme="dark"] .asana-month-weekday,
:root[data-theme="dark"] .clients-view-switch,
:root[data-theme="dark"] .client-portal-stats,
:root[data-theme="dark"] .client-portal-stats span,
:root[data-theme="dark"] .portal-request-form,
:root[data-theme="dark"] .description-editor-tools,
:root[data-theme="dark"] .rich-link-strip,
:root[data-theme="dark"] .client-edit-form,
:root[data-theme="dark"] .team-color-compact,
:root[data-theme="dark"] .rewards-hero-stats div,
:root[data-theme="dark"] .reward-summary-metrics span {
  border-color: var(--line);
  background: rgba(48, 48, 48, 0.88);
  color: #f3f3f3;
}

:root[data-theme="dark"] .project-section-summary {
  color: #f3f3f3;
}

:root[data-theme="dark"] .project-section-summary:hover,
:root[data-theme="dark"] .project-section-summary:focus-visible,
:root[data-theme="dark"] .project-section-accordion[open] .project-section-summary {
  background: rgba(48, 48, 48, 0.92);
}

:root[data-theme="dark"] .project-list-table thead th,
:root[data-theme="dark"] .section-name-inline-form {
  background: #262626;
}

:root[data-theme="dark"] .task-row-select span {
  border-color: rgba(243, 243, 243, 0.28);
  background: rgba(30, 30, 30, 0.9);
}

:root[data-theme="dark"] .task-row-select input:checked + span {
  border-color: var(--kaizen-aquamarine);
  background: var(--teal);
}

:root[data-theme="dark"] .task-row-drag-handle:hover {
  border-color: rgba(155, 240, 225, 0.32);
  background: rgba(48, 48, 48, 0.92);
  color: #f3f3f3;
}

:root[data-theme="dark"] .points-suggestion {
  border-color: rgba(155, 240, 225, 0.26);
  background: rgba(155, 240, 225, 0.09);
}

:root[data-theme="dark"] .points-suggestion-head span,
:root[data-theme="dark"] .points-suggestion p {
  color: #cfcfcf;
}

:root[data-theme="dark"] .points-suggestion-head strong,
:root[data-theme="dark"] .reward-points-readonly {
  color: var(--kaizen-citric);
}

:root[data-theme="dark"] .project-list-table tr.is-selected td {
  background: rgba(155, 240, 225, 0.12);
}

:root[data-theme="dark"] .project-list-table tr.task-row-dragging td {
  background: rgba(155, 240, 225, 0.08);
}

:root[data-theme="dark"] .project-section-summary strong,
:root[data-theme="dark"] .section-row td,
:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .task-title a {
  color: #f3f3f3;
}

:root[data-theme="dark"] .section-edit-name-button {
  border-color: rgba(155, 240, 225, 0.18);
  background: rgba(30, 30, 30, 0.82);
  color: #c9c9c9;
}

:root[data-theme="dark"] .section-edit-name-button:hover,
:root[data-theme="dark"] .section-edit-name-button:focus-visible,
:root[data-theme="dark"] .project-section-accordion.is-editing-section .section-edit-name-button {
  border-color: rgba(155, 240, 225, 0.55);
  background: rgba(155, 240, 225, 0.12);
  color: var(--kaizen-aquamarine);
}

:root[data-theme="dark"] .section-delete-button:hover,
:root[data-theme="dark"] .section-delete-button:focus-visible,
:root[data-theme="dark"] .task-row-delete-button:hover,
:root[data-theme="dark"] .task-row-delete-button:focus-visible {
  border-color: rgba(255, 132, 132, 0.5);
  background: rgba(255, 132, 132, 0.12);
  color: #ffb4b4;
}

:root[data-theme="dark"] .assignee-assignment-option {
  border-color: var(--line);
  background: rgba(30, 30, 30, 0.72);
  color: #f3f3f3;
}

:root[data-theme="dark"] .assignee-assignment-option.selected {
  border-color: rgba(155, 240, 225, 0.42);
  background: rgba(155, 240, 225, 0.12);
}

:root[data-theme="dark"] .assignee-points-control {
  color: #c9c9c9;
}

:root[data-theme="dark"] .section-add-task-link {
  border-color: rgba(155, 240, 225, 0.22);
  background: rgba(30, 30, 30, 0.86);
  color: #f3f3f3;
}

:root[data-theme="dark"] .section-add-task-link:hover,
:root[data-theme="dark"] .section-add-task-link:focus-visible {
  border-color: rgba(155, 240, 225, 0.55);
  background: rgba(155, 240, 225, 0.12);
  color: var(--kaizen-aquamarine);
}

:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .quick-edit-form label span {
  color: #c9c9c9;
}

:root[data-theme="dark"] .table tbody tr:hover,
:root[data-theme="dark"] .section-row {
  background: rgba(155, 240, 225, 0.08);
}

:root[data-theme="dark"] .project-section-accordion.section-drag-over {
  border-color: var(--kaizen-aquamarine);
  box-shadow: 0 0 0 3px rgba(155, 240, 225, 0.14), 0 16px 36px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .project-section-accordion[open] .section-toggle-icon,
:root[data-theme="dark"] .quick-edit-details summary {
  color: #9bf0e1;
}

:root[data-theme="dark"] .check.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

:root[data-theme="dark"] .check:not(.done),
:root[data-theme="dark"] .check:not(.done):hover,
:root[data-theme="dark"] .check:not(.done):focus-visible,
:root[data-theme="dark"] .asana-card-check:not(.done),
:root[data-theme="dark"] .asana-card-check:not(.done):hover,
:root[data-theme="dark"] .asana-card-check:not(.done):focus-visible {
  color: transparent;
}

:root[data-theme="dark"] .drawer-top-actions .task-check-form .check:not(.done),
:root[data-theme="dark"] .drawer-top-actions .task-check-form .check:not(.done):hover,
:root[data-theme="dark"] .drawer-top-actions .task-check-form .check:not(.done):focus-visible {
  border-color: #9bf0e1;
  background: #262626;
  color: #9bf0e1;
}

:root[data-theme="dark"] .check.done,
:root[data-theme="dark"] .check.done:hover,
:root[data-theme="dark"] .check.done:focus-visible,
:root[data-theme="dark"] .asana-card-check.done,
:root[data-theme="dark"] .asana-card-check.done:hover,
:root[data-theme="dark"] .asana-card-check.done:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

:root[data-theme="dark"] .project-progress-card strong {
  color: #f3f3f3;
}

:root[data-theme="dark"] .progress-bar {
  background: #3a352f;
}

:root[data-theme="dark"] .asana-legend-chip {
  border-color: var(--line);
  background: #262626;
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-legend-chip strong {
  color: #d8d8d8;
}

:root[data-theme="dark"] .asana-legend-chip:hover,
:root[data-theme="dark"] .asana-legend-chip:focus-visible,
:root[data-theme="dark"] .asana-legend-chip.active {
  border-color: color-mix(in srgb, var(--assignee-color, var(--kaizen-aquamarine)) 42%, var(--line));
  background: color-mix(in srgb, var(--assignee-color, var(--kaizen-aquamarine)) 18%, #262626);
  color: #f3f3f3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .asana-legend-chip:hover strong,
:root[data-theme="dark"] .asana-legend-chip:focus-visible strong,
:root[data-theme="dark"] .asana-legend-chip.active strong {
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-day-column,
:root[data-theme="dark"] .asana-month-day,
:root[data-theme="dark"] .asana-calendar-side,
:root[data-theme="dark"] .reward-card.locked,
:root[data-theme="dark"] .task-attachment-add-tile label {
  background: rgba(30, 30, 30, 0.72);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-day-column.today,
:root[data-theme="dark"] .asana-month-day.today {
  background: linear-gradient(180deg, rgba(155, 240, 225, 0.12), rgba(30, 30, 30, 0.78));
}

:root[data-theme="dark"] .asana-month-day.outside {
  background: rgba(30, 30, 30, 0.46);
}

:root[data-theme="dark"] .asana-calendar-card,
:root[data-theme="dark"] .asana-unscheduled-list a {
  border-color: var(--line);
  background: #262626;
  color: #f3f3f3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .asana-calendar-card.tone-in_progress {
  border-color: rgba(155, 240, 225, 0.32);
  background: rgba(65, 0, 245, 0.22);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-calendar-card.tone-en_ajustes,
:root[data-theme="dark"] .asana-calendar-card.tone-en-ajustes {
  border-color: rgba(255, 184, 77, 0.34);
  background: rgba(255, 184, 77, 0.17);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-calendar-card.tone-review,
:root[data-theme="dark"] .asana-calendar-card.tone-approval {
  border-color: rgba(255, 138, 202, 0.34);
  background: rgba(240, 55, 165, 0.18);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-calendar-card.tone-cliente_interno,
:root[data-theme="dark"] .asana-calendar-card.tone-cliente-interno {
  border-color: rgba(62, 144, 255, 0.32);
  background: rgba(62, 144, 255, 0.17);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-calendar-card.tone-done {
  border-color: rgba(155, 240, 225, 0.44);
  background: rgba(155, 240, 225, 0.16);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-calendar-card.tone-cancelada,
:root[data-theme="dark"] .asana-calendar-card.tone-cancelado,
:root[data-theme="dark"] .asana-calendar-card.tone-canceled,
:root[data-theme="dark"] .asana-calendar-card.tone-cancelled {
  border-color: rgba(255, 70, 50, 0.34);
  background: rgba(255, 70, 50, 0.17);
  color: #f3f3f3;
}

:root[data-theme="dark"] .asana-card-number {
  border-color: color-mix(in srgb, var(--assignee-color, var(--teal)) 44%, #1e1e1e);
  background: color-mix(in srgb, var(--assignee-color, var(--teal)) 24%, #1e1e1e);
  color: #f3f3f3;
}

:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .ds-badge,
:root[data-theme="dark"] .reward-points-badge {
  background: #303030;
  color: #d8d8d8;
}

:root[data-theme="dark"] .badge.status-todo {
  background: #303030;
  color: #d8d8d8;
}

:root[data-theme="dark"] .badge.status-in_progress {
  background: rgba(155, 240, 225, 0.12);
  color: #9bf0e1;
}

:root[data-theme="dark"] .badge.status-en_ajustes,
:root[data-theme="dark"] .badge.status-en-ajustes {
  background: rgba(255, 184, 77, 0.17);
  color: #ffc96d;
}

:root[data-theme="dark"] .badge.status-en-proceso,
:root[data-theme="dark"] .badge.status-en_proceso,
:root[data-theme="dark"] .badge.status-en-trafico,
:root[data-theme="dark"] .badge.status-en_trafico,
:root[data-theme="dark"] .badge.status-trafico,
:root[data-theme="dark"] .badge.status-traffic {
  background: rgba(155, 240, 225, 0.14);
  color: #9bf0e1;
}

:root[data-theme="dark"] .badge.status-review,
:root[data-theme="dark"] .badge.status-approval,
:root[data-theme="dark"] .reward-points-badge {
  background: rgba(205, 250, 0, 0.13);
  color: #d9ff33;
}

:root[data-theme="dark"] .badge.status-cliente_interno,
:root[data-theme="dark"] .badge.status-cliente-interno {
  background: rgba(62, 144, 255, 0.18);
  color: #9cc9ff;
}

:root[data-theme="dark"] .badge.status-done,
:root[data-theme="dark"] .badge.approved {
  background: rgba(155, 240, 225, 0.14);
  color: #9bf0e1;
}

:root[data-theme="dark"] .badge.status-cancelada,
:root[data-theme="dark"] .badge.status-cancelado,
:root[data-theme="dark"] .badge.status-canceled,
:root[data-theme="dark"] .badge.status-cancelled {
  background: rgba(255, 70, 50, 0.16);
  color: #ffb1a8;
}

:root[data-theme="dark"] .badge.priority {
  background: color-mix(in srgb, var(--priority-color) 24%, #1e1e1e);
  color: #f3f3f3;
}

:root[data-theme="dark"] .task-inline-control,
:root[data-theme="dark"] .task-inline-summary {
  background: #303030;
  color: #f3f3f3;
}

:root[data-theme="dark"] .task-inline-control.status-todo {
  background: #303030;
  color: #d8d8d8;
}

:root[data-theme="dark"] .task-inline-control.status-in_progress {
  background: rgba(155, 240, 225, 0.12);
  color: #9bf0e1;
}

:root[data-theme="dark"] .task-inline-control.status-en_ajustes,
:root[data-theme="dark"] .task-inline-control.status-en-ajustes {
  background: rgba(255, 184, 77, 0.17);
  color: #ffc96d;
}

:root[data-theme="dark"] .task-inline-control.status-en-proceso,
:root[data-theme="dark"] .task-inline-control.status-en_proceso,
:root[data-theme="dark"] .task-inline-control.status-en-trafico,
:root[data-theme="dark"] .task-inline-control.status-en_trafico,
:root[data-theme="dark"] .task-inline-control.status-trafico,
:root[data-theme="dark"] .task-inline-control.status-traffic {
  background: rgba(155, 240, 225, 0.14);
  color: #9bf0e1;
}

:root[data-theme="dark"] .task-inline-control.status-review,
:root[data-theme="dark"] .task-inline-control.status-approval,
:root[data-theme="dark"] .task-inline-summary.reward {
  background: rgba(205, 250, 0, 0.13);
  color: #d9ff33;
}

:root[data-theme="dark"] .task-inline-control.status-cliente_interno,
:root[data-theme="dark"] .task-inline-control.status-cliente-interno {
  background: rgba(62, 144, 255, 0.18);
  color: #9cc9ff;
}

:root[data-theme="dark"] .task-inline-control.status-done,
:root[data-theme="dark"] .task-inline-control.approved {
  background: rgba(155, 240, 225, 0.14);
  color: #9bf0e1;
}

:root[data-theme="dark"] .task-inline-control.status-cancelada,
:root[data-theme="dark"] .task-inline-control.status-cancelado,
:root[data-theme="dark"] .task-inline-control.status-canceled,
:root[data-theme="dark"] .task-inline-control.status-cancelled {
  background: rgba(255, 70, 50, 0.16);
  color: #ffb1a8;
}

:root[data-theme="dark"] .task-inline-select.priority-select {
  background: color-mix(in srgb, var(--priority-select-color) 24%, #1e1e1e);
  color: #f3f3f3;
}

:root[data-theme="dark"] .notice {
  border-color: rgba(255, 177, 168, 0.34);
  background: rgba(255, 70, 50, 0.12);
  color: #ffb1a8;
}

:root[data-theme="dark"] .notice.success {
  border-color: rgba(155, 240, 225, 0.42);
  background: rgba(155, 240, 225, 0.12);
  color: #9bf0e1;
}

:root[data-theme="dark"] .notice.info {
  border-color: rgba(155, 240, 225, 0.3);
  background: rgba(65, 0, 245, 0.18);
  color: #f3f3f3;
}

:root[data-theme="dark"] .notice-close,
:root[data-theme="dark"] .clients-view-switch a.active,
:root[data-theme="dark"] .asana-view-switch .asana-toolbar-button.active,
:root[data-theme="dark"] .asana-toolbar-button.active {
  border-color: rgba(155, 240, 225, 0.34);
  background: rgba(155, 240, 225, 0.16);
  color: #9bf0e1;
}

:root[data-theme="dark"] .ds-popover,
:root[data-theme="dark"] .ds-modal,
:root[data-theme="dark"] .notification-popover,
:root[data-theme="dark"] .sidebar-popover,
:root[data-theme="dark"] .asana-calendar-menu,
:root[data-theme="dark"] .client-edit-panel,
:root[data-theme="dark"] .client-create-panel,
:root[data-theme="dark"] .team-edit-panel,
:root[data-theme="dark"] .team-color-popover,
:root[data-theme="dark"] .description-tool-menu,
:root[data-theme="dark"] .project-list-toolbar-popover,
:root[data-theme="dark"] .task-actions-popover,
:root[data-theme="dark"] .mention-popover,
:root[data-theme="dark"] .drawer-panel {
  border-color: var(--line);
  background: #262626;
  color: #f3f3f3;
  box-shadow: var(--ds-shadow-popover);
}

:root[data-theme="dark"] .drawer-top {
  background: rgba(38, 38, 38, 0.94);
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .helper-text,
:root[data-theme="dark"] .field span,
:root[data-theme="dark"] .field label,
:root[data-theme="dark"] .nav-label,
:root[data-theme="dark"] .sidebar-menu-section > strong,
:root[data-theme="dark"] .sidebar-popover > strong,
:root[data-theme="dark"] .task-menu-section > strong,
:root[data-theme="dark"] .asana-month-label,
:root[data-theme="dark"] .asana-legend-title,
:root[data-theme="dark"] .asana-subtasks,
:root[data-theme="dark"] .task-info-cell > span,
:root[data-theme="dark"] .task-attachment-copy span,
:root[data-theme="dark"] .member-search-meta,
:root[data-theme="dark"] .mention-option small,
:root[data-theme="dark"] .focus-card span,
:root[data-theme="dark"] .footer-note {
  color: #c9c9c9;
}

:root[data-theme="dark"] .focus-card:hover,
:root[data-theme="dark"] .focus-card:focus-visible,
:root[data-theme="dark"] .focus-card.active {
  border-color: var(--kaizen-aquamarine);
  background:
    linear-gradient(135deg, rgba(155, 240, 225, 0.12), rgba(65, 0, 245, 0.12)),
    #262626;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .rich-link-chip,
:root[data-theme="dark"] .team-email:hover,
:root[data-theme="dark"] .client-project-link:hover,
:root[data-theme="dark"] .client-project-link:focus-visible,
:root[data-theme="dark"] .task-info-cell > span i,
:root[data-theme="dark"] .task-section-icon i,
:root[data-theme="dark"] .dependency-token i,
:root[data-theme="dark"] .dependency-empty i {
  color: #9bf0e1;
}

:root[data-theme="dark"] .rich-link-chip {
  border-color: rgba(155, 240, 225, 0.28);
  background: rgba(155, 240, 225, 0.1);
}

:root[data-theme="dark"] .rich-upload-placeholder,
:root[data-theme="dark"] .rich-missing-image {
  border-color: rgba(155, 240, 225, 0.34);
  background: rgba(155, 240, 225, 0.08);
  color: #9bf0e1;
}

:root[data-theme="dark"] .rich-upload-placeholder.failed {
  border-color: rgba(255, 107, 95, 0.46);
  background: rgba(255, 107, 95, 0.12);
  color: #ffb4ad;
}

:root[data-theme="dark"] .rich-text h1,
:root[data-theme="dark"] .rich-text h2,
:root[data-theme="dark"] .rich-text h3,
:root[data-theme="dark"] .rich-composer h1,
:root[data-theme="dark"] .rich-composer h2,
:root[data-theme="dark"] .rich-composer h3,
:root[data-theme="dark"] .rich-table th {
  color: #f3f3f3;
}

:root[data-theme="dark"] .rich-text blockquote,
:root[data-theme="dark"] .rich-composer blockquote {
  background: rgba(155, 240, 225, 0.1);
  color: #f3f3f3;
}

:root[data-theme="dark"] .rich-table-wrap,
:root[data-theme="dark"] .rich-table th,
:root[data-theme="dark"] .rich-table td {
  border-color: var(--line);
}

:root[data-theme="dark"] .rich-table th {
  background: rgba(155, 240, 225, 0.12);
}

:root[data-theme="dark"] .mention-chip {
  border-color: rgba(155, 240, 225, 0.28);
  background: rgba(155, 240, 225, 0.12);
  color: #9bf0e1;
}

:root[data-theme="dark"] .avatar-stack .avatar,
:root[data-theme="dark"] .team-avatar,
:root[data-theme="dark"] .client-avatar,
:root[data-theme="dark"] .sidebar-client-avatar,
:root[data-theme="dark"] .team-calendar-swatch {
  border-color: #1e1e1e;
}

:root[data-theme="dark"] .topbar-avatar-action,
:root[data-theme="dark"] .client-avatar-action,
:root[data-theme="dark"] .team-avatar-action {
  border-color: #262626;
  background: #1e1e1e;
  color: #f3f3f3;
}

:root[data-theme="dark"] .topbar-avatar-upload:hover .topbar-avatar-action,
:root[data-theme="dark"] .topbar-avatar-upload:focus-within .topbar-avatar-action,
:root[data-theme="dark"] .client-avatar-upload:hover .client-avatar-action,
:root[data-theme="dark"] .client-avatar-upload:focus-within .client-avatar-action,
:root[data-theme="dark"] .team-avatar-upload:hover .team-avatar-action,
:root[data-theme="dark"] .team-avatar-upload:focus-within .team-avatar-action {
  background: var(--kaizen-klein);
  color: #fff;
}

:root[data-theme="dark"] .team-color-compact .icon-btn,
:root[data-theme="dark"] .integration-mark,
:root[data-theme="dark"] .task-section-icon {
  background: #303030;
  color: #f3f3f3;
}

@media (max-width: 1120px) {
  .metrics-grid,
  .grid-3,
  .command-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-summary-grid,
  .project-summary-form {
    grid-template-columns: 1fr;
  }

  .project-summary-block:first-child {
    grid-row: auto;
  }

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

  .team-card-list {
    grid-template-columns: 1fr;
  }

  .team-card-list .team-card-actions {
    justify-content: space-between;
  }

  .focus-strip {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

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

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .client-list-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .client-list-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .auth-page,
  .app-shell,
  .task-drawer {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 32px;
  }

  .sidebar {
    position: fixed;
    z-index: 34;
    top: var(--mobile-topbar-height);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--mobile-topbar-height));
    transform: translateX(-100%);
    border-top: 1px solid var(--line);
    border-right: 0;
    box-shadow: 0 24px 54px rgba(24, 21, 18, 0.14);
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-header {
    justify-content: flex-end;
  }

  .sidebar-header .app-logo-lockup {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    min-height: var(--mobile-topbar-height);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "tools tools";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
  }

  .topbar-mobile-logo {
    display: flex;
    grid-area: brand;
    align-items: center;
    justify-self: start;
  }

  .topbar-leading {
    display: grid;
    grid-area: tools;
    grid-template-columns: 42px minmax(0, 1fr);
    width: 100%;
    flex: none;
    gap: 8px;
  }

  .topbar-actions {
    grid-area: actions;
    width: auto;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    flex-direction: row;
    gap: 8px;
  }

  .topbar-user-chip {
    width: auto;
    gap: 0;
  }

  .topbar-user-chip .avatar {
    width: 38px;
    height: 38px;
    box-shadow: 0 8px 18px rgba(24, 21, 18, 0.08);
  }

  .topbar-avatar-upload {
    width: 38px;
    height: 38px;
  }

  .topbar-avatar-upload .avatar {
    width: 38px;
    height: 38px;
  }

  .topbar-user-copy,
  .topbar-logout-label {
    display: none;
  }

  .theme-toggle,
  .notification-trigger,
  .topbar-logout-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 999px;
    padding: 0;
  }

  .topbar-logout-btn {
    display: inline-grid;
    place-items: center;
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
  }

  :root[data-theme="dark"] .topbar-logout-btn {
    background: #262626;
    color: var(--ink);
  }

  .notification-menu {
    align-self: center;
  }

  .notification-popover {
    position: fixed;
    z-index: 700;
    top: calc(var(--mobile-topbar-height) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - var(--mobile-topbar-height) - 24px);
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .content {
    width: 100%;
    padding: 14px;
  }

  .panel-pad {
    padding: 14px;
  }

  .page-header,
  .project-header {
    flex-direction: column;
  }

  .page-header h1,
  .project-header h1 {
    font-size: 28px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .header-actions,
  .header-actions .input,
  .header-actions .btn,
  .inline-create-section-form,
  .project-options-menu,
  .project-members-menu,
  .project-members-trigger {
    width: 100%;
  }

  .inline-create-section-form {
    justify-content: stretch;
  }

  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .command-center-grid,
  .approval-actions,
  .client-portal-grid,
  .client-risk-grid {
    grid-template-columns: 1fr;
  }

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

  .clients-toolbar,
  .clients-sort-form,
  .clients-view-switch,
  .client-list-row {
    width: 100%;
  }

  .clients-view-switch a {
    flex: 1 1 0;
    justify-content: center;
  }

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

  .client-list-actions {
    grid-column: auto;
  }

  .portal-approval-row,
  .client-risk-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portal-approval-row .badge,
  .client-risk-card .badge {
    grid-column: 2;
    justify-self: flex-start;
  }

  .project-filter-form,
  .quick-edit-form,
  .custom-field-grid,
  .task-info-grid {
    grid-template-columns: 1fr;
  }

  .project-saved-views,
  .save-view-form {
    align-items: stretch;
    flex-direction: column;
  }

  .project-saved-views > div:first-child,
  .saved-view-list,
  .save-view-form,
  .save-view-form .input,
  .save-view-form .toggle-row,
  .save-view-button {
    width: 100%;
  }

  .saved-view-list {
    align-items: flex-start;
  }

  .project-filter-actions .btn,
  .project-filter-actions .badge {
    width: 100%;
  }

  .focus-strip {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .client-create-modal,
  .client-create-summary {
    width: 100%;
  }

  .client-create-panel {
    right: auto;
    left: 0;
    width: min(100%, calc(100vw - 36px));
    max-height: calc(100vh - 124px);
  }

  .color-field-group {
    grid-template-columns: 1fr;
  }

  .team-overview-grid,
  .team-card-grid {
    grid-template-columns: 1fr;
  }

  .team-card-grid {
    padding: 12px;
  }

  .team-card-main {
    align-items: start;
  }

  .team-color-inline {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .team-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .team-toolbar {
    align-items: stretch;
  }

  .team-toolbar-copy {
    width: 100%;
  }

  .team-toolbar .clients-view-switch a {
    justify-content: flex-start;
  }

  .team-color-popover {
    grid-template-columns: 1fr;
  }

  .team-color-popover .color-picker-input {
    width: 100%;
  }

  .team-card-actions .btn,
  .team-card-actions .team-delete-form,
  .team-card-actions .team-delete-form .btn {
    width: 100%;
  }

  .compact-color-form {
    grid-template-columns: 40px minmax(96px, 128px) auto;
  }

  .team-edit-panel {
    width: min(560px, calc(100vw - 24px));
    max-height: var(--team-edit-panel-max-height, calc(100vh - 24px));
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .linked-project-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .linked-project-card .badge {
    grid-column: 2;
    justify-self: flex-start;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-delivery-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .upcoming-open-link {
    grid-column: 2;
    justify-self: flex-start;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .asana-calendar-layout {
    grid-template-columns: 1fr;
  }

  .asana-calendar-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rewards-hero {
    grid-template-columns: 1fr;
  }

  .rewards-hero-stats,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .asana-calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .asana-calendar-options,
  .asana-calendar-options > summary,
  .asana-primary-add-button {
    width: 100%;
  }

  .asana-calendar-menu {
    right: auto;
    left: 0;
  }

  .asana-week-grid {
    grid-template-columns: repeat(var(--calendar-days, 5), minmax(148px, 1fr));
  }

  .asana-month-grid {
    grid-template-columns: repeat(var(--calendar-days, 5), minmax(136px, 1fr));
  }

  .asana-view-switch {
    width: 100%;
  }

  .asana-view-switch .asana-toolbar-button {
    flex: 1;
  }

  .asana-day-column {
    min-height: 520px;
  }

  .timeline-row,
  .split-form {
    grid-template-columns: 1fr;
  }

  .section-name-inline-form {
    grid-template-columns: 1fr;
  }

  .drawer-scrim {
    display: none;
  }

  .drawer-top {
    align-items: flex-start;
  }

  .task-actions-popover {
    right: 0;
    width: min(86vw, 360px);
  }

  .dependency-token,
  .dependency-empty,
  .dependency-alert {
    min-width: 100%;
  }
}

.onboarding-panel {
  overflow: hidden;
}

.onboarding-grid,
.permission-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.onboarding-card,
.permission-tile {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 10px;
  border: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 253, 248, 0.82);
  padding: 14px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.onboarding-card:hover,
.onboarding-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--kaizen-aquamarine) 56%, var(--line));
  background: #fffdf8;
  box-shadow: var(--ds-shadow-card);
  outline: none;
}

.onboarding-card strong,
.permission-tile strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.onboarding-card .muted,
.permission-tile .muted {
  font-size: 13px;
  line-height: 1.35;
}

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

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

.report-card {
  min-width: 0;
}

.report-card-wide {
  grid-column: 1 / -1;
}

.report-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.report-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 253, 248, 0.78);
  padding: 12px;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

a.report-row:hover,
a.report-row:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--kaizen-klein) 28%, var(--line));
  box-shadow: 0 10px 22px rgba(24, 21, 18, 0.08);
  outline: none;
}

.report-row-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.report-row-main strong,
.report-row-main .muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(24, 21, 18, 0.1);
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, 0.42);
}

.performance-report {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  scroll-margin-top: 24px;
}

.performance-heading {
  margin-bottom: 0;
}

.performance-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.42fr) minmax(150px, 0.42fr) auto;
  align-items: end;
  gap: 12px;
  border-top: var(--ds-border);
  border-bottom: var(--ds-border);
  padding: 16px 0;
}

.performance-filter label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
}

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

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

.performance-metric {
  min-width: 0;
}

.performance-detail-grid {
  margin-top: 0;
  align-items: start;
}

.performance-stat-list,
.performance-status-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.performance-stat-list > div,
.performance-status-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: var(--ds-border);
  min-height: 34px;
  padding: 0 2px 8px;
}

.performance-stat-list > div:last-child,
.performance-status-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.performance-stat-list span {
  color: var(--muted);
  font-size: 13px;
}

.performance-table-section {
  min-width: 0;
}

.performance-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.performance-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.performance-table th,
.performance-table td {
  border-bottom: var(--ds-border);
  padding: 11px 10px;
  vertical-align: middle;
}

.performance-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
  white-space: nowrap;
}

.performance-table td {
  font-size: 13px;
  font-weight: 560;
}

.performance-table tbody tr:last-child td {
  border-bottom: 0;
}

.performance-table th:first-child,
.performance-table td:first-child {
  width: 36%;
}

.performance-table th:not(:first-child),
.performance-table td:not(:first-child) {
  width: 12.8%;
  text-align: center;
  white-space: nowrap;
}

.performance-user-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.performance-user-cell > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-partial-saving {
  cursor: progress;
}

.is-partial-submitting {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity var(--motion-fast) ease;
}

/* Information hierarchy: keep emphasis for titles, soften repeated data. */
.sidebar-menu-item,
.nav-link,
.project-link,
.tabs a,
.project-list-toolbar-popover > button,
.save-view-form,
.saved-view-chip,
.project-list-table td,
.task-inline-control,
.task-inline-summary,
.task-inline-option,
.task-inline-points-row,
.assignee-assignment-name,
.assignee-points-control,
.project-link-main small {
  font-weight: 560;
}

.badge,
.ds-badge,
.reward-points-badge,
.nav-count {
  font-weight: 600;
}

.project-list-table th,
.column-drag-title,
.quick-edit-details summary,
.section-add-task-link {
  font-weight: 640;
}

.nav-link.active,
.project-link.active,
.project-section-summary strong,
.task-title a,
.topbar-user-copy strong,
.report-row-main strong {
  font-weight: 720;
}

.task-inline-control,
.task-inline-summary {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .report-metrics,
  .performance-metrics,
  .onboarding-grid,
  .permission-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid,
  .report-list.compact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .content {
    padding: 12px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .panel-pad {
    padding: 12px;
  }

  .project-summary-head {
    display: grid;
  }

  .project-summary-actions {
    justify-content: stretch;
  }

  .project-summary-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .linked-project-card,
  .portal-approval-row,
  .client-risk-card,
  .report-row,
  .client-project-link,
  .asana-calendar-card,
  .timeline-row,
  .request-item,
  .mini-item,
  .task-attachment-card {
    grid-template-columns: 1fr;
  }

  .performance-filter,
  .performance-metrics {
    grid-template-columns: 1fr;
  }

  .performance-filter-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .upcoming-delivery-list {
    padding: 12px;
  }

  .upcoming-delivery-card {
    grid-template-columns: 1fr;
  }

  .upcoming-date {
    width: 100%;
    min-height: 46px;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 6px;
  }

  .upcoming-title-row {
    align-items: start;
  }

  .upcoming-open-link {
    grid-column: auto;
  }

  .task-attachment-thumb {
    width: 100%;
    height: 140px;
  }

  .linked-project-card .badge,
  .portal-approval-row .badge,
  .client-risk-card .badge {
    grid-column: auto;
  }

  .card-meta,
  .asana-toolbar-left,
  .project-filter-actions,
  .notification-heading,
  .task-members-heading,
  .drawer-top {
    align-items: stretch;
    flex-direction: column;
  }

  .drawer-title-row {
    align-items: flex-start;
    gap: 10px;
  }

  .drawer-top-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .task-create-drawer .drawer-top-actions {
    grid-template-columns: 56px;
    width: 56px;
  }

  .drawer-top-actions .drawer-header-action,
  .drawer-top-actions .task-actions-menu > summary.drawer-header-action,
  .drawer-top-actions .task-check-form .drawer-header-action {
    min-height: 56px;
    height: 56px;
  }

  .task-title-edit-form {
    grid-template-columns: 1fr;
  }

  .task-title-check {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }

  .asana-toolbar-button,
  .asana-toolbar-pill,
  .asana-primary-add-button,
  .asana-mini-button,
  .asana-month-label {
    width: 100%;
    white-space: normal;
  }

  .asana-icon-button {
    width: 100%;
  }

  .asana-calendar-toolbar,
  .asana-calendar-legend {
    padding: 10px;
  }

  .asana-week-grid {
    grid-template-columns: repeat(var(--calendar-days, 5), minmax(132px, 1fr));
  }

  .asana-month-grid {
    grid-template-columns: repeat(var(--calendar-days, 5), minmax(122px, 1fr));
  }

  .drawer-panel {
    padding: 0 16px 16px;
  }

  .drawer-top {
    margin: 0 -16px 16px;
    padding: 16px;
  }

  .task-description-hero,
  .task-info-cell,
  .task-dependencies-panel {
    padding: 12px;
  }

  .task-description-input {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .project-tabs,
  .asana-primary-add-button,
  .asana-add-task-link,
  .asana-calendar-options {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .content {
    padding: 0;
  }

  .asana-calendar-shell {
    border: 0;
    box-shadow: none;
  }

  .asana-week-grid {
    overflow: visible;
  }

  .asana-month-grid {
    overflow: visible;
  }
}
