@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --card: #fff;
  --ink: #202522;
  --muted: #626962;
  --line: #dedfd8;
  --accent: #806532;
  --soft: #eeeee8;
  --header: #fff;
  --header-ink: #202522;
  --header-muted: #626962;
  --header-accent: #806532;
  --header-control: #f5f4f0;
  --header-control-line: #dedfd8;
  --add-bg: #202522;
  --add-ink: #fff;
  --s-not: #666e68;
  --s-prog: #28638c;
  --s-wait: #926115;
  --s-block: #ae403a;
  --s-done: #307350;
  --shadow: 0 4px 24px #18251e05;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111815;
  --card: #1a231e;
  --ink: #eceee7;
  --muted: #abb4ab;
  --line: #344038;
  --accent: #d6b87a;
  --soft: #222e26;
  --header: #101713;
  --header-ink: #f5f3ec;
  --header-muted: #b2bfb5;
  --header-accent: #d6bb86;
  --header-control: #21332a;
  --header-control-line: #45584a;
  --add-bg: #d6bb86;
  --add-ink: #17231f;
  --s-not: #abb4ab;
  --s-prog: #86bce4;
  --s-wait: #e1b668;
  --s-block: #f2978c;
  --s-done: #8acfa4;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px;
  background: var(--card);
}
.skip-link:focus {
  top: 16px;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 32px;
}
header {
  background: var(--header);
  color: var(--header-ink);
  padding: 32px 0 0;
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.mark,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
header .mark {
  color: var(--header-accent);
}
h1 {
  font-size: 34px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 12px 0 8px;
}
.header-dot {
  color: var(--header-accent);
}
.header-sub {
  color: var(--header-muted);
  margin: 0 0 22px;
}
.header-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
}
.who {
  font-size: 12px;
  color: var(--header-muted);
}
.who b {
  color: var(--header-ink);
}
.who button {
  background: transparent;
  border: 0;
  color: var(--header-ink);
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
}
.theme-toggle {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
}
header .theme-toggle {
  background: var(--header-control);
  color: var(--header-ink);
  border-color: var(--header-control-line);
}
nav {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-top: 10px;
}
nav button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--header-muted);
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
}
nav button.on {
  color: var(--header-ink);
  border-color: var(--header-accent);
}
main.wrap {
  padding-top: 32px;
  padding-bottom: 64px;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-intro h2 {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 6px 0;
}
.section-intro p {
  margin: 0;
  color: var(--muted);
}
.project-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.completion {
  margin: 22px 0 30px;
}
.completion-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.bar {
  height: 7px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0 0;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--s-done);
  border-radius: 8px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--card);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.panel-sub {
  color: var(--muted);
  font-size: 12px;
  margin: -10px 0 20px;
}
.ws-progress {
  display: grid;
  gap: 18px;
}
.ws-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 7px 12px;
  align-items: center;
  font-size: 13px;
}
.ws-row .bar {
  grid-column: 1/-1;
  grid-row: 2;
  margin: 0;
  height: 5px;
}
.ws-row .stamp {
  text-align: right;
}
.update {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.update h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.update .meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.update .body {
  white-space: pre-wrap;
}
.attention .update {
  background: var(--soft);
  border: 0 !important;
  border-left: 3px solid var(--s-wait) !important;
  padding: 14px !important;
}
.attention .update:last-child {
  margin-bottom: 0;
}
.updates-section {
  margin-top: 32px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toolbar input[type="search"] {
  flex: 1 1 240px;
}
.toolbar label {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  padding: 9px 12px;
  min-height: 40px;
  max-width: 100%;
}
input[type="checkbox"] {
  min-height: 0;
  accent-color: var(--accent);
}
.ws {
  margin-top: 32px;
}
.ws-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.ws-head h2 {
  font-size: 21px;
  margin: 0;
}
.ws-head span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 20px;
  box-shadow: var(--shadow);
}
.item.done .title {
  color: var(--muted);
}
.status {
  font-size: 12px;
  font-weight: 600;
  border-left-width: 3px;
  width: 100%;
}
.status[data-s="Not started"] {
  border-left-color: var(--s-not);
}
.status[data-s="In progress"] {
  border-left-color: var(--s-prog);
  color: var(--s-prog);
}
.status[data-s="Waiting on NTC"] {
  border-left-color: var(--s-wait);
  color: var(--s-wait);
}
.status[data-s="Blocked"] {
  border-left-color: var(--s-block);
  color: var(--s-block);
}
.status[data-s="Done"] {
  border-left-color: var(--s-done);
  color: var(--s-done);
}
.title {
  font-weight: 650;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.id {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-right: 8px;
}
.detail {
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.fields {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items: end;
}
.fields label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 5px;
}
.fields input {
  width: 160px;
}
.fields select {
  min-width: 80px;
}
.fields input,
.fields select {
  font-size: 12px;
}
.notes {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  margin-top: 14px;
  font-size: 13px;
}
.saved {
  font-size: 11px;
  color: var(--s-done);
  opacity: 0;
  transition: opacity 0.2s;
}
.saved.on {
  opacity: 1;
}
.stamp {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.add {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.add input {
  flex: 1;
  min-width: 0;
}
.btn {
  background: var(--ink);
  color: var(--card);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  min-height: 42px;
}
.btn:hover {
  opacity: 0.85;
}
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.post[open] {
  display: grid;
  gap: 12px;
}
.post summary {
  color: var(--accent);
}
.post textarea {
  min-height: 100px;
}
.activity-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table.act {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
table.act td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}
table.act td:first-child {
  white-space: nowrap;
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.empty {
  color: var(--muted);
  padding: 16px 0;
}
.notice {
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--card);
  border-radius: 10px;
  margin-bottom: 20px;
}
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at top right, var(--soft), transparent 70%),
    var(--paper);
}
.login-shell {
  width: 100%;
  max-width: 470px;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.wordmark {
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.wordmark span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card .mark {
  margin-bottom: 32px;
  font-size: 9px;
}
.card h1 {
  font-size: 36px;
  margin: 10px 0 16px;
}
.card .sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 7px;
}
.card input {
  width: 100%;
  padding: 12px;
}
.card .btn {
  width: 100%;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
}
.note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.err {
  display: none;
  margin-top: 16px;
  color: var(--s-block);
  font-size: 13px;
}
.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0 0;
}
.login-footer span {
  opacity: 0.8;
}
@media (max-width: 800px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 16px 12px;
  }
  .header-actions {
    gap: 4px;
  }
  .item {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
  }
}
@media (max-width: 560px) {
  header {
    padding-top: 24px;
  }
  header .wrap {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  h1 {
    font-size: 30px;
  }
  .header-sub {
    font-size: 12px;
    margin-bottom: 0;
  }
  .header-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .who {
    font-size: 11px;
  }
  .who button {
    margin-left: 4px;
  }
  nav {
    gap: 22px;
    margin-top: 0;
  }
  nav button {
    font-size: 12px;
  }
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  main.wrap {
    padding-top: 24px;
  }
  .project-badge {
    display: none;
  }
  .section-intro h2 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .stat:last-child b {
    margin: 0;
  }
  .stat b {
    font-size: 28px;
  }
  .completion-top {
    flex-wrap: wrap;
  }
  .panel {
    padding: 20px;
  }
  .item {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .status {
    width: auto;
    min-width: 165px;
  }
  .fields {
    gap: 12px;
  }
  .fields label {
    flex: 1 1 90px;
  }
  .fields input {
    width: 100%;
  }
  .fields select {
    width: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .toolbar label {
    width: 100%;
  }
  .card {
    padding: 28px 24px;
  }
  .card h1 {
    font-size: 32px;
  }
  .login-top .theme-toggle {
    padding: 9px 12px;
  }
  .ws-head h2 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.header-add {
  background: var(--add-bg);
  color: var(--add-ink);
}
.view-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  width: fit-content;
  background: var(--soft);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.view-switch button {
  border: 0;
  padding: 8px 20px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  min-height: 40px;
}
.view-switch button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.result-count {
  margin: 12px 0;
}
#board {
  display: grid;
  grid-template-columns: repeat(5, minmax(245px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 20px;
  align-items: start;
}
.kanban-lane {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 180px;
  border-top: 3px solid var(--lane-color);
}
.lane-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.lane-heading h3 {
  font-size: 12px;
  margin: 0;
  color: var(--lane-color);
}
.lane-heading span {
  font-size: 11px;
  color: var(--muted);
  background: var(--card);
  border-radius: 20px;
  padding: 2px 8px;
}
.kanban-lane .item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.kanban-lane .title {
  font-size: 13px;
}
.kanban-lane .status {
  min-width: 0;
  width: 100%;
}
.kanban-lane .item:not(.expanded) .detail,
.kanban-lane .item:not(.expanded) .fields,
.kanban-lane .item:not(.expanded) .notes,
.kanban-lane .item:not(.expanded) .upd {
  display: none;
}
.board-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.drag-handle,
.card-expand {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 6px 0;
  min-height: 36px;
  font-size: 11px;
}
.drag-handle {
  cursor: grab;
}
.card-expand {
  color: var(--accent);
}
.lane-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}
.drag-over {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #07130dcc;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-top h2 {
  margin: 0;
}
.close-dialog {
  font-size: 26px;
  color: var(--muted);
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 14px 0 6px;
  font-weight: 600;
}
dialog input,
dialog textarea,
dialog select {
  width: 100%;
}
dialog textarea {
  min-height: 90px;
  resize: vertical;
}
.dialog-fields {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 14px;
}
.form-error {
  color: var(--s-block);
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
dialog .btn {
  margin-top: 18px;
  width: 100%;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 560px) {
  .header-actions {
    flex-wrap: wrap;
  }
  .header-actions .who {
    width: 100%;
  }
  #board {
    grid-template-columns: repeat(5, 260px);
  }
}
@media (min-width: 561px) {
  .header-actions {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
  }
  .header-actions .who {
    grid-column: 1/-1;
    text-align: right;
  }
}
#waiting {
  max-height: 340px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.attention .update {
  border-left-color: var(--attention-color) !important;
}
#board {
  grid-template-columns: repeat(5, minmax(210px, 1fr));
}
.lane-tasks {
  max-height: 65vh;
  min-height: 100px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 2px;
}
.kanban-lane .item .saved {
  opacity: 1;
  display: none;
}
.kanban-lane .item .saved.on {
  display: inline;
}
.kanban-lane .item:has(.saved.save-error) {
  outline: 1px solid var(--s-block);
}
@media (max-width: 560px) {
  .toolbar input[type="search"] {
    flex: 1 1 100%;
    width: 100%;
  }
  .toolbar select {
    flex: 1 1 120px;
  }
  #board {
    grid-template-columns: repeat(5, 260px);
  }
}
