:root {
  color-scheme: dark;
  --bg: #070914;
  --panel: rgba(18, 24, 45, 0.72);
  --panel-strong: rgba(28, 34, 64, 0.88);
  --text: #f5f7ff;
  --muted: #aeb7d9;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #28d7ff;
  --violet: #8a5cff;
  --pink: #ff5fd2;
  --green: #3ee58f;
  --red: #ff5c7a;
  --yellow: #ffd166;
  --app-primary-color: #579dff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

body.theme-light {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #172033;
  --muted: #5c667a;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 18px 55px rgba(35, 52, 82, 0.15);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--app-primary-color) 16%, transparent), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(75, 206, 151, 0.16), transparent 30rem),
    linear-gradient(135deg, #f8fbff, #eef4fb 48%, #f8fbff);
}

body.theme-glass {
  color-scheme: dark;
  --bg: #060a12;
  --panel: rgba(13, 20, 34, 0.48);
  --panel-strong: rgba(18, 27, 44, 0.62);
  --text: #f7fbff;
  --muted: #b7c5d9;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  background:
    radial-gradient(circle at 10% 6%, color-mix(in srgb, var(--app-primary-color) 32%, transparent), transparent 28rem),
    radial-gradient(circle at 80% 4%, rgba(75, 206, 151, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 96%, rgba(255, 255, 255, 0.09), transparent 26rem),
    linear-gradient(135deg, #050914, #101827 48%, #07131d);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(40, 215, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(255, 95, 210, 0.14), transparent 30rem),
    linear-gradient(135deg, #070914, #10152b 48%, #07111d);
  overflow-x: hidden;
}

body.theme-light {
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--app-primary-color) 16%, transparent), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(75, 206, 151, 0.16), transparent 30rem),
    linear-gradient(135deg, #f8fbff, #eef4fb 48%, #f8fbff);
}

body.theme-glass {
  background:
    radial-gradient(circle at 10% 6%, color-mix(in srgb, var(--app-primary-color) 32%, transparent), transparent 28rem),
    radial-gradient(circle at 80% 4%, rgba(75, 206, 151, 0.18), transparent 30rem),
    radial-gradient(circle at 50% 96%, rgba(255, 255, 255, 0.09), transparent 26rem),
    linear-gradient(135deg, #050914, #101827 48%, #07131d);
}

body.theme-light .aurora {
  opacity: 0.28;
}

body.theme-glass .aurora {
  opacity: 1;
  filter: blur(95px);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
textarea { resize: vertical; }

.aurora {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: conic-gradient(from 130deg, transparent, rgba(138, 92, 255, 0.16), transparent, rgba(40, 215, 255, 0.14), transparent);
  filter: blur(80px);
  animation: drift 16s linear infinite;
  opacity: 0.8;
}

@keyframes drift {
  to { transform: rotate(360deg) scale(1.08); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(35, 52, 82, 0.08);
}

body.theme-light .glass-panel,
body.theme-light .modal,
body.theme-light .card-detail-modal,
body.theme-light .admin-panel,
body.theme-light .settings-card,
body.theme-light .dashboard-board-card,
body.theme-light .workspace-sidebar,
body.theme-light .profile-menu,
body.theme-light .account-menu,
body.theme-light .notification-menu,
body.theme-light .global-search-results {
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,249,254,.82));
  border-color: rgba(23, 32, 51, .11);
  box-shadow: var(--shadow);
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  color: #172033;
  background-color: #ffffff;
  border-color: rgba(23, 32, 51, .14);
}

body.theme-light .muted,
body.theme-light small,
body.theme-light .nav a {
  color: #647087;
}

body.theme-light .card-activity,
body.theme-light .card-detail-tabs {
  background: #f3f6fb;
}

body.theme-light .task-card,
body.theme-light .activity-item,
body.theme-light .checklist-panel,
body.theme-light .card-field-block,
body.theme-light .compact-fields {
  color: #172033;
  background: rgba(255,255,255,.78);
  border-color: rgba(23, 32, 51, .11);
}

body.theme-light .task-card p,
body.theme-light .activity-item p {
  color: #4d5870;
}

body.theme-light .activity-item strong,
body.theme-light .card-field-block h3,
body.theme-light .card-activity h3,
body.theme-light .card-title-input,
body.theme-light .admin-panel h2,
body.theme-light .admin-stats strong,
body.theme-light .admin-overview-grid strong,
body.theme-light .settings-card > header strong,
body.theme-light .theme-choice strong {
  color: #172033;
}

body.theme-light .activity-diff {
  background: rgba(23, 32, 51, .035);
}

body.theme-light .settings-card > header small,
body.theme-light .admin-stats span,
body.theme-light .admin-overview-grid span,
body.theme-light .theme-choice small {
  color: #647087;
}

body.theme-glass .glass-panel,
body.theme-glass .modal,
body.theme-glass .card-detail-modal,
body.theme-glass .admin-panel,
body.theme-glass .settings-card,
body.theme-glass .dashboard-board-card,
body.theme-glass .workspace-sidebar,
body.theme-glass .profile-menu,
body.theme-glass .notification-menu,
body.theme-glass .global-search-results {
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  border-color: rgba(255,255,255,.2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(26px) saturate(1.25);
}

body.theme-glass .topbar {
  background: rgba(7, 12, 23, .52);
  backdrop-filter: blur(26px) saturate(1.25);
}

body.theme-glass .card-activity,
body.theme-glass .card-detail-tabs,
body.theme-glass .task-card,
body.theme-glass .activity-item,
body.theme-glass .checklist-panel,
body.theme-glass .card-field-block,
body.theme-glass .compact-fields {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.13);
  backdrop-filter: blur(18px);
}

.brand, .nav { display: flex; align-items: center; gap: 0.85rem; }
.brand { font-weight: 800; font-size: 1.05rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--brand-logo-color, linear-gradient(135deg, var(--cyan), var(--violet), var(--pink)));
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.5);
  color: #092957;
  font-size: 12px;
  font-weight: 900;
}
.nav a { color: var(--muted); font-weight: 600; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(8, 12, 26, 0.58));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.primary-button, .ghost-button, .icon-button, .add-card-button, .create-tile {
  border: 0;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 26px rgba(40, 215, 255, 0.34);
}
.primary-button:hover, .create-tile:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(138, 92, 255, 0.48); }
.primary-button.small { min-height: 2.25rem; padding: 0.5rem 0.8rem; }
.primary-button.full { width: 100%; }
.danger-bg { background: linear-gradient(135deg, var(--red), #b72557); }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.ghost-button.full { width: 100%; }
.ghost-button:hover, .icon-button:hover, .add-card-button:hover { background: rgba(255, 255, 255, 0.11); }

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}
.danger, .danger-text { color: var(--red); }

.auth-layout, .dashboard-hero, .board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.auth-layout {
  min-height: calc(100vh - 8rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.02; margin-bottom: 0.8rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 0.98rem; margin-bottom: 0.55rem; }
.auth-copy p, .dashboard-hero p, .board-header p { color: var(--muted); max-width: 56ch; }
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.auth-card, .modal {
  padding: 1.25rem;
}

.steam-login-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #171a21, #1b2838 55%, #2a475e);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

.steam-login-button span {
  letter-spacing: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}

.steam-login-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

label {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 7, 18, 0.58);
  padding: 0.82rem 0.9rem;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(40, 215, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(40, 215, 255, 0.11);
}

.alert, .toast {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.alert.error, .toast.error { background: rgba(255, 92, 122, 0.14); color: #ffd6de; }
.toast.success { background: rgba(62, 229, 143, 0.14); color: #d9ffe9; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  margin-bottom: 1rem;
}
.search-input { max-width: 440px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.board-card {
  position: relative;
  overflow: hidden;
}
.board-card-main {
  display: block;
  min-height: 190px;
  padding: 1.1rem;
}
.board-card:hover { transform: translateY(-3px); }
.board-color, .label-strip {
  display: block;
  width: 100%;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--board-color);
  box-shadow: 0 0 22px var(--board-color);
  margin-bottom: 1rem;
}
.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.dashboard-board-card:hover .card-actions,
.dashboard-board-card:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.board-card-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: #f3f6ff;
  background: rgba(16, 20, 29, .58);
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.board-card-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-card-action:hover,
.board-card-action:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--app-primary-color) 58%, rgba(255,255,255,.2));
  background: color-mix(in srgb, var(--app-primary-color) 22%, rgba(16,20,29,.72));
  box-shadow: 0 14px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14);
  outline: none;
}

.board-card-action-delete:hover,
.board-card-action-delete:focus-visible {
  color: #ffb4a6;
  border-color: rgba(255,116,82,.44);
  background: rgba(255,116,82,.16);
}
.create-tile {
  min-height: 190px;
  font-size: 1rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.24);
}

.kanban {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 65vh;
  overflow-x: auto;
  padding: 0.3rem 0 1rem;
  scroll-snap-type: x proximity;
}
.kanban-list {
  flex: 0 0 310px;
  max-height: calc(100vh - 13rem);
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  scroll-snap-align: start;
}
.list-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.list-header h2 {
  margin: 0;
  padding: 0.35rem;
  border-radius: 8px;
}
.list-header h2:focus { outline: 1px solid var(--cyan); background: rgba(255,255,255,0.06); }
.cards-dropzone {
  display: grid;
  gap: 0.75rem;
  min-height: 5.5rem;
  overflow-y: auto;
  padding: 0.75rem 0.1rem;
}
.cards-dropzone:empty::before {
  content: "Noch keine Karten";
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.task-card {
  position: relative;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.task-card:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,0.28); }
.task-card.dragging, .kanban-list.dragging { opacity: 0.45; transform: rotate(1deg) scale(0.98); }
.task-card p { color: var(--muted); font-size: 0.88rem; }
.task-card footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.label-strip {
  height: 0.28rem;
  background: var(--label);
  box-shadow: 0 0 18px var(--label);
  margin-bottom: 0.7rem;
}
.add-card-button {
  width: 100%;
  min-height: 2.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.modal {
  width: min(94vw, 440px);
  color: var(--text);
}
.modal.wide { width: min(94vw, 680px); }
.modal::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(5px); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.8rem;
}
.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  gap: 0.65rem;
}
.toast {
  min-width: min(320px, calc(100vw - 2rem));
  animation: toastIn 0.25s ease both;
  backdrop-filter: blur(16px);
}
@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

@media (max-width: 780px) {
  .auth-layout, .dashboard-hero, .board-header {
    grid-template-columns: 1fr;
  }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-input { max-width: none; }
  .kanban-list { flex-basis: 86vw; max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.5rem; }
}

/* Board product polish */
body.board-page {
  background:
    radial-gradient(circle at 46% 38%, rgba(176, 206, 255, 0.9) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 50% 46%, rgba(140, 180, 255, 0.45), transparent 9rem),
    radial-gradient(circle at 49% 47%, rgba(255, 255, 255, 0.82), rgba(133, 180, 248, 0.42) 8rem, rgba(27, 67, 111, 0.12) 17rem, transparent 27rem),
    radial-gradient(circle at 66% 28%, rgba(113, 183, 255, 0.33), transparent 13rem),
    radial-gradient(circle at 20% 70%, rgba(67, 98, 138, 0.28), transparent 18rem),
    linear-gradient(90deg, rgba(5, 11, 20, 0.9), rgba(14, 30, 51, 0.64) 42%, rgba(4, 8, 14, 0.95)),
    #07111c;
  background-attachment: fixed;
}

body.board-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,0.62) 0 1px, transparent 1.2px);
  background-size: 97px 83px, 149px 131px;
  background-position: 10px 34px, 41px 7px;
}

