:root {
  --bg: #0d141d;
  --bg-2: #121f2b;
  --glass: rgba(22, 34, 47, 0.7);
  --glass-2: rgba(255, 255, 255, 0.06);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-muted: rgba(245, 248, 252, 0.86);
  --line: rgba(160, 179, 198, 0.35);
  --slate: #1b3a4b;
  --slate-2: #2d4a5f;
  --stone: #6b7b8d;
  --stone-2: #8ea0b4;
  --amber: #c17d2e;
  --amber-glow: rgba(193, 125, 46, 0.32);
  --ok: #2f8b57;
  --warn: #a87b35;
  --bad: #b34f46;
  --txt: #14202d;
  --txt-2: #475b70;
  --txt-dark: #f3f8ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(10, 19, 29, 0.14);
  --shadow-glow: 0 0 0 1px rgba(193, 125, 46, 0.22), 0 8px 20px rgba(193, 125, 46, 0.22);
  --ease-swift: cubic-bezier(0.2, 0.9, 0.28, 1);
  --ease-smooth: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dur-fast: 0.22s;
  --dur-med: 0.32s;
  --dur-slow: 0.43s;
}

* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
  width: 100%;
}
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", "SF Pro Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  }

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  }

button,
input,
select,
textarea {
  font: inherit;
}

.splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 16% 12%, rgba(193, 125, 46, 0.2), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(76, 107, 133, 0.25), transparent 30%),
    linear-gradient(140deg, #111c27 0%, #0d141d 72%);
  color: #f1f7ff;
  z-index: 70;
  opacity: 1;
  transition: opacity 0.64s var(--ease-smooth);
}

.splash.hidden {
  opacity: 0;
  pointer-events: none;
}

body.splash-active {
  }

.splash-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.splash-logo svg {
  width: 48px;
  height: 48px;
}

.splash-logo h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0.06em;
  font-weight: 770;
}

.splash-quote {
  margin: 0;
  color: rgba(211, 223, 236, 0.78);
  letter-spacing: 0.03em;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 66px 1fr;
  background:
    radial-gradient(circle at 10% 90%, rgba(193, 125, 46, 0.1), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(87, 121, 151, 0.18), transparent 28%),
    linear-gradient(160deg, #0d141d 0%, #131f2c 55%, #0f1924 100%);
  animation: ambientShift 20s ease-in-out infinite alternate;
  }

.single-screen-shell {
  grid-template-rows: 1fr;
  min-height: 100dvh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(35deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(-35deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 130px 130px, 130px 130px;
  z-index: 0;
  animation: gridDrift 24s linear infinite;
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 18% 30%, rgba(193, 125, 46, 0.45), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(125, 160, 193, 0.38), transparent 28%);
  filter: blur(46px);
  animation: auraFloat 16s var(--ease-smooth) infinite alternate;
}

.topbar {
  position: sticky;
  overflow: visible;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 260px minmax(340px, 680px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(157, 176, 196, 0.2);
  background: rgba(13, 22, 31, 0.78);
  backdrop-filter: blur(16px) saturate(120%);
  animation: topbarIn 0.64s var(--ease-swift);
  }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8e4f3;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.command-search {
  position: relative;
}

.command-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(180, 197, 215, 0.26);
  border-radius: 10px;
  background: rgba(247, 251, 255, 0.1);
  color: #f1f8ff;
  padding: 0 38px 0 38px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-swift), background var(--dur-fast) var(--ease-swift), box-shadow var(--dur-med) var(--ease-swift);
}

.command-search input:focus {
  border-color: rgba(193, 125, 46, 0.7);
  background: rgba(249, 252, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.command-search .left,
.command-search .right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(221, 232, 244, 0.74);
  font-size: 13px;
}

.command-search .left {
  left: 12px;
}

.command-search .right {
  right: 10px;
  font-size: 11px;
  border: 1px solid rgba(184, 201, 219, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  height: 36px;
  min-width: 36px;
  border: 1px solid rgba(173, 192, 211, 0.3);
  border-radius: 10px;
  background: rgba(243, 248, 255, 0.08);
  color: #e1ecf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-swift), transform 0.18s var(--ease-swift);
}

.icon-btn:hover {
  border-color: rgba(193, 125, 46, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.97);
}

.icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(13, 22, 31, 0.7);
  animation: badgePulse 2.2s ease-in-out infinite;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(173, 192, 211, 0.3);
  border-radius: 999px;
  color: #e3eef9;
  background: rgba(243, 248, 255, 0.08);
  font-size: 13px;
}

.user-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: linear-gradient(135deg, #9cb2c8, #5f758c);
  color: #fff;
  font-weight: 700;
}

.shell-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr 356px;
  gap: 12px;
  padding: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns var(--dur-slow) var(--ease-smooth);
}

.shell-grid.is-resizing {
  transition: none;
}

.single-screen-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100%;
  height: 100dvh;
  padding: 16px;
  }

