:root {
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f7f7fb;
  --panel-dark: #ffffff;
  --text: #121212;
  --text-soft: #a7a7b1;
  --line: rgba(24, 26, 39, 0.08);
  --accent: #5121ea;
  --accent-deep: #3e18bc;
  --accent-soft: #eee9ff;
  --gold: #d9ba64;
  --gold-soft: #f7edd0;
  --danger: #f06f66;
  --danger-soft: #fff0ef;
  --muted-soft: #f0f0f4;
  --shadow: 0 18px 34px rgba(27, 29, 43, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Albert Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: #f4f5fb;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

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

.page-glow {
  display: none;
}

.page-glow-one {
  top: -120px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(29, 122, 106, 0.2);
}

.page-glow-two {
  left: -120px;
  bottom: 40px;
  width: 260px;
  height: 260px;
  background: rgba(184, 137, 49, 0.16);
}

.auth-shell,
.app-shell {
  position: relative;
  z-index: 1;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.85fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.auth-panel,
.surface,
.modal-card,
.app-topbar {
  backdrop-filter: none;
}

.auth-panel,
.surface,
.app-topbar {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-panel,
.surface {
  background: var(--surface);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #2f2f2d 0%, #252523 100%);
  color: #fbfbf8;
}

.auth-intro h1,
.app-topbar h1,
.auth-card h2,
.page-heading h2,
.section-heading h3,
.metric-card strong,
.kanban-column h3,
.detail-header h3,
.project-board-card h3 {
  margin: 0;
  font-family: "Albert Sans", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-intro h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.auth-copy {
  margin: 0;
  max-width: 44ch;
  color: rgba(247, 244, 238, 0.82);
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
}

.auth-feature {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-feature strong {
  display: block;
  margin-bottom: 6px;
}

.auth-card {
  align-self: center;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: #f3f3f0;
  margin-bottom: 22px;
}

.auth-tab,
.primary-button,
.ghost-button,
.icon-button,
.nav-link,
.switcher-button {
  border: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease,
    border-color 180ms ease;
}

.auth-tab,
.primary-button,
.ghost-button,
.nav-link,
.switcher-button {
  padding: 14px 18px;
  border-radius: 18px;
}

.auth-tab {
  background: transparent;
  color: var(--text-soft);
}

.auth-tab.active,
.switcher-button.active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(24, 40, 36, 0.08);
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: block;
  animation: fade-up 260ms ease;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

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

.settings-signal-grid {
  display: grid;
  gap: 12px;
}

.settings-signal-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafaf8;
  color: var(--text);
  padding: 14px 16px;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.pill-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafaf8;
}

.pill-input input {
  flex: 1 1 180px;
  min-width: 180px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  outline: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.preset-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  color: var(--text);
}

.preset-card strong,
.preset-card small {
  display: block;
}

.preset-card small {
  color: var(--text-soft);
  line-height: 1.4;
}

.preset-card.active {
  border-color: rgba(29, 122, 106, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(216, 238, 232, 0.52));
  box-shadow: 0 12px 24px rgba(20, 87, 75, 0.12);
}

.onboarding-panel {
  display: grid;
  gap: 18px;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.pill-remove {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 1rem;
}

.form-actions,
.page-actions,
.card-actions,
.topbar-actions,
.detail-meta,
.client-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions {
  margin-top: 24px;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(81, 33, 234, 0.2);
}

.ghost-button,
.nav-link,
.switcher-button {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-ghost {
  min-width: 56px;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.auth-tab:hover,
.nav-link:hover,
.switcher-button:hover {
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.icon-button:focus-visible,
.auth-tab:focus-visible,
.nav-link:focus-visible,
.switcher-button:focus-visible,
.kanban-card:focus-visible,
.clients-row:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 122, 106, 0.18);
  outline-offset: 2px;
}

.form-error,
.form-helper,
.success-note,
.client-list-meta,
.greeting-copy,
.timeline-item p,
.empty-state p,
.task-card p,
.project-copy {
  margin: 0;
  color: var(--text-soft);
}

.form-error {
  min-height: 1.25rem;
  margin-top: 12px;
  color: var(--danger);
}

.form-helper,
.success-note {
  min-height: 1.25rem;
  margin-top: 12px;
}

.success-note {
  color: var(--accent-deep);
}

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

.checkbox-field input {
  width: auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.app-topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  padding: 14px 10px;
  border-radius: 28px;
  background: #ffffff;
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  width: 72px;
  justify-items: center;
}

.topbar-brand {
  display: grid;
  place-items: center;
  width: 100%;
  padding-bottom: 2px;
}

.brand-mark-mini {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.top-nav {
  display: grid;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.nav-link {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.topbar-actions {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.tag,
.meta-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f7f5;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(81, 33, 234, 0.14);
}

.app-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px 34px 34px;
  border-radius: 34px;
  background: #f7f8fc;
  border: 1px solid rgba(16, 18, 33, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ui-icon {
  width: 20px;
  height: 20px;
}

.nav-icon-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #9b9ba7;
  box-shadow: none;
}

.quick-add-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.quick-add-trigger {
  color: #9b9ba7;
}

.quick-add-trigger .ui-icon {
  width: 20px;
  height: 20px;
}

.quick-add-popover {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-radius: 26px;
  background: #4503D3;
  box-shadow: 0 22px 48px rgba(44, 0, 142, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 25;
}

.quick-add-popover::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #4503D3;
  transform: translateY(-50%) rotate(45deg);
  z-index: 0;
}

.quick-add-wrap.open .quick-add-popover,
.quick-add-wrap:hover .quick-add-popover,
.quick-add-wrap:focus-within .quick-add-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.quick-add-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 16pt;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  transition: background 160ms ease, transform 160ms ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.quick-add-item:hover,
.quick-add-item:focus-visible {
  background: #3300A1;
}

.nav-icon-link.active {
  background: #f3efff;
  color: var(--accent);
}

.nav-icon-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.topbar-actions-compact {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid #efeff5;
  justify-items: center;
}

.view {
  display: none;
  gap: 20px;
}

.view.active {
  display: grid;
  animation: fade-up 280ms ease;
}

.page-heading,
.section-heading,
.timeline-head,
.detail-header,
.kanban-card-head,
.kanban-column-head,
.detail-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.page-heading {
  padding: 18px 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-actions {
  align-items: center;
}

.search-field {
  min-width: 260px;
}

.search-field input {
  background: #f7f7f5;
}

.detail-header-actions {
  display: inline-flex;
  gap: 10px;
}

.page-heading h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  line-height: 1.04;
}

.dashboard-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dashboard-subtitle {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-hero .primary-button,
.dashboard-hero .ghost-button {
  min-height: 49px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.dashboard-icon-button {
  width: 49px;
  height: 49px;
  padding: 0;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #e9e9e9;
  color: #8d8d98;
}

.dashboard-avatar {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b624a, #d4b095);
  color: #fff;
  font-weight: 700;
}

.pipeline-hero .primary-button {
  min-height: 55px;
  padding: 0 16px;
  border-radius: 13px;
  background: #4300d2;
  color: #ffffff;
  box-shadow: none;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.pipeline-hero .dashboard-icon-button {
  width: 55px;
  height: 55px;
  border-radius: 13px;
}

.pipeline-hero .dashboard-avatar {
  width: 55px;
  height: 55px;
}

.page-heading-tall {
  align-items: end;
}

.greeting-copy {
  margin-top: 8px;
  font-size: 1.05rem;
}

.stats-grid,
.task-board,
.pipeline-stage,
.timeline-grid,
.client-project-grid {
  display: grid;
  gap: 18px;
}

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

.dashboard-stats-grid {
  gap: 20px;
}

.metric-card {
  min-height: 130px;
  padding: 14px 18px 14px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.metric-card-link {
  width: 100%;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.metric-card-link:hover,
.metric-card-link:focus-visible {
  transform: translateY(-1px);
  border-color: #dddff1;
  box-shadow: 0 10px 22px rgba(30, 31, 53, 0.08);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #111216;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  max-width: 15ch;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: -0.03em;
}

.metric-alert {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 31px;
  margin-left: 6px;
  vertical-align: top;
  border-radius: 9px;
  background: rgba(255, 39, 39, 0.28);
  color: #d41818;
  font-size: 1rem;
  font-weight: 700;
}

#dashboard-view {
  grid-template-columns: 1fr;
  gap: 18px;
}

.surface {
  padding: 24px;
  border-radius: var(--radius-xl);
  min-width: 0;
  background: #ffffff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.dashboard-left-column {
  display: grid;
  gap: 18px;
  grid-column: span 2;
}

.dashboard-right-column {
  display: grid;
  gap: 18px;
  grid-column: span 2;
}

.dashboard-panel {
  border-radius: 15px;
  padding: 18px 20px;
  border: 1px solid #e6e6e6;
  box-shadow: none;
}

.dashboard-cold-panel {
  min-height: 258px;
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
}

.dashboard-panel-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dashboard-panel-muted {
  color: rgba(0, 0, 0, 0.2);
}

.dashboard-task-list,
.dashboard-client-list {
  display: grid;
  gap: 0;
}

.dashboard-task-row,
.dashboard-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-top: 1px solid #f0f0f4;
  border-radius: 0;
  background: transparent;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-task-row:first-child,
.dashboard-client-row:first-child {
  border-top: 1px solid #f0f0f4;
}

.dashboard-task-row:hover,
.dashboard-client-row:hover {
  background: #fbfbff;
  box-shadow: inset 0 0 0 1px rgba(92, 70, 205, 0.06);
}

.dashboard-task-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-task-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #e8e8ee;
  flex: 0 0 auto;
  background: #ffffff;
}

.dashboard-task-copy,
.dashboard-client-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-task-copy strong,
.dashboard-client-copy strong {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.03em;
}

.dashboard-client-copy small {
  color: #b3b3bc;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dashboard-task-muted-copy {
  color: #b2b2b2;
  font-weight: 400;
}

.dashboard-due-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f5f5f7;
  color: #7f7f8d;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.dashboard-due-badge-urgent {
  background: #fdf0ed;
  color: #e01c1c;
  border: 1px solid rgba(255, 39, 39, 0.15);
}

.dashboard-client-row {
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 11px;
  margin-top: 0;
  background: #ffffff;
}

.dashboard-client-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8f6b59, #d9b9a9);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.dashboard-client-row .dashboard-client-copy {
  flex: 1 1 auto;
}

.dashboard-client-arrow {
  display: grid;
  place-items: center;
  color: #c0c0cc;
  width: 27px;
  height: 27px;
  line-height: 1;
}

.dashboard-placeholder-copy {
  color: #111216;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.dashboard-cold-panel .dashboard-panel-heading {
  padding-bottom: 12px;
}

.daily-rhythm-list,
.timeline-list,
.kanban-stack {
  display: grid;
  gap: 14px;
}

.rhythm-item,
.timeline-item,
.task-card,
.kanban-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fbfbfa;
  border: 1px solid var(--line);
}

.rhythm-urgent,
.task-overdue {
  border-color: rgba(165, 83, 60, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 223, 213, 0.45));
}

.pipeline-stage {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  position: relative;
}

.pipeline-view {
  gap: 16px;
}

.pipeline-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 0;
}

.pipeline-hero-copy {
  display: grid;
  gap: 6px;
}

.pipeline-stats-grid {
  gap: 18px;
}

.pipeline-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 0 10px;
  border-bottom: 1px solid #ececf2;
}

.pipeline-tabs,
.pipeline-view-tabs {
  display: inline-flex;
  gap: 22px;
  padding: 0 0 10px;
}

.pipeline-filter-tab,
.pipeline-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  position: relative;
}

.pipeline-filter-tab.active,
.pipeline-view-tab.active {
  color: #5b20d8;
  font-weight: 600;
}

.pipeline-filter-tab.active::after,
.pipeline-view-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: #5b20d8;
}

.pipeline-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  background: #f7f7f7;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 600;
}

.pipeline-board-full {
  min-height: 623px;
  padding: 0;
  border-radius: 15px;
  border: 1px solid #e6e6e6;
  box-shadow: none;
  background: #ffffff;
}

.pipeline-board-surface {
  display: grid;
  gap: 0;
}

.pipeline-board-shell {
  display: grid;
  gap: 0;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0;
}

.task-board {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.kanban-column {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 12px 18px;
  border-radius: 0;
  background: #ffffff;
  border-left: 1px solid #ededf2;
  min-height: 623px;
  position: relative;
}

.kanban-column:first-child {
  border-left: 0;
}

.task-column {
  min-height: 520px;
}

.compact-column {
  min-height: 320px;
}

.pipeline-column {
  min-height: 623px;
}

.kanban-card {
  width: 100%;
  text-align: left;
}

.pipeline-card {
  display: grid;
  gap: 12px;
  padding: 12px 12px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pipeline-card:hover,
.pipeline-card.active {
  border-color: rgba(69, 3, 211, 0.18);
  box-shadow: 0 3px 8px rgba(69, 3, 211, 0.12);
}

.pipeline-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pipeline-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pipeline-card-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pipeline-card-copy small {
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pipeline-card-meta {
  margin: 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pipeline-signal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  justify-self: start;
  align-self: start;
}

.pipeline-empty-space {
  min-height: 12px;
}

.signal-on-track {
  background: #f2f2f2;
  color: #6f6f79;
}

.signal-contact-soon {
  background: #ece4ff;
  color: #5b20d8;
}

.signal-waiting-on-client {
  background: #e9f8eb;
  color: #00a84f;
}

.signal-needs-attention {
  background: #fff0e8;
  color: #d20000;
}

.signal-at-risk {
  background: #fff0e8;
  color: #d86d00;
}

.signal-gone-cold {
  background: #caf9ff;
  color: #0000d2;
}

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

.pipeline-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) auto auto auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pipeline-list-row:hover,
.pipeline-list-row.active {
  transform: translateY(-1px);
  border-color: rgba(69, 3, 211, 0.18);
  box-shadow: 0 14px 28px rgba(69, 3, 211, 0.08);
}

.pipeline-card .task-client-avatar,
.pipeline-list-row .task-client-avatar {
  width: 25px;
  height: 25px;
  font-size: 15px;
}

.pipeline-list-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pipeline-list-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pipeline-list-copy small,
.pipeline-list-copy-muted {
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pipeline-list-stage,
.pipeline-list-value {
  color: #7d7d8c;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pipeline-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-column-title h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pipeline-stage-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.pipeline-column-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 23px;
  padding: 0 4px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #5b5b5b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.pipeline-column-meta {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kanban-card:hover:not(.pipeline-card),
.kanban-card.active:not(.pipeline-card),
.clients-row:hover {
  border-color: rgba(29, 122, 106, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(216, 238, 232, 0.42));
}

.drag-hint {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.drag-over {
  border-color: rgba(81, 33, 234, 0.22) !important;
  background: rgba(243, 239, 255, 0.92) !important;
}

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

.pipeline-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  border: 0;
  padding: 0;
  background: rgba(20, 49, 45, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.pipeline-detail-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pipeline-detail-surface {
  position: fixed;
  top: 112px;
  right: 24px;
  bottom: 24px;
  z-index: 28;
  width: min(460px, calc(100vw - 48px));
  min-height: auto;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 32px));
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1), opacity 220ms ease;
}

.pipeline-detail-surface.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.pipeline-expanded-card {
  width: min(1200px, 100%);
}

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

.pipeline-detail-expanded-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
}

.pipeline-detail-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.detail-overview {
  display: grid;
  gap: 8px;
}

.detail-overview h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

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

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

.clients-row {
  cursor: pointer;
}

.table-meta {
  margin-top: 6px;
  color: var(--text-soft);
}

.table-wrap {
  overflow-x: auto;
}

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

.project-board-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(29, 39, 36, 0.08);
}

.tasks-hero {
  padding-bottom: 18px;
}

.tasks-board-shell {
  padding: 0;
  overflow: hidden;
  border-radius: 29px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
}

.tasks-toprail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 0;
  border-bottom: 1px solid #ededf3;
}

.tasks-filter-tabs,
.tasks-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tasks-filter-tab,
.tasks-view-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px 14px;
  border: 0;
  background: transparent;
  color: #16171d;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.tasks-filter-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: #f7f7f7;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 500;
}

.tasks-filter-tab.active,
.tasks-view-tab.active {
  color: #5b20d8;
  font-weight: 600;
}

.tasks-filter-tab.active::after,
.tasks-view-tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: #5b20d8;
}

.task-board-figma {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 16px 0 24px;
}

.task-board-figma .task-column {
  min-height: 568px;
  padding: 0 18px 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid #efeff5;
  border-radius: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.task-board-figma .task-column:last-child {
  border-right: 0;
}

.task-column-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 100%);
}

.task-column-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.task-column-title-wrap h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.task-column-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.task-column-dot-not-started {
  background: #ffe3e3;
}

.task-column-dot-started {
  background: #dfffd4;
}

.task-column-dot-client-review {
  background: #ffb64c;
}

.task-column-dot-complete {
  background: #f2f2f2;
}

.task-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 29px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f5f5f8;
  color: #5b5b5b;
  font-size: 19px;
  font-weight: 500;
}

