:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --raised: #f0f2f4;
  --border: #e4e7eb;
  --subtle: #cdd2d8;
  --text: #0f1923;
  --muted: #8a95a3;
  --accent: #0d9488;
  --accent-mid: #0f766e;
  --accent-dim: rgba(13,148,136,.1);
  --green: #16a34a;
  --green-dim: rgba(22,163,74,.1);
  --amber: #b45309;
  --amber-dim: rgba(180,83,9,.1);
  --red: #dc2626;
  --red-dim: rgba(220,38,38,.1);
  --r: 10px;
  --r-sm: 6px;
}

[data-theme=dark] {
  --bg: #0d0f10;
  --surface: #151718;
  --raised: #1e2022;
  --border: #2a2d30;
  --subtle: #3d4145;
  --text: #e6eaed;
  --muted: #5a6370;
  --accent: #14b8a6;
  --accent-mid: #0d9488;
  --accent-dim: rgba(20,184,166,.12);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,.1);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,.1);
  --red: #f87171;
  --red-dim: rgba(248,113,113,.1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  input, textarea, select, button {
    font-size: 16px;
  }
}
.app {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}

.main {
  padding: 40px 48px;
  overflow: auto;
}

.main-narrow {
  max-width: 740px;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}

.logo {
  padding: 6px 10px 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-mid);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-decoration: none;
  display: block;
}

.cmd {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.cmd:hover {
  border-color: var(--subtle);
  background: var(--surface);
}

.cmd-kbd {
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--muted);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 10px 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-add-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.nav-add-btn:hover {
  background: var(--raised);
  color: var(--text);
}

.nav-inline-create {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 10px;
  margin: 2px 0;
}

.nav-inline-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-create-btn {
  height: 28px;
  width: 100%;
  padding: 0 8px;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.12s;
}
.nav-create-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.nav-create-btn:not(:disabled):hover {
  opacity: 0.85;
}

.nav-inline-input {
  flex: 1;
  height: 26px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  padding: 0 2px;
}
.nav-inline-input::-moz-placeholder {
  color: var(--muted);
}
.nav-inline-input::placeholder {
  color: var(--muted);
}

.nav-item {
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover {
  background: var(--raised);
  color: var(--text);
}
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent-mid);
}
.nav-item.active .nav-count {
  background: var(--accent-dim);
  border-color: transparent;
  color: var(--accent-mid);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-count {
  font-size: 10px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--muted);
  min-width: 22px;
  text-align: center;
  font-weight: 500;
}

.nav-div {
  height: 1px;
  background: var(--border);
  margin: 10px 4px;
}

.nav-project-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
}
.nav-project-row:hover .nav-project-menu-btn, .nav-project-row.active .nav-project-menu-btn {
  opacity: 1;
}
.nav-project-row.active .nav-project-link {
  background: var(--accent-dim);
  color: var(--accent-mid);
}

.nav-project-link {
  flex: 1;
  min-width: 0;
  border-radius: var(--r-sm);
}
.nav-project-link .nav-left {
  min-width: 0;
  overflow: hidden;
}
.nav-project-link span:not(.p-dot):not(.nav-count) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-project-menu-btn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s;
  font-family: inherit;
  margin-right: 2px;
}
.nav-project-menu-btn:hover {
  background: var(--raised);
  color: var(--text);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--accent-mid);
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border-width: 1px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 10px max(14px, env(safe-area-inset-bottom));
  cursor: pointer;
  border-radius: var(--r);
  transition: background 0.12s;
}
.sidebar-footer:hover {
  background: var(--raised);
}
.sidebar-footer:hover .user-menu-dots {
  opacity: 1;
}

.user-menu-dots {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.12s;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
}

.user-ws {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.p-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 90;
}

.mobile-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent-mid);
  text-decoration: none;
}

.mobile-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 95;
}
.sidebar-overlay.active {
  display: block;
}

.sidebar.mobile-open {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 96;
  width: min(300px, 90vw);
  display: flex;
  height: 100dvh;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.btn {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--raised);
  opacity: 1;
}
.btn-ghost:disabled {
  background: var(--surface);
}

