@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --ink: #121a2d;
  --ink-2: #1b2740;
  --paper: #f3f5f7;
  --card: #ffffff;
  --line: #dbe0e7;
  --muted: #6b7486;
  --lime: #c7f36b;
  --violet: #705cf6;
  --coral: #ff6b57;
  --cyan: #56d3dd;
  --shadow: 0 12px 30px rgba(20, 31, 53, .07);
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 79% 3%, rgba(112, 92, 246, .08), transparent 27rem),
    var(--paper);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  min-width: 320px;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid #5bd4e0;
  outline-offset: 3px;
}

.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;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 248px;
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
  color: #f8fbff;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .13em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  background: var(--lime);
  transform: skew(-8deg);
}

.brand-mark i { width: 4px; background: var(--ink); display: block; }
.brand-mark i:nth-child(1) { height: 9px; margin-top: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; margin-top: 4px; }

.team-switcher {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
}

.team-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #ff8e79;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.team-switcher span { display: block; color: #8e9ab1; font-size: 9px; letter-spacing: .16em; }
.team-switcher strong { display: block; margin-top: 2px; font-size: 14px; }

.nav-list { margin-top: 31px; display: grid; gap: 5px; }

.nav-item {
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b5bed0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 520;
}

.nav-item svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-item.active { color: white; background: var(--ink-2); }
.nav-item.active::before { content: ""; position: absolute; left: 22px; width: 3px; height: 22px; background: var(--lime); }
.nav-item > span { margin-left: auto; min-width: 24px; padding: 3px 6px; border-radius: 10px; color: var(--ink); background: var(--lime); text-align: center; font-size: 11px; font-weight: 700; }
.nav-item.muted { opacity: .7; }