.task-kanban-stack {
  gap: 18px;
  align-content: start;
}

.task-card-figma {
  gap: 18px;
  min-height: 194px;
  padding: 18px 18px 16px;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  cursor: grab;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1), box-shadow 220ms ease, border-color 220ms ease, opacity 180ms ease;
}

.task-card-figma:hover {
  transform: translateY(-2px);
  border-color: #ddd9ef;
  box-shadow: 0 12px 30px rgba(41, 29, 96, 0.1);
}

.task-card-figma.is-dragging {
  opacity: 0.52;
  transform: rotate(1.4deg) scale(0.98);
  box-shadow: 0 18px 34px rgba(32, 34, 48, 0.12);
  cursor: grabbing;
}

.task-card-client {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.task-client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #ffb74d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.task-client-name {
  color: #16171d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

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

.task-card-copy strong {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.task-card-copy p {
  margin: 0;
  color: #16171d;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

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

.task-deadline-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.task-deadline-icon {
  width: 12px;
  height: 12px;
  color: rgba(0, 0, 0, 0.28);
}

.tasks-list-view {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.tasks-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
}

.tasks-list-row-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tasks-list-row-copy {
  display: grid;
  gap: 4px;
}

.tasks-list-row-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tasks-list-row-copy p {
  margin: 0;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

.task-list-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.task-list-status-not-started {
  background: #fff0ef;
  color: #f06f66;
}

.task-list-status-started {
  background: #eefce6;
  color: #84b85d;
}

.task-list-status-client-review {
  background: #fff2d8;
  color: #d4932a;
}

.task-list-status-complete {
  background: #f4f4f6;
  color: #888894;
}

.badge {
  background: rgba(255, 255, 255, 0.74);
}

.badge-lead {
  color: #8a5b12;
  background: var(--gold-soft);
}

.badge-active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.badge-waiting {
  color: #7d5a18;
  background: #f4edd9;
}

.badge-closed {
  color: #5e6763;
  background: var(--muted-soft);
}

.badge-lost {
  color: var(--danger);
  background: var(--danger-soft);
}

.empty-state,
.kanban-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed rgba(29, 39, 36, 0.12);
}

.empty-state.centered {
  min-height: 320px;
  align-content: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(29, 39, 36, 0.06);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 18, 27, 0.5);
  backdrop-filter: blur(10px);
}

.modal-backdrop-drawer {
  place-items: stretch;
  padding: 0;
  background:
    linear-gradient(270deg, rgba(11, 13, 22, 0.62) 0%, rgba(11, 13, 22, 0.46) 34%, rgba(11, 13, 22, 0.18) 62%, rgba(11, 13, 22, 0.04) 100%);
  backdrop-filter: blur(14px) saturate(0.94);
  animation: drawerBackdropIn 260ms ease-out;
}

.modal-backdrop-drawer.is-closing {
  animation: drawerBackdropOut 240ms ease-in forwards;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.create-task-card {
  width: min(626px, calc(100vw - 48px));
  max-height: calc(100vh - 50px);
  padding: 0;
  border-radius: 25px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.create-task-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 68px;
  padding: 22px 18px 16px;
  border-bottom: 1px solid #ececec;
}

.create-task-close {
  background: transparent;
  border: 0;
  color: #9a9aa2;
  box-shadow: none;
  font-size: 32px;
  line-height: 1;
  width: auto;
  height: auto;
  padding: 0;
}

.create-task-header {
  padding: 24px 20px 0;
}

.create-task-header h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.create-task-form {
  display: grid;
  gap: 18px;
  padding: 16px 20px 0;
}

.create-task-grid {
  gap: 16px 14px;
}

.create-task-field {
  gap: 10px;
}

.create-task-field > span {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #000000;
}

.create-task-card input,
.create-task-card select,
.create-task-card textarea {
  border-radius: 11px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.2;
  color: #111216;
}

.create-task-card input::placeholder,
.create-task-card textarea::placeholder {
  color: rgba(0, 0, 0, 0.2);
}

.create-task-description-field .mention-textarea-wrap,
.create-task-description-field textarea {
  min-height: 119px;
}

.create-task-description-field textarea {
  resize: none;
}

.create-task-section-divider {
  height: 1px;
  background: #ececec;
  margin: 2px -20px 0;
}

.create-task-project-name {
  margin-top: -2px;
}

.create-task-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 24px 0 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #ececec;
}

.create-task-actions .ghost-button,
.create-task-actions .primary-button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.create-task-actions .ghost-button {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #111216;
  min-width: 112px;
}

.create-task-actions .primary-button {
  background: #4300d2;
  color: #ffffff;
  min-width: 152px;
}

.complete-task-card {
  width: min(635px, calc(100vw - 48px));
  padding: 0;
  border-radius: 25px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.complete-task-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 68px;
  padding: 20px 18px 12px;
}

.complete-task-close {
  background: transparent;
  border: 0;
  color: #9a9aa2;
  box-shadow: none;
  font-size: 32px;
  line-height: 1;
  width: auto;
  height: auto;
  padding: 0;
}

.complete-task-header {
  padding: 0 22px;
}

.complete-task-header h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.complete-task-form {
  display: grid;
  gap: 14px;
  padding: 10px 22px 0;
}

.complete-task-field {
  gap: 10px;
}

.complete-task-field > span {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #000000;
}

.complete-task-textarea {
  min-height: 119px;
  resize: none;
  border-radius: 11px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.35;
  color: #111216;
}

.complete-task-textarea::placeholder {
  color: rgba(0, 0, 0, 0.2);
}

.complete-task-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0 18px 18px;
}

.complete-task-actions .ghost-button,
.complete-task-actions .primary-button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.complete-task-actions .ghost-button {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #111216;
  min-width: 112px;
}

.complete-task-actions .primary-button {
  background: #4300d2;
  color: #ffffff;
  min-width: 152px;
}

.client-popup-backdrop {
  place-items: stretch;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 29px 9px 0 0;
  background: rgba(108, 110, 111, 0.94);
  backdrop-filter: blur(8px);
}

.client-popup-card {
  justify-self: end;
  align-self: flex-start;
  width: min(441px, calc(100vw - 24px));
  max-height: min(807px, calc(100vh - 58px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.client-popup {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.client-popup-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 20px 22px 8px 20px;
  border-bottom: 1px solid #ececec;
}

.client-popup-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #ffb24b;
}

.client-popup-avatar span {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.client-popup-close {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #8f8f8f;
  font-size: 24px;
  line-height: 1;
}

.client-popup-title,
.client-popup-field-value {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #111216;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  transition: border-color 150ms ease, background 150ms ease;
}

.client-popup-title {
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 10px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.client-popup-field-value {
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-popup-title:hover,
.client-popup-field-value:hover {
  background: #f7f7fb;
  border-color: #ececf2;
}

.client-popup-title.is-editing,
.client-popup-field-value.is-editing {
  padding: 8px 10px;
  border-color: #dcdff0;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(69, 3, 211, 0.04);
}

.client-popup-title.is-editing {
  font-size: 25px;
  font-weight: 600;
}

.client-popup-details {
  display: grid;
  gap: 0;
  padding: 27px 35px 27px 27px;
}

.client-popup-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 46px;
}

.client-popup-row span {
  color: #747474;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-popup-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  padding: 0 12px;
  border-radius: 26px;
  background: #d5ffc7;
  color: #3b6700;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.client-popup-tab {
  position: relative;
  padding: 12px 6px 13px;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-popup-tab.active {
  color: #4300d2;
}

.client-popup-tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #4300d2;
}

.client-popup-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 19px 15px 14px 18px;
  overflow-y: auto;
}

.client-popup-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-popup-panel-head p {
  margin: 0;
  color: #999999;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-popup-panel-icon {
  position: relative;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.client-popup-panel-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.client-popup-task-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.client-popup-task-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  padding: 0 14px 0 11px;
  border-radius: 13px;
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: none;
}

.client-popup-task-circle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  background: #ffffff;
}

.client-popup-task-row strong {
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-popup-task-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #5b5b5b;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-task-badge.is-urgent {
  background: #fdf0ed;
  border: 1px solid rgba(255, 39, 39, 0.15);
  color: #e01c1c;
}

.client-popup-activity-list,
.client-popup-notes-list,
.client-popup-files-panel,
.client-popup-empty-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.client-popup-activity-group {
  display: grid;
  gap: 16px;
}

.client-popup-activity-group h4 {
  margin: 0;
  color: #121318;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-activity-items {
  display: grid;
  gap: 18px;
}

.client-popup-activity-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.client-popup-activity-rail {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 5px;
}

.client-popup-activity-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d9d9d9;
}

.client-popup-activity-line {
  width: 1px;
  min-height: 44px;
  background: repeating-linear-gradient(
    to bottom,
    #d9d9d9 0,
    #d9d9d9 3px,
    transparent 3px,
    transparent 6px
  );
}

.client-popup-activity-copy {
  display: grid;
  gap: 8px;
}

.client-popup-activity-copy p {
  margin: 0;
  color: #111216;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-activity-copy p strong {
  font-weight: 700;
}

.client-popup-activity-copy small {
  color: #8e8e8e;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-note-card {
  display: grid;
  gap: 11px;
  padding: 12px 14px 13px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #ffffff;
}

.client-popup-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.client-popup-note-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 12px;
  border-radius: 26px;
  background: #b0efff;
  color: #0d1aa2;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-note-meta small {
  color: #a0a0a0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  opacity: 0.4;
}

.client-popup-note-body {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111216;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-popup-note-task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 7px;
  background: #e6e6e6;
  color: #8c8c8c;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-note-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #dcdff0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #111216;
  resize: vertical;
  letter-spacing: -0.03em;
}

.client-popup-files-list {
  display: grid;
  gap: 8px;
}

.client-popup-file-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #ececec;
  border-radius: 10px;
}

