:root {
  --bg: #eef3f1;
  --panel: #ffffff;
  --panel-strong: #f0f3f5;
  --ink: #182026;
  --muted: #64717a;
  --line: #dfe5e8;
  --accent: #168c7c;
  --accent-strong: #0f6f63;
  --danger: #ba3a3a;
  --warning: #b87512;
  --success: #26724c;
  --shadow: 0 16px 40px rgba(29, 40, 49, 0.14);
  --radius: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(22, 140, 124, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(214, 92, 74, 0.12), transparent 30%),
    linear-gradient(180deg, #f7faf9 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

input,
textarea,
select {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
}

.sidebar {
  background:
    radial-gradient(circle at top, rgba(22, 140, 124, 0.22), transparent 30%),
    linear-gradient(180deg, #162129 0%, #1d272f 52%, #20282f 100%);
  color: #f9fbfc;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 6px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #15a68f, #d75f50);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  font-size: 1rem;
}

.brand-title span {
  color: #aebbc3;
  font-size: 0.78rem;
}

.sidebar-section {
  display: grid;
  gap: 8px;
}

.sidebar-heading {
  color: #aebbc3;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 4px;
}

.board-row {
  width: 100%;
  color: #edf5f7;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: left;
  border: 1px solid transparent;
}

.board-row:hover,
.board-row.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.board-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.board-row span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.sidebar .ghost-button,
.sidebar .icon-button {
  color: #f5fbfc;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar .ghost-button:hover,
.sidebar .icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(214, 92, 74, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(22, 140, 124, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(239, 243, 241, 0.92)),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(246, 247, 249, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.session-badge span {
  display: grid;
  gap: 2px;
}

.session-badge strong {
  font-size: 0.92rem;
}

.session-badge small {
  color: var(--muted);
  font-size: 0.74rem;
}

.search {
  flex: 1 1 280px;
  min-width: 220px;
  position: relative;
}

.search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px;
  height: 18px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  background: #fff;
  color: var(--ink);
}

.filter-select,
.compact-input,
.modal input,
.modal textarea,
.modal select,
.list-title-input,
.board-name-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.filter-select:focus,
.compact-input:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus,
.list-title-input:focus,
.board-name-input:focus,
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 140, 124, 0.16);
}

.board-header {
  padding: 16px 18px 0;
  display: grid;
  gap: 12px;
}

.board-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.board-name-input {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  width: min(520px, 100%);
  border-color: transparent;
  background: transparent;
  padding-left: 0;
}

.visibility-pill {
  color: var(--muted);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.tab {
  color: var(--muted);
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.tab.is-active {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.ghost-button.is-active,
.mini-button.is-active {
  color: #fff;
  background: var(--accent-strong);
}

.tab i,
.icon-button i,
.ghost-button i,
.primary-button i,
.mini-button i {
  width: 18px;
  height: 18px;
}

.content {
  min-width: 0;
  flex: 1;
}

.board-view-stack {
  display: grid;
  gap: 16px;
}

.board-template-rack {
  padding: 0 18px;
  display: grid;
  gap: 12px;
}

.board-template-rack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kanban {
  height: calc(100vh - 178px);
  padding: 16px 18px 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 14px;
  align-items: start;
  overflow: auto;
}

.list {
  background: rgba(245, 249, 249, 0.82);
  border: 1px solid rgba(207, 220, 223, 0.9);
  border-radius: 8px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 12px 28px rgba(17, 33, 39, 0.08);
}

.list.is-dragging,
.card.is-dragging {
  opacity: 0.55;
}

.list-header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(223, 229, 232, 0.9);
  background: rgba(255, 255, 255, 0.46);
}

.list-title-input {
  flex: 1;
  border-color: transparent;
  background: transparent;
  font-weight: 700;
  padding: 8px 4px;
}

.list-meta {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.cards {
  min-height: 36px;
  overflow: auto;
  padding: 0 8px 8px;
  display: grid;
  gap: 8px;
}

.card {
  border-radius: 8px;
  border: 1px solid rgba(215, 223, 227, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 252, 0.94));
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(30, 42, 50, 0.08);
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 140, 124, 0.22);
  box-shadow: 0 18px 28px rgba(30, 42, 50, 0.14);
}

.card-cover {
  height: 8px;
  background: var(--card-cover, transparent);
}

.card-cover-image {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  background: #dce5e8;
}

.card-body {
  padding: 10px;
  display: grid;
  gap: 9px;
}

.card-title {
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card.is-complete .card-title {
  color: var(--muted);
  text-decoration: line-through;
}

.label-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 34px;
  max-width: 140px;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.label-chip {
  opacity: 0.58;
}

button.label-chip.is-active {
  opacity: 1;
  outline: 2px solid rgba(24, 32, 38, 0.25);
}

.badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border-radius: 999px;
  background: var(--panel-strong);
  padding: 3px 7px;
  white-space: nowrap;
}

.badge i {
  width: 14px;
  height: 14px;
}

.badge.overdue {
  color: #fff;
  background: var(--danger);
}

.badge.soon {
  color: #3c2600;
  background: #ffd680;
}

.badge.done {
  color: #fff;
  background: var(--success);
}

.badge.watching {
  color: #fff;
  background: #315d9b;
}

.badge.template {
  color: #fff;
  background: #5a4788;
}

.member-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #fff;
  margin-left: -6px;
}

.composer {
  padding: 0 8px 8px;
  display: grid;
  gap: 8px;
}

.composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.composer-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.add-list {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.view-surface {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.table-wrap,
.calendar-grid,
.dashboard-grid,
.automation-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f8fafb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  overflow: auto;
}

.calendar-day {
  min-height: 260px;
  padding: 10px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 8px;
}

.calendar-day:last-child {
  border-right: 0;
}

.calendar-date {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
}

.calendar-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 6px;
}

.dashboard-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric strong {
  font-size: 1.8rem;
}

.automation-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.automation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.automation-row:last-child {
  border-bottom: 0;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed #c9d3d8;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.icon-button,
.ghost-button,
.primary-button,
.mini-button,
.danger-button {
  min-height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-button {
  width: 36px;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--panel-strong);
}

.ghost-button {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--panel-strong);
}

.ghost-button:hover {
  background: #e2e9ec;
}

.ghost-button:disabled,
.primary-button:disabled,
.mini-button:disabled,
.icon-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.primary-button {
  padding: 9px 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.danger-button {
  padding: 9px 12px;
  color: #fff;
  background: var(--danger);
}

.mini-button {
  min-height: 28px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 0.8rem;
}

.mini-button:hover {
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(11, 18, 23, 0.55);
  display: grid;
  place-items: start center;
  padding: 32px 18px;
  overflow: auto;
}

.modal {
  width: min(1120px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-cover {
  height: 12px;
  background: var(--modal-cover, var(--accent));
}

.modal-image-cover {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #dce5e8;
}

.modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  width: 100%;
  border-color: transparent;
  font-size: 1.35rem;
  font-weight: 800;
  padding-left: 0;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  padding: 18px;
}

.modal-main,
.modal-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.section {
  display: grid;
  gap: 9px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.section-title i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.modal textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.swatches,
.chip-cloud,
.member-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.swatch {
  width: 34px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.swatch.is-active {
  border-color: var(--ink);
}

.member-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 8px 5px 5px;
  background: var(--panel-strong);
  color: var(--ink);
  opacity: 0.62;
}

.member-toggle.is-active {
  opacity: 1;
  outline: 2px solid rgba(24, 32, 38, 0.15);
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.check-row input[type="text"] {
  width: 100%;
}

.progress {
  height: 8px;
  background: var(--panel-strong);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
}

.comment,
.attachment,
.activity-item,
.custom-field-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.comment-meta,
.attachment-meta,
.activity-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.attachment a {
  color: var(--accent-strong);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.custom-field-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
}

.status-line {
  color: var(--muted);
  font-size: 0.86rem;
}

.board-hero {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.76)),
    color-mix(in srgb, var(--hero-tone, var(--board-tone, #168c7c)) 16%, white);
  box-shadow: 0 20px 40px rgba(22, 32, 38, 0.08);
}

.workspace-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(24, 32, 38, 0.94), rgba(22, 140, 124, 0.82)),
    #1d3c39;
  color: #fff;
}

.board-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.board-title-block,
.hero-side {
  display: grid;
  gap: 12px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat-grid--workspace {
  align-self: stretch;
}

.hero-stat {
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 6px;
}

.workspace-hero .hero-stat {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.workspace-hero .hero-stat span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  font-size: 1.5rem;
  font-family: "Fraunces", Georgia, serif;
}

.hero-pill-row,
.hero-action-row,
.hero-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-hero .hero-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-team-stack {
  display: flex;
  align-items: center;
}

.hero-side .filter-select,
.hero-side .ghost-button {
  background: rgba(255, 255, 255, 0.8);
}

.workspace-title-block h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.workspace-title-block p {
  margin: 6px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.board-description-preview {
  margin-top: 4px;
}

.workspace-switch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.workspace-switch:hover,
.workspace-switch.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.workspace-switch span {
  display: grid;
  gap: 2px;
}

.workspace-switch small {
  color: #b9c6cd;
  font-size: 0.75rem;
}

.board-row-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.board-template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.board-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.board-layout.has-menu {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.board-stage {
  min-width: 0;
}

.board-menu {
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 194px);
}

.board-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.board-menu-body {
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.menu-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.label-editor-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.archive-stack {
  display: grid;
  gap: 8px;
}

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.archive-row--board {
  margin-bottom: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.template-picker {
  margin: 0 8px 8px;
  padding: 12px;
  border: 1px solid rgba(214, 226, 228, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 249, 0.94)),
    #f8fbfb;
  display: grid;
  gap: 8px;
}

.template-card {
  border: 1px solid rgba(215, 223, 227, 0.92);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.template-card strong {
  overflow-wrap: anywhere;
}

.template-card-cover,
.template-card-color {
  height: 72px;
  width: 100%;
  object-fit: cover;
}

.template-card-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.template-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}

.workspace-surface {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card {
  border: 1px solid rgba(218, 227, 229, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(21, 36, 40, 0.07);
}

.workspace-card textarea {
  min-height: 120px;
  resize: vertical;
}

.workspace-table {
  background: rgba(255, 255, 255, 0.95);
}

.template-library {
  display: grid;
  gap: 14px;
}

.template-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.template-gallery-card {
  border: 1px solid rgba(214, 224, 227, 0.94);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px rgba(18, 33, 38, 0.07);
}

.template-gallery-card--card {
  display: grid;
}

.template-gallery-ribbon {
  height: 10px;
}

.template-gallery-image {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

.template-gallery-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.template-gallery-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.template-gallery-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.template-gallery-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-edit input {
  width: 100%;
}

.comment-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.attachment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checklist-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.checklist-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.is-muted {
  opacity: 0.7;
}

.card.is-aging-soft {
  box-shadow: 0 0 0 1px rgba(184, 117, 18, 0.18), 0 10px 18px rgba(184, 117, 18, 0.12);
}

.card.is-aging-hard {
  box-shadow: 0 0 0 1px rgba(186, 58, 58, 0.24), 0 12px 24px rgba(186, 58, 58, 0.12);
}

:root {
  --bg: #1a1916;
  --panel: #262624;
  --panel-strong: #1f1e1d;
  --ink: #f5f4ee;
  --muted: #b7b5a9;
  --line: #3e3e38;
  --accent: #d97757;
  --accent-strong: #e89070;
  --danger: #ad4639;
  --warning: #c68a57;
  --success: #4ade80;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

body {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.1), transparent 20%),
    linear-gradient(180deg, #1a1916 0%, #1a1916 60%, #1f1e1d 100%);
  color: var(--ink);
}

.filter-select:focus,
.compact-input:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus,
.list-title-input:focus,
.board-name-input:focus,
.search input:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.16);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.sidebar {
  background:
    radial-gradient(circle at top, rgba(217, 119, 87, 0.08), transparent 28%),
    linear-gradient(180deg, #1a1916 0%, #1b1b19 44%, #1f1e1d 100%);
  border-right-color: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  color: #1a1916;
  background: linear-gradient(135deg, #f5f4ee, #d97757);
  box-shadow: 0 14px 28px rgba(217, 119, 87, 0.18);
}

.brand-title strong {
  letter-spacing: 0.02em;
}

.brand-title span,
.sidebar-heading,
.brand-status,
.system-pair span,
.ui-eyebrow,
.hero-stat span,
.hero-console span,
th {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.brand-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #b7b5a9;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.sidebar-system {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.system-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.system-pair span {
  color: #b7b5a9;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.system-pair strong {
  color: #f5f4ee;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
}

.workspace-switch,
.board-row,
.sidebar .ghost-button,
.sidebar .icon-button {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.workspace-switch:hover,
.workspace-switch.is-active,
.board-row:hover,
.board-row.is-active {
  background: rgba(217, 119, 87, 0.1);
  border-color: rgba(217, 119, 87, 0.22);
}

.sidebar .ghost-button:hover,
.sidebar .icon-button:hover {
  background: rgba(217, 119, 87, 0.12);
}

.main {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.08), transparent 18%),
    linear-gradient(180deg, #1a1916 0%, #1b1b19 100%);
}

.topbar {
  background: rgba(26, 25, 22, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.search i {
  color: #b7b5a9;
}

.search input,
.filter-select,
.compact-input,
.modal input,
.modal textarea,
.modal select,
.workspace-card input,
.workspace-card textarea,
.workspace-card select,
.list-title-input,
.composer textarea {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}

.filter-select option,
.modal select option {
  background: #1f1e1d;
  color: var(--ink);
}

.board-name-input {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  width: min(620px, 100%);
}

.list-title-input,
.modal-title {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
}

.board-header {
  padding-top: 22px;
  gap: 14px;
}

.board-hero {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.1), transparent 30%),
    linear-gradient(135deg, #1b1b19, #262624),
    #1f1e1d;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28);
}

.workspace-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.12), transparent 30%),
    linear-gradient(135deg, #1b1b19, #262624),
    #1f1e1d;
}

.ui-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #b7b5a9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ui-eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.board-description-preview {
  color: rgba(245, 244, 238, 0.72);
  max-width: 760px;
  line-height: 1.55;
}

.status-line {
  color: #b7b5a9;
}

.hero-stat {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stat span {
  color: #b7b5a9;
  letter-spacing: 0.08em;
}

.hero-stat strong {
  color: #f5f4ee;
  font-size: 1.7rem;
}

.hero-pill {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #f5f4ee;
}

.hero-side .filter-select,
.hero-side .ghost-button {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero-console {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.02));
}

.hero-console span {
  color: #b7b5a9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-console strong {
  color: #f5f4ee;
  font-size: 1rem;
}

.hero-console p {
  margin: 0;
  color: #b7b5a9;
  line-height: 1.5;
}

.tabs {
  gap: 8px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.tab {
  color: #b7b5a9;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.tab:hover {
  color: #f5f4ee;
  background: rgba(255, 255, 255, 0.03);
}

.tab.is-active {
  color: #f5f4ee;
  border-color: rgba(217, 119, 87, 0.22);
  background: rgba(217, 119, 87, 0.12);
}

.board-view-stack {
  gap: 0;
}

.kanban {
  height: calc(100vh - 228px);
  padding-top: 20px;
}

.list {
  background: linear-gradient(180deg, #1f1e1d, #1b1b19);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.list-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.list-meta {
  color: #b7b5a9;
}

.cards {
  padding: 8px;
}

.card {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #262624, #1f1e1d);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.card:hover {
  border-color: rgba(217, 119, 87, 0.26);
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.badge {
  background: rgba(255, 255, 255, 0.04);
  color: #f5f4ee;
}

.avatar {
  border-color: #1f1e1d;
}

.view-surface,
.workspace-surface {
  gap: 18px;
}

.table-wrap,
.calendar-grid,
.dashboard-grid,
.automation-panel,
.workspace-card,
.template-card,
.template-gallery-card,
.board-menu,
.modal,
.workspace-table {
  background: linear-gradient(180deg, #262624, #1f1e1d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  color: var(--ink);
}

.board-menu {
  border-left-color: rgba(255, 255, 255, 0.08);
  background: rgba(26, 25, 22, 0.96);
}

th,
td,
.modal-header,
.list-header,
.board-menu-section,
.comment,
.checklist-group,
.activity-row,
.attachment,
.custom-field-row {
  border-color: rgba(255, 255, 255, 0.08);
}

th {
  color: #b7b5a9;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.icon-button,
.ghost-button,
.primary-button,
.mini-button,
.danger-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-button {
  color: #b7b5a9;
  background: rgba(255, 255, 255, 0.02);
}

.icon-button:hover {
  color: #f5f4ee;
  background: rgba(255, 255, 255, 0.05);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button.is-active,
.mini-button.is-active {
  background: rgba(217, 119, 87, 0.14);
  border-color: rgba(217, 119, 87, 0.26);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #d97757, #e89070);
  box-shadow: 0 16px 30px rgba(217, 119, 87, 0.2);
}

.primary-button:hover {
  background: linear-gradient(135deg, #e89070, #ffb3a9);
}

.modal-subtitle,
.template-card-meta,
.workspace-switch small {
  color: #b7b5a9;
}

.dashboard-surface {
  gap: 16px;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.06), transparent 22%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 4px
    );
}

.dashboard-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-panel--overview {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.dashboard-panel-head,
.dashboard-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-head-copy,
.dashboard-section-head > div:first-child {
  display: grid;
  gap: 8px;
}

.dashboard-status-block {
  min-width: 220px;
  max-width: 280px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.dashboard-status-block span,
.dashboard-metric-top span,
.dashboard-metric-meta,
.dashboard-number,
.dashboard-toggle,
.dashboard-row-main span,
.dashboard-member-head > span {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.dashboard-status-block span {
  color: #b7b5a9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-status-block strong {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 38, 36, 0.94), rgba(31, 30, 29, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-metric-top span {
  color: #b7b5a9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric-top i {
  width: 18px;
  height: 18px;
  color: rgba(217, 119, 87, 0.82);
}

.dashboard-metric strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  color: #f5f4ee;
}

.dashboard-metric-meta {
  color: #b7b5a9;
  font-size: 0.72rem;
  line-height: 1.6;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-panel--distribution,
.dashboard-panel--automation,
.dashboard-panel--completion,
.dashboard-panel--team {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dashboard-stack {
  display: grid;
  gap: 12px;
}

.dashboard-row-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-row-main,
.dashboard-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-row-main strong,
.dashboard-member-meta strong {
  font-size: 0.98rem;
}

.dashboard-row-main span,
.dashboard-member-head > span {
  color: #f5f4ee;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.dashboard-member-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-bar,
.dashboard-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-bar span,
.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97757, #e89070);
  box-shadow: 0 0 18px rgba(217, 119, 87, 0.18);
}

.dashboard-progress-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-progress-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent);
}

.dashboard-number {
  width: 88px;
  text-align: center;
}

.dashboard-toggle {
  display: inline-flex;
}

.dashboard-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dashboard-toggle span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.dashboard-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5f4ee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.dashboard-toggle input:checked + span {
  background: rgba(217, 119, 87, 0.16);
  border-color: rgba(217, 119, 87, 0.28);
}

.dashboard-toggle input:checked + span::after {
  transform: translateX(24px);
  background: #d97757;
}

.automation-row {
  padding: 12px 0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.automation-row strong {
  font-size: 1rem;
}

.empty-state {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #b7b5a9;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(217, 119, 87, 0.08), transparent 36%),
    linear-gradient(180deg, #1a1916 0%, #1f1e1d 100%);
}

.auth-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.auth-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.auth-panel--hero {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 32px;
}

.auth-panel--hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f5f4ee;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-panel--hero p {
  max-width: 680px;
  margin: 0;
  color: #d9d6c9;
  line-height: 1.65;
}

.auth-panel--form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
}

.auth-form-head {
  display: flex;
  justify-content: flex-end;
}

.theme-switch {
  white-space: nowrap;
}

.auth-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-feature,
.auth-demo-note,
.auth-session-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.auth-feature {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.auth-feature strong,
.auth-demo-note strong {
  color: #f5f4ee;
}

.auth-feature span,
.auth-demo-note span {
  color: #b7b5a9;
  line-height: 1.45;
}

.auth-demo-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: #b7b5a9;
}

.auth-demo-note code {
  color: #f5f4ee;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tabs .tab {
  justify-content: center;
  min-height: 42px;
}

.auth-copy {
  display: grid;
  gap: 6px;
}

.auth-copy strong {
  color: #f5f4ee;
  font-size: 1.15rem;
}

.auth-copy span {
  color: #b7b5a9;
  line-height: 1.45;
}

.auth-alert {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 11px 12px;
  line-height: 1.45;
}

.auth-alert--error {
  border-color: rgba(173, 70, 57, 0.38);
  background: rgba(173, 70, 57, 0.12);
  color: #ffd6cf;
}

.auth-alert--info {
  border-color: rgba(217, 119, 87, 0.28);
  background: rgba(217, 119, 87, 0.1);
  color: #f4d3c6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form .compact-input,
.auth-form .filter-select {
  min-height: 44px;
}

.auth-submit {
  justify-content: center;
  min-height: 46px;
}

body[data-theme="light"] {
  --bg: #eef3f1;
  --panel: #ffffff;
  --panel-strong: #f0f3f5;
  --ink: #182026;
  --muted: #64717a;
  --line: #dfe5e8;
  --accent: #d97757;
  --accent-strong: #ad5638;
  --danger: #ba3a3a;
  --warning: #b87512;
  --success: #26724c;
  --shadow: 0 16px 40px rgba(29, 40, 49, 0.14);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 87, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(22, 140, 124, 0.08), transparent 28%),
    linear-gradient(180deg, #f7faf9 0%, #eef3f1 100%);
  color: var(--ink);
}

body[data-theme="light"]::before {
  display: none;
}

body[data-theme="light"] .auth-shell {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faf9 0%, #eef3f1 100%);
}

body[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #f8faf9 0%, #eef3f1 100%);
  border-right-color: var(--line);
  color: var(--ink);
}

body[data-theme="light"] .main {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.08), transparent 24%),
    linear-gradient(180deg, #f7faf9 0%, #eef3f1 100%);
}

body[data-theme="light"] .topbar {
  background: rgba(247, 250, 249, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px rgba(29, 40, 49, 0.08);
}

body[data-theme="light"] .workspace-switch,
body[data-theme="light"] .board-row,
body[data-theme="light"] .ghost-button,
body[data-theme="light"] .mini-button,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .sidebar .ghost-button,
body[data-theme="light"] .sidebar .icon-button,
body[data-theme="light"] .session-badge,
body[data-theme="light"] .hero-pill,
body[data-theme="light"] .hero-stat,
body[data-theme="light"] .auth-feature,
body[data-theme="light"] .auth-demo-note,
body[data-theme="light"] .auth-session-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .ghost-button:hover,
body[data-theme="light"] .mini-button:hover,
body[data-theme="light"] .icon-button:hover {
  background: #e8eeec;
}

body[data-theme="light"] .workspace-switch:hover,
body[data-theme="light"] .workspace-switch.is-active,
body[data-theme="light"] .board-row:hover,
body[data-theme="light"] .board-row.is-active {
  background: rgba(217, 119, 87, 0.12);
  border-color: rgba(217, 119, 87, 0.28);
}

body[data-theme="light"] .search input,
body[data-theme="light"] .filter-select,
body[data-theme="light"] .compact-input,
body[data-theme="light"] .modal input,
body[data-theme="light"] .modal textarea,
body[data-theme="light"] .modal select,
body[data-theme="light"] .workspace-card input,
body[data-theme="light"] .workspace-card textarea,
body[data-theme="light"] .workspace-card select,
body[data-theme="light"] .list-title-input,
body[data-theme="light"] .composer textarea {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

body[data-theme="light"] .filter-select option,
body[data-theme="light"] .modal select option {
  background: #ffffff;
  color: var(--ink);
}

body[data-theme="light"] .board-hero,
body[data-theme="light"] .workspace-hero,
body[data-theme="light"] .view-surface,
body[data-theme="light"] .workspace-surface,
body[data-theme="light"] .workspace-card,
body[data-theme="light"] .workspace-table,
body[data-theme="light"] .board-template-rack,
body[data-theme="light"] .dashboard-panel,
body[data-theme="light"] .dashboard-card,
body[data-theme="light"] .dashboard-metric,
body[data-theme="light"] .dashboard-list,
body[data-theme="light"] .dashboard-member-card,
body[data-theme="light"] .modal,
body[data-theme="light"] .board-menu,
body[data-theme="light"] .template-card,
body[data-theme="light"] .template-gallery-card,
body[data-theme="light"] .calendar-day,
body[data-theme="light"] .table-wrap,
body[data-theme="light"] .auth-panel {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

body[data-theme="light"] .board-hero,
body[data-theme="light"] .workspace-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff, #f2f5f4);
}

body[data-theme="light"] .list {
  background: linear-gradient(180deg, #f0f3f5, #e7ecef);
  border-color: var(--line);
  box-shadow: 0 18px 34px rgba(29, 40, 49, 0.1);
}

body[data-theme="light"] .list-header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--line);
}

body[data-theme="light"] .card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(29, 40, 49, 0.1);
}

body[data-theme="light"] .tab:hover {
  color: var(--ink);
  background: rgba(217, 119, 87, 0.08);
}

body[data-theme="light"] .tab.is-active {
  color: var(--ink);
  border-color: rgba(217, 119, 87, 0.32);
  background: rgba(217, 119, 87, 0.14);
}

body[data-theme="light"] .ui-eyebrow,
body[data-theme="light"] .hero-stat span,
body[data-theme="light"] .hero-console span,
body[data-theme="light"] .status-line,
body[data-theme="light"] .workspace-title-block p,
body[data-theme="light"] .workspace-switch small,
body[data-theme="light"] .auth-feature span,
body[data-theme="light"] .auth-demo-note span,
body[data-theme="light"] .auth-copy span,
body[data-theme="light"] .auth-panel--hero p,
body[data-theme="light"] .list-meta,
body[data-theme="light"] .empty-state {
  color: var(--muted);
}

body[data-theme="light"] .auth-panel--hero h1,
body[data-theme="light"] .auth-copy strong,
body[data-theme="light"] .auth-feature strong,
body[data-theme="light"] .auth-demo-note strong,
body[data-theme="light"] .hero-stat strong,
body[data-theme="light"] .hero-console strong {
  color: var(--ink);
}

body[data-theme="light"] th {
  color: var(--muted);
  background: #f8fafb;
}

body[data-theme="light"] th,
body[data-theme="light"] td,
body[data-theme="light"] .modal-header,
body[data-theme="light"] .list-header,
body[data-theme="light"] .board-menu-section,
body[data-theme="light"] .comment,
body[data-theme="light"] .checklist-group,
body[data-theme="light"] .archive-row,
body[data-theme="light"] .automation-row {
  border-bottom-color: var(--line);
}

body[data-theme="light"] .archive-row,
body[data-theme="light"] .archive-row--board,
body[data-theme="light"] .menu-panel,
body[data-theme="light"] .template-picker {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

body[data-theme="light"] .workspace-hero .hero-stat,
body[data-theme="light"] .workspace-hero .hero-pill {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

body[data-theme="light"] .ui-eyebrow span {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

body[data-theme="light"] .auth-alert--info {
  color: #7a452c;
  border-color: rgba(217, 119, 87, 0.28);
  background: rgba(217, 119, 87, 0.1);
}

body[data-theme="light"] .auth-demo-note code {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .main {
    min-height: auto;
  }

  .kanban {
    height: auto;
    grid-auto-columns: minmax(270px, 86vw);
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpi-grid,
  .dashboard-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }

  .board-layout.has-menu,
  .workspace-grid,
  .template-library-grid,
  .board-hero-grid,
  .auth-grid,
  .auth-feature-list {
    grid-template-columns: 1fr;
  }

  .board-menu {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 14px;
    place-items: stretch;
  }

  .auth-panel--hero,
  .auth-panel--form {
    padding: 18px;
  }

  .topbar,
  .board-header,
  .view-surface,
  .workspace-surface,
  .board-template-rack {
    padding-left: 12px;
    padding-right: 12px;
  }

  .field-grid,
  .dashboard-grid,
  .dashboard-kpi-grid,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-head,
  .dashboard-section-head {
    display: grid;
  }

  .dashboard-row-main,
  .dashboard-member-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-status-block,
  .dashboard-number {
    width: 100%;
    max-width: none;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal {
    min-height: 100vh;
    border-radius: 0;
  }

  .label-editor-row,
  .comment-head {
    grid-template-columns: 1fr;
  }
}