body.board-page .aurora { display: none; }
body.board-page .page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.topbar {
  height: 52px;
  padding: 0 14px;
  gap: 14px;
  background: rgba(25, 26, 30, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
  backdrop-filter: blur(16px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.app-grid {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #b8bac2;
  border-radius: 4px;
  font-size: 18px;
}

.app-grid:hover, .nav a:hover { background: rgba(255,255,255,0.1); }

.brand {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: #eef3ff;
  font-size: 15px;
  gap: 9px;
  transition: background .16s ease;
}

.brand:hover {
  background: rgba(255,255,255,0.07);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #b9bbc4;
  box-shadow: 0 8px 22px rgba(87,157,255,0.26);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: #1d1d20;
}

.brand-mark::before { left: 7px; }
.brand-mark::after { right: 7px; }

body:not(.board-page) .brand-mark {
  background: var(--brand-logo-color, linear-gradient(135deg, var(--app-primary-color), #9f8fff));
}

.brand-mark:not(:empty)::before,
.brand-mark:not(:empty)::after {
  display: none;
}

.top-search {
  position: relative;
  flex: 1;
  max-width: 780px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px;
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(12, 14, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.top-search:focus-within {
  border-color: rgba(87,157,255,0.76);
  background: rgba(16, 20, 29, 0.94);
  box-shadow: 0 0 0 3px rgba(87,157,255,0.14), inset 0 1px 0 rgba(255,255,255,0.05);
}

.top-search span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.top-search input {
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #eef3ff;
}

.top-search input::placeholder {
  color: #7f8794;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: min(520px, calc(100vh - 74px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #3c3f45;
  border-radius: 8px;
  background: #28292d;
  box-shadow: 0 18px 60px rgba(0,0,0,.52);
}

.global-search-results a,
.global-search-empty {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
}

.global-search-results a {
  color: #d7d9df;
}

.global-search-results a.active,
.global-search-results a:hover {
  background: #0c2d59;
}

.global-search-results span {
  color: var(--app-primary-color);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-results strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results small,
.global-search-empty {
  color: #aeb2bd;
  font-size: 12px;
  font-weight: 700;
}

.nav {
  min-width: 220px;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 8px;
  color: #c7c9d1;
  font-size: 14px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav a:hover {
  color: #f4f7ff;
  background: rgba(255,255,255,0.08);
}

.nav-button {
  border: 0;
  cursor: pointer;
}

.create-nav {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px !important;
  padding: 0 10px;
  color: #092957 !important;
  background: var(--app-primary-color);
  box-shadow: 0 5px 14px rgba(87,157,255,0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.create-nav:hover {
  color: #06152b !important;
  background: color-mix(in srgb, var(--app-primary-color) 82%, #ffffff) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(87,157,255,0.24);
}

.create-nav:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.avatar-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #fff, #bfc6d6);
  color: #1d1d20 !important;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.22);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.avatar-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(87,157,255,0.7);
  box-shadow: 0 10px 28px rgba(87,157,255,0.22);
}

.avatar-nav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-trigger {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #dce2ef;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: background .16s ease, transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.notification-trigger svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease, color .16s ease;
}

.notification-trigger:hover,
.notification-trigger.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--app-primary-color) 55%, transparent);
  background: color-mix(in srgb, var(--app-primary-color) 16%, rgba(255,255,255,0.055));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--app-primary-color) 18%, rgba(0,0,0,.2));
}

.notification-trigger:hover svg,
.notification-trigger.active svg {
  color: #f7fbff;
  transform: rotate(-8deg);
}

.notification-trigger b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #1b1c20;
  border-radius: 999px;
  color: #091527;
  background: var(--app-primary-color);
  font-size: 10px;
  font-weight: 900;
}

.notification-menu {
  position: fixed;
  top: 50px;
  right: 52px;
  z-index: 92;
  width: min(380px, calc(100vw - 18px));
  max-height: calc(100vh - 62px);
  overflow: hidden;
  border: 1px solid #3c3f45;
  border-radius: 10px;
  background: #2b2c30;
  box-shadow: 0 18px 70px rgba(0,0,0,.52);
  animation: modalIn .14s ease both;
}

.notification-menu header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.notification-menu header strong,
.notification-menu header small {
  display: block;
}

.notification-menu header strong {
  color: #f1f3f8;
}

.notification-menu header small {
  margin-top: 4px;
  color: #aeb2bd;
  font-size: 12px;
  font-weight: 700;
}

.notification-list {
  max-height: min(58vh, 460px);
  overflow: auto;
  padding: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #d7dbe4;
}

.notification-item:hover {
  background: rgba(255,255,255,.07);
}

.notification-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #091527;
  background: var(--app-primary-color);
  font-size: 12px;
  font-weight: 900;
}

.notification-item.overdue .notification-dot { background: var(--red); color: #fff; }
.notification-item.soon .notification-dot { background: var(--yellow); }
.notification-item.comment .notification-dot { background: #9f8fff; color: #fff; }
.notification-item.mention .notification-dot { background: #4bce97; color: #09251a; }

.notification-item strong,
.notification-item small,
.notification-item span {
  display: block;
}

.notification-item strong {
  color: #f3f6ff;
  font-size: 14px;
}

.notification-item span {
  margin-top: 3px;
  color: #b8beca;
  font-size: 12px;
  line-height: 1.35;
}

.notification-item small {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-empty {
  margin: 0;
  padding: 18px 12px;
  color: #aeb2bd;
  text-align: center;
  font-weight: 700;
}

.account-menu {
  position: fixed;
  top: 50px;
  right: 8px;
  z-index: 90;
  width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 62px);
  overflow: auto;
  padding: 14px 12px 10px;
  border: 1px solid #3c3f45;
  border-radius: 8px;
  background: #2b2c30;
  box-shadow: 0 18px 70px rgba(0,0,0,.52);
  animation: modalIn .14s ease both;
}

.account-menu-section {
  display: grid;
  gap: 4px;
  padding: 10px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.account-menu-section h3 {
  margin: 0 0 9px;
  color: #9da3ad;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-profile-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #172033;
  background: linear-gradient(135deg, #fff, #d6dce8);
  font-weight: 900;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-card strong,
.account-profile-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-card strong {
  color: #f1f3f8;
}

.account-profile-card small {
  color: #b5bac4;
  font-size: 13px;
}

.account-menu-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #d1d5dd;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-menu-item:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.account-profile-form {
  display: grid;
  gap: 9px;
  margin: 8px 0 4px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: #232429;
}

.account-profile-form label {
  margin: 0;
  font-size: 12px;
}

.account-profile-form input {
  min-height: 36px;
  padding: 8px 10px;
  background: #191a1f;
}

.account-profile-form .trello-primary.full {
  width: 100%;
  min-height: 38px;
}

.account-logout {
  margin: 10px 8px 2px;
  color: #d1d5dd;
}

.shortcuts-modal {
  width: min(92vw, 480px);
}

.shortcut-list {
  display: grid;
  gap: 10px;
}

.shortcut-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.shortcut-list div:has(kbd + kbd) {
  grid-template-columns: repeat(4, auto) 1fr;
}

.shortcut-list kbd {
  min-width: 30px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  color: #f3f6ff;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.14);
  font: 900 13px/1 Inter, system-ui, sans-serif;
}

.shortcut-list span {
  min-width: 0;
  color: #cfd6e4;
  font-weight: 750;
}

.trello-board-bar {
  position: relative;
  z-index: 60;
  overflow: visible;
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 22px;
  margin: 0;
  background: linear-gradient(180deg, rgba(20, 27, 39, 0.82), rgba(12, 16, 24, 0.68));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(9px);
  animation: slideDown 0.24s cubic-bezier(.2, .8, .2, 1) both;
}

.trello-board-bar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.trello-board-bar p {
  margin: 2px 0 0;
  font-size: 12px;
}

.board-title-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-title-group::before {
  content: "";
  width: 12px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--board-color, var(--app-primary-color));
  box-shadow: 0 0 24px color-mix(in srgb, var(--board-color, var(--app-primary-color)) 55%, transparent);
}

.board-manage-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  z-index: 110;
}

.board-manage-trigger {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  position: relative;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.board-manage-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -8px 0 0 currentColor, 8px 0 0 currentColor;
  transform: translate(-50%, -50%);
}

.board-manage-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  width: 242px;
  padding: 10px;
  border: 1px solid #3c3f45;
  border-radius: 8px;
  background: #28292d;
  box-shadow: 0 18px 60px rgba(0,0,0,.48);
  animation: modalIn .14s ease both;
}

.board-manage-menu strong {
  display: block;
  padding: 6px 8px 10px;
  color: #d7d9df;
  font-size: 13px;
}

.board-manage-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 8px;
  color: #c7c9d1;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.board-manage-menu button:hover {
  background: rgba(255,255,255,.08);
}

.board-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.board-actions > .trello-button,
.board-actions > .board-manage-wrap,
.board-actions .board-manage-trigger {
  flex: 0 0 auto;
  align-self: center;
}

.member-stack {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.member-stack .member-avatar,
.avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #172033;
  background: linear-gradient(135deg, #fff, #d6dce8);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.22);
  margin-left: -4px;
}

.member-stack .member-avatar {
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  transition: transform .14s ease, box-shadow .14s ease, z-index .14s ease;
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
}

.member-stack .member-avatar:hover {
  z-index: 20;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.member-stack .member-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.avatar[data-tooltip],
.member-stack .member-avatar[data-tooltip] {
  position: relative;
}

.floating-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(240px, calc(100vw - 20px));
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: #d7d9df;
  background: #101214;
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.floating-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #101214;
}

.avatar[data-tooltip]::after,
.member-stack .member-avatar[data-tooltip]::after {
  content: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(-2px);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: #d7d9df;
  background: #101214;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease, transform .12s ease;
}

.avatar[data-tooltip]::before,
.member-stack .member-avatar[data-tooltip]::before {
  content: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  border: 6px solid transparent;
  border-top-color: #101214;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}

.avatar[data-tooltip]:hover,
.member-stack .member-avatar[data-tooltip]:hover {
  overflow: visible;
}

.avatar[data-tooltip]:hover::after,
.member-stack .member-avatar[data-tooltip]:hover::after,
.avatar[data-tooltip]:hover::before,
.member-stack .member-avatar[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.activity-item .avatar[data-tooltip]::after,
.popover-member-list .avatar[data-tooltip]::after,
.mention-suggestions .avatar[data-tooltip]::after {
  left: 0;
  transform: translateY(-2px);
}

.activity-item .avatar[data-tooltip]::before,
.popover-member-list .avatar[data-tooltip]::before,
.mention-suggestions .avatar[data-tooltip]::before {
  left: 14px;
  transform: none;
}

.trello-button,
.trello-primary,
.add-list-tile {
  border: 0;
  border-radius: 4px;
  min-height: 32px;
  padding: 0 12px;
  color: #172033;
  background: #dfe9f9;
  font-weight: 700;
  cursor: pointer;
}

.trello-primary {
  color: #092957;
  background: var(--app-primary-color);
}

.trello-button:hover,
.trello-primary:hover,
.add-list-tile:hover { filter: brightness(1.06); }

.trello-button:active,
.trello-primary:active,
.add-list-tile:active,
.add-card-button:active {
  transform: translateY(1px);
}

.kanban {
  min-height: calc(100vh - 100px);
  padding: 18px 16px 28px;
  gap: 14px;
  animation: boardFadeIn 0.34s ease both;
}

.kanban-list {
  flex-basis: 286px;
  max-height: calc(100vh - 128px);
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(32, 34, 40, 0.98), rgba(22, 23, 28, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.24);
  backdrop-filter: none;
  transition: transform 0.16s cubic-bezier(.2, .75, .25, 1), background 0.16s ease, box-shadow 0.16s ease;
  animation: listIn 0.32s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(min(var(--list-index, 0), 8) * 35ms);
}

.kanban-list:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 18px 40px rgba(0,0,0,0.3);
}

.list-header {
  min-height: 38px;
  align-items: center;
  margin-bottom: 4px;
}

.list-header h2 {
  color: #f1f3f8;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 9px;
}

.icon-button {
  background: transparent;
  color: #aeb2bd;
}

.task-card {
  padding: 10px 11px;
  border-radius: 9px;
  border: 0;
  color: #e0e3ea;
  background: linear-gradient(180deg, #2a2c32, #22242a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055), 0 8px 18px rgba(0,0,0,0.18);
  will-change: transform;
  cursor: grab;
  transform-origin: 50% 50%;
  transition:
    transform .14s cubic-bezier(.2, .75, .25, 1),
    background .14s ease,
    box-shadow .14s ease,
    opacity .14s ease;
  animation: cardIn 0.2s cubic-bezier(.2, .8, .2, 1) both;
}

.card-cover {
  height: 42px;
  margin: -10px -11px 9px;
  border-radius: 9px 9px 0 0;
  background: var(--cover);
  background-size: cover;
  background-position: center;
}

.task-card.compact-card .card-cover {
  margin: -8px -10px 8px;
}

.task-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #31343b, #282a30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 12px 24px rgba(0,0,0,0.25);
}

.task-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--app-primary-color) 78%, #ffffff 12%);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 55%, rgba(255,255,255,.14)), 0 14px 28px rgba(0,0,0,.28);
}

.task-card.dragging {
  min-height: var(--drag-placeholder-height, 38px);
  opacity: 1;
  transform: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--app-primary-color) 26%, transparent) 50%, transparent 0) 0 0 / 18px 2px repeat-x,
    linear-gradient(90deg, color-mix(in srgb, var(--app-primary-color) 26%, transparent) 50%, transparent 0) 0 100% / 18px 2px repeat-x,
    linear-gradient(0deg, color-mix(in srgb, var(--app-primary-color) 26%, transparent) 50%, transparent 0) 0 0 / 2px 18px repeat-y,
    linear-gradient(0deg, color-mix(in srgb, var(--app-primary-color) 26%, transparent) 50%, transparent 0) 100% 0 / 2px 18px repeat-y,
    color-mix(in srgb, var(--app-primary-color) 9%, rgba(255,255,255,.025));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 20%, transparent);
  cursor: grabbing;
  animation: dragSlotPulse .72s linear infinite alternate;
}

.task-card.dragging > * {
  opacity: 0;
}

.task-card.drop-complete {
  animation: cardDropComplete 0.48s cubic-bezier(.2, .8, .2, 1);
}

.drag-preview {
  position: fixed;
  top: -1000px;
  left: -1000px;
  z-index: 10000;
  pointer-events: none;
  opacity: .96;
  transform: rotate(2.5deg) scale(1.035);
  border-radius: 9px;
  background: linear-gradient(180deg, #363941, #292c33);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    0 22px 54px rgba(0,0,0,.56);
}

body.is-dragging-card,
body.is-dragging-card * {
  cursor: grabbing !important;
}

body.is-dragging-card .task-card:not(.dragging):hover,
body.is-dragging-card .kanban-list:hover {
  transform: none;
}

body.is-dragging-card .cards-dropzone {
  min-height: 44px;
  transition: background 0.14s ease, outline-color 0.14s ease, box-shadow 0.14s ease;
}

body.is-dragging-card .cards-dropzone.drag-over {
  background: color-mix(in srgb, var(--app-primary-color) 10%, transparent);
  outline: 1px solid color-mix(in srgb, var(--app-primary-color) 36%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 14%, transparent);
}

.task-card h3 {
  margin: 0;
  color: #d6d9e0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.task-card:has(> h3:only-child),
.task-card.compact-card {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
}

.task-card:has(> h3:only-child) h3,
.task-card.compact-card h3 {
  min-height: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
}

.card-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.card-label-row span {
  max-width: 100%;
  min-width: 42px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--label);
  color: transparent;
  font-size: 0;
  transition: height .14s ease, color .14s ease, padding .14s ease, font-size .14s ease;
}

.task-card:hover .card-label-row span {
  height: 20px;
  padding: 3px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

.task-card p,
.task-card footer {
  color: #a9adb7;
}

.task-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.card-meta-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #eef3ff;
  background: rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.card-meta-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.priority-low { border-left: 3px solid var(--green); }
.priority-medium { border-left: 3px solid var(--yellow); }
.priority-high { border-left: 3px solid var(--red); }

.priority-pill.priority-low,
.card-badge.priority-low {
  color: #b7f5d3;
  background: rgba(62, 229, 143, 0.14);
}

.priority-pill.priority-medium,
.card-badge.priority-medium {
  color: #ffe4a3;
  background: rgba(255, 209, 102, 0.16);
}

.priority-pill.priority-high,
.card-badge.priority-high {
  color: #ffb6c4;
  background: rgba(255, 92, 122, 0.16);
}

.due-pill.due-overdue,
.card-badge.due-overdue {
  color: #ffb6c4;
  background: rgba(255, 92, 122, 0.18);
}

.due-pill.due-soon,
.card-badge.due-soon {
  color: #ffe4a3;
  background: rgba(255, 209, 102, 0.16);
}

.due-pill.due-later,
.card-badge.due-later {
  color: #b9d6ff;
  background: color-mix(in srgb, var(--app-primary-color) 18%, transparent);
}

.cards-dropzone {
  gap: 8px;
  padding: 5px 0 8px;
  border-radius: 8px;
  scroll-behavior: smooth;
}

.drop-marker {
  height: 38px;
  margin: 4px 1px;
  border-radius: 999px;
  border: 2px dashed color-mix(in srgb, var(--app-primary-color) 48%, rgba(255,255,255,.24));
  background: color-mix(in srgb, var(--app-primary-color) 13%, rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 16%, transparent);
  animation: markerPulse 0.8s ease-in-out infinite alternate;
}

.drop-saved {
  animation: savedFlash 0.38s ease;
}

.cards-dropzone:empty::before {
  min-height: 18px;
  border: 0;
  color: #8e929d;
  content: "";
}

.add-card-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #c1c7d2;
  background: rgba(255,255,255,0.035);
  text-align: left;
  padding: 0 10px;
}

.card-composer {
  display: grid;
  gap: 8px;
  padding: 4px 0 8px;
  animation: cardIn .16s ease both;
}

.card-composer textarea {
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #d7d9df;
  background: #282a30;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 1px rgba(0,0,0,.45);
}

.card-composer div,
.list-composer div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plain-composer-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  color: #c7c9d1;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.plain-composer-button:hover {
  background: rgba(255,255,255,.1);
}

.list-composer {
  gap: 8px;
}

.list-composer input {
  height: 36px;
  padding: 8px 10px;
  border: 2px solid var(--app-primary-color);
  border-radius: 9px;
  background: #282a30;
}

.add-card-button:hover {
  background: rgba(255,255,255,0.085);
  color: #f1f3f8;
}

.add-list-tile {
  flex: 0 0 272px;
  align-self: flex-start;
  color: #fff;
  background: rgba(255,255,255,0.32);
  text-align: left;
  font-size: 14px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.add-list-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.modal.share-modal,
.modal {
  border: 1px solid #3c3f45;
  border-radius: 10px;
  background: #28292d;
  box-shadow: 0 18px 70px rgba(0,0,0,0.48);
  backdrop-filter: none;
  animation: modalIn 0.18s cubic-bezier(.2, .8, .2, 1) both;
}

.share-modal {
  width: min(94vw, 585px);
  padding: 24px;
}

.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-titlebar h2 {
  margin: 0;
  font-size: 20px;
  color: #d7d9df;
}

.plain-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  color: #c7c9d1;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.plain-icon:hover { background: rgba(255,255,255,0.09); }

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

.share-row input,
.share-row select {
  height: 40px;
  border-radius: 4px;
  background: #222326;
  border-color: #5e6470;
}

.share-row .trello-primary {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
  line-height: 40px;
}

.share-row select {
  width: 100%;
  min-width: 168px;
  padding: 0 38px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  color: #f3f6ff;
  background-color: #1f2126;
  background-image:
    linear-gradient(45deg, transparent 50%, #c9d1df 50%),
    linear-gradient(135deg, #c9d1df 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  font-weight: 700;
  line-height: 40px;
  text-align: left;
  text-overflow: clip;
}

.share-row select option {
  color: #f3f6ff;
  background: #28292d;
}

.share-link-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  margin-top: 16px;
}

.share-link-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #3a3c42;
}

.link-button {
  display: block;
  padding: 2px 0 0;
  border: 0;
  color: var(--app-primary-color);
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.share-tabs {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  border-bottom: 1px solid #3c3f45;
}

.share-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 9px;
  color: #aeb2bd;
  background: transparent;
  font-weight: 700;
}

.share-tabs .active {
  color: var(--app-primary-color);
  border-bottom-color: var(--app-primary-color);
}

.share-tabs span {
  display: inline-grid;
  min-width: 23px;
  place-items: center;
  margin-left: 4px;
  border-radius: 3px;
  color: #172033;
  background: #d6d9e0;
  font-size: 12px;
}

.member-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.member-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.member-row > div,
.workspace-member-row > div,
.activity-item > div {
  min-width: 0;
}

.member-row strong {
  display: block;
  color: #d7d9df;
  font-size: 14px;
}

.member-row small {
  color: #aeb2bd;
}

.member-list-avatar {
  overflow: hidden;
  margin-left: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}

.member-list-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.role-pill {
  min-width: 84px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--app-primary-color) 30%, #4b4f58);
  border-radius: 999px;
  color: #dceaff;
  text-align: center;
  background: color-mix(in srgb, var(--app-primary-color) 12%, #24262a);
  font-size: 12px;
  font-weight: 800;
}

@keyframes boardFadeIn {
  from { opacity: 0; transform: translateY(5px); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
}

@keyframes listIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(4px); }
}

@keyframes cardSectionIn {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.975) translateY(6px); }
}

