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

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

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #071b2d;
  --ink-raised: #0d2941;
  --paper: #f2f3ec;
  --paper-bright: #fbfbf5;
  --paper-deep: #e9ebe2;
  --text: #12232f;
  --muted: #53636a;
  --muted-light: #788790;
  --line: #c9cec4;
  --line-strong: #aeb6ab;
  --line-dark: rgba(242, 243, 236, 0.16);
  --lime: #d8ff3f;
  --cobalt: #2b4bff;
  --orange: #ff6238;
  --focus: #2b4bff;
  --todo-bg: #dbe5f6;
  --todo-ink: #19304c;
  --todo-rail: #2b4bff;
  --progress-bg: #e5ff8c;
  --progress-ink: #202a02;
  --progress-rail: #9dc800;
  --blocked-bg: #ff6a3d;
  --blocked-ink: #1c0a04;
  --blocked-rail: #ff6238;
  --done-bg: #dde3dc;
  --done-ink: #41534a;
  --done-rail: #91a096;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

html {
  background: var(--ink);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 84% 10%, rgba(43, 75, 255, 0.2), transparent 29rem),
    linear-gradient(rgba(242, 243, 236, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 243, 236, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 80px 80px, 80px 80px, auto;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.detail-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.masthead :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--lime);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  border: 2px solid var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(1328px, calc(100% - 48px));
  margin: 0 auto;
}

/* Masthead */

.masthead {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--lime);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.62);
  white-space: nowrap;
}

.desk-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.64);
  white-space: nowrap;
}

.desk-label span {
  color: var(--lime);
  padding: 0 4px;
}

.desk-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.cycle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.7);
  white-space: nowrap;
}

.crew {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.crew-avatar {
  width: 26px;
  height: 26px;
  margin-left: -7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.crew-avatar:nth-child(3n + 1) {
  background: var(--lime);
}

.crew-avatar:nth-child(3n + 2) {
  background: #dbe5f6;
}

.crew-avatar:nth-child(3n) {
  background: #ffd8c9;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.78fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
  padding: clamp(42px, 5.5vw, 72px) 0 clamp(38px, 4.6vw, 62px);
}

.hero-main {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(242, 243, 236, 0.7);
}

.eyebrow-dark {
  color: #46575e;
}

.eyebrow-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 63, 0.12);
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero-title-small {
  display: block;
  margin-bottom: 0.15em;
  padding-left: 0.06em;
  color: var(--paper);
  font-size: clamp(31px, 3.3vw, 48px);
  line-height: 1;
  letter-spacing: 0.14em;
}

.hero-title-large {
  display: block;
  color: var(--lime);
  font-size: clamp(92px, 11.25vw, 160px);
  line-height: 0.77;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid var(--line-dark);
  min-width: 0;
}

.hero-note {
  margin: 0;
  max-width: 36ch;
  color: rgba(242, 243, 236, 0.76);
  font-size: 15px;
  line-height: 1.55;
}

.queue-index {
  border-top: 1px solid rgba(242, 243, 236, 0.45);
}

.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(242, 243, 236, 0.64);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.index-now {
  color: var(--lime);
}

.index-list {
  margin: 0;
}

.index-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(84px, 0.72fr);
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(242, 243, 236, 0.08);
}

.index-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(242, 243, 236, 0.8);
  font-size: 12px;
}

.index-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--todo-rail);
}

.index-row[data-status="in-progress"] .index-dot {
  background: var(--progress-rail);
}

.index-row[data-status="blocked"] .index-dot {
  background: var(--blocked-rail);
}

.index-row[data-status="done"] .index-dot {
  background: var(--done-rail);
}

.index-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-track {
  height: 3px;
  flex: 1;
  background: rgba(242, 243, 236, 0.1);
  overflow: hidden;
}

.index-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--todo-rail);
  transition: width 300ms var(--ease);
}

.index-row[data-status="in-progress"] .index-fill {
  background: var(--lime);
}