.client-popup-file-item strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.client-popup-file-item small {
  color: #8d8d8d;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.client-popup-upload-button {
  width: fit-content;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 16px;
}

.client-popup-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.client-popup-new-task {
  min-width: 118px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.clients-hero .dashboard-hero-actions {
  gap: 10px;
}

.clients-hero .primary-button,
.clients-hero .ghost-button {
  min-height: 55px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.clients-hero .primary-button {
  background: #4300d2;
  color: #ffffff;
  box-shadow: none;
}

.clients-hero .ghost-button {
  background: #ffffff;
  border: 1px solid #e9e9e9;
  color: #000000;
}

.clients-hero .dashboard-icon-button {
  width: 55px;
  height: 55px;
  border-radius: 13px;
}

.clients-hero .dashboard-avatar {
  width: 55px;
  height: 55px;
}

.clients-surface {
  min-height: 760px;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: none;
}

.clients-toprail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px 0 14px;
  border-bottom: 1px solid #e6e6e6;
}

.clients-filter-tabs,
.clients-view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clients-filter-tab,
.clients-view-tab {
  position: relative;
  padding: 17px 10px 13px;
  border: 0;
  background: transparent;
  color: #000000;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.clients-filter-tab span,
.clients-view-tab {
  white-space: nowrap;
}

.clients-filter-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 3px;
  background: #f7f7f7;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 500;
}

.clients-filter-tab.active {
  color: #5b20d8;
}

.clients-filter-tab.active::after,
.clients-view-tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #5b20d8;
}