@keyframes markerPulse {
  from {
    opacity: .62;
    transform: scaleX(.985);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes dragSlotPulse {
  from {
    background-position: 0 0, 0 100%, 0 0, 100% 0, 0 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 18%, transparent);
  }
  to {
    background-position: 18px 0, 18px 100%, 0 18px, 100% 18px, 0 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 34%, transparent);
  }
}

@keyframes cardDropComplete {
  0% {
    transform: scale(0.985);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 45%, transparent), 0 16px 34px rgba(0,0,0,.28);
  }
  55% {
    transform: scale(1.015);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--app-primary-color) 65%, transparent), 0 18px 38px rgba(0,0,0,.34);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes savedFlash {
  0% { box-shadow: inset 0 0 0 0 transparent; }
  40% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--app-primary-color) 58%, transparent); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 780px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px; }
  .topbar-left { min-width: auto; }
  .top-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .nav { min-width: auto; }
  .trello-board-bar { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .kanban-list, .add-list-tile { flex-basis: 86vw; }
  .share-row { grid-template-columns: 1fr; }
}

body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--app-primary-color) 26%, transparent), transparent 24rem),
    radial-gradient(circle at 80% 16%, rgba(75, 206, 151, 0.16), transparent 21rem),
    radial-gradient(circle at 72% 86%, rgba(255, 209, 102, 0.09), transparent 18rem),
    linear-gradient(135deg, #10131b, #1b1d23 52%, #0f141c);
}

body.auth-page .aurora {
  opacity: 0.45;
  filter: blur(100px);
}