.btn-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.btn-icon:hover {
  background: var(--raised);
  color: var(--text);
}
.btn-icon:disabled {
  opacity: 0.4;
  cursor: default;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--raised);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s;
  white-space: nowrap;
}
.badge:hover {
  border-color: var(--subtle);
}
.badge.status-todo {
  color: var(--muted);
}
.badge.status-inprogress {
  color: var(--accent-mid);
  background: var(--accent-dim);
  border-color: transparent;
}
.badge.status-done {
  color: var(--green);
  background: var(--green-dim);
  border-color: transparent;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::-moz-placeholder {
  color: var(--muted);
}
.input::placeholder {
  color: var(--muted);
}

.quick-create {
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quick-create:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.quick-create input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
  font-family: inherit;
}
.quick-create input::-moz-placeholder {
  color: var(--muted);
}
.quick-create input::placeholder {
  color: var(--muted);
}

.qc-plus {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
}

.qc-hint {
  font-size: 11px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.qc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.qc-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}

.qc-top {
  padding: 16px 16px 0;
}

.qc-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  line-height: 1.4;
}
.qc-input::-moz-placeholder {
  color: var(--muted);
  font-weight: 400;
}
.qc-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.qc-meta {
  display: flex;
  gap: 6px;
  padding: 10px 16px 12px;
  flex-wrap: wrap;
}

.qc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--raised);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, color 0.12s;
}
.qc-pill:hover, .qc-pill.active {
  border-color: var(--accent);
  color: var(--text);
}

.qc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--raised);
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px 6px;
}

.dash-section {
  margin-bottom: 28px;
}

.dash-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.task-row:hover {
  background: var(--surface);
  transform: translateY(-1px);
}
.task-row:active {
  transform: translateY(0);
}
.task-row:hover .check {
  border-color: var(--accent);
}

.check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.check.done {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.task-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.task-title.done {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.task-proj {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-weight: 500;
}

.task-due {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}
.task-due.today {
  color: var(--amber);
  font-weight: 500;
}
.task-due.over {
  color: var(--red);
  font-weight: 500;
}

.add-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  margin-left: 2px;
}
.add-task-row:hover {
  background: var(--surface);
  color: var(--text);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.col-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.col-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.col-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.b-task {
  padding: 11px 12px;
  background: var(--raised);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.12s;
}
.b-task:last-child {
  margin-bottom: 0;
}
.b-task:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}

.b-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.b-proj {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.b-due {
  font-size: 11px;
  color: var(--muted);
}
.b-due.today {
  color: var(--amber);
  font-weight: 500;
}

.col-tasks {
  min-height: 40px;
}

.board.is-dragging .col-tasks {
  flex: 1;
  min-height: 80px;
}

.board.is-dragging .board-empty-col {
  display: none;
}

.b-task-ghost {
  opacity: 0.4;
  background: var(--accent-dim);
  border: 1px dashed var(--accent);
}

.b-task-dragging {
  opacity: 0.9;
  transform: rotate(1.5deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  cursor: grabbing;
}

.board-empty-col {
  background: var(--raised);
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.board-empty-col:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
}

.view-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-emoji {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-sm);
  padding: 2px 4px;
  transition: background 0.12s;
}
.project-emoji:hover {
  background: var(--raised);
}

.project-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: var(--r-sm);
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.project-name:hover {
  background: var(--raised);
}
.project-name:focus {
  background: var(--raised);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.member-stack {
  display: flex;
}
.member-stack .avatar {
  margin-right: -6px;
  border: 2px solid var(--surface);
}
.member-stack .avatar:last-child {
  margin-right: 0;
}

.status-group {
  margin-bottom: 8px;
}

.status-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.1s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.status-group-header:hover {
  background: var(--surface);
}

.status-group-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.status-group-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 7px;
  font-weight: 500;
}

.status-group-arrow {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  transition: transform 0.15s;
}

.psp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.psp-section {
  min-width: 200px;
}

.psp-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.psp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psp-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.psp-radio input[type=radio] {
  margin-top: 3px;
  flex-shrink: 0;
}
.psp-radio.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.psp-radio-title {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

.psp-radio-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

.psp-member-list {
  margin-bottom: 10px;
}

.psp-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.psp-member-row:last-child {
  border-bottom: none;
}

.psp-member-name {
  flex: 1;
  font-size: 13px;
}

.psp-member-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: inherit;
}
.psp-member-remove:hover {
  background: var(--raised);
  color: var(--text);
}

.psp-add {
  margin-top: 8px;
}

.status-group.collapsed .status-group-arrow {
  transform: rotate(-90deg);
}
.status-group.collapsed .status-group-tasks {
  display: none;
}

.dropdown-menu {
  display: none;
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 180px;
  z-index: 200;
}

.dropdown-div {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dd-invite {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 2px;
}

.dd-invite-input {
  flex: 1;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  padding: 0 8px;
  outline: none;
  min-width: 0;
}
.dd-invite-input:focus {
  border-color: var(--accent);
}
.dd-invite-input::-moz-placeholder {
  color: var(--muted);
}
.dd-invite-input::placeholder {
  color: var(--muted);
}

.task-more-menu {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 160px;
  z-index: 100;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.12s;
  padding: 4px 0;
}
.back-link:hover {
  color: var(--text);
}

.back-arrow {
  font-size: 15px;
  line-height: 1;
}

.task-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.task-detail-left {
  flex: 1;
  min-width: 0;
}

.task-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.task-detail-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text);
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: var(--r-sm);
  transition: background 0.12s;
  resize: none;
  overflow: hidden;
}
.task-detail-title:hover {
  background: var(--raised);
}
.task-detail-title:focus {
  background: var(--raised);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 28px;
}

.meta-field {
  position: relative;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  min-width: 0;
}
.meta-field:last-child {
  border-right: none;
}
.meta-field:hover {
  background: var(--raised);
}

.meta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

.meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-value.muted {
  color: var(--muted);
}
.meta-value.today {
  color: var(--amber);
}

.desc-section {
  margin-bottom: 28px;
}

.desc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.desc-area {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  min-height: 80px;
  outline: none;
  width: 100%;
  font-family: inherit;
  background: var(--surface);
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.desc-area:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.desc-area::-moz-placeholder {
  color: var(--muted);
  font-style: italic;
}
.desc-area::placeholder {
  color: var(--muted);
  font-style: italic;
}

.checklist-section {
  margin-bottom: 28px;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.checklist-progress {
  font-size: 11px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  font-weight: 500;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  transition: background 0.1s;
  cursor: pointer;
}
.checklist-item:hover {
  background: var(--surface);
}
.checklist-item:hover .check-box {
  border-color: var(--accent);
}

.check-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.12s, background 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-box.checked {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.check-label {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.check-label.done {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}

.checklist-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
}
.checklist-add .check-box {
  opacity: 0.35;
}

.checklist-add-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
.checklist-add-input::-moz-placeholder {
  color: var(--muted);
}
.checklist-add-input::placeholder {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.comments-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
}

.comment-time {
  font-size: 12px;
  color: var(--muted);
}

.comment-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.comment-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--r-sm);
  margin-top: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  -o-object-fit: contain;
     object-fit: contain;
}

.comment-file-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-mid);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: background 0.12s;
}
.comment-file-link:hover {
  background: var(--raised);
}