.clients-view-tab {
  color: #000000;
  font-weight: 400;
}

.clients-view-tab.active {
  font-weight: 600;
}

.clients-list-view,
.clients-grid {
  display: grid;
  gap: 15px 20px;
  padding: 24px 18px 18px 18px;
}

.clients-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
}

.client-grid-card,
.clients-list-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 16px 11px 0;
  border-radius: 13px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.client-grid-card {
  min-height: 124px;
  grid-template-rows: auto 1fr auto;
}

.client-avatar-badge {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #ffb850;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.client-grid-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.client-grid-copy,
.clients-list-row-copy {
  display: grid;
  gap: 1px;
  align-content: start;
}

.client-grid-copy strong,
.clients-list-row-copy strong {
  color: #000000;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.client-grid-copy p,
.clients-list-row-copy p {
  margin: 0;
  color: #999999;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.client-grid-footer,
.clients-list-row small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #999999;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.client-grid-footer {
  min-height: 44px;
  margin: 7px -11px 0;
  padding: 12px 11px 0;
  border-top: 1px solid #e6e6e6;
}

.clients-list-view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #999999;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.clients-list-view-link svg {
  width: 6px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.clients-list-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 76px;
  padding: 0 16px;
}

.clients-list-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.clients-list-row-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-detail-popup {
  justify-self: end;
  align-self: stretch;
  width: min(441px, calc(100vw - 32px));
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  margin: 28px 0 28px auto;
  padding: 0;
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  animation: taskDrawerIn 320ms cubic-bezier(0.2, 0.9, 0.18, 1);
  will-change: transform, opacity;
}

.task-detail-popup.is-closing {
  animation: taskDrawerOut 260ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.task-detail-modal {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.task-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 68px;
  padding: 22px 18px 14px;
  border-bottom: 1px solid #ececec;
}

.task-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
  border-radius: 999px;
  background: #fff0ef;
  color: #f06f66;
}

.task-status-chip select {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding-right: 18px;
}

.task-status-chip-not-started,
.task-status-chip-not-started select {
  background: #fff0ef;
  color: #f06f66;
}

.task-status-chip-started,
.task-status-chip-started select {
  background: #eefce6;
  color: #84b85d;
}

.task-status-chip-client-review,
.task-status-chip-client-review select {
  background: #fff2d8;
  color: #d4932a;
}

.task-status-chip-complete,
.task-status-chip-complete select {
  background: #f4f4f6;
  color: #888894;
}

.task-detail-close {
  background: transparent;
  border: 0;
  color: #a5a5ad;
  box-shadow: none;
  font-size: 32px;
  line-height: 1;
  width: auto;
  height: auto;
  padding: 0;
}

.task-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  height: 100%;
}