body.auth-page .topbar {
  height: 64px;
  padding: 0 clamp(18px, 5vw, 58px);
  background: rgba(12, 16, 28, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

body.auth-page .top-search {
  display: none;
}

body.auth-page .nav {
  min-width: auto;
}

body.auth-page .nav a {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
}

body.auth-page .create-nav {
  color: #06152b !important;
  background: linear-gradient(135deg, #8fc2ff, #66c0f4);
  box-shadow: 0 10px 28px rgba(102, 192, 244, 0.28);
}

body.auth-page .page-shell {
  width: min(1220px, 100%);
  padding: clamp(22px, 4.4vw, 58px);
}

body.auth-page .auth-layout {
  position: relative;
  min-height: calc(100vh - 146px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  margin: 0;
}

body.auth-page .auth-layout::before {
  content: "";
  position: absolute;
  inset: 9% 34% auto -8%;
  height: 390px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 35% 42%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 35% 42%, #000, transparent 72%);
  opacity: 0.48;
}

body.auth-page .auth-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

body.auth-page .auth-copy h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  color: #f5f7fb;
  font-size: clamp(2.7rem, 6.7vw, 5.6rem);
  line-height: 0.95;
}

body.auth-page .auth-copy p {
  max-width: 54ch;
  color: #c7cedc;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.68;
}

.auth-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-highlights span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0 13px;
  color: #e9eefb;
  background: rgba(255,255,255,0.07);
  font-size: 13px;
  font-weight: 800;
}

.auth-board-preview {
  position: relative;
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(12, 15, 22, 0.58);
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-preview-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 2px 4px;
}

.auth-preview-top span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.auth-preview-top span:nth-child(1) { width: 76px; background: var(--app-primary-color); }
.auth-preview-top span:nth-child(2) { width: 42px; }
.auth-preview-top span:nth-child(3) { width: 28px; margin-left: auto; }

.auth-preview-list {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(26, 29, 36, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.auth-preview-list strong {
  overflow: hidden;
  color: #edf1f8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-preview-list i {
  height: 36px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.08) 44%, transparent 44%),
    linear-gradient(180deg, #2b2e36, #24272e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 8px 18px rgba(0,0,0,.16);
}

.auth-preview-list i:nth-of-type(2) {
  height: 54px;
  background:
    linear-gradient(90deg, rgba(75,206,151,.58), rgba(75,206,151,.16) 38%, transparent 38%),
    linear-gradient(180deg, #2b2e36, #24272e);
}

.auth-preview-list i:nth-of-type(3) {
  height: 42px;
  background:
    linear-gradient(90deg, rgba(255,209,102,.55), rgba(255,209,102,.12) 34%, transparent 34%),
    linear-gradient(180deg, #2b2e36, #24272e);
}

.auth-preview-list.active {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--app-primary-color) 18%, #272b33), #20242b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-primary-color) 32%, rgba(255,255,255,.08)), 0 16px 32px rgba(0,0,0,.22);
}

.auth-steam-strip {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.44fr;
  gap: 10px;
  margin-top: 34px;
}

.auth-steam-strip span {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #66c0f4, rgba(62,229,143,0.68));
  box-shadow: 0 0 24px rgba(102,192,244,0.28);
}

.auth-steam-strip span:nth-child(2) {
  background: linear-gradient(90deg, rgba(143,194,255,0.74), rgba(102,192,244,0.22));
}

.auth-steam-strip span:nth-child(3) {
  background: linear-gradient(90deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08));
}

body.auth-page .auth-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 28px;
  border-color: rgba(255,255,255,0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035)),
    rgba(24, 27, 34, 0.9);
  box-shadow: 0 30px 88px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.1);
}

body.auth-page .auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #66c0f4, #8fc2ff, #3ee58f);
}

.auth-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #081421;
  background: var(--brand-logo-color, linear-gradient(135deg, var(--app-primary-color), #8fc2ff));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--app-primary-color) 26%, rgba(0,0,0,.18));
  font-size: 21px;
  font-weight: 900;
}

body.auth-page .auth-card > .auth-card-icon {
  margin-bottom: 22px;
}

.auth-card-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.auth-card-brand .auth-card-icon {
  margin-bottom: 0;
}

.auth-card-brand .eyebrow {
  margin: 0 0 4px;
}

body.auth-page .auth-card h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
}

.auth-card-copy,
.auth-footnote {
  color: #aeb7c9;
  line-height: 1.55;
}

.auth-card-copy {
  margin-bottom: 20px;
}

.auth-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.auth-footnote a {
  color: #8fc2ff;
}

.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.auth-form label {
  margin: 0;
}

.auth-form input {
  min-height: 46px;
  border-color: rgba(255,255,255,0.13);
  border-radius: 9px;
  background: rgba(9, 12, 18, 0.74);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-form input:focus {
  border-color: color-mix(in srgb, var(--app-primary-color) 66%, #ffffff 8%);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary-color) 18%, transparent);
}

.auth-submit {
  min-height: 44px;
  margin-top: 2px;
  border-radius: 9px;
}

body.auth-page .steam-login-button {
  min-height: 56px;
  margin: 20px 0 0;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent),
    linear-gradient(135deg, #171a21, #1b2838 48%, #2a475e);
  box-shadow: 0 16px 38px rgba(0,0,0,.38);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

body.auth-page .steam-login-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,.42);
}

body.auth-page .steam-login-button span {
  color: #b8d7ff;
  background: rgba(255,255,255,.12);
}

.auth-sync-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(102,192,244,0.18);
  border-radius: 8px;
  background: rgba(102,192,244,0.08);
}

.auth-sync-note span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #66c0f4 0 4px, transparent 5px),
    conic-gradient(from 40deg, #66c0f4, #3ee58f, #66c0f4);
  box-shadow: 0 0 22px rgba(102,192,244,0.28);
}

.auth-sync-note p {
  margin: 0;
  color: #c9d5e7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

body.auth-page .alert {
  margin: 18px 0 0;
}

@media (max-width: 820px) {
  body.auth-page .topbar {
    height: auto;
    min-height: 58px;
    padding: 10px 14px;
  }

  body.auth-page .nav a:not(.create-nav) {
    display: none;
  }

  body.auth-page .page-shell {
    padding: 28px 16px 44px;
  }

  body.auth-page .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.auth-page .auth-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  body.auth-page .auth-card {
    padding: 24px;
  }

  .auth-board-preview {
    grid-template-columns: 1fr;
  }

  .auth-preview-list {
    min-height: 96px;
  }

  .auth-steam-strip {
    width: 100%;
  }
}

body.dashboard-page {
  background: #1d1d20;
}

body.dashboard-page .aurora { display: none; }
body.dashboard-page .page-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  min-height: calc(100vh - 42px);
}

.workspace-sidebar {
  position: relative;
  overflow: hidden;
  padding: 34px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(87,157,255,0.08), transparent 34%),
    #1a1b1f;
}

.workspace-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87,157,255,.72), transparent);
}

.workspace-sidebar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 74px;
  height: 120px;
  pointer-events: none;
  background: radial-gradient(circle at 30% 0, rgba(87,157,255,0.14), transparent 70%);
  filter: blur(12px);
}

.side-item,
.workspace-link {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #c7c9d1;
  font-weight: 700;
  isolation: isolate;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  animation: sidebarItemIn .22s ease both;
}

.workspace-link {
  animation-delay: calc(min(var(--workspace-index, 0), 8) * 36ms);
}

.side-item::before,
.workspace-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(87,157,255,.13), rgba(255,255,255,.04));
  opacity: 0;
  transition: opacity .18s ease;
}

.side-item:hover,
.workspace-link:hover {
  color: #f3f6ff;
  transform: translateX(3px);
}

.side-item:hover::before,
.workspace-link:hover::before {
  opacity: 1;
}

@keyframes sidebarItemIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.side-item.active {
  color: #f3f6ff;
  background: #0c2d59;
  box-shadow: inset 3px 0 0 var(--app-primary-color), 0 8px 22px rgba(0,0,0,.22);
}

.side-divider {
  height: 1px;
  margin: 14px 0 24px;
  background: rgba(255,255,255,0.12);
}

.workspace-sidebar h3,
.dashboard-section h2 {
  color: #aeb2bd;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.sidebar-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 3px;
}

.sidebar-heading h3 {
  margin: 0;
}

.sidebar-heading button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: #092957;
  background: var(--app-primary-color);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(87,157,255,.2);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.sidebar-heading button:hover {
  background: #7bb4ff;
  transform: rotate(90deg) scale(1.04);
  box-shadow: 0 10px 22px rgba(87,157,255,.28);
}

.workspace-link span,
.workspace-title span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #092957;
  background: linear-gradient(135deg, #9fd0ff, var(--app-primary-color));
  font-weight: 900;
}

.workspace-link span {
  flex: 0 0 auto;
  box-shadow: 0 7px 16px rgba(87,157,255,.18);
  transition: transform .18s ease;
}

.workspace-link:hover span {
  transform: scale(1.08);
}

.workspace-main {
  width: min(1060px, calc(100vw - 340px));
  max-width: 1120px;
  padding: 34px 36px 80px;
  margin: 0 auto;
}

.dashboard-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(87,157,255,.17), rgba(62,229,143,.06)),
    #242529;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

.dashboard-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--app-primary-color), #3ee58f, transparent);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-strip h1 {
  margin: 0 0 6px;
  font-size: 34px;
}

.dashboard-strip p {
  color: #c7c9d1;
}

.dashboard-section {
  margin-bottom: 44px;
}

.dashboard-section:first-of-type {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.dashboard-section h2 {
  margin: 0;
  font-size: 16px;
  text-transform: none;
  color: #eef3ff;
}

.dashboard-section-heading p {
  margin: 5px 0 0;
  color: #8e929d;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 12px;
}

.calendar-dashboard {
  animation: dashboardSectionIn .18s ease both;
}

.tasks-dashboard {
  animation: dashboardSectionIn .18s ease both;
}

.task-filterbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.task-filterbar button,
.task-filterbar select {
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 0 10px;
  color: #cfd6e4;
  background: rgba(255,255,255,.045);
  font-weight: 850;
  cursor: pointer;
}

.task-filterbar button.active {
  color: #092957;
  border-color: transparent;
  background: var(--app-primary-color);
}

.task-filterbar select {
  min-width: 150px;
}

.assigned-task-list {
  display: grid;
  gap: 10px;
}

.assigned-task-card,
.assigned-task-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #eef3ff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)),
    rgba(12, 15, 22, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.assigned-task-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.036)),
    rgba(12, 15, 22, .42);
  box-shadow: 0 14px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.06);
}

.assigned-task-board {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--task-board-color);
  box-shadow: 0 0 22px color-mix(in srgb, var(--task-board-color) 52%, transparent);
}

.assigned-task-card strong,
.assigned-task-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigned-task-card strong {
  color: #f4f7ff;
  font-size: 15px;
  line-height: 1.25;
}

.assigned-task-card small {
  margin-top: 3px;
  color: #aeb7c8;
  font-size: 12px;
  font-weight: 750;
}

.assigned-task-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  color: #aeb7c8;
  font-size: 12px;
  font-weight: 850;
}

.assigned-task-meta time,
.assigned-task-meta em,
.assigned-task-meta b {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-style: normal;
}

.assigned-task-card.due-overdue .assigned-task-meta time {
  color: #ffbdad;
  background: rgba(255,116,82,.16);
}

.assigned-task-card.status-done {
  opacity: .72;
}

.assigned-task-card.status-done .assigned-task-meta b {
  color: #baf3db;
  background: rgba(75,206,151,.16);
}

.assigned-task-empty {
  grid-template-columns: 1fr;
  color: #aeb7c8;
  text-align: center;
}

.assigned-task-empty strong {
  color: #f4f7ff;
}

.trash-dashboard {
  animation: dashboardSectionIn .18s ease both;
}

.board-delete-confirm input {
  width: 100%;
  min-height: 40px;
  margin: 12px 0 4px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #f4f7ff;
  background: rgba(12, 15, 22, .44);
}

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

.trash-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.trash-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.trash-panel header strong {
  color: #f4f7ff;
  font-size: 15px;
}

.trash-panel header span {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #cfd6e4;
  background: rgba(255,255,255,.07);
  text-align: center;
  font-weight: 900;
}

.trash-list {
  display: grid;
  gap: 9px;
}

.trash-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(12, 15, 22, .28);
}

.trash-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #092957;
  background: var(--trash-color, var(--app-primary-color));
  font-weight: 950;
}

.trash-item strong,
.trash-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-item strong {
  color: #f4f7ff;
  font-size: 14px;
}

.trash-item small {
  margin-top: 2px;
  color: #aeb7c8;
  font-size: 12px;
  font-weight: 700;
}

.trash-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trash-empty {
  margin: 0;
  padding: 20px 12px;
  color: #aeb7c8;
  text-align: center;
  font-weight: 800;
}

.calendar-dashboard .dashboard-section-heading {
  align-items: center;
  padding: 2px 0 4px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.calendar-toolbar > strong {
  min-width: 190px;
  color: #f3f6ff;
  text-align: center;
  text-transform: capitalize;
  font-size: 15px;
}

.calendar-mode {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.calendar-mode button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #cfd6e4;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.calendar-mode button.active {
  color: #092957;
  background: var(--app-primary-color);
}

.dashboard-calendar {
  display: grid;
  gap: 10px;
}

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

.calendar-weekdays span {
  padding: 0 4px;
  color: #9aa6bb;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  min-height: 142px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)),
    rgba(12, 15, 22, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.036)),
    rgba(12, 15, 22, .42);
  box-shadow: 0 14px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.06);
}

.week-view .calendar-day {
  min-height: 390px;
}

