:root {
  color-scheme: light dark;
  --paper: #eee9dc;
  --paper-raised: #f8f4e9;
  --ink: #1c211c;
  --muted: #686b61;
  --line: #96998d;
  --line-strong: #1c211c;
  --acid: #c8ed46;
  --acid-soft: #e3f5a7;
  --coral: #e65f42;
  --coral-soft: #f3b2a2;
  --blue: #4e86a4;
  --blue-soft: #bcd4df;
  --amber: #a96f16;
  --violet: #7455a6;
  --status-started: var(--blue-soft);
  --status-completed: var(--acid-soft);
  --status-canceled: var(--coral-soft);
  --relation-blocker: var(--coral);
  --relation-blocked: var(--blue);
  --relation-parent: var(--amber);
  --relation-child: var(--violet);
  --shadow: #1c211c;
  --lane: rgb(28 33 28 / 5%);
  --node: #f8f4e9;
  --node-muted: #e6e1d5;
  --focus: #2f6bf2;
  --grid: rgb(28 33 28 / 7%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151812;
    --paper-raised: #20241d;
    --ink: #f1ecdf;
    --muted: #a9ac9f;
    --line: #555a50;
    --line-strong: #f1ecdf;
    --acid: #c8ed46;
    --acid-soft: #3b4825;
    --coral: #ff7a59;
    --coral-soft: #583127;
    --blue: #7eb6d0;
    --blue-soft: #263e49;
    --amber: #efb64d;
    --violet: #bd9be8;
    --shadow: #050604;
    --lane: rgb(241 236 223 / 5%);
    --node: #242920;
    --node-muted: #1d211b;
    --focus: #8eb0ff;
    --grid: rgb(241 236 223 / 6%);
  }
}

html.is-colorblind {
  --status-started: #d3e8f4;
  --status-completed: #f0e6b2;
  --status-canceled: #e8d5eb;
  --relation-blocker: #8c4a00;
  --relation-blocked: #005a9c;
  --relation-parent: #006b57;
  --relation-child: #7a3e9d;
}

@media (prefers-color-scheme: dark) {
  html.is-colorblind {
    --status-started: #173b55;
    --status-completed: #4b4321;
    --status-canceled: #49344d;
    --relation-blocker: #f5a623;
    --relation-blocked: #56b4e9;
    --relation-parent: #4cc9a4;
    --relation-child: #e69bd3;
  }
}

html.is-high-contrast {
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --ink: #000000;
  --muted: #333333;
  --line: #4a4a4a;
  --line-strong: #000000;
  --status-started: #a9dcff;
  --status-completed: #d7f27b;
  --status-canceled: #ffc0b5;
  --relation-blocker: #9c2500;
  --relation-blocked: #005b96;
  --relation-parent: #7a4a00;
  --relation-child: #71388e;
  --shadow: #000000;
  --lane: rgb(0 0 0 / 8%);
  --node: #ffffff;
  --node-muted: #dedede;
  --grid: rgb(0 0 0 / 11%);
}

@media (prefers-color-scheme: dark) {
  html.is-high-contrast {
    --paper: #050705;
    --paper-raised: #0e120e;
    --ink: #ffffff;
    --muted: #d4d8d4;
    --line: #aab2aa;
    --line-strong: #ffffff;
    --status-started: #155b7e;
    --status-completed: #3c5700;
    --status-canceled: #76271b;
    --relation-blocker: #ff7054;
    --relation-blocked: #55c7ff;
    --relation-parent: #ffc857;
    --relation-child: #d5adff;
    --shadow: #000000;
    --lane: rgb(255 255 255 / 9%);
    --node: #111711;
    --node-muted: #252c25;
    --grid: rgb(255 255 255 / 12%);
  }
}

html.is-high-contrast.is-colorblind {
  --status-started: #a9dcff;
  --status-completed: #ffe36e;
  --status-canceled: #e5c4ff;
  --relation-blocker: #8a4300;
  --relation-blocked: #005b96;
  --relation-parent: #00624f;
  --relation-child: #87306f;
}