.task-detail-main {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 26px 19px 26px;
  border-bottom: 1px solid #ececec;
}

.task-detail-side {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.task-detail-title-display,
.task-detail-description-display,
.task-inline-value {
  appearance: none;
  font-family: "Albert Sans", sans-serif;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.task-detail-title-display {
  padding: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.task-detail-description-display {
  padding: 15px 18px;
  min-height: 77px;
  border-radius: 10px;
  background: #f8fafb;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #121318;
}

.task-inline-display:hover,
.task-inline-value:hover {
  background: #f7f8fc;
  border-color: #ececf2;
}

.task-detail-description-display:hover {
  background: #f1f3fb;
}

.task-detail-title-display.is-editing,
.task-detail-description-display.is-editing,
.task-inline-select,
.task-inline-datetime {
  width: 100%;
  border: 1px solid #dfe3f2;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(84, 39, 238, 0.04);
}

.task-detail-title-display.is-editing {
  padding: 10px 12px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
}

.task-detail-description-display.is-editing {
  padding: 15px 18px;
  min-height: 77px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

.task-detail-info-list {
  display: grid;
  gap: 14px;
}

.task-detail-info-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.task-detail-info-row > span {
  color: #747474;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.task-inline-value {
  padding: 3px 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #000000;
}

.task-detail-info-row .task-status-chip {
  width: fit-content;
  min-height: 25px;
  padding: 0 14px;
  border-radius: 26px;
}

.task-detail-info-row .task-status-chip:hover {
  filter: brightness(0.98);
  border-color: transparent;
}

.task-inline-date {
  color: #2f3140;
}

.task-inline-select,
.task-inline-datetime {
  padding: 10px 12px;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.task-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ececec;
}

.task-detail-tab {
  position: relative;
  padding: 14px 8px 14px;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.task-detail-tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #4300d2;
}

.task-detail-tab-panel {
  padding: 20px 16px 24px;
  overflow-y: auto;
}

.task-detail-tab-copy {
  display: grid;
  gap: 10px;
}

.task-detail-tab-copy strong {
  font-size: 18px;
}

.task-detail-tab-copy p {
  margin: 0;
  color: #6f6f79;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.task-detail-tab-copy.muted {
  color: #b8b8c1;
}

.task-detail-side-textarea {
  min-height: 240px;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.task-detail-notes-panel {
  display: grid;
  gap: 18px;
}

.task-detail-activity-feed {
  display: grid;
  gap: 14px;
}

.task-activity-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.task-activity-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d8dae4;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.task-activity-copy {
  display: grid;
  gap: 6px;
}

.task-activity-copy strong {
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: #000000;
}

.task-activity-copy small {
  color: #5b5b5b;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.task-activity-day {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #000000;
}

.task-activity-timeline {
  display: grid;
  gap: 20px;
}

.task-activity-timeline .task-activity-item + .task-activity-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -42px;
  width: 1px;
  height: 74px;
  background: #d9d9d9;
}

.task-activity-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@keyframes taskDrawerIn {
  from {
    opacity: 0.72;
    transform: translateX(72px) scale(0.985);
  }

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

@keyframes taskDrawerOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0.82;
    transform: translateX(68px) scale(0.99);
  }
}

@keyframes drawerBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(2px) saturate(0.98);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(14px) saturate(0.94);
  }
}

@keyframes drawerBackdropOut {
  from {
    opacity: 1;
    backdrop-filter: blur(14px) saturate(0.94);
  }

  to {
    opacity: 0;
    backdrop-filter: blur(3px) saturate(0.98);
  }
}

.file-upload-button {
  width: fit-content;
}

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

.task-attachment-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafafe;
  border: 1px solid #ececf2;
}