.calendar-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day header span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #eef3ff;
  background: rgba(255,255,255,.075);
  font-weight: 900;
}

.calendar-day header small {
  color: #8e98aa;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day.today {
  border-color: color-mix(in srgb, var(--app-primary-color) 50%, rgba(255,255,255,.1));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-primary-color) 16%, transparent), 0 18px 44px color-mix(in srgb, var(--app-primary-color) 15%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}

.calendar-day.today header span {
  color: #092957;
  background: var(--app-primary-color);
}

.calendar-day.muted-day {
  opacity: .46;
  filter: saturate(.82);
}

.calendar-day > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: color-mix(in srgb, var(--app-primary-color) 45%, rgba(255,255,255,.24)) transparent;
  scrollbar-width: thin;
}

.calendar-day > div::-webkit-scrollbar {
  width: 7px;
}

.calendar-day > div::-webkit-scrollbar-track {
  background: transparent;
}

.calendar-day > div::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-primary-color) 50%, rgba(255,255,255,.28));
  background-clip: padding-box;
}

.calendar-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border-left: 3px solid var(--app-primary-color);
  border-radius: 8px;
  color: #eef3ff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(8, 12, 20, .48);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.calendar-card:hover {
  transform: translateY(-1px) translateX(1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05)),
    rgba(8, 12, 20, .56);
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}

.calendar-card strong,
.calendar-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-card strong {
  font-size: 13px;
  line-height: 1.2;
}

.calendar-card span {
  color: #aeb7c8;
  font-size: 11px;
  font-weight: 700;
}

.calendar-card.priority-high { border-left-color: #ff7452; }
.calendar-card.priority-medium { border-left-color: #f5cd47; }
.calendar-card.priority-low { border-left-color: #4bce97; }

.dashboard-board-card,
.dashboard-create-card {
  position: relative;
  min-height: 146px;
  height: 146px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: #28292d;
  color: #d7d9df;
  text-align: left;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-board-card:hover,
.dashboard-create-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  border-color: rgba(87,157,255,.36);
  box-shadow: 0 16px 34px rgba(0,0,0,.32);
}

.board-card-enter {
  animation: cardIn 0.24s cubic-bezier(.2, .8, .2, 1) both;
}

.dashboard-board-card > a,
.dashboard-board-card[href] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 146px;
  height: 146px;
  padding: 80px 12px 11px;
}

.tile-image {
  position: absolute;
  inset: 0 0 66px;
  background: var(--tile-bg);
  background-size: cover;
  background-position: center;
  transition: transform .28s ease;
}

.tile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38));
}

.dashboard-board-card:hover .tile-image {
  transform: scale(1.04);
}

.dashboard-board-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 66px;
  z-index: 0;
  background: #28292d;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dashboard-board-card strong,
.dashboard-board-card small {
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.dashboard-board-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #f2f5ff;
  font-size: 15px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.dashboard-board-card small {
  margin-top: 3px;
  color: #c7c9d1;
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-create-card {
  display: grid;
  place-items: center;
  border: 0;
  color: #c7c9d1;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.workspace-block {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    #202125;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.workspace-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 0;
}

.workspace-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-title h3 {
  margin: 0;
}

.workspace-title small {
  display: block;
  margin-top: 3px;
  color: #8e929d;
  font-size: 12px;
  font-weight: 800;
}

.workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-actions button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 13px;
  color: #cfd4df;
  background: rgba(255,255,255,.045);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.workspace-actions button:hover {
  transform: translateY(-1px);
  color: #f4f7ff;
  border-color: color-mix(in srgb, var(--app-primary-color) 35%, rgba(255,255,255,.1));
  background: color-mix(in srgb, var(--app-primary-color) 12%, rgba(255,255,255,.045));
}

.workspace-actions button.active {
  color: #092957;
  border-color: transparent;
  background: var(--app-primary-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--app-primary-color) 28%, transparent);
}

.modal-subtitle {
  margin: -8px 0 14px;
  color: #aeb2bd;
  font-weight: 700;
}

.workspace-share-row {
  margin-bottom: 16px;
}

.workspace-member-row {
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  overflow: visible;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.workspace-member-row + .workspace-member-row {
  margin-top: 8px;
}

.workspace-member-row .avatar {
  margin-left: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.workspace-member-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-member-controls select {
  min-width: 118px;
  height: 36px;
  border-radius: 8px;
  background: #202127;
  color: #eef3ff;
  font-weight: 800;
}

.workspace-members-modal {
  width: min(94vw, 640px);
}

.workspace-members-modal .modal-titlebar {
  margin-bottom: 10px;
}

.workspace-members-modal .modal-subtitle {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: #dbe4f7;
  background: color-mix(in srgb, var(--app-primary-color) 10%, transparent);
}

.workspace-share-row {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 160px) minmax(118px, auto);
  column-gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}

.workspace-member-list {
  max-height: min(48vh, 430px);
  overflow: auto;
  padding-right: 3px;
}

.create-board-modal {
  width: min(94vw, 304px);
  padding: 18px;
}

.board-create-modal {
  width: min(94vw, 460px);
  max-height: calc(100vh - 36px);
  padding: 18px;
  overflow: auto;
  border-color: rgba(87, 157, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(57, 61, 72, 0.94), rgba(32, 33, 38, 0.98)),
    #28292d;
}

.board-create-modal .modal-titlebar {
  align-items: flex-start;
  margin-bottom: 12px;
}

.board-create-modal .modal-titlebar h2 {
  margin-top: 2px;
  font-size: 23px;
  color: #f4f6fb;
}

.modal-kicker {
  display: block;
  color: #8fb8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-preview {
  height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 42px 12px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: var(--preview-bg);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -72px 80px rgba(0,0,0,0.34), 0 14px 34px rgba(0,0,0,0.24);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.board-preview div {
  width: 82px;
  min-height: 62px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(246,248,252,.88);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.board-preview .preview-list {
  animation: previewListIn .18s ease both;
}

.board-preview .preview-list b {
  display: block;
  width: 72%;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  color: transparent;
  background: rgba(38, 43, 54, 0.32);
}

.board-preview span {
  height: 9px;
  border-radius: 999px;
  background: rgba(38, 43, 54, 0.18);
}

.board-preview .preview-card-line {
  width: 100%;
}

.board-preview .preview-card-line.line-1 {
  width: 78%;
}

.board-preview .preview-card-line.line-2 {
  width: 58%;
}

.board-preview .preview-list-1 {
  min-height: 74px;
}

.board-preview .preview-list-2 {
  min-height: 54px;
}

.board-preview .preview-list-3 {
  min-height: 82px;
}

@keyframes previewListIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.board-create-modal .field-label {
  margin: 2px 0 8px;
}

.background-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.background-picker button {
  height: 36px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-choice);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: inset 0 -18px 24px rgba(0,0,0,0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.background-picker button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 -18px 24px rgba(0,0,0,0.18), 0 8px 18px rgba(0,0,0,0.22);
}

.background-picker .selected {
  border-color: var(--app-primary-color);
  box-shadow: 0 0 0 2px rgba(87,157,255,.26);
}

.board-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 150px);
  gap: 10px;
}

.board-create-modal label {
  margin: 7px 0;
}

.board-create-modal input,
.board-create-modal textarea,
.board-create-modal select {
  border-color: rgba(143, 184, 255, 0.18);
  background: rgba(16, 18, 24, 0.72);
  padding: 0.68rem 0.78rem;
}

.board-create-modal textarea {
  min-height: 68px;
}

.board-color-field {
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
}

.board-color-field input[type="color"] {
  width: 54px;
  height: 38px;
  padding: 4px;
  cursor: pointer;
}

.board-create-modal .trello-primary.full {
  width: 100%;
  margin-top: 6px;
  min-height: 40px;
}

.board-background-modal {
  width: min(94vw, 360px);
}

.board-background-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.board-background-modal .ghost-button {
  margin: 4px 0 10px;
}

.archive-modal {
  width: min(94vw, 540px);
}

.archive-list {
  display: grid;
  gap: 8px;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #3c3f45;
  border-radius: 7px;
  background: #222326;
}

.archive-item strong,
.archive-item small {
  display: block;
}

.archive-item strong {
  color: #f3f6ff;
}

.archive-item small {
  color: #aeb2bd;
  margin-top: 2px;
}

.archive-empty {
  margin-top: 12px;
}

.card-detail-modal {
  width: min(1060px, 96vw);
  height: min(760px, calc(100vh - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #dbe0ea;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 120px),
    #22242a;
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  overflow: hidden;
}

.card-detail-modal form {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-detail-top {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--app-primary-color) 12%, transparent), transparent 45%),
    rgba(255,255,255,.025);
}

.card-detail-top select {
  width: auto;
  min-width: 128px;
  height: 34px;
  border-radius: 999px;
  padding: 0 34px 0 13px;
  border-color: rgba(255,255,255,.12);
  color: #eef3ff;
  background: #30333a;
  font-weight: 800;
}

.card-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.card-detail-main {
  overflow: auto;
  padding: 28px 30px 36px;
}

.card-activity {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 24px 18px;
  background: #181a1f;
  border-left: 1px solid rgba(255,255,255,.08);
}

.card-title-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
}

.card-circle {
  width: 18px;
  height: 18px;
  border: 3px solid var(--app-primary-color);
  border-radius: 6px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--app-primary-color) 35%, transparent);
}

.card-title-input {
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4f7ff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.card-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 24px 32px;
}

.assigned-members {
  display: flex;
  gap: 4px;
  min-height: 30px;
  margin: -10px 0 18px 32px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 18px 32px;
}

.card-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  color: #d7d9df;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 800;
}

.card-badge i {
  width: 22px;
  height: 8px;
  border-radius: 999px;
}

.card-feature-block {
  animation: cardSectionIn .18s cubic-bezier(.2, .8, .2, 1) both;
}

.card-feature-block.just-added {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(87,157,255,.34);
}

.card-quick-actions button,
.card-detail-tabs button,
.card-activity header button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 0 13px;
  color: #d7dce7;
  background: rgba(255,255,255,.055);
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.card-quick-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 13px;
}

.card-action-icon {
  position: relative;
  flex: 0 0 auto;
  width: 19px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #091527;
  background: var(--app-primary-color);
  font-size: 12px;
  font-weight: 900;
}

.card-action-icon::before,
.card-action-icon::after {
  content: "";
  position: absolute;
}