.index-row[data-status="blocked"] .index-fill {
  background: var(--orange);
}

.index-row[data-status="done"] .index-fill {
  background: #9bac9f;
}

.index-count {
  min-width: 20px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.index-foot {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.55);
}

.index-foot span {
  color: var(--lime);
}

/* Workspace */

.workspace {
  position: relative;
  margin: 0 0 42px;
  padding: 0 clamp(20px, 3vw, 38px) 22px;
  background: var(--paper);
  color: var(--text);
  border-radius: 3px;
  overflow: hidden;
}

.signal-stripe {
  height: 9px;
  margin: 0 calc(clamp(20px, 3vw, 38px) * -1);
  background: repeating-linear-gradient(
    135deg,
    var(--lime) 0,
    var(--lime) 11px,
    var(--ink) 11px,
    var(--ink) 14px,
    transparent 14px,
    transparent 25px
  );
  border-bottom: 1px solid var(--ink);
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(500px, 1.18fr);
  gap: 34px;
  align-items: end;
  padding: 29px 0 24px;
}

.workspace-intro {
  min-width: 0;
}

.workspace-intro h2 {
  margin: 7px 0 4px;
  font-family: var(--display);
  font-size: clamp(36px, 3.7vw, 50px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.workspace-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.workspace-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 166px auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label,
.status-editor label {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #46575e;
}

.input-shell,
.select-shell {
  position: relative;
}

.input-shell input,
.select-shell select {
  width: 100%;
  height: 47px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--paper-bright);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.2;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.input-shell input {
  padding: 0 14px 0 40px;
}

.input-shell input::placeholder {
  color: #5f6f74;
  opacity: 1;
}

.input-shell input:hover,
.select-shell select:hover {
  border-color: #6f7d7d;
  background-color: #fffef8;
}

.input-shell input:focus,
.select-shell select:focus {
  border-color: var(--ink);
  background-color: #fffef8;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: none;
  stroke: #44565d;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 36px 0 13px;
  cursor: pointer;
}

.reset-button {
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.reset-button:hover {
  background: var(--lime);
  color: var(--ink);
}

.reset-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0 12px;
  border-top: 2px solid var(--ink);
}

.result-summary {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #384a51;
}

.key-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #53636a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 1px solid #b2bab0;
  border-radius: 2px;
  background: #fafaf3;
  color: #384a51;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 1px 0 #b2bab0;
}

/* Task groups and rows */

.task-list {
  border-top: 1px solid var(--line);
}

.task-group + .task-group {
  border-top: 2px solid var(--ink);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 8px 4px 8px 0;
}

.group-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}

.group-number {
  color: #829095;
}

.group-count {
  min-width: 21px;
  display: inline-grid;
  place-items: center;
  padding: 2px 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  line-height: 1.4;
}

.group-note {
  margin: 0 0 0 auto;
  color: #6b797d;
  font-size: 11px;
  line-height: 1.4;
}

.task-row {
  position: relative;
  border-top: 1px solid var(--line);
  background: transparent;
}

.task-row:first-of-type {
  border-top: 1px solid var(--line);
}

.status-rail {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--todo-rail);
}

.task-row[data-status="in-progress"] .status-rail {
  background: var(--progress-rail);
}

.task-row[data-status="blocked"] .status-rail {
  background: var(--blocked-rail);
}

.task-row[data-status="done"] .status-rail {
  background: var(--done-rail);
}

.open-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns:
    40px minmax(180px, 1fr) minmax(72px, 0.42fr) minmax(124px, 0.55fr)
    68px 106px 34px;
  align-items: center;
  gap: clamp(9px, 1.25vw, 18px);
  padding: 13px 11px 13px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.open-item:hover {
  background: var(--paper-bright);
}

.open-item:active {
  background: var(--paper-deep);
}

.task-row:has(.open-item[aria-expanded="true"]) {
  background: #eef2e5;
}

.open-item:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.row-index {
  color: #7b8a8e;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.row-body {
  display: block;
  min-width: 0;
}