.task-attachment-item strong {
  display: block;
  font-size: 0.95rem;
}

.task-attachment-item p {
  margin: 6px 0 0;
  color: #9f9faa;
  font-size: 0.82rem;
}

.task-activity-feed {
  display: grid;
  gap: 12px;
}

.mention-textarea-wrap {
  position: relative;
}

.mention-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ececf2;
  box-shadow: 0 16px 30px rgba(24, 26, 39, 0.12);
}

.mention-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.mention-option:hover {
  background: #f6f6fb;
}

.mention-option strong {
  font-size: 0.94rem;
  font-weight: 600;
}

.mention-option span {
  color: #9e9eaa;
  font-size: 0.8rem;
}

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

.won-client-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 1260px) {
  #dashboard-view,
  .task-board,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .task-board-figma {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .tasks-toprail {
    flex-wrap: wrap;
  }

  .pipeline-hero,
  .pipeline-filter-row,
  .pipeline-board-shell-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-tabs,
  .pipeline-view-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .pipeline-detail-surface {
    top: 96px;
    right: 16px;
    bottom: 16px;
    width: min(460px, calc(100vw - 32px));
  }
}

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

  .app-topbar {
    grid-template-columns: repeat(3, auto);
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: auto;
    padding: 12px 14px;
    position: static;
  }

  .app-shell,
  .auth-shell {
    padding: 16px;
  }

  .top-nav {
    grid-auto-flow: column;
  }

  .topbar-actions,
  .topbar-actions-compact {
    margin-top: 0;
    grid-auto-flow: column;
    padding-top: 0;
    border-top: 0;
  }

  .nav-icon-link.active::before {
    display: none;
  }

  .app-main {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  .field-grid.two-up,
  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-task-row,
  .dashboard-client-row {
    gap: 12px;
  }

  .dashboard-due-badge {
    align-self: flex-start;
  }

  .stats-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .task-board-figma {
    grid-template-columns: 1fr;
  }

  .tasks-toprail,
  .tasks-filter-tabs,
  .tasks-view-tabs {
    flex-wrap: wrap;
  }

  .tasks-list-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .task-board-figma .task-column {
    border-right: 0;
    border-bottom: 1px solid #efeff5;
    padding-bottom: 18px;
  }

  .task-board-figma .task-column:last-child {
    border-bottom: 0;
  }

  .task-detail-main {
    padding: 24px 22px;
  }

  .task-detail-popup {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px 0 10px auto;
    border-radius: 24px;
  }

  .task-detail-tab-panel {
    padding: 22px 22px 24px;
  }

  .preset-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-board-full {
    min-height: calc(100vh - 190px);
  }

  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .pipeline-detail-surface {
    top: 84px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .app-main {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .app-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .top-nav,
  .topbar-actions-compact {
    grid-auto-flow: column;
    justify-content: center;
  }

  .page-heading,
  .section-heading,
  .timeline-head,
  .detail-header,
  .kanban-card-head,
  .kanban-column-head,
  .detail-sidebar-header {
    flex-direction: column;
  }

  .pipeline-detail-expanded-layout {
    grid-template-columns: 1fr;
  }

  .page-actions,
  .form-actions,
  .card-actions,
  .topbar-actions {
    width: 100%;
  }

  .page-actions > *,
  .form-actions > *,
  .card-actions > *,
  .topbar-actions > * {
    width: 100%;
  }

  .pill-input input {
    min-width: 100%;
  }
}
