/* Adapted from OpenDesign design-templates/kanban-board at 53231d40b778d88eba23f35547bf99485d3ae9fc. Apache-2.0. */

:root {
  --bg: #f7f7f9;
  --paper: #ffffff;
  --ink: #1a1d29;
  --muted: #5e6478;
  --line: #e5e7ee;
  --line-strong: #c8cdd9;
  --accent: #5b3df0;
  --accent-soft: #ece8ff;
  --pink: #d6336c;
  --teal: #1a8e8e;
  --amber: #b58522;
  --green: #2c8a4f;
  --display:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "DM Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.5;
}
.app {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 100vh;
}
main {
  padding: 18px 22px 32px;
  min-width: 0;
}
aside.sidebar {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}
.crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sprint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 11.5px;
}
.sprint-chip .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.topbar-spacer {
  flex: 1;
}
.topbar input.search {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  max-width: 220px;
  background: var(--paper);
}
.icon-btn {
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--muted);
}

.filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.filter-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.chip-row {
  display: flex;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip .av {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a991ff);
  display: inline-block;
}
.filterbar .spacer {
  flex: 1;
}
.members {
  display: flex;
}
.members .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -8px;
  font-size: 10.5px;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.members .av:first-child {
  margin-left: 0;
}

/* Board */
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: flex-start;
}
.col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 8px;
  border-bottom: 1px dashed var(--line);
}
.col-name {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.col-name .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.swatch.gray {
  background: var(--line-strong);
}
.swatch.violet {
  background: var(--accent);
}
.swatch.amber {
  background: var(--amber);
}
.swatch.green {
  background: var(--green);
}
.col-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 999px;
}