.comment-file-size {
  color: var(--muted);
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}

.comment-input {
  flex: 1;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.comment-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.comment-input::-moz-placeholder {
  color: var(--muted);
}
.comment-input::placeholder {
  color: var(--muted);
}

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-overlay.active {
  display: flex;
}

.lb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(90vw, 960px);
  max-height: 90dvh;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(90dvh - 60px);
  border-radius: var(--r);
  -o-object-fit: contain;
     object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lb-bar {
  display: flex;
  gap: 8px;
}

.attachments-section {
  margin-bottom: 28px;
}

.attachments-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.12s;
}
.attachment-item:hover {
  border-color: var(--accent-dim);
}

.attachment-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.attachment-info {
  flex: 1;
  min-width: 0;
}

.attachment-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.attachment-name:hover {
  color: var(--accent);
}

.attachment-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.attachment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s;
  flex-shrink: 0;
}

.attachment-item:hover .attachment-actions {
  opacity: 1;
}

.attachment-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.attachment-btn:hover {
  background: var(--raised);
  color: var(--text);
}
.attachment-btn.delete:hover {
  color: var(--red);
}

.attachment-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--border);
  transition: border-color 0.12s, color 0.12s;
  background: none;
}
.attachment-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.attachment-progress {
  margin-bottom: 4px;
  display: none;
}
.attachment-progress.active {
  display: block;
}

.attachment-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--raised);
  overflow: hidden;
  margin-top: 4px;
}

.attachment-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s;
}

.attachment-progress-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.assignee-stack {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.assignee-add-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.12s, color 0.12s;
}
.assignee-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.activity-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.activity-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  position: relative;
}
.activity-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: -5px;
  width: 1px;
  background: var(--border);
}
.activity-item:last-child::before {
  display: none;
}

.activity-dot {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--raised);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.activity-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.activity-text strong {
  font-weight: 600;
}

.activity-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.inbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.inbox-section {
  margin-bottom: 28px;
}

.inbox-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inbox-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.inbox-task-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-task-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
  position: relative;
}
.inbox-item:hover {
  background: var(--surface);
  transform: translateY(-1px);
}
.inbox-item:hover .inbox-dismiss {
  opacity: 1;
}
.inbox-item:hover .inbox-check {
  border-color: var(--accent);
}

.inbox-type-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.inbox-body {
  flex: 1;
  min-width: 0;
}