@media (prefers-color-scheme: dark) {
  html.is-high-contrast.is-colorblind {
    --status-started: #154f73;
    --status-completed: #6a5700;
    --status-canceled: #5e315f;
    --relation-blocker: #ffb000;
    --relation-blocked: #55c7ff;
    --relation-parent: #45e0b0;
    --relation-child: #ff9ee8;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

button,
input,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.issue-node:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.app-shell {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 48px) 34px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 3px 0 10px;
  border-bottom: 2px solid var(--line-strong);
  animation: arrive 380ms ease-out both;
}

.brand {
  min-width: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.masthead-note {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.demo-badge {
  display: inline-block;
  margin-left: 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--acid);
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.is-demo .button-primary {
  background: var(--acid);
}

.control-deck {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns:
    minmax(230px, 1.1fr)
    minmax(200px, 0.9fr)
    minmax(420px, auto)
    auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 15px;
  border: 2px solid var(--line-strong);
  border-left: 9px solid var(--acid);
  background: var(--paper-raised);
  box-shadow: 6px 6px 0 var(--shadow);
  animation: arrive 440ms 60ms ease-out both;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > span,
.check-field {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
input[type="search"] {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  padding: 0 11px;
}

select:disabled {
  color: var(--muted);
  cursor: wait;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  white-space: nowrap;
}

.view-toggles {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  grid-auto-rows: 36px;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
}

.check-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--coral);
}

.view-toggles .check-field {
  height: 36px;
}

.lane-picker {
  position: relative;
  align-self: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.lane-picker summary {
  display: flex;
  min-width: 106px;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  background: var(--paper);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.07em;
  list-style: none;
  text-transform: uppercase;
}

.lane-picker summary::-webkit-details-marker {
  display: none;
}

.lane-picker summary::after {
  content: "▾";
  color: var(--ink);
}

.lane-picker[open] summary::after {
  content: "▴";
}

.lane-picker.has-hidden-issues summary {
  border-color: var(--coral);
}

.lane-picker summary strong {
  color: var(--ink);
  font-size: 10px;
}

.lane-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  right: 0;
  width: min(340px, calc(100vw - 48px));
  border: 2px solid var(--line-strong);
  background: var(--paper-raised);
  padding: 12px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.lane-menu-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
}

.lane-menu-heading strong {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lane-options {
  display: grid;
  gap: 3px;
}

.lane-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.lane-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--acid);
}

.lane-option small {
  color: var(--muted);
  font-size: 9px;
}

.lane-menu-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
}

.lane-menu-actions button {
  border: 0;
  color: var(--muted);
  background: none;
  padding: 2px 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lane-menu-actions button:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-raised);
  padding: 9px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.button:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.button-primary {
  color: #1c211c;
  background: var(--acid);
  font-weight: 700;
  white-space: nowrap;
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.text-button {
  border: 0;
  color: var(--muted);
  background: none;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.message {
  margin: 0 0 20px;
  border: 2px solid var(--line-strong);
  background: var(--acid-soft);
  padding: 15px 17px;
  white-space: pre-line;
}

.message[data-kind="error"] {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.message strong {
  display: block;
  margin-bottom: 3px;
}

.issue-detail {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 20px;
  align-items: start;
  width: 100vw;
  max-height: min(70vh, 680px);
  margin: 0;
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 2px solid var(--line-strong);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: var(--paper-raised);
  box-shadow:
    0 -7px 0 var(--coral),
    0 -24px 52px color-mix(in srgb, var(--shadow) 25%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 60px));
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 320ms;
}

.issue-detail.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.issue-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.issue-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.status-chip {
  border: 1px solid var(--line);
  padding: 2px 7px;
  background: var(--node-muted);
}

.issue-detail h2 {
  margin: 7px 0 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.08;
}

.relation-column {
  min-width: 0;
}

.relation-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.relation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.relation-list button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--node-muted);
  padding: 3px 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  cursor: pointer;
}

.relation-list .none {
  color: var(--muted);
}

.detail-actions {
  display: grid;
  justify-items: stretch;
  gap: 5px;
  text-align: center;
}

.tray-expand-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 3px 5px;
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tray-expand-button:hover {
  color: var(--ink);
}

.tray-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  transform: translateY(2px) rotate(225deg);
  transition: transform 180ms ease;
}

.issue-detail.is-expanded .tray-chevron {
  transform: translateY(-2px) rotate(45deg);
}

.issue-description {
  grid-column: 1 / -1;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 220ms ease,
    border-color 220ms ease,
    opacity 160ms ease,
    visibility 0s linear 280ms;
}

.issue-detail.is-expanded .issue-description {
  max-height: min(34vh, 300px);
  border-top-color: var(--line);
  padding-top: 13px;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 220ms ease,
    border-color 220ms ease,
    opacity 220ms 70ms ease,
    visibility 0s;
}