.icon-add::before {
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-add::after {
  width: 2px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.icon-label::before {
  content: "#";
  position: static;
}

.icon-date {
  border-radius: 5px;
}

.icon-date::before {
  inset: 4px 4px 3px;
  border: 2px solid currentColor;
  border-top-width: 4px;
  border-radius: 3px;
}

.icon-check::before {
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.icon-member::before {
  content: "@";
  position: static;
}

.card-quick-actions button:hover,
.card-quick-actions button:focus {
  transform: translateY(-1px);
  color: #f5f8ff;
  border-color: color-mix(in srgb, var(--app-primary-color) 35%, rgba(255,255,255,.1));
  background: color-mix(in srgb, var(--app-primary-color) 12%, rgba(255,255,255,.06));
}

.card-field-block h3 {
  margin: 0 0 12px;
  color: #f1f4fb;
  font-size: 16px;
}

.card-field-block textarea,
.card-activity textarea {
  border-color: rgba(255,255,255,.1);
  background: #1b1d22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.compact-fields,
.checklist-source,
.checklist-panel {
  margin-left: 32px;
}

.card-field-block,
.compact-fields,
.checklist-panel {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.compact-fields.no-indent {
  margin-left: 0;
}

.checklist-panel {
  margin-top: 18px;
}

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

.checklist-panel h3 {
  margin: 0;
  color: #d7d9df;
  font-size: 15px;
}

.checklist-panel header span {
  color: #aeb2bd;
  font-size: 12px;
  font-weight: 700;
}

.checklist-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #34363c;
  margin-bottom: 12px;
}

.checklist-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--app-primary-color);
  transition: width .2s ease;
}

.checklist-items {
  display: grid;
  gap: 6px;
}

.checklist-items.is-empty::before {
  content: "Noch keine Checklistenpunkte";
  color: #8e929d;
  padding: 8px 0;
}

.checklist-item {
  grid-template-columns: 22px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px;
  border-radius: 6px;
  color: #d7d9df;
}

.checklist-item:hover {
  background: rgba(255,255,255,.05);
}

.checklist-item > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fake-checkbox {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #8e929d;
  border-radius: 4px;
  background: #222326;
}

.checklist-item input[type="checkbox"]:checked + .fake-checkbox {
  border-color: var(--app-primary-color);
  background: var(--app-primary-color);
}

.checklist-item input[type="checkbox"]:checked + .fake-checkbox::after {
  content: "✓";
  color: #092957;
  font-size: 13px;
  font-weight: 900;
}

.checklist-item input[type="text"] {
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.checklist-item input[type="text"]:focus {
  background: #24262a;
  box-shadow: 0 0 0 2px var(--app-primary-color);
}

.checklist-item.is-done input[type="text"] {
  color: #8e929d;
  text-decoration: line-through;
}

.checklist-delete {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

.checklist-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.checklist-add-row input {
  min-height: 34px;
  padding: 7px 10px;
  background: #24262a;
}

.card-activity header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-activity h3 {
  margin: 0;
  font-size: 15px;
  color: #eef3ff;
}

#saveCommentButton {
  width: 100%;
  margin: 8px 0 18px;
}

.mention-compose {
  position: relative;
}

.mention-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 120;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: #2b2c30;
  box-shadow: 0 18px 48px rgba(0,0,0,.42);
}

.mention-suggestions button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  color: #dbe0ea;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mention-suggestions button:hover {
  background: rgba(255,255,255,.08);
}

.mention-suggestions .avatar {
  width: 30px;
  height: 30px;
  margin: 0;
}

.mention-suggestions strong,
.mention-suggestions small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-suggestions small {
  color: #9da3ad;
  font-size: 12px;
}

.activity-list {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 10px;
  min-height: 0;
  margin-top: 12px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--app-primary-color) 55%, #687184) rgba(255,255,255,.045);
}

.activity-list::-webkit-scrollbar,
.card-detail-main::-webkit-scrollbar {
  width: 10px;
}

.activity-list::-webkit-scrollbar-track,
.card-detail-main::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.activity-list::-webkit-scrollbar-thumb,
.card-detail-main::-webkit-scrollbar-thumb {
  border: 2px solid #181a1f;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--app-primary-color) 70%, #9ebcff),
    color-mix(in srgb, var(--app-primary-color) 38%, #5b6474)
  );
}

.activity-list::-webkit-scrollbar-thumb:hover,
.card-detail-main::-webkit-scrollbar-thumb:hover {
  background: var(--app-primary-color);
}

.activity-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  overflow: visible;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
}

.activity-item.system-activity {
  background: rgba(255,255,255,0.02);
}

.activity-item p {
  margin: 5px 0 0;
  color: #d9dde6;
  line-height: 1.45;
}

.activity-item strong {
  margin-right: 5px;
  color: #f1f3f8;
}

.activity-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-heading button {
  border: 0;
  border-radius: 4px;
  padding: 3px 7px;
  color: #ff9aad;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.activity-heading strong {
  flex: 1;
}

.activity-heading .activity-detail-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(87, 157, 255, .35);
  border-radius: 999px;
  color: #cfe1ff;
  background: rgba(87, 157, 255, .12);
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.activity-heading .activity-detail-button:hover,
.activity-heading .activity-detail-button.is-open {
  color: #ffffff;
  background: color-mix(in srgb, var(--app-primary-color) 28%, rgba(87, 157, 255, .16));
  border-color: color-mix(in srgb, var(--app-primary-color) 55%, rgba(87, 157, 255, .35));
  transform: translateY(-1px);
}

.activity-heading button:hover {
  background: rgba(255, 92, 122, .12);
}

.activity-diff {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.16);
}

.activity-diff[hidden] {
  display: none;
}

.activity-diff-row {
  display: grid;
  gap: 5px;
}

.activity-diff-row strong {
  color: #aeb6c6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.activity-diff-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.activity-diff-values span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.old-value,
.new-value {
  display: grid;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: #e4e8f1;
}

.old-value {
  color: #ffb8c2;
  background: rgba(255, 92, 122, .08);
}

.new-value {
  color: #bff3d4;
  background: rgba(75, 206, 151, .08);
}

.old-value em,
.new-value em {
  color: #929bad;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.diff-arrow {
  color: #9da8ba;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.activity-item small {
  display: block;
  color: #8e929d;
  margin-top: 5px;
  height: auto;
  overflow: hidden;
  font-size: 12px;
}

.activity-list.show-meta .activity-item small {
  color: var(--app-primary-color);
  height: auto;
}

.card-detail-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #202228;
}

.card-detail-tabs .active {
  color: #dceaff;
  background: color-mix(in srgb, var(--app-primary-color) 18%, #202228);
}

.card-detail-tabs .trello-primary {
  min-width: 120px;
  border-radius: 999px;
}

.card-popover {
  position: fixed;
  z-index: 80;
  width: 306px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #3c3f45;
  background: #2b2c31;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  animation: modalIn .16s ease both;
}

.card-context-menu {
  position: fixed;
  z-index: 1200;
  width: 226px;
  display: grid;
  gap: 6px;
  padding: 0;
  color: #d7d9df;
  background: transparent;
  animation: modalIn .12s ease both;
}

.card-context-menu > button {
  min-height: 32px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 0 10px;
  color: #e4e7ee;
  background: rgba(42, 44, 49, .94);
  box-shadow: 0 4px 14px rgba(0,0,0,.26);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.card-context-menu > button:hover {
  background: #3a3d45;
}

.card-context-menu > button.danger:hover {
  color: #ffbdc9;
  background: rgba(174, 46, 36, .36);
}

.card-context-menu > h3,
.card-context-menu label {
  color: #d7d9df;
  font-size: 13px;
  font-weight: 800;
}

.card-context-menu h3 {
  margin: 8px 0 6px;
  text-align: center;
}

.card-context-menu input {
  min-height: 34px;
  margin: 4px 0 8px;
  background: #222326;
}

.card-context-menu .label-color-grid {
  margin: 8px 0 10px;
}

.card-context-menu .wide-popover-button,
.card-context-menu .trello-primary.full {
  margin-top: 6px;
}

.card-popover h3 {
  margin: 0 32px 14px;
  text-align: center;
  color: #c7c9d1;
}

.popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.card-popover > button:not(.plain-icon) {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 5px;
  padding: 8px;
  color: #c7c9d1;
  background: transparent;
  text-align: left;
}

.card-popover > button:hover {
  background: rgba(255,255,255,.08);
}

.card-popover small {
  display: block;
  color: #aeb2bd;
  margin-top: 2px;
}

.label-picker {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.label-choice {
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  gap: 6px;
}

.label-picker label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  margin: 0;
}

.label-picker span {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--label);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 5px rgba(0,0,0,.38);
}

.label-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--app-primary-color);
}

.label-delete-button {
  width: 30px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  color: #c7c9d1;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.label-delete-button:hover {
  color: #ff9aad;
  background: rgba(255, 92, 122, .12);
}

.label-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 8px 0 14px;
}

.label-color-grid button {
  height: 32px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--label);
  cursor: pointer;
}

.label-color-grid button.selected {
  border-color: #9cc7ff;
  box-shadow: 0 0 0 2px rgba(87,157,255,.28);
}

.popover-empty {
  margin: 8px 0 12px;
  color: #aeb2bd;
  font-size: 13px;
}

.wide-popover-button {
  width: 100%;
  min-height: 36px;
  display: block !important;
  border: 1px solid #4b4f58 !important;
  border-radius: 5px;
  color: #c7c9d1;
  background: #2f3035 !important;
  text-align: center !important;
}

.popover-member-list {
  display: grid;
  gap: 6px;
}

.popover-member-list button {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 5px;
  padding: 8px;
  color: #d7d9df;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.popover-member-list button:hover {
  background: rgba(255,255,255,.08);
}

.popover-member-list small {
  color: #aeb2bd;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.mini-calendar strong {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.mini-calendar span {
  padding: 6px 0;
  border-radius: 4px;
}

.mini-calendar .selected {
  color: #fff;
  background: var(--app-primary-color);
}

@media (max-width: 900px) {
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-sidebar { display: none; }
  .workspace-main { width: 100%; padding: 24px 14px 64px; }
  .card-detail-body { grid-template-columns: 1fr; }
  .card-activity { border-left: 0; border-top: 1px solid #3c3f45; }
  .card-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-choice-grid { grid-template-columns: 1fr; }
}

.admin-shell {
  width: 100%;
  min-height: calc(100vh - 42px);
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--app-primary-color) 12%, transparent), transparent 32%),
    linear-gradient(180deg, #1a1b20, #16171b);
}

.admin-sidebar {
  position: sticky;
  top: 42px;
  min-width: 0;
  height: calc(100vh - 42px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(31,33,39,0.98), rgba(20,21,25,0.98)),
    #18191d;
  box-shadow: 14px 0 40px rgba(0,0,0,0.18);
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-sidebar-head .brand-mark {
  flex: 0 0 auto;
}

.admin-sidebar-head strong,
.admin-sidebar-head small {
  display: block;
}

.admin-sidebar-head strong {
  color: #f4f7ff;
}

.admin-sidebar-head small {
  margin-top: 2px;
  color: #8e929d;
  font-size: 12px;
  font-weight: 700;
}

.admin-nav {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-nav button,
.admin-overview-grid button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.admin-nav button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 13px;
  color: #c7c9d1;
  background: transparent;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.admin-nav button:hover {
  color: #f4f7ff;
  background: rgba(255,255,255,.075);
  transform: translateX(2px);
}

.admin-nav button.active {
  color: #f4f7ff;
  background: color-mix(in srgb, var(--app-primary-color) 22%, #102033);
  box-shadow: inset 3px 0 0 var(--app-primary-color), 0 10px 24px rgba(0,0,0,0.22);
}

.admin-back-link {
  margin-top: auto;
  justify-content: center;
}

.admin-content {
  width: 100%;
  min-width: 0;
  padding: 34px clamp(18px, 4vw, 48px) 80px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    color-mix(in srgb, var(--app-primary-color) 8%, #22242a);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.admin-hero h1 {
  margin: 0 0 8px;
  color: #f6f8ff;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0;
}

.admin-hero p:last-child {
  margin: 0;
  color: #c7c9d1;
}

.admin-section {
  display: none;
  min-width: 0;
}

.admin-section.active {
  display: block;
  animation: adminSectionIn .16s ease both;
}

@keyframes adminSectionIn {
  from { opacity: 0; transform: translateY(6px); }
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-stats article,
.admin-panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(43,45,52,.98), rgba(33,34,40,.98));
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}

.admin-stats article {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.admin-stats article::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--app-primary-color) 22%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.admin-stats strong {
  display: block;
  color: #fff;
  font-size: 30px;
}

.admin-stats span {
  color: #aeb2bd;
  font-weight: 700;
}

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

.admin-overview-grid article {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(43,45,52,.98), rgba(33,34,40,.98));
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-overview-grid article:hover,
.admin-stats article:hover,
.admin-panel:hover {
  border-color: color-mix(in srgb, var(--app-primary-color) 28%, rgba(255,255,255,.08));
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.admin-overview-grid span {
  color: #8e929d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-overview-grid strong {
  color: #fff;
  font-size: 19px;
}

.admin-overview-grid button {
  width: max-content;
  min-height: 32px;
  border-radius: 7px;
  padding: 0 12px;
  color: #092957;
  background: var(--app-primary-color);
}

.admin-panel {
  overflow: hidden;
  margin-top: 16px;
}

.admin-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}

.admin-panel h2 {
  margin: 0;
  color: #d7d9df;
}

.admin-panel > header p {
  margin: 6px 0 0;
  color: #aeb2bd;
  font-size: 13px;
}

.admin-settings-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.settings-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    #202127;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.settings-card > header {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--app-primary-color) 8%, transparent);
}

.settings-card > header strong,
.settings-card > header small {
  display: block;
}

.settings-card > header strong {
  color: #f2f5ff;
  font-size: 15px;
}

.settings-card > header small {
  margin-top: 4px;
  color: #aeb2bd;
  font-size: 12px;
  font-weight: 700;
}

.admin-settings-form > .trello-primary {
  justify-self: end;
  min-width: 220px;
  min-height: 40px;
  border-radius: 9px;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) repeat(2, minmax(120px, 150px));
  gap: 12px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-field-grid::before {
  content: none;
}

.settings-field-grid label {
  margin: 0;
}

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

.settings-color-row input[type="color"] {
  height: 42px;
  padding: 4px;
}

.settings-color-row .trello-button {
  width: 100%;
  min-height: 42px;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.theme-choice {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.theme-choice:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--app-primary-color) 38%, rgba(255,255,255,.12));
}

.theme-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--app-primary-color) 72%, #ffffff);
  background: color-mix(in srgb, var(--app-primary-color) 13%, rgba(255,255,255,.04));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-primary-color) 18%, transparent);
}

