@font-face {
  font-family: "Medeo Sans";
  src:
    local("Medeo Sans Regular"),
    local("MedeoSans-Regular"),
    url("/app/assets/MedeoSansVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #243041;
  --blue: #185abc;
  --muted: color-mix(in srgb, var(--ink) 69%, var(--paper));
  --line: #dce2e9;
  --well: #f2f5f9;
  --canvas: #f7f9fc;
  --selected: #e5efff;
  --gutter: clamp(20px, 2.6vw, 52px);
  font:
    400 16px/1.45 "Medeo Sans",
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--blue);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100dvh;
  background: var(--well);
}
button,
input,
textarea,
select,
pre {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 550;
}
button:hover {
  border-color: var(--ink);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
::selection {
  background: var(--blue);
  color: var(--paper);
}
aside {
  width: clamp(178px, 15vw, 224px);
  flex: none;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 36px 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 48px;
  color: inherit;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  font-weight: 620;
  letter-spacing: -0.035em;
}
.brand-sign {
  width: 46px;
  height: auto;
  border-radius: 24%;
  flex: none;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  text-align: left;
}
nav button:hover {
  background: var(--paper);
  color: var(--ink);
}
nav button[aria-current="page"] {
  color: var(--blue);
  background: var(--selected);
}
.nav-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.95;
}
[data-tab="board"] .nav-icon {
  border: 1.5px solid;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    transparent 45%,
    currentColor 45% 54%,
    transparent 54%
  );
}
[data-tab="notes"] .nav-icon {
  border: 1.5px solid;
  border-radius: 2px 4px 4px 2px;
  border-left: 4px double;
}
[data-tab="expenses"] .nav-icon {
  background:
    linear-gradient(currentColor, currentColor) left bottom/3px 45%,
    linear-gradient(currentColor, currentColor) center bottom/3px 72%,
    linear-gradient(currentColor, currentColor) right bottom/3px 100%;
  background-repeat: no-repeat;
}
main {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  margin: 12px 12px 12px 0;
  border-radius: 24px;
  padding: 0 var(--gutter) 36px;
}
header,
.bar,
.row,
.dialogbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header {
  padding: 34px 0 25px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
#boardDate {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
#boardDate:empty {
  display: none;
}
#boardDate:first-letter {
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-weight: 520;
  letter-spacing: -0.035em;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.018em;
  margin: 24px 0 10px;
}
#actions,
.toolbar,
.chips,
.links,
.format,
.metrics,
.series {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.primary {
  background: var(--blue);
  color: var(--paper);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 11px 20px;
  font-weight: 550;
}
.primary:hover {
  background: color-mix(in srgb, var(--blue) 78%, var(--ink));
  border-color: transparent;
}
nav button[aria-current="page"]:hover {
  background: color-mix(in srgb, var(--blue) 15%, var(--paper));
}
.toolbar {
  gap: 12px;
  margin: 24px 0 30px;
}
.chips {
  gap: 5px;
}
.chips button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 18px;
  padding: 6px 12px;
}
.chips button:hover {
  color: var(--blue);
}
.chips button[aria-pressed="true"] {
  background: var(--selected);
  color: var(--blue);
  border-color: transparent;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  max-width: 100%;
  min-width: 0;
  caret-color: var(--blue);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type="search"] {
  width: min(360px, 100%);
  font-size: 15px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
small,
.sub,
legend,
.empty {
  color: var(--muted);
  font-size: 13px;
}
.columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lane {
  background: var(--canvas);
  border-radius: 16px;
  padding: 0 10px 16px;
  min-height: clamp(295px, 50vh, 540px);
}
.lane.doing {
  background: color-mix(in srgb, var(--selected) 30%, var(--canvas));
}
.lane .bar {
  justify-content: flex-start;
  gap: 7px;
  padding: 15px 4px 12px;
}
.lane h2 {
  font-size: 15px;
  font-weight: 580;
  line-height: 1.25;
  margin: 0;
}
.lane .bar button {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  line-height: 1;
}
.lane .bar button:hover {
  background: var(--paper);
  color: var(--blue);
}
.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  flex: none;
}
.doing .dot {
  border-color: var(--blue);
  background: linear-gradient(90deg, var(--blue) 50%, var(--paper) 50%);
}
.waiting .dot {
  border-style: dashed;
}
.done .dot {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
}
.done .dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
  transform: rotate(42deg);
  border-right: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
}
.count {
  font-size: 12px;
  font-weight: 500;
  background: var(--paper);
  border-radius: 9px;
  min-width: 18px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card {
  width: 100%;
  display: grid;
  gap: 16px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 530;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.card:hover {
  border-color: var(--blue);
}
.card small {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 450;
}
.overdue {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline dotted;
}
.drop {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.empty {
  padding: 14px 4px;
}
.lane .empty {
  padding: 18px 8px;
  text-align: center;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(610px, 94vw);
  max-height: 90dvh;
  padding: 24px;
}
dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}
.dialogbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-size: 20px;
}
.dialogbar button {
  border: none;
  font-size: 22px;
  line-height: 1;
}
label.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
label.field input,
label.field textarea,
label.field select {
  color: var(--ink);
  width: 100%;
  font-size: 15px;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
fieldset,
.tablewrap {
  border: 1px solid var(--line);
  border-radius: 10px;
}
fieldset {
  margin: 12px 0;
  padding: 12px;
}
.notebook {
  display: grid;
  grid-template-columns: minmax(195px, 29%) 1fr;
  min-height: 510px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tree,
.editor {
  padding: 20px;
  min-width: 0;
}
.tree {
  background: var(--well);
  border-right: 1px solid var(--line);
}
.tree details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
}
.tree summary {
  font-size: 14px;
  font-weight: 620;
}
.tree button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 4px 0;
  border: none;
  background: transparent;
  overflow-wrap: anywhere;
}
.tree button.selected {
  background: var(--selected);
  color: var(--blue);
}
.editor textarea {
  line-height: 1.65;
  min-height: 260px;
  width: 100%;
}
.editor .format {
  margin: 12px 0;
}
.format button {
  padding: 6px 10px;
}
.reading {
  max-width: 72ch;
}
.reading label {
  display: block;
  margin: 6px 0;
}
.metrics {
  gap: 14px;
}
.metrics > div {
  flex: 1;
  min-width: 150px;
  padding: 21px;
  background: var(--well);
  border-radius: 10px;
}
.metrics > div:first-child {
  background: var(--selected);
}
.metrics > div:first-child strong {
  color: var(--blue);
}
.metrics strong {
  display: block;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 575;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.tablewrap {
  overflow: auto;
  margin: 14px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--well);
  color: var(--ink);
  font-weight: 550;
}
.commandsum,
.preview {
  background: var(--well);
}
.commandsum {
  font-weight: 600;
}
.series span,
.tag {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 13px;
}
#notice:not(:empty) {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: var(--selected);
}
button.link {
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}
.mobileback {
  display: none;
}
.stack {
  display: grid;
  gap: 8px;
}
.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 8px;
}
.actions {
  margin-top: 14px;
}