.inbox-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-time {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.inbox-dismiss {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s;
  flex-shrink: 0;
}
.inbox-dismiss:hover {
  background: var(--raised);
  color: var(--text);
}

.palette {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  z-index: 100;
}
.palette.active {
  display: flex;
}

.palette-box {
  width: 540px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.palette-input {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-family: inherit;
}
.palette-input::-moz-placeholder {
  color: var(--muted);
}
.palette-input::placeholder {
  color: var(--muted);
}

.palette-section {
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.palette-empty {
  padding: 24px 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.palette-group {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}

.p-item {
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s;
}
.p-item:hover, .p-item.sel {
  background: var(--raised);
}

.p-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-item-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.p-item-icon--task {
  font-size: 12px;
  color: var(--muted);
}

.p-item-kbd {
  font-size: 10px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 500;
  flex-shrink: 0;
}

.p-item-meta {
  font-size: 11px;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.mde-toolbar {
  display: none;
  align-items: center;
  gap: 1px;
  padding: 3px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.mde-toolbar.mde-visible {
  display: flex;
}

.mde-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 26px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.mde-btn:hover {
  background: var(--raised);
  color: var(--text);
}
.mde-btn.mde-b {
  font-weight: 800;
}
.mde-btn.mde-i {
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
}
.mde-btn.mde-code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: -0.03em;
}

.mde-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

.md-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid transparent;
  min-height: 44px;
  cursor: text;
  transition: border-color 0.12s, background 0.12s;
}
.md-body:hover {
  border-color: var(--border);
  background: var(--surface);
}
.md-body.md-empty {
  color: var(--muted);
  font-style: italic;
  min-height: 44px;
}
.md-body h1 {
  font-size: 17px;
  font-weight: 700;
  margin: 0.75em 0 0.3em;
  letter-spacing: -0.02em;
}
.md-body h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0.6em 0 0.25em;
}
.md-body h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0.5em 0 0.2em;
}
.md-body h1:first-child, .md-body h2:first-child, .md-body h3:first-child {
  margin-top: 0;
}
.md-body p {
  margin: 0.35em 0;
}
.md-body p:first-child {
  margin-top: 0;
}
.md-body p:last-child {
  margin-bottom: 0;
}
.md-body strong {
  font-weight: 700;
}
.md-body em {
  font-style: italic;
}
.md-body code {
  font-family: "SF Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text);
}
.md-body pre {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  overflow-x: auto;
  margin: 0.6em 0;
}
.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
}
.md-body ul, .md-body ol {
  padding-left: 18px;
  margin: 0.3em 0;
}
.md-body li {
  margin: 0.15em 0;
  line-height: 1.6;
}
.md-body a {
  color: var(--accent-mid);
  text-decoration: none;
}
.md-body a:hover {
  text-decoration: underline;
}
.md-body br {
  display: block;
  margin: 0.2em 0;
  content: "";
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 20px;
}

.stg-section {
  margin-bottom: 32px;
}

.stg-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stg-count {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child {
  border-bottom: none;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-email {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.role-badge.role-owner {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-dim);
}
.role-badge.role-member {
  background: var(--raised);
  color: var(--muted);
  border-color: var(--border);
}

.invite-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.invite-form .invite-input {
  max-width: 320px;
}

.invite-msg {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.invite-msg.invite-msg--ok {
  background: var(--green-dim);
  color: var(--green);
}
.invite-msg.invite-msg--err {
  background: var(--red-dim);
  color: var(--red);
}

@media (max-width: 1024px) {
  .board {
    grid-template-columns: repeat(2, 1fr);
  }
  .main {
    padding: 32px 28px;
  }
  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .meta-field:nth-child(2) {
    border-right: none;
  }
  .meta-field:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .meta-field:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }
}
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
  .main {
    padding: 70px 18px 40px;
  }
  .page-title {
    font-size: 22px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .task-row {
    flex-wrap: wrap;
    min-height: 48px;
    padding: 10px 12px;
    gap: 6px;
  }
  .task-title {
    width: calc(100% - 26px);
    white-space: normal;
  }
  .task-meta {
    padding-left: 26px;
  }
  .qc-hint {
    display: none;
  }
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-detail-title {
    font-size: 18px;
  }
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .project-name {
    max-width: 100%;
    font-size: 18px;
  }
  .meta-field:nth-child(2) {
    border-right: none;
  }
  .meta-field:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .meta-field:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }
}
@media (max-width: 420px) {
  .task-proj {
    display: none;
  }
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .meta-field {
    border-right: none !important;
    border-top: 1px solid var(--border);
  }
  .meta-field:first-child {
    border-top: none;
  }
}/*# sourceMappingURL=app.css.map */