.theme-preview {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 22px 1fr;
  gap: 8px;
  min-height: 78px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.theme-preview i,
.theme-preview b,
.theme-preview em {
  display: block;
  border-radius: 6px;
}

.theme-preview i {
  grid-row: 1 / -1;
}

.theme-preview b {
  height: 18px;
}

.theme-preview em {
  min-height: 38px;
}

.theme-choice-dark .theme-preview {
  background: linear-gradient(135deg, #070914, #11182c);
}

.theme-choice-dark .theme-preview i { background: #202a47; }
.theme-choice-dark .theme-preview b { background: #579dff; }
.theme-choice-dark .theme-preview em { background: #1b2238; }

.theme-choice-light .theme-preview {
  background: linear-gradient(135deg, #f8fbff, #edf3fb);
}

.theme-choice-light .theme-preview i { background: #dbe5f2; }
.theme-choice-light .theme-preview b { background: #0c66e4; }
.theme-choice-light .theme-preview em { background: #ffffff; }

.theme-choice-glass .theme-preview {
  background:
    radial-gradient(circle at 18% 12%, rgba(87,157,255,.42), transparent 34px),
    radial-gradient(circle at 86% 22%, rgba(75,206,151,.28), transparent 38px),
    #07111d;
}

.theme-choice-glass .theme-preview i,
.theme-choice-glass .theme-preview b,
.theme-choice-glass .theme-preview em {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}

.theme-choice strong {
  color: #f3f6ff;
}

.theme-choice small {
  color: #9da7ba;
}

.auth-mode-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  margin: 12px 16px;
  padding: 15px;
  border: 1px solid #3c3f45;
  border-radius: 10px;
  background: #202127;
  cursor: pointer;
}

.auth-mode-option:has(input:checked) {
  border-color: var(--app-primary-color);
  background: color-mix(in srgb, var(--app-primary-color) 17%, #18202b);
}

.auth-mode-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--app-primary-color);
}

.auth-mode-option strong,
.auth-mode-option small {
  display: block;
}

.auth-mode-option small {
  margin-top: 4px;
  color: #aeb2bd;
  line-height: 1.45;
}

.admin-panel input {
  max-width: 320px;
  min-height: 38px;
  padding: 8px 11px;
  border-color: rgba(255,255,255,.1);
  background: #1b1c21;
}

.admin-panel input[type="search"] {
  border-radius: 999px;
  padding-left: 14px;
  background: #18191e;
}

.admin-panel input[type="search"]:focus {
  border-color: var(--app-primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary-color) 16%, transparent);
}

.admin-table-wrap {
  overflow-x: auto;
  scrollbar-color: #4b4f58 transparent;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #cfd2da;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #9da3b0;
  background: #242529;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table tbody tr {
  transition: background .14s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

.admin-table a {
  color: var(--app-primary-color);
  font-weight: 800;
}

.admin-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-action-row button {
  min-height: 32px;
  border: 1px solid #3c3f45;
  border-radius: 7px;
  padding: 0 10px;
  color: #d7d9df;
  background: #2f3035;
  font-weight: 800;
  cursor: pointer;
}

.admin-action-row button:hover {
  color: #f4f7ff;
  background: #393b42;
  border-color: #555a64;
}

.admin-check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
}

.admin-check-row input {
  width: 18px;
  height: 18px;
}

body.board-page {
  height: 100vh;
  overflow: hidden;
}

body.board-page .page-shell {
  width: 100%;
  height: calc(100vh - 42px);
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

body.board-page .trello-board-bar {
  flex: 0 0 auto;
  margin: 0;
}

body.board-page .kanban {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 16px 22px;
  scroll-padding-bottom: 22px;
}

body.board-page .kanban-list {
  height: auto;
  max-height: calc(100vh - 146px);
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  overflow: hidden;
}

body.board-page .cards-dropzone {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(100vh - 238px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--app-primary-color) 58%, #6f7786) rgba(255,255,255,.045);
}

body.board-page .cards-dropzone::-webkit-scrollbar {
  width: 9px;
}

body.board-page .cards-dropzone::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

body.board-page .cards-dropzone::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, #181a1f 88%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--app-primary-color) 72%, #b8d4ff),
      color-mix(in srgb, var(--app-primary-color) 34%, #596273)
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

body.board-page .cards-dropzone::-webkit-scrollbar-thumb:hover {
  background: var(--app-primary-color);
}

body.board-page .add-list-tile {
  flex: 0 0 286px;
  align-self: flex-start;
}

/* Light theme polish: this block intentionally comes late so it wins over older dark component rules. */
body.theme-light,
body.theme-light.auth-page,
body.theme-light.dashboard-page {
  color: #172033;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--app-primary-color) 16%, transparent), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(75, 206, 151, 0.14), transparent 30rem),
    linear-gradient(135deg, #f8fbff, #eef4fb 48%, #f8fbff);
}

body.theme-light .topbar,
body.theme-light.auth-page .topbar,
body.theme-light.dashboard-page .topbar,
body.theme-light .admin-sidebar,
body.theme-light .workspace-sidebar {
  color: #172033;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,248,253,.88)), #ffffff;
  border-color: rgba(23, 32, 51, .1);
  box-shadow: 0 14px 38px rgba(35, 52, 82, .1);
}

body.theme-light .glass-panel,
body.theme-light .auth-card,
body.theme-light .auth-shell,
body.theme-light .modal,
body.theme-light .admin-panel,
body.theme-light .admin-stats article,
body.theme-light .admin-overview-grid article,
body.theme-light .settings-card,
body.theme-light .workspace-block,
body.theme-light .dashboard-strip,
body.theme-light .dashboard-board-card,
body.theme-light .dashboard-create-card,
body.theme-light .board-create-modal,
body.theme-light .card-detail-modal,
body.theme-light .notification-menu,
body.theme-light .profile-menu,
body.theme-light .global-search-results,
body.theme-light .card-popover,
body.theme-light .card-context-menu > button {
  color: #172033;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.9)), #ffffff;
  border-color: rgba(23, 32, 51, .11);
  box-shadow: 0 18px 48px rgba(35, 52, 82, .13);
}

body.theme-light .dashboard-board-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .94));
  border-top-color: rgba(23, 32, 51, .1);
}

body.theme-light .dashboard-board-card:hover {
  filter: none;
  border-color: color-mix(in srgb, var(--app-primary-color) 34%, rgba(23, 32, 51, .12));
  box-shadow: 0 18px 48px rgba(35, 52, 82, .16);
}

body.theme-light .board-card-action {
  color: #172033;
  border-color: rgba(23,32,51,.12);
  background: rgba(255,255,255,.74);
  box-shadow: 0 10px 24px rgba(35,52,82,.16), inset 0 1px 0 rgba(255,255,255,.9);
}

body.theme-light .board-card-action:hover,
body.theme-light .board-card-action:focus-visible {
  background: color-mix(in srgb, var(--app-primary-color) 18%, #ffffff);
}

body.theme-light .board-card-action-delete:hover,
body.theme-light .board-card-action-delete:focus-visible {
  color: #ae2e24;
  border-color: rgba(174,46,36,.24);
  background: rgba(255,116,82,.16);
}

body.theme-light .dashboard-board-card:hover .tile-image {
  filter: saturate(1.03) contrast(1.02);
}

body.theme-light .auth-board-preview {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(245,248,253,.72));
  border-color: rgba(23,32,51,.12);
  box-shadow: 0 24px 60px rgba(35,52,82,.13), inset 0 1px 0 rgba(255,255,255,.78);
}

body.theme-light .auth-preview-top span {
  background: rgba(23,32,51,.18);
}

body.theme-light .auth-preview-top span:nth-child(1) {
  background: var(--app-primary-color);
}

body.theme-light .auth-preview-list {
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(23,32,51,.09);
}

body.theme-light .auth-preview-list strong {
  color: #172033;
}

body.theme-light .auth-preview-list i {
  background:
    linear-gradient(90deg, rgba(23,32,51,.16), rgba(23,32,51,.06) 44%, transparent 44%),
    linear-gradient(180deg, #ffffff, #eef3fa);
  box-shadow: inset 0 0 0 1px rgba(23,32,51,.08), 0 8px 18px rgba(35,52,82,.08);
}

body.theme-light .auth-preview-list.active {
  background: color-mix(in srgb, var(--app-primary-color) 12%, #ffffff);
}

body.theme-light .kanban-list,
body.theme-light .task-card,
body.theme-light .card-activity,
body.theme-light .card-detail-tabs,
body.theme-light .card-field-block,
body.theme-light .compact-fields,
body.theme-light .checklist-panel,
body.theme-light .activity-item,
body.theme-light .workspace-member-row,
body.theme-light .share-link-card,
body.theme-light .auth-mode-option,
body.theme-light .theme-choice,
body.theme-light .admin-table tbody tr,
body.theme-light .member-row,
body.theme-light .notification-item {
  color: #172033;
  background: rgba(255,255,255,.82);
  border-color: rgba(23, 32, 51, .11);
}

body.theme-light .card-detail-top,
body.theme-light .modal-titlebar,
body.theme-light .settings-card > header,
body.theme-light .admin-panel > header,
body.theme-light .workspace-block header,
body.theme-light .notification-menu header,
body.theme-light .profile-menu header,
body.theme-light .account-menu-section,
body.theme-light .account-profile-form {
  background: rgba(244, 248, 254, .86);
  border-color: rgba(23, 32, 51, .1);
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light strong,
body.theme-light .brand,
body.theme-light .card-title-input,
body.theme-light .list-header h2,
body.theme-light .task-card h3,
body.theme-light .dashboard-strip h1,
body.theme-light .dashboard-section h2,
body.theme-light .workspace-title h3,
body.theme-light .admin-hero h1,
body.theme-light .admin-panel h2,
body.theme-light .admin-stats strong,
body.theme-light .admin-overview-grid strong,
body.theme-light .settings-card > header strong,
body.theme-light .theme-choice strong,
body.theme-light .global-search-results strong,
body.theme-light .notification-item strong,
body.theme-light .account-profile-card strong {
  color: #172033;
}

body.theme-light p,
body.theme-light small,
body.theme-light label,
body.theme-light .muted,
body.theme-light .nav a,
body.theme-light .task-card p,
body.theme-light .task-card footer,
body.theme-light .dashboard-strip p,
body.theme-light .dashboard-section-heading p,
body.theme-light .workspace-title small,
body.theme-light .admin-hero p,
body.theme-light .admin-panel > header p,
body.theme-light .admin-stats span,
body.theme-light .admin-overview-grid span,
body.theme-light .settings-card > header small,
body.theme-light .theme-choice small,
body.theme-light .global-search-results small,
body.theme-light .notification-item small,
body.theme-light .activity-item small,
body.theme-light .card-popover small,
body.theme-light .account-profile-card small,
body.theme-light .account-menu-section h3,
body.theme-light .modal-subtitle,
body.theme-light .popover-empty {
  color: #647087;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select,
body.theme-light .top-search,
body.theme-light .admin-panel input,
body.theme-light .board-create-modal input,
body.theme-light .board-create-modal textarea,
body.theme-light .board-create-modal select,
body.theme-light .card-field-block textarea,
body.theme-light .card-activity textarea,
body.theme-light .checklist-add-row input,
body.theme-light .card-context-menu input {
  color: #172033;
  background: #ffffff;
  border-color: rgba(23, 32, 51, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: #8b96aa;
}

body.theme-light .trello-button,
body.theme-light .ghost-button,
body.theme-light .icon-button,
body.theme-light .add-card-button,
body.theme-light .plain-icon,
body.theme-light .workspace-actions button,
body.theme-light .account-menu-item,
body.theme-light .admin-nav button,
body.theme-light .admin-overview-grid button,
body.theme-light .card-quick-actions button,
body.theme-light .card-detail-tabs button,
body.theme-light .card-activity header button,
body.theme-light .card-popover > button:not(.plain-icon),
body.theme-light .wide-popover-button {
  color: #253047;
  background: rgba(237, 243, 251, .92) !important;
  border-color: rgba(23, 32, 51, .13) !important;
}

body.theme-light .trello-button:hover,
body.theme-light .ghost-button:hover,
body.theme-light .icon-button:hover,
body.theme-light .add-card-button:hover,
body.theme-light .plain-icon:hover,
body.theme-light .workspace-actions button:hover,
body.theme-light .account-menu-item:hover,
body.theme-light .admin-nav button:hover,
body.theme-light .card-quick-actions button:hover,
body.theme-light .card-popover > button:not(.plain-icon):hover {
  color: #172033;
  background: color-mix(in srgb, var(--app-primary-color) 13%, #ffffff) !important;
}

body.theme-light .trello-primary,
body.theme-light .primary-button,
body.theme-light .create-nav,
body.theme-light .admin-nav button.active,
body.theme-light .workspace-link:hover,
body.theme-light .workspace-link.active,
body.theme-light .card-detail-tabs .active,
body.theme-light .auth-mode-option:has(input:checked),
body.theme-light .theme-choice:has(input:checked) {
  color: #06152b;
  background: color-mix(in srgb, var(--app-primary-color) 72%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--app-primary-color) 55%, rgba(23,32,51,.12)) !important;
}

body.theme-light .brand-mark,
body.theme-light .avatar,
body.theme-light .member-avatar,
body.theme-light .notification-dot,
body.theme-light .card-action-icon {
  color: #06152b;
}

body.theme-light .admin-table th,
body.theme-light .admin-table td {
  color: #263247;
  border-color: rgba(23, 32, 51, .09);
}

body.theme-light .admin-table th {
  background: #edf3fb;
  color: #647087;
}

body.theme-light .admin-table tbody tr:hover,
body.theme-light .global-search-results a:hover,
body.theme-light .global-search-results a.active,
body.theme-light .notification-item:hover,
body.theme-light .side-item.active,
body.theme-light .side-item:hover,
body.theme-light .workspace-link:hover {
  background: color-mix(in srgb, var(--app-primary-color) 10%, #ffffff);
}

body.theme-light .side-item.active {
  color: #172033;
  border: 1px solid color-mix(in srgb, var(--app-primary-color) 28%, rgba(23, 32, 51, .12));
  box-shadow: inset 3px 0 0 var(--app-primary-color), 0 10px 24px rgba(35, 52, 82, .1);
}

body.theme-light .side-item:hover,
body.theme-light .workspace-link:hover {
  color: #172033;
}

body.theme-light .side-item::before,
body.theme-light .workspace-link::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--app-primary-color) 14%, #ffffff), rgba(237, 243, 251, .7));
}

body.theme-light .activity-diff,
body.theme-light .old-value,
body.theme-light .new-value {
  border-color: rgba(23, 32, 51, .09);
}

body.theme-light .activity-diff {
  background: rgba(237, 243, 251, .86);
}

body.theme-light .old-value {
  background: #fff0f3;
}

body.theme-light .new-value {
  background: #ecfbf3;
}

body.theme-light .activity-list::-webkit-scrollbar-track,
body.theme-light .card-detail-main::-webkit-scrollbar-track,
body.theme-light.board-page .cards-dropzone::-webkit-scrollbar-track {
  background: rgba(23, 32, 51, .08);
}

body.theme-light .activity-list::-webkit-scrollbar-thumb,
body.theme-light .card-detail-main::-webkit-scrollbar-thumb,
body.theme-light.board-page .cards-dropzone::-webkit-scrollbar-thumb {
  border-color: #f3f6fb;
}

body.theme-light .admin-hero,
body.theme-light .trello-board-bar,
body.theme-light .board-manage-menu {
  color: #172033;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 250, 255, .84)) !important;
  border-color: rgba(23, 32, 51, .1) !important;
  box-shadow: 0 16px 40px rgba(35, 52, 82, .12);
}

body.theme-light .trello-board-bar p,
body.theme-light .board-manage-menu button,
body.theme-light .board-manage-menu strong {
  color: #253047;
}

body.theme-light .add-list-tile {
  color: #253047;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(23, 32, 51, .12);
  box-shadow: 0 12px 30px rgba(35, 52, 82, .12);
}

body.theme-light .add-list-tile:hover {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--app-primary-color) 34%, rgba(23, 32, 51, .12));
  box-shadow: 0 16px 38px rgba(35, 52, 82, .16);
}

body.theme-glass .trello-board-bar,
body.theme-glass .board-manage-menu,
body.theme-glass .card-popover,
body.theme-glass .add-list-tile {
  color: #f7fbff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055)) !important;
  border-color: rgba(255, 255, 255, .2) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .13);
  backdrop-filter: blur(24px) saturate(1.25);
}

body.theme-glass .card-detail-modal {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--app-primary-color) 22%, transparent), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055)) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(30px) saturate(1.3);
}

body.theme-glass .card-detail-top,
body.theme-glass .card-detail-main,
body.theme-glass .card-detail-tabs,
body.theme-glass .card-activity,
body.theme-glass .card-quick-actions button,
body.theme-glass .activity-item,
body.theme-glass .card-field-block,
body.theme-glass .checklist-panel,
body.theme-glass .compact-fields {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px) saturate(1.12);
}

body.theme-glass .card-detail-top {
  background: linear-gradient(90deg, color-mix(in srgb, var(--app-primary-color) 16%, rgba(255, 255, 255, .08)), rgba(255, 255, 255, .055));
}

body.theme-glass .card-detail-main {
  background: rgba(255, 255, 255, .025);
}

body.theme-glass .card-quick-actions button:hover,
body.theme-glass .card-popover > button:not(.plain-icon):hover,
body.theme-glass .board-manage-menu button:hover,
body.theme-glass .add-list-tile:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .24);
}