.shell-grid.no-inspector {
  grid-template-columns: 280px 1fr 0;
}

.sidebar {
  border: 1px solid rgba(178, 195, 212, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    var(--glass);
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  animation: riseIn 0.34s var(--ease-swift);
}

.sidebar-top {
  padding: 14px;
  border-bottom: 1px solid rgba(175, 193, 212, 0.25);
}

.sidebar-top h2 {
  margin: 0 0 4px;
  color: rgba(220, 231, 244, 0.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(177, 194, 211, 0.3);
  border-radius: 10px;
  background: rgba(245, 250, 255, 0.1);
  color: #ecf5ff;
  padding: 0 10px;
}

.sidebar-meta {
  margin-top: 8px;
  color: rgba(197, 212, 227, 0.84);
  font-size: 12px;
  line-height: 1.4;
}

.nav-scroller {
  padding: 10px;
  overflow: auto;
}

.nav-header {
  margin: 4px 8px 8px;
  color: rgba(192, 208, 224, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
}

.nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 4px;
  color: rgba(232, 240, 250, 0.92);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: navItemIn var(--dur-slow) var(--ease-swift) forwards;
  transition: background var(--dur-fast) var(--ease-swift), border-color var(--dur-fast) var(--ease-swift), color var(--dur-fast) var(--ease-swift), transform var(--dur-med) var(--ease-swift), box-shadow var(--dur-med) var(--ease-swift);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(201, 219, 237, 0.16);
}

.nav-item:active {
  transform: translateX(1px) scale(0.99);
}

.nav-item.active {
  color: #fcefe0;
  border-color: rgba(211, 162, 99, 0.48);
  background: linear-gradient(90deg, rgba(193, 125, 46, 0.3), rgba(193, 125, 46, 0.12));
}

.nav-item .chip {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(182, 198, 214, 0.3);
  color: rgba(214, 227, 240, 0.72);
}

.nav-scroller .nav-item:nth-of-type(1) { animation-delay: 0.03s; }
.nav-scroller .nav-item:nth-of-type(2) { animation-delay: 0.05s; }
.nav-scroller .nav-item:nth-of-type(3) { animation-delay: 0.07s; }
.nav-scroller .nav-item:nth-of-type(4) { animation-delay: 0.09s; }
.nav-scroller .nav-item:nth-of-type(5) { animation-delay: 0.11s; }
.nav-scroller .nav-item:nth-of-type(6) { animation-delay: 0.13s; }
.nav-scroller .nav-item:nth-of-type(7) { animation-delay: 0.15s; }
.nav-scroller .nav-item:nth-of-type(8) { animation-delay: 0.17s; }
.nav-scroller .nav-item:nth-of-type(9) { animation-delay: 0.19s; }
.nav-scroller .nav-item:nth-of-type(10) { animation-delay: 0.21s; }
.nav-scroller .nav-item:nth-of-type(11) { animation-delay: 0.23s; }
.nav-scroller .nav-item:nth-of-type(12) { animation-delay: 0.25s; }
.nav-scroller .nav-item:nth-of-type(13) { animation-delay: 0.27s; }
.nav-scroller .nav-item:nth-of-type(14) { animation-delay: 0.29s; }
.nav-scroller .nav-item:nth-of-type(15) { animation-delay: 0.31s; }
.nav-scroller .nav-item:nth-of-type(16) { animation-delay: 0.33s; }

.main-pane,
.inspector {
  border: 1px solid rgba(178, 195, 212, 0.3);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-pane {
  padding: 14px;
  animation: riseIn var(--dur-slow) var(--ease-swift);
  transition: border-color var(--dur-fast) var(--ease-swift), box-shadow var(--dur-med) var(--ease-swift);
}

.single-screen-pane {
  min-height: 0;
  height: 100%;
  }

.auth-main {
  display: grid;
  place-items: center;
}

.single-screen-stage {
  min-height: 0;
  height: 100%;
  width: min(540px, 100%);
  display: grid;
  place-items: center;
  }

.auth-card {
  width: min(460px, 94vw);
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  }

.loading-card {
  width: min(640px, 94vw);
}

.auth-card svg {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.auth-error {
  color: #9a2f2f;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.inspector {
  padding: 14px;
  background: rgba(251, 253, 255, 0.95);
  animation: slideLeftIn var(--dur-slow) var(--ease-swift);
  min-width: 0;
  transition: opacity var(--dur-med) var(--ease-swift), transform var(--dur-med) var(--ease-swift), border-color var(--dur-med) var(--ease-swift);
  position: relative;
}

.inspector-resize-handle {
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 14px;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  touch-action: none;
}

.inspector-resize-handle::before {
  content: "";
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(82, 98, 114, 0.45), rgba(82, 98, 114, 0.85));
}

body.inspector-resizing {
  user-select: none;
}

.shell-grid.is-resizing .inspector {
  transition: none;
}

.inspector.hidden {
  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;
  border-color: transparent;
}

.inspector .inspector-block {
  animation: inspectorBlockIn var(--dur-slow) var(--ease-swift) forwards;
  animation-delay: calc(var(--stagger, 1) * 0.05s);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeftIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes inspectorBlockIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  animation: riseIn var(--dur-slow) var(--ease-swift);
}

.workspace-header h1 {
  margin: 0;
  color: #132332;
  font-size: 36px;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.workspace-subtitle {
  margin: 5px 0 0;
  color: var(--txt-2);
  font-size: 13px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  margin-bottom: 10px;
  transition: box-shadow var(--dur-med) var(--ease-swift), border-color var(--dur-fast) var(--ease-swift);
}

.toolbar:hover {
  border-color: #c8d8e8;
  box-shadow: 0 8px 20px rgba(18, 35, 51, 0.08);
}

.task-bulk-toolbar-shell {
  min-height: 44px;
  margin-bottom: 10px;
}

.task-bulk-toolbar {
  margin-bottom: 0;
}

.task-bulk-toolbar.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-2px);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 12px;
  color: #627587;
  font-weight: 600;
}

.select-all-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6f80;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.select-all-control input[type='checkbox'] {
  margin: 0;
}

.suppress-row-animations .table tbody tr {
  animation: none !important;
}

.btn,
.button {
  border: 1px solid #b6c5d4;
  background: #fff;
  color: #1d3244;
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease-swift), transform 0.18s var(--ease-swift), box-shadow var(--dur-med) var(--ease-swift);
}

.btn:hover,
.button:hover {
  border-color: #90a6bc;
  background: #f4f8fd;
  transform: translateY(-1px);
}

.btn:active,
.button:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary,
.button.primary {
  color: #fff;
  border-color: #163344;
  background: linear-gradient(180deg, #28495e, #19384b);
}

.btn.primary:hover,
.button.primary:hover {
  background: linear-gradient(180deg, #2e536a, #1f4359);
}

.btn.quick {
  color: #f4fbff;
  border-color: #1f3e53;
  background: linear-gradient(180deg, #2b5066, #1e3f53);
}

.btn.active-toggle {
  color: #6a4419;
  border-color: #d6af7a;
  background: linear-gradient(180deg, #f5e8d6, #efd9bb);
  box-shadow: 0 0 0 1px rgba(193, 125, 46, 0.15);
}

.btn.danger {
  color: #fff;
  border-color: #8a3a34;
  background: linear-gradient(180deg, #ab5349, #8f433c);
}

.input,
textarea,
select,
.text-input {
  border: 1px solid #bfd0e0;
  border-radius: 9px;
  padding: 7px 8px;
  background: #fff;
  color: #1b2a38;
  transition: border-color 0.2s var(--ease-swift), box-shadow 0.22s var(--ease-swift), transform 0.12s var(--ease-swift);
}

.input:focus,
textarea:focus,
select:focus,
.text-input:focus {
  border-color: rgba(193, 125, 46, 0.56);
  box-shadow: 0 0 0 3px rgba(193, 125, 46, 0.16);
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.table-wrap {
  border: 1px solid #dde6f0;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.table th,
.table td {
  border-bottom: 1px solid #e7edf4;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.table td input[type='checkbox'],
.toolbar input[type='checkbox'] {
  margin: 0;
}

.table th {
  color: #607385;
  background: #f7fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.table tbody tr:hover {
  background: #f1f7fc;
}

.table tbody tr {
  animation: rowIn var(--dur-slow) var(--ease-swift) forwards;
}

.table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.table tbody tr:nth-child(4) { animation-delay: 0.08s; }
.table tbody tr:nth-child(5) { animation-delay: 0.1s; }
.table tbody tr:nth-child(6) { animation-delay: 0.12s; }
.table tbody tr:nth-child(7) { animation-delay: 0.14s; }
.table tbody tr:nth-child(8) { animation-delay: 0.16s; }
.table tbody tr:nth-child(9) { animation-delay: 0.18s; }
.table tbody tr:nth-child(10) { animation-delay: 0.2s; }
.table tbody tr:nth-child(11) { animation-delay: 0.22s; }
.table tbody tr:nth-child(12) { animation-delay: 0.24s; }

.table tbody tr.task-focus-pop {
  animation: taskRowFocus 0.62s var(--ease-swift);
}

.table tbody tr.task-selected-row {
  background: #eaf3ff;
}

.table tbody tr.task-selected-row:hover {
  background: #dcebff;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge.not-started {
  border-color: #cad5e2;
  background: #edf2f8;
  color: #54677b;
}

.badge.in-progress {
  border-color: #dfbc8b;
  background: #f8ead7;
  color: #724b1e;
}

.badge.blocked {
  border-color: #d8a7a2;
  background: #f7e0de;
  color: #8b2f29;
}

.badge.waiting-on-vendor {
  border-color: #d9be97;
  background: #f7ecdd;
  color: #7c5a27;
}

.badge.completed {
  border-color: #9dc9b0;
  background: #dff0e7;
  color: #215d40;
}

.badge.not-applicable {
  border-color: #d6dce5;
  background: #f3f6f9;
  color: #697689;
}

.badge.high {
  border-color: #cf9692;
  background: #f4dddb;
  color: #883631;
}

.kanban-card.task-focus-pop,
.gantt-bar.task-focus-pop {
  animation: taskFocusPulse 0.62s var(--ease-swift);
}

.task-selected-card {
  border-color: #c7a370 !important;
  background: #fff8ee;
  box-shadow: 0 10px 20px rgba(128, 79, 15, 0.18);
}

.task-selected-gantt {
  border: 1px solid rgba(193, 125, 46, 0.55) !important;
  box-shadow: 0 8px 16px rgba(128, 79, 15, 0.25);
}

.gantt-select {
  display: inline-flex;
  margin-right: 6px;
}

.badge.medium {
  border-color: #d8be97;
  background: #f5ecdf;
  color: #72512a;
}

.badge.low {
  border-color: #aac1d6;
  background: #e1ecf7;
  color: #345a79;
}

.cards {
  display: grid;
  gap: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 10px;
}

.card {
  border: 1px solid #dce5ef;
  border-radius: 12px;
  padding: 11px;
  background: #fff;
  transition: transform 0.2s var(--ease-swift), box-shadow 0.24s var(--ease-swift), border-color 0.2s var(--ease-swift);
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c8d8e8;
  box-shadow: 0 10px 20px rgba(18, 35, 51, 0.08);
}

.card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #173043;
}

.card p {
  margin: 4px 0 0;
  color: #5d6f82;
  font-size: 13px;
}

.progress {
  margin-top: 8px;
  height: 9px;
  border: 1px solid #d3deea;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #be7728, #d79547);
  background-size: 200% 100%;
  transition: width 0.35s var(--ease-swift);
}

.progress:not(.complete) > span {
  animation: progressFlow 3.2s linear infinite;
}

.progress.complete > span {
  animation: glowPulse 1.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(193, 125, 46, 0);
  }
  50% {
    filter: brightness(1.12);
    box-shadow: 0 0 8px rgba(193, 125, 46, 0.5);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(193, 125, 46, 0);
  }
}

.small {
  color: #677c92;
  font-size: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row.wrap {
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
}

.empty {
  border: 1px dashed #c8d4e2;
  border-radius: 10px;
  background: #f9fbff;
  color: #5e7389;
  padding: 12px;
  animation: riseIn 0.26s var(--ease-swift);
}

.archive-banner {
  border: 1px solid #dfbe95;
  border-radius: 10px;
  color: #714c20;
  background: #fbf1e5;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.gantt-frame {
  border: 1px solid #dae5f0;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.gantt {
  min-width: 1020px;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.gantt-left,
.gantt-right {
  position: relative;
}

.gantt-left {
  border-right: 1px solid #dce6f1;
}

.gantt-axis {
  height: 34px;
  border-bottom: 1px solid #dce6f1;
  background: #f8fbff;
  position: sticky;
  top: 0;
  z-index: 3;
}

.gantt-left .gantt-axis {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  color: #607386;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.axis-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(52px, 1fr);
  height: 100%;
}

.axis-label {
  border-right: 1px solid #e5ecf4;
  font-size: 11px;
  color: #627588;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gantt-row,
.gantt-lane {
  height: 36px;
  border-bottom: 1px solid #e8eef5;
}

.gantt-row {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  color: #213648;
}

.gantt-row:nth-child(even),
.gantt-lane:nth-child(even) {
  background: #fbfdff;
}

.gantt-grid {
  position: relative;
}

.gantt-bar {
  position: absolute;
  top: 7px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, #375a73, #26455b);
  color: #f0f6ff;
  font-size: 11px;
  font-weight: 550;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease-swift), filter 0.18s var(--ease-swift), box-shadow 0.2s var(--ease-swift);
}

.gantt-bar:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(17, 38, 56, 0.22);
}

.gantt-bar.in-progress::after,
.gantt-bar.waiting-on-vendor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 80%);
  transform: translateX(-120%);
  animation: barSheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.gantt-bar.completed {
  background: linear-gradient(180deg, #4a8b66, #2f6c4a);
}

.gantt-bar.blocked {
  background: linear-gradient(180deg, #c15e56, #a2443d);
}

.gantt-bar.waiting-on-vendor {
  background: linear-gradient(180deg, #b78b47, #987238);
}

.gantt-assignee {
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #284258;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.gantt-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow), 0 0 16px var(--amber-glow);
  pointer-events: none;
  animation: nowPulse 2.4s ease-in-out infinite;
}

.dep-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
}

.kanban-col {
  border: 1px solid #dce7f2;
  border-radius: 10px;
  background: #fff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.kanban-head {
  border-bottom: 1px solid #e4ebf4;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #5f7387;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kanban-body {
  padding: 8px;
  display: grid;
  gap: 8px;
}

.kanban-card {
  border: 1px solid #dbe5ef;
  border-radius: 9px;
  padding: 8px;
  background: #fcfeff;
  cursor: pointer;
  transition: transform 0.18s var(--ease-swift), border-color 0.18s var(--ease-swift), box-shadow 0.22s var(--ease-swift);
}

.kanban-card:hover {
  transform: translateY(-1px);
  border-color: #b8cade;
  box-shadow: 0 8px 16px rgba(21, 40, 58, 0.08);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.step {
  border: 1px solid #c8d5e2;
  border-radius: 7px;
  background: #fff;
  color: #607286;
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.18s var(--ease-swift), transform 0.12s var(--ease-swift);
}

.step:hover {
  transform: translateY(-1px);
}

.step.done {
  background: #e2f0e8;
  border-color: #a7cab6;
  color: #235a3f;
}

.step.active {
  background: #f8ead5;
  border-color: #d9b585;
  color: #6e4a21;
}

.field {
  display: grid;
  gap: 4px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: #66798d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  margin-bottom: 12px;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #627588;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 7px 0;
  border-bottom: 1px solid #e7edf5;
}

.pill {
  border: 1px solid #d2deea;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #4d6478;
  font-size: 11px;
}

.activity-feed {
  border: 1px solid #dde7f1;
  border-radius: 10px;
  background: #fff;
  max-height: 260px;
  overflow: auto;
}

.activity-item {
  padding: 8px;
  border-bottom: 1px solid #e6edf5;
  animation: rowIn var(--dur-med) var(--ease-swift) forwards;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-feed .activity-item:nth-child(1) { animation-delay: 0.03s; }
.activity-feed .activity-item:nth-child(2) { animation-delay: 0.06s; }
.activity-feed .activity-item:nth-child(3) { animation-delay: 0.09s; }
.activity-feed .activity-item:nth-child(4) { animation-delay: 0.12s; }
.activity-feed .activity-item:nth-child(5) { animation-delay: 0.15s; }
.activity-feed .activity-item:nth-child(6) { animation-delay: 0.18s; }
.activity-feed .activity-item:nth-child(7) { animation-delay: 0.21s; }
.activity-feed .activity-item:nth-child(8) { animation-delay: 0.24s; }

.activity-item .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #627689;
  font-size: 11px;
}

.activity-item .body {
  margin-top: 3px;
  color: #2b4053;
  font-size: 13px;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7590aa, #49647d);
}

.avatar.small {
  width: 17px;
  height: 17px;
  font-size: 9px;
}

.inspector-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.02;
  color: #15293a;
  letter-spacing: -0.03em;
}

.inspector-empty {
  border: 1px dashed #c6d2e0;
  border-radius: 11px;
  padding: 12px;
  color: #627689;
  background: #fcfeff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: auto;
  background: rgba(8, 14, 21, 0.58);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  animation: backdropIn 0.28s var(--ease-swift);
}

.modal {
  width: min(860px, 94vw);
  max-height: 92vh;
  overflow: auto;
  pointer-events: auto;
  position: relative;
  border: 1px solid rgba(170, 188, 207, 0.35);
  border-radius: 14px;
  background: #fdfefe;
  box-shadow: 0 30px 80px rgba(4, 9, 14, 0.45);
  padding: 14px;
  animation: modalIn 0.36s var(--ease-swift);
}

.modal-backdrop.closing {
  pointer-events: none;
  animation: backdropOut 0.24s var(--ease-swift) forwards;
}

.modal-backdrop.closing .modal {
  animation: modalOut 0.24s var(--ease-swift) forwards;
}

.wizard-list {
  border: 1px solid #d8e3ee;
  border-radius: 11px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 7px;
}

.wizard-item {
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s var(--ease-swift), box-shadow 0.2s var(--ease-swift), transform 0.16s var(--ease-swift);
}

.wizard-item:hover {
  transform: translateY(-1px);
  border-color: #c6d7e8;
  box-shadow: 0 8px 14px rgba(20, 37, 55, 0.07);
}

.wizard-progress {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}

.wizard-page {
  display: grid;
  gap: 12px;
}

.wizard-page.wizard-static {
  animation: none;
}

.wizard-page.wizard-enter-next {
  animation: wizardSlideInNext 0.36s var(--ease-swift);
}

.wizard-page.wizard-enter-prev {
  animation: wizardSlideInPrev 0.36s var(--ease-swift);
}

.wizard-title {
  margin: 0;
  color: #193247;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.wizard-question {
  border: 1px solid #dbe7f2;
  border-radius: 11px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s var(--ease-swift), box-shadow 0.22s var(--ease-swift);
}

.wizard-question:hover {
  border-color: #c7d8e9;
  box-shadow: 0 9px 18px rgba(20, 37, 55, 0.06);
}

.wizard-question h4 {
  margin: 0;
  font-size: 14px;
  color: #29445a;
}

.wizard-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.wizard-choice {
  text-align: left;
  border: 1px solid #ccdae8;
  border-radius: 10px;
  background: #f8fbff;
  color: #22384b;
  cursor: pointer;
  padding: 9px 10px;
  transition: all 0.17s ease;
  display: grid;
  gap: 4px;
}

.wizard-choice:hover {
  border-color: #a9bfd4;
  transform: translateY(-1px);
}

.wizard-choice strong {
  font-size: 13px;
}

.wizard-choice span {
  font-size: 12px;
  color: #61778d;
}

.wizard-choice.active {
  border-color: #d09c5e;
  background: linear-gradient(180deg, #f8eddc, #f3dfc2);
  box-shadow: 0 0 0 1px rgba(193, 125, 46, 0.25);
}

.wizard-nav {
  margin-top: 12px;
}

.wizard-nav .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: min(360px, 82vw);
  border: 1px solid rgba(168, 188, 207, 0.35);
  border-radius: 12px;
  background: rgba(250, 253, 255, 0.97);
  box-shadow: 0 20px 45px rgba(6, 14, 22, 0.36);
  backdrop-filter: blur(8px);
  overflow: hidden;
  z-index: 220;
  animation: dropdownIn 0.26s var(--ease-swift);
}

.dropdown.closing {
  pointer-events: none;
  animation: dropdownOut 0.21s var(--ease-swift) forwards;
}

.dropdown-head {
  padding: 10px;
  border-bottom: 1px solid #e2eaf3;
  font-size: 12px;
  font-weight: 700;
  color: #5f7387;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e6edf5;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f1f7fe;
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(8, 14, 22, 0.58);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: start center;
  padding-top: 72px;
  animation: backdropIn 0.28s var(--ease-swift);
}

.palette-panel {
  width: min(760px, 92vw);
  border: 1px solid rgba(167, 186, 206, 0.35);
  border-radius: 14px;
  background: #fdfefe;
  box-shadow: 0 28px 80px rgba(4, 10, 16, 0.48);
  overflow: hidden;
  animation: modalIn 0.36s var(--ease-swift);
}

.palette.closing {
  pointer-events: none;
  animation: backdropOut 0.24s var(--ease-swift) forwards;
}

.palette.closing .palette-panel {
  animation: modalOut 0.24s var(--ease-swift) forwards;
}

.palette-search {
  padding: 10px;
  border-bottom: 1px solid #e2ebf4;
}

.palette-search input {
  width: 100%;
  border: 1px solid #becfe0;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 15px;
}

.palette-results {
  max-height: 420px;
  overflow: auto;
}

.palette-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  background: #fff;
  padding: 9px 10px;
  cursor: pointer;
}

.palette-item:hover {
  background: #f2f8ff;
}

.main-pane > .section {
  animation: sectionIn 0.56s var(--ease-swift) forwards;
}

.main-pane > .section:nth-of-type(1) { animation-delay: 0.04s; }
.main-pane > .section:nth-of-type(2) { animation-delay: 0.08s; }
.main-pane > .section:nth-of-type(3) { animation-delay: 0.12s; }
.main-pane > .section:nth-of-type(4) { animation-delay: 0.16s; }
.main-pane > .section:nth-of-type(5) { animation-delay: 0.2s; }

/* Prevent full-screen flash feeling from mount animations during routine rerenders. */
body.no-reflow-animations .topbar,
body.no-reflow-animations .sidebar,
body.no-reflow-animations .main-pane,
body.no-reflow-animations .inspector,
body.no-reflow-animations .workspace-header,
body.no-reflow-animations .table tbody tr,
body.no-reflow-animations .activity-item,
body.no-reflow-animations .main-pane > .section,
body.no-reflow-animations .nav-item,
body.no-reflow-animations .wizard-page {
  animation: none !important;
}

@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.46s;
    animation-timing-function: var(--ease-smooth);
  }

  ::view-transition-old(root) {
    animation-name: appFadeOut;
  }

  ::view-transition-new(root) {
    animation-name: appFadeIn;
  }
}

@keyframes ambientShift {
  from { filter: saturate(100%) brightness(100%); }
  to { filter: saturate(112%) brightness(103%); }
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(34px, -24px, 0); }
}

@keyframes auraFloat {
  from { transform: translate3d(-2%, 0, 0) scale(1.3); }
  to { transform: translate3d(2%, -1%, 0) scale(1.4); }
}

@keyframes topbarIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressFlow {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(13, 22, 31, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(13, 22, 31, 0.7), 0 0 12px rgba(193, 125, 46, 0.5);
  }
}

@keyframes nowPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes barSheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(140%); }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes wizardSlideInNext {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideInPrev {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes taskFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(193, 125, 46, 0);
  }
  35% {
    box-shadow: 0 0 0 2px rgba(193, 125, 46, 0.5), 0 14px 20px rgba(19, 36, 52, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(193, 125, 46, 0);
  }
}

@keyframes taskRowFocus {
  0% {
    background: #fffaf2;
  }
  100% {
    background: inherit;
  }
}

@keyframes appFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.996);
    filter: saturate(94%);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(100%);
  }
}

@keyframes appFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(100%);
  }
  to {
    opacity: 0.92;
    transform: translateY(-5px) scale(0.997);
    filter: saturate(93%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

@media (max-width: 1360px) {
  .shell-grid {
    grid-template-columns: 250px 1fr 320px;
  }

  .shell-grid.no-inspector {
    grid-template-columns: 250px 1fr 0;
  }

  .single-screen-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 220px minmax(280px, 1fr) auto;
  }

  .workspace-header h1 {
    font-size: 32px;
  }

  .inspector-title {
    font-size: 34px;
  }
}

@media (max-width: 1140px) {
  .shell-grid {
    grid-template-columns: 236px 1fr;
  }

  .shell-grid.no-inspector {
    grid-template-columns: 236px 1fr;
  }

  .single-screen-grid {
    grid-template-columns: 1fr;
  }

  .inspector {
    position: fixed;
    right: 10px;
    top: 86px;
    bottom: 10px;
    width: min(390px, 94vw);
    z-index: 28;
  }

  .inspector-resize-handle {
    display: none;
  }

  .topbar-actions .user-chip span {
    display: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-rows: auto 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .command-search .right {
    display: none;
  }

  .shell-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .shell-grid.no-inspector,
  .shell-grid.has-inspector {
    grid-template-columns: 1fr;
  }

  .single-screen-grid {
    grid-template-columns: 1fr;
    height: 100dvh;
    padding: 10px;
  }

  .single-screen-stage {
    width: min(540px, 100%);
  }

  .auth-card {
    width: min(460px, 100%);
    max-height: calc(100dvh - 20px);
  }

  .sidebar {
    min-height: auto;
  }

  .nav-scroller {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    white-space: nowrap;
    margin-right: 6px;
  }

  .main-pane {
    min-height: auto;
  }

  .grid-3,
  .grid-2,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .kanban {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

/* Round 6 visual and task-state cues */
.due-date { font-size: 12px; }
.due-date.overdue { color: #a12f2f; font-weight: 700; }
.due-date.due-soon { color: #9a5d00; font-weight: 700; }

.table tbody tr.overdue-task { background: #fff1f0; }
.table tbody tr.overdue-task:hover { background: #ffd8d1; }
.table tbody tr.due-soon-task { background: #fff8eb; }
.table tbody tr.due-soon-task:hover { background: #ffefd0; }
.table tbody tr.dependency-task { border-left: 3px solid #d4a15c; background: #fdf5e8; }
.table tbody tr.dependency-task:hover { background: #f9e9d0; }
.table tbody tr.overdue-task .due-date,
.table tbody tr.due-soon-task .due-date {
  font-weight: 700;
}

.overdue-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding: 2px 8px;
  border: 1px solid #f2b4a9;
  border-radius: 999px;
  background: #fff1ee;
  color: #9a2f27;
  font-size: 11px;
  font-weight: 700;
}

.dependency-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d5a26a;
  background: #fff4e5;
  color: #8b5a28;
  margin-left: 4px;
  font-size: 11px;
  line-height: 1;
}

.dependency-warning-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #7a5924;
}

.kanban-card.dependency-task {
  border-left: 3px solid #d4a15c;
}
.kanban-card.overdue-task {
  border-left: 3px solid #c94e43;
}
.kanban-card.due-soon-task {
  border-left: 3px solid #c79636;
}

.gantt-bar.not-started {
  background: linear-gradient(180deg, #4a90d9, #2f72bb);
}

.gantt-bar.in-progress {
  background: linear-gradient(180deg, #1a7a45, #15673b);
}

.gantt-bar.pending {
  background: linear-gradient(180deg, #c88c3a, #a87430);
}

.gantt-bar.dependency-conflict {
  box-shadow: inset 0 0 0 2px rgba(209, 120, 50, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.gantt-conflict-warning {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffedd8;
  color: #9a4e07;
  border: 1px solid #d9a15a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}
.gantt-bar.overdue-task {
  outline: 1.5px solid #c84d45;
}

.task-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.overdue-pill {
  color: #7d2d22;
  background: #ffdfd9;
  border-color: #f2bbb3;
}
.kanban-col-empty {
  opacity: 0.72;
}

.kanban-col-empty .small {
  color: #7f95ab;
}