.sidebar-note {
  margin-top: auto;
  padding: 17px 14px;
  display: flex;
  gap: 11px;
  background: #172139;
  border-left: 2px solid var(--cyan);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-note strong { color: white; font-size: 12px; }
.sidebar-note span:not(.pulse-dot) { color: #93a0b6; }
.pulse-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(86,211,221,.12); }

.profile {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.profile strong, .profile span { display: block; }
.profile span { color: #7f8ba1; font-size: 10px; }

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #dce2eb;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.avatar-lime { background: var(--lime); }

.main-content { margin-left: 248px; padding: 44px 48px 64px; }
.mobile-header { display: none; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: #697387;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
}

.eyebrow span { display: inline-block; width: 21px; height: 2px; margin: 0 8px 3px 0; background: var(--violet); }

h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(45px, 4.2vw, 65px);
  line-height: .98;
  font-weight: 550;
  letter-spacing: -.035em;
}

.hero-copy { margin: 13px 0 0; color: var(--muted); font-size: 15px; }

.date-card {
  width: 154px;
  min-height: 81px;
  display: grid;
  grid-template: auto auto / 1fr 1fr;
  align-items: center;
  color: #fff;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--lime);
  padding: 12px 16px;
}

.date-card span { grid-column: 1 / -1; color: #99a5b9; font-size: 9px; letter-spacing: .16em; }
.date-card strong { grid-row: 2; font-family: "Oswald", sans-serif; font-size: 37px; line-height: 1; }
.date-card small { align-self: end; padding-bottom: 4px; color: #ced5e1; font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .08em; }

.status-strip {
  max-width: 1120px;
  margin: 34px auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-strip > div { min-height: 76px; padding: 13px 20px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.status-strip > div:last-child { border-right: 0; }
.metric-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-weight: 600; }
.todo-icon { color: #715df6; background: #ebe8ff; }
.progress-icon { color: #966500; background: #fff1bd; }
.blocked-icon { color: #cf3c2a; background: #ffe3dd; }
.done-icon { color: #087a83; background: #d9f6f7; }
.status-strip p { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.status-strip strong { font-family: "Oswald", sans-serif; font-size: 27px; font-weight: 560; }
.status-strip small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.queue { max-width: 1120px; margin: 0 auto; }
.queue-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 17px; }
.section-kicker { margin-bottom: 4px; color: var(--violet); }
h2 { margin: 0; font-family: "Oswald", sans-serif; font-size: 27px; font-weight: 540; }
h2 span { display: inline-grid; place-items: center; min-width: 24px; height: 21px; margin-left: 5px; vertical-align: 4px; color: #667087; background: #e3e6ec; border-radius: 11px; font-family: "Work Sans", sans-serif; font-size: 10px; }

.controls { display: flex; gap: 9px; }
.search-wrap, .filter-wrap { position: relative; display: flex; align-items: center; height: 42px; background: white; border: 1px solid #ccd2dc; }
.search-wrap { width: 255px; }
.search-wrap svg { position: absolute; left: 13px; width: 18px; fill: none; stroke: #7a8496; stroke-width: 1.8; }
.search-wrap input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 52px 0 40px; color: var(--ink); background: transparent; }
.search-wrap input::placeholder { color: #8992a2; }
.search-wrap:focus-within, .filter-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(112,92,246,.13); }
.search-wrap kbd { position: absolute; right: 10px; padding: 3px 5px; color: #7d8696; background: #f0f2f5; border: 1px solid #dfe3e9; border-radius: 3px; font-family: inherit; font-size: 9px; }
.filter-wrap select { width: 143px; height: 100%; padding: 0 36px 0 13px; appearance: none; border: 0; outline: 0; color: #3d4657; background: transparent; font-size: 13px; }
.filter-wrap svg { position: absolute; right: 11px; width: 17px; fill: none; stroke: #737d8e; stroke-width: 1.7; pointer-events: none; }

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

.task-card {
  position: relative;
  min-width: 0;
  min-height: 156px;
  padding: 20px 20px 17px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--status-color);
  box-shadow: 0 3px 10px rgba(20, 31, 53, .025);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.task-card:hover { transform: translateY(-2px); border-color: #bdc5d1; box-shadow: 0 12px 23px rgba(20,31,53,.08); }
.task-card[data-status="todo"] { --status-color: var(--violet); }
.task-card[data-status="in-progress"] { --status-color: #efb52c; }
.task-card[data-status="blocked"] { --status-color: var(--coral); }
.task-card[data-status="done"] { --status-color: var(--cyan); }

.card-top { display: flex; align-items: center; gap: 7px; padding-right: 42px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; color: #596376; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status-color); }
.priority-pill { padding: 3px 6px; color: #8b5d00; background: #fff4ce; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.priority-pill.low { color: #637085; background: #edf0f4; }
.priority-pill.medium { color: #655795; background: #eeebfc; }

.open-item {
  position: absolute;
  right: 15px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #657087;
  background: #f3f5f8;
  border: 0;
  border-radius: 50%;
  transition: color .15s, background .15s, transform .15s;
}
.open-item:hover { color: white; background: var(--violet); transform: translate(2px, -2px); }
.open-item svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.task-card h3 { margin: 14px 40px 9px 0; font-size: 16px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
.card-meta { margin-top: auto; display: flex; align-items: center; color: #7a8495; font-size: 10px; }
.card-meta .avatar { width: 24px; height: 24px; margin-right: 7px; color: #303a4e; background: #e5e9ef; font-size: 8px; }
.card-meta strong { margin-right: 6px; color: #4e586b; font-weight: 540; }
.meta-separator { width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: #bac1cd; }
.comment-count { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.comment-count svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.overdue { color: #d44b39; font-weight: 600; }

.empty-state { padding: 70px 20px; text-align: center; background: white; border: 1px dashed #bdc5d1; }
.empty-mark { width: 47px; height: 47px; margin: 0 auto 15px; display: grid; place-items: center; color: var(--violet); background: #ece9ff; border-radius: 50%; font-family: "Oswald", sans-serif; font-size: 24px; }
.empty-state h3 { margin: 0; font-family: "Oswald", sans-serif; font-size: 24px; }
.empty-state p { margin: 7px 0 20px; color: var(--muted); }
.empty-state button, .detail-close-bottom { padding: 10px 15px; color: white; background: var(--ink); border: 0; font-weight: 600; }

dialog {
  width: min(570px, 100%);
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--ink);
  background: white;
  border: 0;
  box-shadow: -20px 0 55px rgba(6, 12, 25, .24);
  transform: translateX(0);
}

dialog::backdrop { background: rgba(9, 15, 28, .62); backdrop-filter: blur(2px); }

.detail-shell { min-height: 100%; display: flex; flex-direction: column; }
.detail-band { height: 8px; background: var(--detail-color); }
.detail-head { padding: 25px 38px 27px; border-bottom: 1px solid var(--line); }
.detail-head-top { display: flex; align-items: center; justify-content: space-between; }
.detail-id { color: #7d8797; font-family: "Oswald", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.close-detail { width: 39px; height: 39px; display: grid; place-items: center; color: #596376; background: #f1f3f6; border: 0; border-radius: 50%; }
.close-detail:hover { color: white; background: var(--ink); }
.close-detail svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.detail-head h2 { max-width: 450px; margin-top: 24px; font-family: "Oswald", sans-serif; font-size: 38px; line-height: 1.12; letter-spacing: -.025em; }
.detail-project { display: inline-block; margin-top: 15px; padding: 5px 8px; color: #4f5b71; background: #edf0f4; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

.detail-body { flex: 1; padding: 30px 38px 40px; }
.status-field { padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--ink); color: white; }
.status-field label { font-size: 12px; font-weight: 600; }
.status-field label span { display: block; margin-top: 3px; color: #929db1; font-size: 10px; font-weight: 400; }
.status-select-wrap { position: relative; }
.status-select-wrap select { min-width: 150px; height: 40px; padding: 0 35px 0 12px; appearance: none; color: var(--ink); background: var(--lime); border: 0; font-size: 12px; font-weight: 700; }
.status-select-wrap svg { position: absolute; right: 11px; top: 12px; width: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; pointer-events: none; }

.save-feedback { min-height: 21px; padding-top: 8px; color: #17818a; font-size: 11px; text-align: right; opacity: 0; }
.save-feedback.visible { opacity: 1; }
.detail-section-label { margin: 21px 0 10px; color: #7b8597; font-family: "Oswald", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.detail-copy { margin: 0; color: #3c4658; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.detail-facts { margin-top: 29px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.detail-fact { min-height: 76px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-fact:nth-child(2n) { border-right: 0; }
.detail-fact:nth-last-child(-n+2) { border-bottom: 0; }
.detail-fact span { display: block; margin-bottom: 6px; color: #8a93a3; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.detail-fact strong { font-size: 13px; font-weight: 580; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { margin: 0; padding: 5px 8px; color: #6253b5; background: #eeebff; font-size: 10px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.detail-actions { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; }
.detail-actions p { margin: 0; color: #7c8696; font-size: 11px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  padding: 11px 16px;
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(8,13,25,.3);
  font-size: 12px;
  font-weight: 600;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .sidebar { width: 205px; padding-left: 16px; padding-right: 16px; }
  .main-content { margin-left: 205px; padding: 35px 28px 50px; }
  .task-grid { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .status-strip > div:nth-child(2) { border-right: 0; }
  .status-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .queue-heading-row { align-items: stretch; flex-direction: column; }
  .controls { width: 100%; }
  .search-wrap { flex: 1; }
}

@media (max-width: 680px) {
  body { background: var(--paper); }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 0 16px 40px; }
  .mobile-header { height: 68px; margin: 0 -16px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--ink); }
  .mobile-header .brand { font-size: 17px; }
  .mobile-header .brand-mark { width: 28px; height: 28px; }
  .hero { padding-top: 29px; align-items: flex-start; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: 45px; }
  .hero-copy { max-width: 250px; font-size: 13px; line-height: 1.5; }
  .date-card { width: 72px; min-height: 75px; padding: 8px 10px; display: block; box-shadow: 4px 4px 0 var(--lime); text-align: center; }
  .date-card span { display: none; }
  .date-card strong { display: block; font-size: 34px; }
  .date-card small { font-size: 9px; }
  .status-strip { margin: 29px 0 34px; grid-template-columns: repeat(4, 1fr); }
  .status-strip > div { min-height: 70px; padding: 9px 5px; display: block; text-align: center; border-bottom: 0 !important; }
  .status-strip > div:nth-child(2) { border-right: 1px solid var(--line); }
  .metric-icon { width: 25px; height: 25px; margin: 0 auto 4px; font-size: 14px; }
  .status-strip p { display: block; }
  .status-strip strong { display: block; font-size: 20px; line-height: 1; }
  .status-strip small { font-size: 8px; }
  .queue-heading-row { margin-bottom: 15px; gap: 15px; }
  h2 { font-size: 25px; }
  .controls { flex-direction: column; gap: 8px; }
  .search-wrap, .filter-wrap, .filter-wrap select { width: 100%; }
  .search-wrap, .filter-wrap { height: 45px; }
  .task-grid { gap: 10px; }
  .task-card { min-height: 146px; padding: 17px 16px 15px; }
  .task-card h3 { margin-top: 12px; font-size: 15px; }
  .card-meta { font-size: 9px; }
  .card-meta .avatar { display: none; }
  .comment-count { margin-left: auto; }
  dialog { width: 100%; }
  .detail-head { padding: 18px 21px 22px; }
  .detail-head h2 { margin-top: 18px; font-size: 31px; }
  .detail-body { padding: 21px 20px 32px; }
  .status-field { padding: 14px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .status-select-wrap, .status-select-wrap select { width: 100%; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-fact { border-right: 0; }
  .detail-fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
