@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

:root {
  --bg-main: #f0ecf8;
  --ink: #1f2633;
  --ink-soft: #627088;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(86, 102, 123, 0.24);
  --line-soft: rgba(86, 102, 123, 0.15);
  --accent: #1d66d8;
  --accent-2: #ec5f66;
  --ok: #1f8f63;
  --warn: #ab5b1f;
  --danger: #bf3144;
  --shadow-lg: 0 24px 48px rgba(24, 38, 62, 0.16);
  --shadow-sm: 0 12px 24px rgba(24, 38, 62, 0.1);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #efe9fb 0%, #f8f2e9 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-a {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, #f5a7bf 0%, transparent 72%);
}

.glow-b {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, #a8c5ff 0%, transparent 72%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 1.6rem));
  margin: 1rem auto 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  margin: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #4f7de5 0%, #6d5de6 100%);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-date {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.view-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(235, 239, 248, 0.85);
  border: 1px solid var(--line-soft);
}

.view-btn {
  border: none;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  background: transparent;
  color: #425165;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.view-btn.is-active {
  background: #fff;
  color: #1d2836;
  box-shadow: 0 6px 12px rgba(26, 39, 60, 0.12);
}

.view-stage {
  position: relative;
  min-height: 670px;
}

.view-panel {
  display: none;
  border-radius: 34px;
  padding: 1px;
  box-shadow: var(--shadow-lg);
}

.view-panel.is-active {
  display: block;
}

.view-overview {
  background: linear-gradient(145deg, #8aa8f0 0%, #9a91ec 45%, #f09aa4 100%);
}

.view-capture {
  background: linear-gradient(145deg, #81a8f1 0%, #7e87f0 44%, #958dec 100%);
}

.view-queue {
  background: linear-gradient(145deg, #f08e8d 0%, #f4879b 45%, #f1b18e 100%);
}

.view-execute {
  background: linear-gradient(145deg, #f4b06c 0%, #f8be77 44%, #f2a66d 100%);
}

.view-inner {
  border-radius: 33px;
  min-height: 668px;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.93) 0%, rgba(250, 251, 255, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.hero h1 {
  margin: 0.12rem 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.48rem, 3vw, 2.4rem);
  line-height: 1.06;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  font-size: 0.7rem;
  color: #4969a2;
}

.subtitle {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

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

.stat-card {
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--surface-strong);
  padding: 0.75rem;
}

.stat-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-weight: 700;
}

.stat-value {
  margin: 0.3rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.promise-strip {
  margin-top: auto;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.68rem 0.8rem;
  color: #445570;
  font-size: 0.86rem;
}

.promise-strip p {
  margin: 0;
}

.panel-head {
  display: grid;
  gap: 0.2rem;
}

.panel-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #495f86;
  font-weight: 800;
}

.panel-head h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.28rem;
}

.panel-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.stack {
  display: grid;
  gap: 0.65rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span {
  font-size: 0.76rem;
  color: #4b5b71;
  font-weight: 700;
}

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

textarea,
input,
select {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.54rem 0.6rem;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #4f7de5;
  box-shadow: 0 0 0 4px rgba(79, 125, 229, 0.2);
}

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

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

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 11px;
  padding: 0.5rem 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, #3970e1 0%, #5b5ee7 100%);
}

.btn-ghost {
  color: #35455b;
  background: #fff;
  border: 1px solid var(--line);
}

.btn-small {
  font-size: 0.8rem;
  padding: 0.4rem 0.68rem;
}

.voice-box {
  border: 1px solid rgba(60, 107, 193, 0.3);
  border-radius: 14px;
  background: rgba(227, 236, 255, 0.68);
  padding: 0.72rem;
}

.voice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.voice-head h3 {
  margin: 0;
  font-size: 0.9rem;
}

.inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #40536c;
}

.inline-option input {
  margin: 0;
}

.status-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #3d5678;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.filter-group {
  display: inline-flex;
  gap: 0.18rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(237, 241, 249, 0.92);
}

.filter-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #495a72;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.34rem 0.7rem;
  cursor: pointer;
}

.filter-btn.is-active {
  background: #fff;
  color: #1f2c3d;
  box-shadow: 0 5px 11px rgba(24, 37, 59, 0.14);
}

.focus-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lane {
  display: grid;
  gap: 0.45rem;
}

.lane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.lane-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.lane-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.task-list {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  max-height: 440px;
  overflow: auto;
  padding-right: 0.15rem;
}

.task-card {
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 8px 16px rgba(24, 38, 62, 0.08);
  padding: 0.65rem;
  display: grid;
  gap: 0.48rem;
}

.task-card.tier-high {
  box-shadow: 0 10px 18px rgba(238, 111, 127, 0.16);
}

.task-card.tier-medium {
  box-shadow: 0 10px 18px rgba(80, 122, 210, 0.12);
}

.task-card.due-overdue {
  border-color: rgba(191, 49, 68, 0.5);
}

.task-card.due-today {
  border-color: rgba(171, 91, 31, 0.45);
}

.task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.45rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #f2f5fa;
  color: #44546b;
  padding: 0.14rem 0.44rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-status-done {
  background: #e2f4ea;
  color: #245f44;
}

.badge-assignee-tre {
  background: #e5efff;
  color: #2f4d8b;
}

.badge-assignee-jayden {
  background: #efe8ff;
  color: #574096;
}

.badge-assignee-micah {
  background: #e8f8ef;
  color: #2c6b46;
}

.badge-assignee-unassigned {
  background: #f2f4f8;
  color: #4f5d72;
}

.badge-requested-by-steph {
  background: #ffe9ef;
  color: #92364c;
}

.badge-requested-by-tre {
  background: #e8f1ff;
  color: #395985;
}

.badge-due-overdue {
  background: #ffe7ec;
  color: #8b2332;
}

.badge-due-today {
  background: #ffecd8;
  color: #8b4919;
}

.task-score {
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(58, 96, 168, 0.3);
  background: rgba(227, 236, 255, 0.72);
  color: #335389;
  padding: 0.18rem 0.46rem;
}

.task-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.task-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #5d6c83;
}

.task-meta span {
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #f7f9fd;
  padding: 0.12rem 0.4rem;
}

.task-card textarea {
  min-height: 52px;
  resize: vertical;
}

.task-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.task-controls label {
  display: grid;
  gap: 0.18rem;
  font-size: 0.69rem;
  color: #4f5f75;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.btn-soft {
  border: 1px solid var(--line-soft);
  background: #f3f6fb;
  color: #2f3f55;
  border-radius: 9px;
  padding: 0.32rem 0.54rem;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-soft.is-critical {
  border-color: rgba(167, 44, 63, 0.34);
  color: #8a2635;
  background: #fff1f4;
}

.compact .task-controls,
.compact .task-card textarea {
  display: none;
}

.compact .task-actions {
  justify-content: flex-end;
}

.compact-title {
  font-size: 0.86rem;
}

.compact-card .subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.compact-meta {
  font-size: 0.68rem;
}

.empty-state {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(83, 101, 123, 0.46);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  text-align: center;
  padding: 0.72rem;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .view-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .view-btn {
    text-align: center;
    padding-inline: 0.35rem;
  }

  .view-stage,
  .view-inner {
    min-height: 0;
  }

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

  .grid-2,
  .grid-3,
  .task-controls {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .voice-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-list {
    max-height: none;
  }
}