.profile-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 34px auto 72px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.profile-card,
.profile-panel {
  padding: 18px;
  border-radius: 12px;
}

.profile-card {
  position: sticky;
  top: 70px;
  min-width: 0;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.profile-avatar-large {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #081426;
  background: linear-gradient(135deg, var(--app-primary-color), #ffffff);
  font-size: 40px;
  font-weight: 900;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--app-primary-color) 32%, rgba(0,0,0,.36));
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h1,
.profile-panel h2 {
  margin: 0;
}

.profile-card h1 {
  max-width: 100%;
  overflow: hidden;
  color: #f4f7ff;
  font-size: 24px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card p,
.profile-card small {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #aeb7c8;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.profile-card p {
  font-size: 13px;
  white-space: nowrap;
}

.profile-card small {
  font-size: 12px;
}

.profile-main {
  display: grid;
  gap: 16px;
}

.profile-panel header {
  margin-bottom: 14px;
}

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

.profile-form label {
  display: grid;
  gap: 7px;
  color: #c8cfdd;
  font-weight: 800;
}

.profile-form label small {
  color: #8f98aa;
}

.profile-form button {
  width: max-content;
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #eef3ff;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.profile-list-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--app-primary-color) 36%, rgba(255,255,255,.1));
  background: rgba(255,255,255,.07);
}

.profile-list-item span {
  color: #9da7ba;
  font-size: 13px;
  font-weight: 700;
}

body.theme-light .profile-card,
body.theme-light .profile-panel {
  color: #172033;
  background: linear-gradient(rgba(255,255,255,.96), rgba(247,250,255,.9)), none;
  border-color: rgba(23,32,51,.11);
  box-shadow: 0 18px 48px rgba(35,52,82,.13);
}

body.theme-light .profile-form label,
body.theme-light .profile-list-item,
body.theme-light .profile-panel h2,
body.theme-light .profile-card h1 {
  color: #172033;
}

body.theme-light .profile-card p,
body.theme-light .profile-card small,
body.theme-light .profile-list-item span,
body.theme-light .profile-form label small {
  color: #647087;
}

body.theme-light .profile-list-item {
  background: rgba(237,243,251,.76);
  border-color: rgba(23,32,51,.1);
}

body.theme-light .shortcut-list div {
  border-color: rgba(23,32,51,.1);
  background: rgba(237,243,251,.76);
}

body.theme-light .shortcut-list kbd {
  color: #172033;
  border-color: rgba(23,32,51,.12);
  background: linear-gradient(180deg, #ffffff, #edf3fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(35,52,82,.1);
}

body.theme-light .shortcut-list span {
  color: #46536a;
}

body.theme-light .task-filterbar,
body.theme-light .assigned-task-card,
body.theme-light .assigned-task-empty,
body.theme-light .trash-panel,
body.theme-light .trash-item {
  color: #172033;
  border-color: rgba(23,32,51,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.86)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(35,52,82,.1), inset 0 1px 0 rgba(255,255,255,.9);
}

body.theme-light .task-filterbar button,
body.theme-light .task-filterbar select,
body.theme-light .assigned-task-meta time,
body.theme-light .assigned-task-meta em,
body.theme-light .assigned-task-meta b {
  color: #46536a;
  border-color: rgba(23,32,51,.1);
  background: rgba(237,243,251,.86);
}

body.theme-light .task-filterbar button.active {
  color: #092957;
  background: var(--app-primary-color);
}

body.theme-light .assigned-task-card strong,
body.theme-light .assigned-task-empty strong,
body.theme-light .trash-panel header strong,
body.theme-light .trash-item strong {
  color: #172033;
}

body.theme-light .assigned-task-card small,
body.theme-light .assigned-task-meta,
body.theme-light .assigned-task-empty span,
body.theme-light .trash-item small,
body.theme-light .trash-empty,
body.theme-light .trash-panel header span {
  color: #647087;
}

body.theme-light .calendar-toolbar > strong,
body.theme-light .calendar-day header span,
body.theme-light .calendar-card {
  color: #172033;
}

body.theme-light .calendar-mode,
body.theme-light .calendar-day,
body.theme-light .calendar-card {
  border-color: rgba(23,32,51,.1);
}

body.theme-light .calendar-toolbar,
body.theme-light .calendar-day {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.86)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(35,52,82,.1), inset 0 1px 0 rgba(255,255,255,.9);
}

body.theme-light .calendar-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,243,251,.9)),
    #ffffff;
  box-shadow: 0 8px 18px rgba(35,52,82,.1);
}

body.theme-light .calendar-day:hover {
  background:
    linear-gradient(180deg, #ffffff, rgba(247,250,255,.94)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(35,52,82,.14);
}

body.theme-light .calendar-card span,
body.theme-light .calendar-weekdays span,
body.theme-light .calendar-day header small {
  color: #647087;
}

@media (max-width: 760px) {
  .task-filterbar {
    justify-content: flex-start;
  }

  .assigned-task-card {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .assigned-task-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

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

  .trash-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .trash-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  body.board-page {
    height: 100vh;
    overflow: hidden;
  }

  body.board-page .page-shell {
    height: calc(100vh - 42px);
  }

  body.board-page .kanban {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
  }

  body.board-page .kanban-list {
    height: auto;
    max-height: calc(100vh - 190px);
  }

  body.board-page .cards-dropzone {
    max-height: calc(100vh - 282px);
  }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
  }
  .admin-sidebar-head { display: none; }
  .admin-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .admin-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .admin-back-link { display: none; }
  .admin-content { padding: 24px 14px 64px; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .admin-hero h1 { font-size: 28px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-panel > header { align-items: stretch; flex-direction: column; }
  .settings-field-grid { grid-template-columns: 1fr; }
  .admin-panel input { max-width: none; }
  .profile-shell { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .profile-form { grid-template-columns: 1fr; }
}