.description-body {
  max-width: 1100px;
  max-height: min(28vh, 230px);
  overflow-y: auto;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  scrollbar-color: var(--line) transparent;
}

.description-body > :first-child {
  margin-top: 0;
}

.description-body > :last-child {
  margin-bottom: 0;
}

.description-body p,
.description-body ul,
.description-body ol,
.description-body blockquote,
.description-body pre,
.description-body table {
  margin: 0 0 0.8em;
}

.description-body h1,
.description-body h2,
.description-body h3,
.description-body h4,
.description-body h5,
.description-body h6 {
  margin: 1.1em 0 0.45em;
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1em;
  line-height: 1.3;
}

.description-body ul,
.description-body ol {
  padding-left: 1.45em;
}

.description-body li + li {
  margin-top: 0.25em;
}

.description-body a {
  color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.description-body a:hover {
  text-decoration-thickness: 2px;
}

.description-body code {
  border: 1px solid var(--line);
  background: var(--node-muted);
  padding: 0.08em 0.28em;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.description-body pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--node-muted);
  padding: 10px 12px;
}

.description-body pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.description-body blockquote {
  border-left: 2px solid var(--coral);
  margin-left: 0;
  padding-left: 12px;
  color: var(--muted);
}

.description-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1em 0;
}

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

.description-body th,
.description-body td {
  border: 1px solid var(--line);
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}

.description-body.is-empty {
  color: var(--muted);
  font-style: italic;
}

.graph-section {
  animation: arrive 500ms 120ms ease-out both;
}

.graph-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 18px;
  margin: 0 0 9px;
}

.legend-panel {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.legend-panel summary {
  width: max-content;
  color: var(--ink);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-panel summary::marker {
  color: var(--coral);
}

.legend-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 28px;
  margin-top: 8px;
}

.legend-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 13px;
}

.legend-group strong {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-group span,
.sync-status {
  white-space: nowrap;
}

.legend-swatch,
.legend-border {
  display: inline-block;
  width: 15px;
  height: 11px;
  margin-right: 5px;
  border: 1px solid var(--line);
  background: var(--node-muted);
  vertical-align: -2px;
}

.legend-swatch.started {
  background: var(--status-started);
}

.legend-swatch.completed {
  background: var(--status-completed);
}

.legend-swatch.canceled {
  background: var(--status-canceled);
}

.legend-border.selected {
  border: 3px solid var(--ink);
}

.legend-border.incoming {
  border: 3px solid var(--relation-blocker);
}

.legend-border.outgoing {
  border: 3px solid var(--relation-blocked);
}

.legend-border.parent {
  border: 3px dashed var(--relation-parent);
}

.legend-border.child {
  border: 3px dashed var(--relation-child);
}

.legend-line {
  display: inline-block;
  width: 24px;
  margin-right: 5px;
  border-top: 3px solid var(--line-strong);
  vertical-align: 3px;
}

.legend-line.parent {
  border-top-width: 1px;
  border-top-color: var(--line);
  border-top-style: dashed;
}

.sync-status {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.graph-viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
  max-height: min(72vh, 980px);
  overflow: auto;
  border: 2px solid var(--line-strong);
  background: var(--paper-raised);
  box-shadow: 7px 7px 0 var(--shadow);
  scrollbar-color: var(--line) transparent;
  scroll-padding-bottom: 280px;
}

#dependency-graph {
  display: block;
  min-width: 100%;
  color: var(--ink);
}