.row-title {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 580;
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.open-item:hover .row-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.row-sub {
  display: none;
  margin-top: 5px;
  color: #53636a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.row-project,
.row-owner,
.row-due {
  min-width: 0;
  color: #4c5e64;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.row-project {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.avatar {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bbc3b9;
  border-radius: 50%;
  background: #fffdf4;
  color: #253942;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-due {
  color: #394d54;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill[data-status="in-progress"] {
  background: var(--progress-bg);
  color: var(--progress-ink);
}

.status-pill[data-status="blocked"] {
  background: var(--blocked-bg);
  color: var(--blocked-ink);
}

.status-pill[data-status="done"] {
  background: var(--done-bg);
  color: var(--done-ink);
}

.row-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #c4cbc1;
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.row-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-item:hover .row-arrow {
  background: var(--lime);
  border-color: var(--ink);
  transform: translateX(2px);
}

/* Empty and loading states */

.loading-state {
  padding: 32px 0;
  display: grid;
  gap: 13px;
}

.loading-line {
  display: block;
  height: 38px;
  background: linear-gradient(
    90deg,
    rgba(18, 35, 47, 0.06),
    rgba(18, 35, 47, 0.12),
    rgba(18, 35, 47, 0.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.empty-state {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-height: 255px;
  padding: 52px 0 46px;
  border-top: 1px solid var(--line);
}

.empty-index {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.empty-index::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}

.empty-slash {
  display: block;
  width: 5px;
  height: 67px;
  margin-top: 5px;
  background: var(--orange);
  transform: rotate(26deg);
}

.empty-state h3 {
  margin: 8px 0 9px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
}

.empty-state > div > p:not(.eyebrow) {
  margin: 0;
  max-width: 52ch;
  color: #53646a;
  font-size: 14px;
  line-height: 1.55;
}

.load-error {
  margin: 0;
  padding: 38px 0 44px;
  color: #53646a;
  font-size: 15px;
  line-height: 1.55;
}

.empty-reset {
  margin-top: 20px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.empty-reset:hover {
  background: var(--lime);
  color: var(--ink);
}

.empty-reset svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #637176;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.workspace-foot p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-mark {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--lime);
  border: 1px solid #8fa21e;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 34px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.48);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: rgba(242, 243, 236, 0.82);
}

.footer-brand span {
  color: var(--lime);
  padding: 0 5px;
}

.footer-cycle {
  text-align: right;
}

/* Detail drawer */

.detail-dialog {
  width: min(558px, 100vw);
  max-width: 558px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  overflow: hidden;
}

.detail-dialog::backdrop {
  background: rgba(3, 13, 23, 0.71);
  backdrop-filter: blur(3px);
}

.detail-dialog[open] {
  animation: drawer-in 260ms var(--ease) both;
}

.detail-dialog[open]::backdrop {
  animation: backdrop-in 220ms ease both;
}

@keyframes drawer-in {
  from {
    transform: translateX(22px);
    opacity: 0.75;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.detail-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 17px 23px;
  background: var(--ink);
  color: var(--paper);
}

.detail-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242, 243, 236, 0.67);
}

.detail-kicker span:not(.kicker-slash) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#detail-number {
  color: var(--lime);
  flex: 0 0 auto;
}

.kicker-slash {
  color: rgba(242, 243, 236, 0.32);
  flex: 0 0 auto;
}

.close-button {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(242, 243, 236, 0.4);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.close-button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.detail-head :focus-visible {
  outline-color: var(--lime);
}

.close-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.detail-status-band {
  flex: 0 0 auto;
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 23px;
  overflow: hidden;
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-bottom: 1px solid rgba(7, 27, 45, 0.22);
}

.detail-status-band[data-status="in-progress"] {
  background: var(--progress-bg);
  color: var(--progress-ink);
}

.detail-status-band[data-status="blocked"] {
  background: var(--blocked-bg);
  color: var(--blocked-ink);
}

.detail-status-band[data-status="done"] {
  background: var(--done-bg);
  color: var(--done-ink);
}

.band-label {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

#detail-status-label {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.band-number {
  margin-left: auto;
  font-family: var(--display);
  font-size: 60px;
  line-height: 0.7;
  letter-spacing: -0.02em;
  opacity: 0.16;
  transform: translateY(5px);
}

.detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 26px 30px;
  scrollbar-color: #b5bdb1 transparent;
  scrollbar-width: thin;
}

.detail-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(31px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.detail-summary {
  margin: 16px 0 0;
  color: #41545b;
  font-size: 15px;
  line-height: 1.58;
  text-wrap: pretty;
}

.status-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 10px 18px;
  align-items: center;
  margin: 24px 0 25px;
  padding: 15px;
  background: #e8eae1;
  border: 1px solid #c5ccc1;
}

.status-editor-copy {
  min-width: 0;
}

.status-editor-copy p {
  margin: 4px 0 0;
  color: #5c6c70;
  font-size: 11px;
  line-height: 1.45;
}

.detail-select-shell select {
  height: 42px;
  background-color: var(--paper-bright);
  font-size: 13px;
}

.status-feedback {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  min-height: 0;
  color: #263c31;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.status-feedback:not(:empty) {
  padding-top: 9px;
  border-top: 1px solid #c0c8bd;
}

.status-feedback:not(:empty)::before {
  content: "✓";
  display: inline-block;
  margin-right: 7px;
  color: #39742b;
  font-weight: 700;
}

.detail-filter-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 9px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.detail-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-meta > div {
  min-width: 0;
  padding: 12px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  margin: 0 0 4px;
  color: #53636a;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-transform: capitalize;
}

.detail-brief {
  margin-top: 28px;
}

.detail-body {
  margin-top: 12px;
}

.detail-body p {
  margin: 0 0 13px;
  color: #2e4149;
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: pretty;
}

.detail-body p:last-child {
  margin-bottom: 0;
}

.detail-tag-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.tag-label {
  margin: 4px 0 0;
  color: #53636a;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #bcc5b9;
  border-radius: 2px;
  background: #f9faf3;
  color: #34484d;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-comments {
  margin: 18px 0 0;
  color: #53636a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.detail-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 23px;
  border-top: 1px solid var(--line);
  background: #eceee5;
}

.back-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.back-button:hover {
  background: var(--lime);
  color: var(--ink);
}

.back-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-foot p {
  margin: 0;
  color: #6a787b;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 1120px) {
  .workspace-head {
    grid-template-columns: minmax(200px, 0.62fr) minmax(460px, 1.38fr);
    gap: 24px;
  }

  .open-item {
    grid-template-columns:
      36px minmax(170px, 1fr) minmax(105px, 0.5fr) 64px 100px 32px;
  }

  .row-project {
    display: none;
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    align-items: end;
    gap: 30px;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .hero-note {
    max-width: 42ch;
  }

  .workspace-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workspace-controls {
    grid-template-columns: minmax(0, 1fr) 180px auto;
  }

  .open-item {
    grid-template-columns: 36px minmax(170px, 1fr) 64px 102px 32px;
  }

  .row-owner {
    display: none;
  }
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 28px);
  }

  .masthead {
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-text {
    gap: 8px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-sub {
    display: none;
  }

  .desk-label {
    display: none;
  }

  .desk-meta {
    gap: 11px;
  }

  .cycle {
    font-size: 8px;
  }

  .crew-avatar {
    width: 23px;
    height: 23px;
    font-size: 7px;
  }

  .hero {
    gap: 20px;
    padding: 29px 0 26px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .hero-title {
    margin-top: 15px;
  }

  .hero-title-small {
    font-size: clamp(27px, 7.7vw, 36px);
  }

  .hero-title-large {
    font-size: clamp(78px, 25vw, 112px);
  }

  .hero-side {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-top: 18px;
  }

  .hero-note {
    display: none;
  }

  .queue-index {
    width: 100%;
  }

  .index-head {
    padding: 8px 0 7px;
    font-size: 8px;
  }

  .index-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }

  .index-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 7px 8px 0;
    border-bottom: 0;
    border-right: 1px solid rgba(242, 243, 236, 0.12);
  }

  .index-row:last-child {
    border-right: 0;
  }

  .index-row:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .index-row dt {
    gap: 6px;
    font-size: 9px;
    white-space: nowrap;
  }

  .index-row dd {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
  }

  .index-track,
  .index-foot {
    display: none;
  }

  .index-count {
    font-size: 23px;
    text-align: left;
  }

  .workspace {
    margin-bottom: 28px;
    padding-bottom: 18px;
  }

  .workspace-head {
    padding: 21px 0 17px;
    gap: 14px;
  }

  .workspace-intro h2 {
    font-size: clamp(33px, 10vw, 43px);
  }

  .workspace-subtitle {
    font-size: 12px;
  }

  .workspace-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .status-field {
    min-width: 0;
  }

  .reset-button {
    padding: 0 14px;
  }

  .input-shell input,
  .select-shell select {
    height: 45px;
  }

  .result-bar {
    padding-top: 10px;
    align-items: flex-start;
  }

  .key-hint {
    display: none;
  }

  .group-head {
    min-height: 42px;
    padding-right: 0;
  }

  .group-note {
    display: none;
  }

  .open-item {
    grid-template-columns: 24px minmax(0, 1fr) auto 29px;
    grid-template-areas:
      "idx body status arrow"
      "idx sub sub sub";
    min-height: 0;
    gap: 3px 10px;
    padding: 15px 7px 15px 15px;
  }

  .row-index {
    grid-area: idx;
    align-self: start;
    padding-top: 4px;
    font-size: 9px;
  }

  .row-body {
    grid-area: body;
  }

  .row-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 590;
  }

  .row-sub {
    grid-area: sub;
    display: block;
    padding-top: 2px;
    font-size: 9px;
  }

  .status-pill {
    grid-area: status;
    align-self: start;
    justify-self: end;
    min-height: 23px;
    padding: 3px 7px;
    font-size: 7.5px;
  }

  .row-arrow {
    grid-area: arrow;
    align-self: start;
    width: 28px;
    height: 28px;
  }

  .row-due {
    display: none;
  }

  .empty-state {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    padding: 37px 0 34px;
    min-height: 220px;
  }

  .empty-index {
    font-size: 43px;
    min-height: 66px;
  }

  .empty-slash {
    height: 50px;
  }

  .workspace-foot {
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 26px;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }

  .detail-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    border-radius: 0;
  }

  .detail-head {
    min-height: 66px;
    padding: 14px 17px;
  }

  .detail-status-band {
    min-height: 60px;
    padding: 10px 17px;
  }

  #detail-status-label {
    font-size: 22px;
  }

  .band-number {
    font-size: 53px;
  }

  .detail-scroll {
    padding: 23px 18px 26px;
  }

  .detail-title {
    font-size: clamp(29px, 8.8vw, 38px);
    max-width: 20ch;
  }

  .detail-summary {
    font-size: 14px;
  }

  .status-editor {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 13px;
    margin: 21px 0;
  }

  .status-editor-copy p {
    font-size: 10.5px;
  }

  .detail-select-shell select {
    height: 44px;
  }

  .detail-foot {
    padding: 11px 17px;
  }
}

@media (max-width: 420px) {
  .cycle {
    display: none;
  }

  .hero-title-large {
    font-size: clamp(74px, 26vw, 104px);
  }

  .brand-name {
    font-size: 20px;
  }

  .crew-avatar:nth-child(n + 5) {
    display: none;
  }

  .index-row {
    grid-template-columns: minmax(74px, 1fr) 44px;
  }

  .index-track {
    display: none;
  }

  .detail-head .close-button span {
    display: none;
  }

  .detail-head .close-button {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}

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