/* Cards */
.card {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(91, 61, 240, 0.06);
}
.card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.tag-bug {
  background: rgba(214, 51, 108, 0.12);
  color: var(--pink);
}
.tag-feat {
  background: rgba(91, 61, 240, 0.12);
  color: var(--accent);
}
.tag-design {
  background: rgba(26, 142, 142, 0.12);
  color: var(--teal);
}
.tag-chore {
  background: rgba(94, 100, 120, 0.12);
  color: var(--muted);
}
.tag-research {
  background: rgba(181, 133, 34, 0.12);
  color: var(--amber);
}
.card-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.card-meta .left {
  display: flex;
  gap: 8px;
  align-items: center;
}
.av-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a991ff);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.av-mira {
  background: linear-gradient(135deg, #d6336c, #ff7a9b);
}
.av-cale {
  background: linear-gradient(135deg, #1a8e8e, #56c1c1);
}
.av-pri {
  background: linear-gradient(135deg, #b58522, #f1b13a);
}
.av-dev {
  background: linear-gradient(135deg, #2c8a4f, #66c285);
}
.pts {
  font-family: var(--mono);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
}
.progress {
  height: 4px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.add-card {
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.add-card:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Sidebar */
aside h4 {
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.pulse {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pulse-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.pulse-stat strong {
  font-family: var(--mono);
}
.pulse-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.pulse-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a991ff);
  border-radius: 999px;
}
.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}
.pill-block {
  padding: 16px;
  border-radius: 10px;
  background: rgba(214, 51, 108, 0.07);
  border: 1px solid rgba(214, 51, 108, 0.2);
}
.pill-block strong {
  color: var(--pink);
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 1fr;
  }
  aside.sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .board {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .board {
    grid-template-columns: 1fr;
  }
}

/* Modified by Skilly, 2026: offline fonts, honest content, fluid grids, keyboard and print support. */
@font-face {
  font-family: DM Sans;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a34c31;
  outline-offset: 4px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #fff;
  z-index: 100;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sitefoot {
  padding: 30px max(20px, 4vw);
  font-size: 11px;
  color: #625d53;
  line-height: 1.8;
}
.empty {
  border: 1px dashed #b2ac9f;
  padding: 24px;
  color: #615d54;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.controls button,
.controls input,
.controls select {
  border: 1px solid #918b7c;
  background: #fffaf1;
  color: #24251f;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 5px;
  max-width: 100%;
}
.controls button[aria-pressed="true"],
.controls button[aria-selected="true"] {
  background: #23251f;
  color: #fffaf1;
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #cfc7b7;
  text-align: left;
  overflow-wrap: anywhere;
}
th {
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dt {
  font-size: 11px;
  text-transform: uppercase;
  color: #605b51;
}
dd {
  margin: 4px 0 20px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
section[id] {
  scroll-margin-top: 20px;
}
@media (max-width: 600px) {
  .topline {
    font-size: 10px;
  }
  th,
  td {
    padding: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .controls,
  .skip {
    display: none !important;
  }
  [hidden] {
    display: block !important;
  }
  body {
    background: white !important;
  }
  .sitefoot {
    break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  article,
  .card,
  .phone,
  .theme {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  .panel {
    display: block !important;
    break-before: page;
  }
}
:root {
  --bg: #f0f2ef;
  --paper: #fff;
  --ink: #233e37;
  --muted: #60706b;
  --accent: #286d5a;
  --accent-soft: #dfebe5;
  --line: #dbe2dc;
  --display: "DM Sans", sans-serif;
  --body: "DM Sans", sans-serif;
}
.app {
  grid-template-columns: minmax(0, 1fr) 248px;
  min-height: 900px;
}
.app main {
  padding: 28px;
}
.board-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin: 42px 0 32px;
}
.board-hero h1 {
  font:
    400 clamp(40px, 4.4vw, 63px)/1.02 "Instrument Serif",
    serif;
  letter-spacing: -0.015em;
  margin: 18px 0;
}
.board-hero p {
  max-width: 650px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.snapshot-label {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: right;
  max-width: 170px;
  line-height: 1.8;
}
.snapshot-label b {
  font-size: 18px;
}
.filterbar {
  padding: 12px;
  margin: 0 0 24px;
  align-items: end;
  gap: 14px;
}
.filterbar label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.025em;
}
.filterbar input,
.filterbar select {
  font-size: 12px;
  padding: 8px 12px;
  border-color: var(--line);
  background: #fff;
}
.filterbar output {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 14px;
  margin-left: auto;
}
.board {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 12px;
}
.col {
  background: #e8ede8;
  border: 0;
  border-radius: 5px;
  padding: 10px;
  min-height: 450px;
}
.col-head {
  border-bottom: 1px solid #d0dacf;
  padding: 4px 2px 12px;
}
.col-name {
  font-size: 12px;
  margin: 0;
}
.card {
  cursor: default;
  padding: 16px 13px;
  border: 1px solid #d8e0d9;
  border-radius: 4px;
  box-shadow: 0 2px 0 #dae2da40;
  gap: 12px;
}
.card:hover {
  box-shadow: none;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  padding: 3px 5px;
}
.task-id {
  font-size: 8px;
  color: #728077;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
.card > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.card-meta {
  font-size: 9px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.av-sm {
  background: #e2eadb;
  color: #345443;
  font-size: 8px;
  width: 22px;
  height: 22px;
}
.pts {
  font-size: 9px;
  white-space: normal;
}
.blocked {
  border-left: 3px solid #b77643;
}
.blocked-label {
  font-size: 9px;
  color: #8f5124;
}
.column-empty {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 26px 8px;
}
.snapshot-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 24px;
}
aside.sidebar {
  background: #213e35;
  color: #e6eedc;
  padding: 32px 24px;
  border: 0;
}
.sidebar-kicker {
  font-size: 10px;
  letter-spacing: 0.15em;
}
.pulse-disc {
  width: 180px;
  height: 180px;
  border: 1px solid #6a846b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 44px auto 36px;
  background: radial-gradient(circle, #2a4a3a, #213e35);
}
.pulse-disc span {
  font:
    56px/1 "Instrument Serif",
    serif;
}
.pulse-disc small {
  font-size: 10px;
  color: #bdcbb7;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.pulse-stat {
  font-size: 11px;
}
.sidebar section {
  border-top: 1px solid #59705c;
  margin-top: 34px;
  padding-top: 24px;
}
.sidebar h2 {
  font:
    27px/1.1 "Instrument Serif",
    serif;
  font-weight: 400;
  margin: 0 0 15px;
}
.sidebar p,
.sidebar li {
  font-size: 12px;
  line-height: 1.8;
}
.sidebar ul {
  padding-left: 15px;
}
.sidebar li {
  margin-bottom: 18px;
}
.sidebar .sidebar-kicker {
  font-size: 10px;
}
.sitefoot {
  background: #e9eee7;
}
@media (max-width: 1200px) {
  .app {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  aside.sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .sidebar-kicker {
    grid-column: 1/-1;
  }
  .pulse-disc {
    margin: 0 auto;
    width: 150px;
    height: 150px;
  }
  .sidebar section {
    margin: 0;
    border: 0;
    padding: 0;
  }
  .pulse {
    align-self: center;
  }
  .sidebar .sprint-goal {
    grid-column: 1/3;
  }
}
@media (max-width: 630px) {
  .app main {
    padding: 20px 16px;
  }
  .board-hero {
    display: block;
  }
  .snapshot-label {
    text-align: left;
    max-width: none;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .col {
    min-height: 100px;
  }
  .filterbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filterbar output {
    margin: 0;
    padding: 0;
  }
  .filterbar input,
  .filterbar select {
    width: 100%;
  }
  aside.sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar .sprint-goal {
    grid-column: auto;
  }
  .pulse-disc {
    margin: auto;
  }
  .board-hero {
    margin-top: 28px;
  }
  .card-title {
    font-size: 15px;
  }
  .card > p {
    font-size: 12px;
  }
}
