* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: #f6f7f9;
  color: #1e2330;
  -webkit-font-smoothing: antialiased;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 6px;
}
h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.refresh {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #e3e6ea;
  background: #fff;
  color: #5a6472;
  font-size: 16px;
  cursor: pointer;
}
.refresh:hover {
  border-color: #c7ccd3;
}
.viewtoggle {
  display: flex;
  gap: 2px;
  background: #eceef3;
  border-radius: 9px;
  padding: 2px;
}
.vbtn {
  border: 0;
  background: transparent;
  color: #6b7480;
  font-size: 13px;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.vbtn.active {
  background: #fff;
  color: #1e2330;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.08);
}
.tl-zoom {
  display: flex;
  gap: 0;
  padding: 12px 18px 10px;
}
.tl-zbtn {
  border: 1px solid #e3e6ea;
  background: #fff;
  color: #6b7480;
  font-size: 12px;
  font-family: inherit;
  padding: 5px 14px;
  cursor: pointer;
}
.tl-zbtn:first-child {
  border-radius: 8px 0 0 8px;
}
.tl-zbtn:last-child {
  border-radius: 0 8px 8px 0;
}
.tl-zbtn + .tl-zbtn {
  border-left: 0;
}
.tl-zbtn.active {
  background: #5145cd;
  color: #fff;
  border-color: #5145cd;
}
.tl2 {
  overflow-x: auto;
  padding: 0 0 40px;
}
.tl2-inner {
  position: relative;
}
.tl2-axis {
  position: relative;
  height: 28px;
  border-bottom: 1px solid #eceef1;
}
.tl2-gutter {
  position: sticky;
  left: 0;
  z-index: 4;
  display: inline-block;
  width: 150px;
  height: 28px;
  background: #f6f7f9;
  vertical-align: top;
}
.tl-tick {
  position: absolute;
  top: 8px;
  font-size: 11px;
  color: #9aa1ac;
  white-space: nowrap;
}
.tl2-today {
  position: absolute;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #e5484d;
  opacity: 0.45;
  z-index: 1;
}
.tl2-lane {
  position: relative;
  height: 26px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.tl2-lane-h {
  position: sticky;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tl2-lane-name {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.tl2-add {
  background: transparent;
  border: 0;
  color: #9aa1ac;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.tl2-add:hover {
  color: #5145cd;
}
.tl2-row {
  position: relative;
  height: 30px;
}
.tl2-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 150px;
  height: 30px;
  background: #fff;
  font-size: 13px;
  color: #1e2330;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
  box-sizing: border-box;
}
.tl2-bar {
  position: absolute;
  top: 6px;
  height: 18px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
}
.tl2-bar:hover {
  filter: brightness(1.08);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 50, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-form {
  width: 100%;
  max-width: 420px;
  margin: 0;
  box-shadow: 0 12px 40px rgba(20, 30, 50, 0.22);
}
.modal-extra {
  display: flex;
  gap: 8px;
}
.mx-done,
.mx-del {
  background: transparent;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.mx-done {
  color: #1f8f5f;
}
.mx-done:hover {
  background: #eaf6ef;
  border-color: #1f8f5f;
}
.mx-del {
  color: #e5484d;
}
.mx-del:hover {
  background: #fdeaea;
  border-color: #e5484d;
}
.status {
  padding: 2px 18px;
  color: #8a93a0;
  font-size: 14px;
  min-height: 18px;
}
.board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 18px 40px;
  overflow-x: auto;
}
.board.tl-mode {
  display: block;
  overflow-x: visible;
  padding: 0;
}
.col {
  flex: 0 0 280px;
  max-width: 280px;
  border-radius: 12px;
  padding: 10px;
  background: var(--col-bg, #eef0f4);
}
.col.drop {
  outline: 2px dashed var(--col-fg, #9aa1ac);
  outline-offset: -2px;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 6px 10px;
}
.col-name {
  color: var(--col-fg, #5a6472);
  font-weight: 500;
  font-size: 14px;
}
.col-count {
  color: #9aa1ac;
  font-size: 13px;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 6px;
}

.card {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid #edeff2;
  border-radius: 12px;
  padding: 12px;
  cursor: grab;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease;
}
.card:hover {
  box-shadow: 0 1px 6px rgba(20, 30, 50, 0.07);
}
.card.dragging {
  opacity: 0.45;
}
.card.removing {
  opacity: 0;
  transform: translateX(30px);
}
.check-circle {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c4cad3;
  background: transparent;
  cursor: pointer;
  margin-top: 1px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f8f5f;
}
.check-circle svg {
  opacity: 0;
}
.check-circle:hover {
  border-color: #1f8f5f;
}
.check-circle:hover svg {
  opacity: 0.55;
}
.note-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2701a;
  margin-top: 1px;
}
.card-body {
  flex: 1;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  word-wrap: break-word;
  min-width: 0;
}
.menu-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #aeb4bd;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  line-height: 0;
  margin-top: 1px;
}
.menu-btn:hover {
  background: #f1f3f6;
  color: #5a6472;
}
.card-notes {
  color: #7a828e;
  font-size: 14px;
  margin-top: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-link {
  color: var(--col-fg, #5145cd);
  text-decoration: underline;
  word-break: break-all;
}
.attachs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7480;
  background: #f1f3f6;
  padding: 4px 8px;
  border-radius: 7px;
  max-width: 100%;
}
.att-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.prog-track {
  flex: 1;
  height: 4px;
  background: #eef0f3;
  border-radius: 999px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: var(--col-fg, #5145cd);
  opacity: 0.7;
  border-radius: 999px;
}
.prog-num {
  font-size: 11px;
  color: #aeb4bd;
}
.subs {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sub {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sub-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.6px solid #c4cad3;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sub.sub-done .sub-check {
  background: #1f8f5f;
  border-color: #1f8f5f;
}
.sub-t {
  font-size: 13px;
  color: #5a6472;
}
.sub.sub-done .sub-t {
  color: #aab0b9;
  text-decoration: line-through;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
}
.due {
  font-size: 12px;
  color: #7a828e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
.tag {
  font-size: 12px;
  color: #6b7480;
  background: #f1f3f6;
  padding: 2px 8px;
  border-radius: 999px;
}
.add {
  margin: 10px 4px 2px;
  color: var(--col-fg, #5a6472);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.add:hover {
  opacity: 1;
}
.add-form {
  margin: 8px 0 2px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 6px rgba(20, 30, 50, 0.06);
}
.add-title,
.add-desc {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  font-family: inherit;
  background: transparent;
}
.add-title {
  font-size: 16px;
  font-weight: 500;
  color: #1e2330;
}
.add-desc {
  font-size: 14px;
  color: #5a6472;
  resize: vertical;
  min-height: 32px;
}
.add-title::placeholder,
.add-desc::placeholder {
  color: #b0b6bf;
}
.add-subs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sub-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sub-row-check {
  flex: 0 0 auto;
  accent-color: #1f8f5f;
}
.sub-row-text {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  outline: 0;
  padding: 2px 0;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: #1e2330;
}
.sub-row-text:focus {
  border-bottom-color: #e3e6ea;
}
.sub-row-del {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #b0b6bf;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0 4px;
}
.sub-row-del:hover {
  color: #e5484d;
}
.sub-add-btn {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #6b7480;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
}
.sub-add-btn:hover {
  color: var(--col-fg, #5145cd);
}
.add-divider {
  height: 1px;
  background: #eef0f3;
  margin: 2px 0;
}
.add-prog {
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-prog-label {
  font-size: 12px;
  color: #7a828e;
  flex: 0 0 auto;
}
.add-progress {
  flex: 1;
  min-width: 0;
  accent-color: var(--col-fg, #5145cd);
}
.add-prog-val {
  font-size: 12px;
  color: #8a93a0;
  flex: 0 0 auto;
  min-width: 34px;
  text-align: right;
}
.add-resp {
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-respi {
  flex: 1;
  min-width: 0;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #1e2330;
  outline: none;
}
.add-respi:focus {
  border-color: var(--col-fg, #5145cd);
}
.resp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #5a6472;
}
.resp-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.add-controls {
  display: flex;
  flex-direction: row;
  gap: 6px;
  flex: 1 1 100%;
}
.add-controls .add-mini {
  flex: 1 1 0;
  min-width: 0;
}
.add-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.add-mini {
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
  color: #1e2330;
  outline: none;
  min-width: 0;
}
.add-mini:focus {
  border-color: var(--col-fg, #5145cd);
}
.btn-add {
  background: var(--col-fg, #5145cd);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-add:hover {
  filter: brightness(0.95);
}
.btn-cancel {
  background: transparent;
  color: #6b7480;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.btn-cancel:hover {
  color: #1e2330;
}
.done-sep {
  font-size: 11px;
  color: #aeb4bd;
  margin: 12px 4px 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card.done-card {
  padding: 8px 12px;
  background: #f3f4f6;
  border-color: #eceef1;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card.done-card:hover {
  box-shadow: none;
}
.dcheck-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 0;
  color: #1f8f5f;
  cursor: pointer;
}
.dcheck-btn:hover {
  color: #0f6e45;
}
.dname {
  color: #9aa1ac;
  text-decoration: line-through;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.empty {
  color: #9aa1ac;
  font-size: 15px;
  padding: 44px 18px;
  text-align: center;
  width: 100%;
}
.menu {
  position: absolute;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 30, 50, 0.12);
  padding: 6px;
  z-index: 50;
  min-width: 170px;
}
.menu-label {
  font-size: 11px;
  color: #9aa1ac;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}
.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
  color: #1e2330;
  cursor: pointer;
  font-family: inherit;
}
.menu-item:hover {
  background: #f1f3f6;
}
.menu-sep {
  height: 1px;
  background: #eef0f3;
  margin: 4px 6px;
}
.menu-del {
  color: #e5484d;
}
.menu-del:hover {
  background: #fdeaea;
}
