:root {
  --primary: #65ff9a;
  --secondary-accent: #7b5cff;
  --secondary: #507851;
  --ink: #243229;
  --ink-soft: #5f6e66;
  --line: #dbe4df;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --bg: #eef2ef;
}

body[data-theme="dark"] {
  --primary: #54db86;
  --secondary-accent: #9b85ff;
  --secondary: #67aa83;
  --ink: #e8f1ec;
  --ink-soft: #9fb2a8;
  --line: #304039;
  --glass: rgba(20, 30, 25, 0.8);
  --glass-strong: rgba(20, 30, 25, 0.9);
  --bg: #0f1613;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", "noka", system-ui, sans-serif;
  background: var(--bg);
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Sora", "larken", sans-serif;
  letter-spacing: -0.01em;
}

.scene-bg,
.scene-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-bg {
  background: linear-gradient(180deg, #f5f7f6 0%, #eef2f0 52%, #e8ece9 100%);
}

.scene-glow-a {
  display: none;
}

.scene-glow-b {
  display: none;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  background: #f4f7f5;
  border: 1px solid #dfe7e2;
  box-shadow: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe5df;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #12331e;
  background: linear-gradient(145deg, var(--primary), #b4ffd1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.overline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar h1 {
  font-size: 1.1rem;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.top-link {
  text-decoration: none;
  color: #2e4338;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.theme-btn {
  border-radius: 999px;
  border: 1px solid #d6e1db;
  background: #fff;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.notify-btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid #d6e1db;
  background: #fff;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
}

.notify-icon { font-size: 1rem; line-height: 1; }

.notify-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  background: #e34b4b;
  border: 2px solid #fff;
}

.notify-panel {
  position: absolute;
  top: 64px;
  right: 18px;
  width: 320px;
  max-width: calc(100vw - 34px);
  z-index: 20;
  background: #ffffff;
  border: 1px solid #dbe5df;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(22, 35, 29, 0.16);
  padding: 10px;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.mark-read-btn {
  border: 1px solid #d6e1db;
  background: #f7fbf8;
  color: #27453a;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
}

.notify-item {
  font-size: 0.76rem;
  color: #31453a;
  border: 1px solid #e6ede9;
  border-radius: 8px;
  padding: 0.44rem 0.52rem;
  margin-top: 0.38rem;
  background: #fbfdfc;
}

.notify-item-unread {
  border-color: #b7e4c9;
  background: #ecfff3;
}

.notify-item-strong {
  font-weight: 700;
}

.main-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 290px;
  gap: 12px;
  align-items: start;
  overflow: clip;
}

.main-grid > * {
  min-width: 0;
}

.glass {
  background: #ffffff;
  border: 1px solid #dbe5df;
  box-shadow: none;
  border-radius: 18px;
}

.left-rail,
.right-rail,
.card {
  padding: 12px;
}

.left-rail h3 {
  font-size: 0.95rem;
}

.muted {
  margin-top: 0.38rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.rail-title {
  margin: 1rem 0 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7971;
}

.stack { display: grid; gap: 0.45rem; }
.stack.tight { margin-top: 0.6rem; }

.chip {
  text-decoration: none;
  padding: 0.48rem 0.62rem;
  border-radius: 10px;
  border: 1px solid #d7e1dc;
  background: #f9fbfa;
  color: #31453a;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip-active {
  background: linear-gradient(145deg, #dffff0, #edfff5);
  border-color: #a3ebc0;
  color: #18402a;
}

.rail-panel {
  margin-top: 0.85rem;
  border-top: 1px solid #dbe3de;
  padding-top: 0.75rem;
}

.rail-panel summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f4539;
}

.center-content {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: clip;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.card-head h2 {
  font-size: 1rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid #b9d3c4;
  background: #edf9f2;
  color: #245a3c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

input,
select,
textarea,
button {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: #25382f;
  background: #ffffff;
  font-size: 0.84rem;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #56675f 50%), linear-gradient(135deg, #56675f 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: #173122;
  background: linear-gradient(145deg, var(--primary), #a8ffc9);
}

button:hover { filter: brightness(0.97); }

.composer-form { display: grid; gap: 0.62rem; }
.composer-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}
.switch-btn {
  background: #f6faf8;
  border: 1px solid #d3ddd8;
  color: #2f473c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
}
.switch-btn.is-active {
  background: #e9fff3;
  border-color: #9de7bf;
  color: #1e4f34;
}
.composer-form > label,
.composer-form .form-row-two > label {
  display: grid;
  gap: 0.35rem;
}

.composer-form label > span {
  font-size: 0.78rem;
  color: #55655e;
  font-weight: 600;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.channel-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.2rem 0.05rem 0.1rem;
}
.channel-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: #3a4f45;
}
.channel-checks input[type="checkbox"] {
  accent-color: #507851;
}

.file-input-wrap {
  border: 1px dashed #9bb7a9;
  background: #f7fbf8;
  padding: 0.62rem;
}

.file-input-wrap input {
  border: 0;
  padding: 0;
  background: transparent;
}
.upload-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #60736a;
}

.table-card { padding-bottom: 4px; }
.composer-card,
.table-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.62rem;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.view-switch {
  display: inline-flex;
  gap: 0.32rem;
  border: 1px solid #cfe0d7;
  border-radius: 999px;
  padding: 0.2rem;
  background: #eef8f2;
}
.view-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  color: #32483c;
  padding: 0.32rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.view-btn.is-active {
  background: #ffffff;
  border-color: #9fdcba;
  color: #214f35;
}

.table-toolbar input {
  max-width: 480px;
  width: 100%;
}

.status-filters {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
  border: 1px solid #d9d3ff;
  border-radius: 999px;
  padding: 0.2rem;
  background: #f5f2ff;
}

.filter-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  color: #32483c;
  padding: 0.32rem 0.6rem;
}

.filter-btn.is-active {
  background: #ffffff;
  border-color: #c0b2ff;
  color: #4d38a8;
}

.table-wrap {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #d9e3dd;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1250px;
  background: #ffffff;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f7f4;
  text-align: left;
  padding: 0.56rem 0.5rem;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5d6f66;
  border-bottom: 1px solid #dfe7e2;
}

td {
  padding: 0.53rem 0.5rem;
  border-bottom: 1px solid #edf2ef;
  font-size: 0.78rem;
  vertical-align: middle;
}

tbody tr:hover { background: #f8fbf9; }

.file-list { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }

.thumb-link img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #d9e4de;
}

.file-pill {
  display: inline-block;
  border: 1px solid #d2ddd6;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  color: #2f4a3d;
  text-decoration: none;
  background: #f8fbf9;
}

.more-files,
.muted-inline {
  font-size: 0.72rem;
  color: #687a71;
}
.task-link {
  color: #214237;
  font-weight: 700;
  text-decoration: none;
}
.task-link:hover {
  text-decoration: underline;
}
.open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cbe0d4;
  background: #ebfff3;
  color: #194c31;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.56rem;
}
.secondary-btn {
  background: #f3f7f5;
  border: 1px solid #d3ded7;
  color: #264237;
}
.danger-btn {
  background: #ffecec;
  border: 1px solid #f1bcbc;
  color: #8e2e2e;
}
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.32rem;
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d7e2db;
  background: #f7fbf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0;
}
.icon-btn i {
  pointer-events: none;
}
.icon-open {
  color: #285a3f;
}
.icon-delete {
  color: #8e2e2e;
  background: #fff1f1;
  border-color: #f0c2c2;
}
.comment-count {
  display: inline-flex;
  min-width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5f1;
  border: 1px solid #d2ded7;
  color: #2c4539;
  font-size: 0.74rem;
  font-weight: 700;
}