.lane {
  fill: var(--lane);
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.lane-index,
.lane-count {
  fill: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.lane-title {
  fill: var(--ink);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.edge {
  fill: none;
  vector-effect: non-scaling-stroke;
  transition:
    opacity 140ms ease,
    stroke 140ms ease,
    stroke-width 140ms ease;
}

.edge.blocks {
  stroke: color-mix(in srgb, var(--ink) 74%, var(--paper));
  stroke-width: 1.9;
  opacity: 0.9;
}

.edge.parent {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 6 5;
  opacity: 0.46;
}

.edge.is-related {
  stroke-width: 3.2;
  opacity: 1;
}

.edge.is-incoming {
  stroke: var(--relation-blocker);
}

.edge.is-outgoing {
  stroke: var(--relation-blocked);
}

.edge.is-parent-edge {
  stroke: var(--relation-parent);
}

.edge.is-child-edge {
  stroke: var(--relation-child);
}

.edge.is-dimmed {
  opacity: 0.035;
}

.edge-halo {
  fill: none;
  stroke: var(--paper-raised);
  stroke-width: 5.4;
  opacity: 0.94;
  vector-effect: non-scaling-stroke;
  transition: opacity 140ms ease;
}

.edge-halo.is-related {
  stroke-width: 6.8;
}

.edge-halo.is-dimmed {
  opacity: 0;
}

.arrowhead {
  fill: var(--ink);
  stroke: var(--paper-raised);
  stroke-width: 0.8;
}

.arrowhead.incoming {
  fill: var(--relation-blocker);
}

.arrowhead.outgoing {
  fill: var(--relation-blocked);
}

.issue-node {
  cursor: pointer;
  transition: opacity 140ms ease;
}

.issue-node rect {
  fill: var(--node);
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 160ms ease;
}

html.is-high-contrast .issue-node rect,
html.is-high-contrast .lane {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

html.is-high-contrast .node-priority {
  fill: var(--ink);
}

.issue-node[data-status-type="triage"] rect,
.issue-node[data-status-type="backlog"] rect {
  fill: var(--node-muted);
}

.issue-node[data-status-type="started"] rect {
  fill: var(--status-started);
}

.issue-node[data-status-type="completed"] rect {
  fill: var(--status-completed);
}

.issue-node[data-status-type="canceled"] rect {
  fill: var(--status-canceled);
}

.issue-node.is-selected rect {
  stroke: var(--ink);
  stroke-width: 3;
}

.issue-node.is-blocker rect {
  stroke: var(--relation-blocker);
  stroke-width: 3;
}

.issue-node.is-blocked rect {
  stroke: var(--relation-blocked);
  stroke-width: 3;
}

.issue-node.is-parent rect {
  stroke: var(--relation-parent);
  stroke-width: 3;
  stroke-dasharray: 8 4;
}

.issue-node.is-child rect {
  stroke: var(--relation-child);
  stroke-width: 3;
  stroke-dasharray: 8 4;
}

html.is-colorblind .legend-border.outgoing {
  border-style: double;
}

html.is-colorblind .legend-border.parent {
  border-style: dashed;
}

html.is-colorblind .legend-border.child {
  border-style: dotted;
}

html.is-colorblind .edge.is-outgoing,
html.is-colorblind .issue-node.is-blocked rect {
  stroke-dasharray: 12 3 2 3;
}

html.is-colorblind .edge.is-parent-edge,
html.is-colorblind .issue-node.is-parent rect {
  stroke-dasharray: 7 4;
}

html.is-colorblind .edge.is-child-edge,
html.is-colorblind .issue-node.is-child rect {
  stroke-dasharray: 2 3;
}

.issue-node.is-dimmed {
  opacity: 0.16;
}

#dependency-graph.is-xray .issue-node rect {
  fill-opacity: 0.68;
}

#dependency-graph.is-xray .edge-halo {
  opacity: 0.62;
}

#dependency-graph.is-xray .edge-halo.is-related {
  opacity: 0.8;
}

.node-id {
  fill: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.node-title {
  fill: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 12px;
}

.node-priority {
  fill: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-graph {
  fill: var(--muted);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

footer a {
  color: inherit;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1180px) {
  .control-deck {
    grid-template-columns: 1fr 1fr;
  }

  .view-toggles {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 980px) {
  .issue-detail {
    grid-template-columns: 1fr 1fr;
    max-height: 62vh;
  }

  .issue-identity,
  .detail-actions {
    grid-column: 1 / -1;
  }

  .detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 17px 12px 26px;
  }

  .masthead {
    align-items: flex-start;
  }

  .masthead-note {
    display: none;
  }

  .control-deck {
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 var(--shadow);
  }

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

  .lane-picker summary {
    width: 100%;
  }

  .issue-detail {
    grid-template-columns: 1fr;
    max-height: 72vh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .issue-identity,
  .detail-actions {
    grid-column: auto;
  }

  .graph-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lane-menu {
    right: auto;
    left: 0;
  }

  .legend-content,
  .legend-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .sync-status {
    text-align: left;
  }

  .graph-viewport {
    max-height: 68vh;
    box-shadow: 4px 4px 0 var(--shadow);
  }

  footer {
    flex-direction: column;
  }
}