.search-box {
  position: relative;
  width: min(285px, 100%);
  display: block;
}
.search-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 11px;
  height: 11px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-65%);
  pointer-events: none;
}
.search-box::after {
  content: "";
  position: absolute;
  top: calc(50% + 5px);
  left: 27px;
  width: 6px;
  height: 1.6px;
  background: var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 41px;
  background: var(--well);
  border: 1px solid transparent;
  border-radius: 24px;
}
.lanes-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  border-radius: 20px;
}
.lanes-toggle::before {
  content: "";
  width: 15px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(
    transparent 43%,
    currentColor 43% 55%,
    transparent 55%
  );
}
.lanes-toggle[aria-pressed="true"] {
  color: var(--blue);
  background: var(--selected);
}
.board-scroll {
  overflow-x: auto;
  padding: 3px;
  margin: -3px;
  scrollbar-color: var(--line) transparent;
}
.swimlane-title {
  position: sticky;
  left: 2px;
  width: fit-content;
  max-width: 85vw;
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 580;
}
.swimlane-title:first-child {
  margin-top: 0;
}
.grouped .lane {
  min-height: 138px;
}
.due-date {
  display: flex;
  align-items: center;
  gap: 7px;
}
.due-date::before {
  content: "";
  width: 11px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    transparent 2px,
    currentColor 2px 3px,
    transparent 3px
  );
}
.card-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100dvh;
  height: 100dvh;
  width: min(505px, 100%);
  border: 0;
  border-radius: 20px 0 0 20px;
  padding: 28px;
}
.card-sheet .dialogbar {
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.card-sheet .field {
  margin-bottom: 16px;
}
.card-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lanes-qualifier {
  margin-left: -0.35em;
}
.card-sheet .primary {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .board-grid {
    min-width: 760px;
  }
  aside {
    width: 172px;
    padding-inline: 12px;
  }
  .columns {
    gap: 8px;
  }
  .lane {
    padding-inline: 7px;
  }
  .lane .bar {
    gap: 4px;
  }
  .lane h2 {
    font-size: 14px;
  }
  .card {
    padding: 13px 10px;
  }
}
@media (max-width: 760px) {
  .lanes-qualifier {
    display: none;
  }
  :root {
    --gutter: 16px;
  }
  body {
    display: block;
  }
  aside {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px var(--gutter);
  }
  .brand {
    margin: 0;
    gap: 6px;
    font-size: 22px;
  }
  .brand-sign {
    width: 32px;
  }
  nav {
    display: flex;
    gap: 2px;
  }
  nav button {
    padding: 8px 7px;
    font-size: 13px;
    border-radius: 18px;
  }
  nav .nav-icon {
    display: none;
  }
  main {
    margin: 0 6px 6px;
    min-height: calc(100dvh - 64px);
    border-radius: 18px;
  }
  .search-box {
    width: 100%;
  }
  .board-grid {
    min-width: 0;
    width: max-content;
  }
  .card-sheet {
    border-radius: 0;
  }
  .lanes-toggle {
    font-size: 13px;
    padding: 7px;
  }
  header {
    min-height: 100px;
    padding-block: 15px 20px;
  }
  h1 {
    font-size: 33px;
  }
  .primary {
    padding: 9px 12px;
  }
  .toolbar {
    margin: 17px 0 14px;
    gap: 10px;
  }
  .toolbar input[type="search"] {
    width: 100%;
  }
  .columns {
    display: flex;
    width: max-content;
    padding: 1px 0 8px;
    gap: 10px;
  }
  .lane {
    min-height: clamp(320px, 46vh, 540px);
    width: min(76vw, 310px);
    flex: none;
    scroll-snap-align: start;
    padding-inline: 10px;
  }
  .lane h2 {
    font-size: 16px;
  }
  .card {
    padding: 16px;
  }
  .notebook {
    display: block;
    min-height: 340px;
    margin-top: 18px;
  }
  .notebook .editor {
    display: none;
  }
  .notebook.open .editor {
    display: block;
  }
  .notebook.open .tree {
    display: none;
  }
  .tree {
    border: 0;
  }
  .mobileback {
    display: inline-block;
  }
  .row {
    flex-wrap: wrap;
  }
  dialog {
    padding: 16px;
  }
  #actions {
    justify-content: flex-end;
  }
  .metrics {
    gap: 8px;
  }
  .metrics > div {
    padding: 14px;
    min-width: 130px;
  }
}

@media (max-width: 380px) {
  aside {
    padding-inline: 9px;
  }
  nav button {
    padding-inline: 5px;
  }
  .lanes-toggle {
    margin-left: 0;
  }
}