.status {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.type-pill {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid #d7e2db;
  background: #f5f9f7;
  color: #345045;
}
.type-project {
  background: #eaf0ff;
  border-color: #cfdbfb;
  color: #2f4e90;
}
.type-post {
  background: #eafff1;
  border-color: #ccefdc;
  color: #24553a;
}

.status-draft { background: #e9eef7; color: #35597b; }
.status-in_progress { background: #e6efff; color: #2b4e97; }
.status-for_approval { background: #fff3dd; color: #8e6807; }
.status-changes_requested { background: #ffe9e9; color: #a23c3c; }
.status-done { background: #dcf9e7; color: #1c6642; }

.row-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.row-form select {
  min-width: 130px;
  font-size: 0.74rem;
  padding: 0.43rem 0.55rem;
}

.row-form button {
  font-size: 0.72rem;
  padding: 0.34rem 0.42rem;
  min-width: 30px;
}

.comment-box { min-width: 220px; }
.comment-list { margin-bottom: 0.35rem; }
.comment-item {
  font-size: 0.71rem;
  color: #384d42;
  margin-bottom: 0.24rem;
  line-height: 1.35;
}
.comment-files-inline {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.28rem;
}
.comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.comment-form input {
  min-width: 0;
  flex: 1;
  font-size: 0.72rem;
  padding: 0.38rem 0.46rem;
}
.comment-form button {
  font-size: 0.7rem;
  padding: 0.35rem 0.48rem;
}
.comment-file-input {
  flex: 1 1 100%;
  font-size: 0.68rem !important;
  padding: 0.28rem 0.4rem !important;
}

.right-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  z-index: 3;
}

.right-rail .mini-card {
  background: #f8fbf9;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #dbe5df;
  isolation: isolate;
  padding: 12px 14px;
}

.mini-card h4 {
  font-size: 0.84rem;
  color: #51645b;
}

.stat-big {
  margin: 0.52rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #223a2e;
}

.meter {
  width: 100%;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #e8efea;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.error { color: #b31e1e; font-weight: 700; }
.hidden { display: none !important; }

.center-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.detail-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  align-items: start;
}

.board-view {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.board-col {
  border: 1px solid #dce6e1;
  border-radius: 12px;
  background: #f8fbf9;
  padding: 0.45rem;
  min-height: 260px;
}
.board-col.is-drop-target {
  border-color: #9fdcba;
  background: #ecfff4;
}
.board-col > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.board-col h3 {
  font-size: 0.78rem;
  color: #3b5347;
}
.board-count {
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid #d2ded7;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2f493d;
}
.board-cards {
  display: grid;
  gap: 0.45rem;
}
.board-card {
  border: 1px solid #d8e3dc;
  border-radius: 10px;
  background: #fff;
  padding: 0.48rem;
  display: grid;
  gap: 0.34rem;
}
.board-card.is-dragging {
  opacity: 0.55;
}
.board-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.42rem;
}
.comment-chip {
  font-size: 0.68rem;
  border: 1px solid #d6e2db;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  background: #f5faf7;
  color: #334b3f;
}
.board-actions {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}
.drag-hint {
  font-size: 0.68rem;
  border: 1px dashed #c3d7cc;
  border-radius: 8px;
  color: #4d665a;
  padding: 0.2rem 0.42rem;
  background: #f5faf7;
}
.detail-main,
.detail-side > .card {
  padding: 14px;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.detail-head h2 {
  margin-top: 0.18rem;
  font-size: 1.34rem;
}
.detail-meta {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.detail-meta div {
  border: 1px solid #dbe5df;
  background: #f8fbf9;
  border-radius: 12px;
  padding: 0.58rem 0.66rem;
}
.detail-meta span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #66796f;
}
.detail-meta b {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.83rem;
}
.detail-block {
  margin-top: 0.8rem;
}
.detail-block h3 {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.detail-text {
  border: 1px solid #dbe5df;
  background: #fdfefd;
  border-radius: 12px;
  padding: 0.65rem 0.72rem;
  font-size: 0.84rem;
  line-height: 1.48;
  white-space: pre-wrap;
}
.detail-files {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.detail-file-thumb {
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  text-decoration: none;
  color: #2b4338;
  font-size: 0.7rem;
}
.detail-file-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8e3dc;
}
.detail-side {
  display: grid;
  gap: 12px;
}
.detail-comments {
  margin-top: 0.68rem;
  display: grid;
  gap: 0.44rem;
}
.detail-comment {
  border: 1px solid #dce6e1;
  background: #fbfdfc;
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
}
.detail-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
}
.detail-comment-actions {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}
.comment-delete-btn {
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #f0c2c2;
  background: #fff1f1;
  color: #8e3434;
  font-size: 0.66rem;
  font-weight: 700;
}
.detail-comment p {
  margin: 0.34rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.detail-comment-files {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reveal {
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1500px) {
  .main-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: 100%;
    margin: 0 auto;
    padding: 8px;
    border-radius: 16px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .notify-panel {
    left: 8px;
    right: 8px;
    width: auto;
    top: 118px;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .left-rail,
  .center-content,
  .right-rail {
    grid-column: 1 / -1;
  }
  .right-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .form-row-two,
  .table-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-right {
    justify-content: flex-start;
  }
  .board-view {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
}

body[data-theme="dark"] .scene-bg {
  background: linear-gradient(180deg, #121b17 0%, #0e1512 52%, #0b120f 100%);
}
body[data-theme="dark"] .top-link,
body[data-theme="dark"] .theme-btn,
body[data-theme="dark"] .notify-btn,
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .notify-panel,
body[data-theme="dark"] .notify-item,
body[data-theme="dark"] .mark-read-btn,
body[data-theme="dark"] .chip,
body[data-theme="dark"] .switch-btn,
body[data-theme="dark"] .filter-btn,
body[data-theme="dark"] table,
body[data-theme="dark"] thead th,
body[data-theme="dark"] .right-rail .mini-card,
body[data-theme="dark"] .detail-meta div,
body[data-theme="dark"] .detail-text,
body[data-theme="dark"] .detail-comment,
body[data-theme="dark"] .file-pill,
body[data-theme="dark"] .open-btn,
body[data-theme="dark"] .comment-count {
  background-color: #18231e;
  border-color: #31413a;
  color: #dce8e2;
}
body[data-theme="dark"] .view-btn,
body[data-theme="dark"] .board-col,
body[data-theme="dark"] .board-card,
body[data-theme="dark"] .board-count,
body[data-theme="dark"] .comment-chip,
body[data-theme="dark"] .icon-btn {
  background-color: #18231e;
  border-color: #31413a;
  color: #dce8e2;
}
body[data-theme="dark"] .drag-hint {
  color: #9db1a6;
}
body[data-theme="dark"] .view-switch {
  border-color: #386350;
  background: #1a2a23;
}
body[data-theme="dark"] .status-filters {
  border-color: #5847a8;
  background: #221c3e;
}
body[data-theme="dark"] .filter-btn.is-active {
  border-color: #7f6ee0;
  color: #c7bcff;
  background: #1a162e;
}
body[data-theme="dark"] .drag-hint {
  border-color: #3c5448;
  background: #15201b;
}
body[data-theme="dark"] .upload-note {
  color: #97ada1;
}
body[data-theme="dark"] .board-col.is-drop-target {
  border-color: #5c8c72;
  background: #1d2c25;
}
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .glass {
  border-color: rgba(95, 126, 111, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}
body[data-theme="dark"] .status-draft { background: #263747; color: #b3d2ee; }
body[data-theme="dark"] .status-in_progress { background: #213b5b; color: #b7d7ff; }
body[data-theme="dark"] .status-for_approval { background: #4a3b20; color: #ffe2a7; }
body[data-theme="dark"] .status-changes_requested { background: #4e2f2f; color: #ffc0c0; }
body[data-theme="dark"] .status-done { background: #214735; color: #b6f5d5; }
body[data-theme="dark"] tbody tr:hover { background: #16211c; }
body[data-theme="dark"] .badge {
  background: #213c2f;
  border-color: #2f6248;
  color: #b8f0d0;
}
body[data-theme="dark"] .meter {
  background: #203029;
}
body[data-theme="dark"] .danger-btn,
body[data-theme="dark"] .comment-delete-btn {
  background: #4e2b2b;
  border-color: #7b4040;
  color: #ffc9c9;
}
body[data-theme="dark"] .secondary-btn {
  background: #213029;
  border-color: #3a4f44;
  color: #d7e7df;
}
