/* LGGC Glass 2.0 for Vikunja 2.8 — reversible visual-only overlay.
   CSS-only presentation. No changes to application logic, accounts or permissions. */

/* Locally hosted, free Inter variable font. WOFF2 subset files are served by the
   isolated Kanban proxy (never fetched by the visitor from an external CDN). */
@font-face {
  font-family: "LGGC Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/_lggc-glass/inter-cyrillic-v20.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "LGGC Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/_lggc-glass/inter-latin-v20.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --lggc-ink: #1e2841;
  --lggc-muted: #5c6881;
  --lggc-stroke: rgba(255, 255, 255, .66);
  --lggc-panel: rgba(255, 255, 255, .72);
  --lggc-panel-strong: rgba(255, 255, 255, .9);
  --lggc-shadow: 0 18px 55px rgba(47, 67, 125, .12), 0 2px 8px rgba(45, 57, 92, .045);
  --lggc-radius: 22px;
  --lggc-accent: #5869ed;
  --lggc-focus: #5869ed;
  --primary-h: 233deg;
  --primary-s: 79%;
  --primary-l: 64%;
  --link-h: 230deg;
  --link-s: 76%;
  --link-l: 58%;
  --body-family: "LGGC Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { background: #eaf0ff; }

body, body #app {
  font-family: var(--body-family) !important;
  color: var(--lggc-ink);
}

body {
  background:
    radial-gradient(ellipse 650px 480px at 88% 9%, rgba(169, 191, 255, .55), transparent 70%),
    radial-gradient(ellipse 520px 430px at 3% 60%, rgba(206, 173, 255, .29), transparent 72%),
    radial-gradient(ellipse 500px 470px at 82% 96%, rgba(163, 230, 229, .24), transparent 70%),
    linear-gradient(150deg, #f4f7ff 0%, #e9efff 54%, #f6f8ff 100%) !important;
  min-height: 100vh;
}

/* Preserve solid task content and modal readability; glass is the frame. */
header.navbar,
.navbar.is-fixed-top,
.menu,
.menu-container,
.sidebar,
.filter-container,
.project-view,
.kanban .bucket,
.kanban .bucket-header,
.kanban .task,
.kanban .task-card,
.kanban-card,
.task-card,
.box,
.card,
.dropdown-content,
.modal-card,
.notification,
.panel {
  border: 1px solid var(--lggc-stroke);
  border-radius: var(--lggc-radius);
  box-shadow: var(--lggc-shadow);
}

header.navbar,
.navbar.is-fixed-top,
.menu,
.menu-container,
.sidebar,
.filter-container,
.project-view,
.kanban .bucket,
.panel {
  background: var(--lggc-panel) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.box,
.card,
.modal-card,
.dropdown-content,
.notification {
  background: var(--lggc-panel-strong) !important;
}

/* Keep Vikunja's user-selected task background colour if one is assigned. */
.kanban .task:not(.has-custom-background-color),
.kanban .task-card:not(.has-custom-background-color),
.kanban-card:not(.has-custom-background-color),
.task-card:not(.has-custom-background-color) {
  background: var(--lggc-panel-strong) !important;
}

/* Floating toolbar, cards and column headers. */
header.navbar, .navbar.is-fixed-top {
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(65, 83, 142, .11);
}

.kanban .bucket,
.kanban .kanban-bucket,
.bucket-container {
  border-radius: 24px;
  padding: 10px;
}

.kanban .task,
.kanban .task-card,
.kanban-card,
.task-card {
  border-radius: 17px;
  box-shadow: 0 6px 16px rgba(51, 67, 115, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kanban .task:hover,
.kanban .task-card:hover,
.kanban-card:hover,
.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(54, 73, 127, .13);
  border-color: rgba(132, 148, 244, .55);
}

.modal-card, .dropdown-content, .box, .card { overflow-wrap: anywhere; }

.button, button, .input, .textarea, .select select, input, textarea {
  font-family: var(--body-family);
  border-radius: 13px;
}

.button, button {
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button.is-primary, button.is-primary {
  background: linear-gradient(135deg, #475ad9, #6548d3) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .35) !important;
  box-shadow: 0 7px 19px rgba(88, 105, 237, .25);
}

.input, .textarea, .select select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea {
  background-color: var(--lggc-panel-strong);
  border: 1px solid rgba(105, 119, 162, .2);
  color: var(--lggc-ink);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--lggc-focus) !important;
  outline-offset: 3px;
}

/* Avoid brittle positioning changes inside task dialogs and drag handles. */
.modal-card { border-radius: 22px; }
.modal-card-head, .modal-card-foot { background: transparent; }
.title, .subtitle, .content, .label { color: inherit; }

/* Vikunja's own dark-mode control should remain authoritative. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --lggc-ink: #eff2ff;
    --lggc-muted: #b9c2df;
    --lggc-stroke: rgba(204, 217, 255, .16);
    --lggc-panel: rgba(25, 31, 54, .72);
    --lggc-panel-strong: rgba(34, 40, 65, .9);
    --lggc-shadow: 0 20px 55px rgba(3, 8, 23, .28), 0 2px 9px rgba(4, 8, 20, .2);
    --lggc-focus: #9aabff;
  }
  html { background: #0f172c; }
  body {
    background:
      radial-gradient(ellipse 660px 430px at 83% 8%, rgba(76, 93, 184, .29), transparent 70%),
      radial-gradient(ellipse 500px 410px at 3% 69%, rgba(85, 60, 140, .21), transparent 72%),
      linear-gradient(150deg, #10172b 0%, #18213a 56%, #101829 100%) !important;
  }
}

/* Users with motion or transparency sensitivity get a stable interface. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .kanban .task:hover, .kanban-card:hover, .task-card:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  header.navbar, .navbar.is-fixed-top, .menu, .menu-container, .sidebar,
  .filter-container, .project-view, .kanban .bucket, .panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--lggc-panel-strong) !important;
  }
}

@media (max-width: 720px) {
  header.navbar, .navbar.is-fixed-top { border-radius: 15px; }
  .kanban .bucket, .kanban .kanban-bucket, .bucket-container { border-radius: 18px; }
  .kanban .task, .kanban-card, .task-card { border-radius: 14px; }
  .button, .navbar-item, .menu-list a { min-height: 44px; }
  .modal-card { width: min(96vw, 740px); margin: 2vh auto; }
}

/* ---------- LGGC Glass 2.0: consistent hierarchy and interactions ---------- */
:root {
  --lggc-ease: cubic-bezier(.22, 1, .36, 1);
  --lggc-fast: 140ms;
  --lggc-normal: 220ms;
  --lggc-surface-border: rgba(115, 135, 192, .2);
  --lggc-input-bg: rgba(255, 255, 255, .86);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body, body #app, button, input, textarea, select {
  font-family: var(--body-family) !important;
  -webkit-font-smoothing: antialiased;
}

body { line-height: 1.52; }

:where(h1, h2, h3, h4, .title) {
  letter-spacing: -.027em;
  text-wrap: balance;
}

:where(p, .description, .content) { overflow-wrap: break-word; }

:where(.button, button, a, input, textarea, select) {
  transition-duration: var(--lggc-fast);
  transition-timing-function: var(--lggc-ease);
}

:where(.button, button):not(:disabled):active {
  transform: scale(.985);
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  min-height: 44px;
}

/* Deliberately visible focus, even over translucent cards. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #435bce !important;
  outline-offset: 3px;
}

:where(.dropdown-content, .modal-card, .notification, .card) {
  animation: lggc-appear var(--lggc-normal) var(--lggc-ease) both;
}

@keyframes lggc-appear {
  from { opacity: .93; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Current Vikunja uses an explicit theme class for the user setting. Respect
   that setting over the OS preference; both html and app-level modes are covered. */
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) {
  color-scheme: dark;
  --lggc-ink: #f3f5ff;
  --lggc-muted: #bdc6e4;
  --lggc-stroke: rgba(206, 218, 255, .2);
  --lggc-panel: rgba(28, 35, 59, .77);
  --lggc-panel-strong: rgba(38, 46, 74, .95);
  --lggc-input-bg: rgba(44, 53, 80, .96);
  --lggc-focus: #b3bfff;
  --lggc-shadow: 0 18px 48px rgba(4, 8, 21, .31);
}

:is(html.light, html[data-theme="light"], body.light, body[data-theme="light"]) {
  color-scheme: light;
  --lggc-ink: #1e2841;
  --lggc-muted: #5c6881;
  --lggc-stroke: rgba(255, 255, 255, .7);
  --lggc-panel: rgba(255, 255, 255, .78);
  --lggc-panel-strong: rgba(255, 255, 255, .94);
  --lggc-input-bg: rgba(255, 255, 255, .91);
  --lggc-focus: #435bce;
  --lggc-shadow: 0 18px 48px rgba(47, 67, 125, .13);
}

/* Login and password recovery get a glass treatment while preserving the
   original form, labels, password manager support and auth security. */
body:has(#loginform) #app {
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 172, 253, .34), transparent 37%),
    radial-gradient(circle at 86% 82%, rgba(195, 168, 246, .3), transparent 45%),
    #edf2fc !important;
}

body:has(#loginform) #main-content {
  background: rgba(255, 255, 255, .83) !important;
  border: 1px solid rgba(255, 255, 255, .74);
  box-shadow: 0 25px 80px rgba(42, 61, 112, .14), inset 0 1px rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  padding: clamp(22px, 4vw, 50px);
  border-radius: 0 25px 25px 0;
}

body:has(#loginform) #main-content :where(h1, h2, .title) {
  font-size: clamp(1.6rem, 3.1vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.14;
  color: #202e52;
}

body:has(#loginform) #loginform {
  max-width: 540px;
  margin-inline: auto;
}

body:has(#loginform) #loginform :is(input[type="text"], input[type="email"], input[type="password"]) {
  background: var(--lggc-input-bg) !important;
  border: 1px solid rgba(106, 123, 169, .27) !important;
  min-height: 49px;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(31, 48, 90, .025);
  padding-inline: 14px;
  transition: border-color var(--lggc-fast), box-shadow var(--lggc-fast);
}

body:has(#loginform) #loginform :is(input[type="text"], input[type="email"], input[type="password"]):focus {
  border-color: #5265dc !important;
  box-shadow: 0 0 0 4px rgba(82, 101, 220, .13);
}

body:has(#loginform) #loginform button[type="submit"] {
  min-height: 48px;
  min-width: 154px;
  padding-inline: 30px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(63, 75, 172, .23);
}

body:has(#loginform) #loginform label {
  font-weight: 600;
  letter-spacing: -.008em;
}

body:has(#loginform) #loginform a {
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  body:has(#loginform) #main-content {
    border-radius: 22px;
    padding: clamp(20px, 5vw, 34px);
  }
  body:has(#loginform) #loginform button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 430px) {
  body:has(#loginform) #app { padding-inline: max(12px, env(safe-area-inset-left)); }
  body:has(#loginform) #main-content { padding: 20px 17px; }
  :where(button, .button, input, select, textarea) { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.dropdown-content, .modal-card, .notification, .card) { animation: none !important; }
  :where(.button, button):not(:disabled):active { transform: none; }
}

/* ---------- Authentication screens, scoped to Vikunja's real layout ---------- */
.no-auth-wrapper {
  --lggc-auth-ink: #172447;
  min-block-size: 100svh;
  padding: clamp(18px, 3.5vw, 46px) 18px 48px !important;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(ellipse 54% 65% at 14% 8%, rgba(133, 173, 250, .42), transparent 70%),
    radial-gradient(ellipse 50% 62% at 90% 90%, rgba(198, 165, 248, .34), transparent 72%),
    linear-gradient(155deg, #f3f7ff 0%, #eaf0ff 62%, #f8f8ff 100%) !important;
  background-attachment: scroll !important;
}

.no-auth-wrapper > .logo {
  margin: 0 0 4px;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 7px 22px rgba(42, 57, 113, .11));
}

.no-auth-wrapper .noauth-container {
  width: min(100%, 1020px);
  max-inline-size: 1020px;
  min-block-size: min(560px, 74svh);
  margin: 0;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.68) !important;
  box-shadow: 0 30px 95px rgba(38, 60, 122, .15), 0 4px 14px rgba(45,60,93,.06);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
  animation: lggc-auth-enter 360ms var(--lggc-ease) both;
}

/* The stock giant llama photograph is replaced by a restrained glass/aurora
   illustration. It remains purely decorative, so the form semantics survive. */
.no-auth-wrapper .noauth-container > .image {
  position: relative;
  background:
    radial-gradient(circle at 22% 28%, rgba(184, 214, 255, .76) 0 8%, transparent 36%),
    radial-gradient(circle at 85% 72%, rgba(195, 156, 252, .67) 0 5%, transparent 39%),
    linear-gradient(145deg, #223c79, #5364c7 53%, #8e74df) !important;
  isolation: isolate;
}

.no-auth-wrapper .noauth-container > .image::before {
  background: linear-gradient(155deg, rgba(255,255,255,.06), transparent 38%, rgba(14,25,69,.48)) !important;
}

.no-auth-wrapper .noauth-container > .image::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16% 12% 18%;
  border-radius: 42% 58% 57% 43% / 43% 44% 56% 57%;
  border: 1px solid rgba(255,255,255,.31);
  background: linear-gradient(142deg, rgba(255,255,255,.31), rgba(255,255,255,.04) 58%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 24px 28px 70px rgba(28,39,93,.15), inset 5px 8px 18px rgba(255,255,255,.17);
  transform: rotate(-17deg);
}

.no-auth-wrapper .image-title {
  margin: 0 0 8px 12px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.048em;
  font-weight: 720;
  text-shadow: 0 3px 24px rgba(11, 19, 57, .2);
}

.no-auth-wrapper #main-content {
  color: var(--lggc-auth-ink);
  padding: clamp(26px, 4vw, 48px);
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.78) !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.no-auth-wrapper #main-content .title {
  color: #1b2a53;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 760;
  letter-spacing: -.045em;
  margin-bottom: 1.5rem;
}

.no-auth-wrapper #main-content :where(label, .label) {
  color: #28385f;
  font-size: .92rem;
  font-weight: 650;
}

.no-auth-wrapper #main-content :where(input:not([type="checkbox"]):not([type="radio"]), .input) {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #bfc9e2 !important;
  background: rgba(255,255,255,.95) !important;
  color: #1d2b50 !important;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(47,62,104,.035);
}

.no-auth-wrapper #main-content :where(input:not([type="checkbox"]):not([type="radio"]), .input):focus {
  border-color: #5368d8 !important;
  box-shadow: 0 0 0 4px rgba(75,101,220,.15);
}

.no-auth-wrapper #main-content :where(a, .reset-password-link) {
  color: #3b50ba;
  font-weight: 560;
  text-underline-offset: 3px;
}

.no-auth-wrapper #main-content #loginform > :is(button, .button),
.no-auth-wrapper #main-content form > :is(button, .button) {
  min-height: 48px;
  min-width: 154px;
  border-radius: 13px;
  background: linear-gradient(135deg, #475ad9, #6548d3) !important;
  color: #fff !important;
  font-weight: 740;
  box-shadow: 0 12px 25px rgba(58,73,169,.23);
}

@keyframes lggc-auth-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .no-auth-wrapper { padding: 18px 12px 36px !important; gap: 12px; }
  .no-auth-wrapper .noauth-container {
    width: min(100%, 560px);
    min-block-size: auto;
    border-radius: 24px !important;
  }
  .no-auth-wrapper .noauth-container > .image { display: none; }
  .no-auth-wrapper #main-content {
    width: 100%;
    max-inline-size: none;
    min-block-size: auto;
    padding: clamp(22px, 5vw, 34px);
  }
  .no-auth-wrapper #main-content #loginform > :is(button, .button),
  .no-auth-wrapper #main-content form > :is(button, .button) { width: 100%; }
}

@media (max-width: 380px) {
  .no-auth-wrapper #main-content { padding: 22px 17px; }
  .no-auth-wrapper #main-content .title { font-size: 1.72rem; }
  .no-auth-wrapper #main-content .label-with-link { flex-wrap: wrap; gap: 4px 12px; }
}

/* Vikunja can set manual light/dark theme independent of OS preferences. */
html.dark body, html[data-theme="dark"] body, body.dark {
  background: linear-gradient(145deg, #0e1528, #1a2540 55%, #11192c) !important;
}
html.light body, html[data-theme="light"] body, body.light {
  background: linear-gradient(145deg, #f4f7ff, #eaf0ff 55%, #f7f9ff) !important;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .no-auth-wrapper {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(75,98,173,.26), transparent 54%),
    linear-gradient(145deg, #10172b, #1c2644 62%, #0e172b) !important;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .no-auth-wrapper #main-content {
  --lggc-auth-ink: #f0f3ff;
  background: rgba(30,38,63,.94) !important;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .no-auth-wrapper #main-content :where(.title, .label, label) {
  color: #f2f4ff;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .no-auth-wrapper #main-content :where(input:not([type="checkbox"]):not([type="radio"]), .input) {
  background: rgba(43,53,83,.95) !important;
  color: #fff !important;
  border-color: rgba(190,208,255,.25) !important;
}

@media (prefers-reduced-motion: reduce) {
  .no-auth-wrapper .noauth-container { animation: none !important; }
}

/* ---------- Kanban board: Linear-style density + Trello metadata ----------
   Targets Vikunja 2.8.0's ProjectKanban/KanbanCard stable class names.
   Every modification is visual; SortableJS and task mutations are untouched. */
.project-kanban .kanban {
  scrollbar-color: rgba(103, 118, 178, .45) transparent;
  scrollbar-width: thin;
  scroll-padding-inline: 12px;
  overscroll-behavior-inline: contain;
}

.project-kanban .kanban > .bucket {
  /* The upstream 300px geometry is retained for collapsed buckets. */
  padding: 0;
  background: rgba(245, 248, 255, .93) !important;
  border: 1px solid rgba(125, 142, 190, .22);
  border-radius: 20px;
  box-shadow: 0 6px 22px rgba(50, 67, 112, .065);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-kanban .kanban .bucket:not(.new-bucket) {
  background: rgba(245, 248, 255, .93) !important;
}

.project-kanban .kanban .bucket-header {
  flex: 0 0 auto;
  min-height: 60px;
  padding: 9px 12px;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid rgba(110, 131, 184, .16);
  border-radius: 0;
  background: rgba(248, 250, 255, .97) !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-kanban .kanban .bucket-header .title.input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 5px;
  color: var(--lggc-ink);
  font-size: .92rem;
  line-height: 1.3;
  font-weight: 730 !important;
  letter-spacing: -.02em;
}

.project-kanban .kanban .bucket-header .title.input:not([contenteditable="true"]) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-kanban .kanban .bucket-header .limit {
  flex: 0 0 auto;
  padding: 3px 9px;
  min-width: 25px;
  color: #40537c;
  font-size: .76rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
  border: 1px solid rgba(104, 126, 179, .14);
  border-radius: 999px;
  background: rgba(220, 228, 246, .74);
}

.project-kanban .kanban .bucket-header .limit.is-max {
  color: #91253a;
  background: #fff0f2;
  border-color: rgba(176, 53, 74, .28);
}

.project-kanban .kanban .bucket-header .options {
  flex: 0 0 auto;
}

.project-kanban .kanban .bucket-header .options :is(button, .button, .dropdown-trigger) {
  min-height: 40px;
  min-width: 40px;
  border-radius: 12px;
}

.project-kanban .kanban .bucket .tasks {
  padding: 7px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 131, 184, .3) transparent;
}

.project-kanban .kanban .bucket .task-item {
  padding: 5px 9px;
  background: transparent;
}

.project-kanban .kanban .bucket .task-item:first-of-type { padding-top: 5px; }
.project-kanban .kanban .bucket .task-item:last-of-type { padding-bottom: 5px; }

.project-kanban .kanban .task-item > .kanban-card {
  overflow: hidden;
  border: 1px solid rgba(125, 143, 183, .22);
  border-radius: 13px;
  box-shadow: 0 2px 7px rgba(32, 46, 92, .055);
  transition: transform 160ms var(--lggc-ease),
              border-color 160ms ease, box-shadow 160ms var(--lggc-ease);
}

.project-kanban .kanban .task-item > .kanban-card:not(.has-custom-background-color) {
  background: rgba(255,255,255,.97) !important;
}

.project-kanban .kanban .task-item > .kanban-card:hover,
.project-kanban .kanban .task-item > .kanban-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(93, 112, 214, .6);
  box-shadow: 0 9px 23px rgba(48, 65, 119, .15);
}

.project-kanban .kanban .kanban-card > .p-2 { padding: 12px !important; }

.project-kanban .kanban .kanban-card h3 {
  margin: 7px 0 5px;
  color: inherit;
  font-family: var(--body-family);
  font-weight: 670;
  font-size: .91rem;
  letter-spacing: -.014em;
  line-height: 1.37;
}

.project-kanban .kanban .kanban-card .kanban-card__title-link {
  color: inherit;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-decoration: none;
}

.project-kanban .kanban .kanban-card .task-id,
.project-kanban .kanban .kanban-card .project-title {
  font-size: .73rem;
  font-weight: 530;
  letter-spacing: .015em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1px;
}

.project-kanban .kanban .kanban-card:not(.has-custom-background-color) .task-id,
.project-kanban .kanban .kanban-card:not(.has-custom-background-color) .project-title {
  color: #62718e;
}

.project-kanban .kanban .kanban-card .footer {
  gap: 4px 5px;
  margin-top: 9px;
  align-items: center;
}

.project-kanban .kanban .kanban-card .footer :is(.icon, .priority-label, .comment-count),
.project-kanban .kanban .kanban-card .due-date {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding-inline: 7px;
  border-radius: 7px;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.project-kanban .kanban .kanban-card .label-wrapper .tag {
  margin: 3px 4px 0 0;
  border-radius: 6px;
  min-height: 22px;
  font-size: .71rem;
  font-weight: 650;
  letter-spacing: .002em;
}

.project-kanban .kanban .kanban-card .footer .assignees img {
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(25,41,87,.12);
}

.project-kanban .kanban .kanban-card[data-is-overdue] .due-date {
  color: #ad233b;
  background: #ffedf0;
}

.project-kanban .kanban .bucket-footer {
  padding: 8px 9px 9px;
  background: rgba(245,248,255,.98);
  box-shadow: 0 -8px 18px rgba(41,56,96,.025);
}

.project-kanban .kanban .bucket-footer :is(button, .button) {
  min-height: 44px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 630;
}

.project-kanban .kanban .ghost::after {
  border: 2px dashed rgba(76, 95, 209, .78);
  border-radius: 13px;
  background: rgba(111, 136, 240, .075);
}

.project-kanban .kanban .task-dragging {
  transform: rotate(1.3deg) scale(1.015);
  box-shadow: 0 18px 38px rgba(26,45,97,.25);
}

/* Scope the board's dark surfaces to the selected theme. */
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket:not(.new-bucket) {
  background: rgba(25,32,53,.97) !important;
  border-color: rgba(164,182,232,.2);
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-header,
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-footer {
  background: rgba(31,39,63,.98) !important;
  border-color: rgba(165,179,223,.16);
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .task-item > .kanban-card:not(.has-custom-background-color) {
  background: rgba(39,47,73,.98) !important;
  border-color: rgba(164,181,228,.2);
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .kanban-card:not(.has-custom-background-color) :is(.task-id, .project-title) {
  color: #c2cae7;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-header .limit {
  color: #dce4ff;
  background: rgba(103,119,169,.28);
  border-color: rgba(165,179,223,.2);
}

@media (max-width: 800px) {
  .project-kanban .kanban { scroll-padding-inline: 8px; }
  .project-kanban .kanban .bucket-header .options :is(button, .button, .dropdown-trigger) {
    min-height: 44px;
    min-width: 44px;
  }
  .project-kanban .kanban .task-item > .kanban-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .project-kanban .kanban .task-item > .kanban-card,
  .project-kanban .kanban .task-dragging { transition: none !important; transform: none !important; }
}

/* ---------- LGGC Jira Mode 3.0: close visual analogue of Jira Cloud ----------
   Brand/logo, workflow semantics, fields and permissions remain Vikunja's.
   This layer intentionally de-emphasises liquid glass in the task workspace. */
body:has(.project-kanban) {
  background: #fff !important;
  color: #172b4d;
}

body:has(.project-kanban) :is(header.navbar, .navbar.is-fixed-top) {
  background: #fff !important;
  border: 0;
  border-bottom: 1px solid #dfe1e6;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:has(.project-kanban) .menu-container {
  background: #f7f8fa !important;
  border: 0;
  border-inline-end: 1px solid #dfe1e6;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:has(.project-kanban) .menu-container .menu {
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:has(.project-kanban) .menu-container .menu-list a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 4px;
  color: #42526e;
  font-size: .87rem;
  font-weight: 550;
  transition: background-color 130ms ease, color 130ms ease;
}

body:has(.project-kanban) .menu-container .menu-list a:hover {
  background: #ebecf0 !important;
  color: #172b4d;
}

body:has(.project-kanban) .menu-container .menu-list :is(a.router-link-active, a.is-active) {
  background: #deebff !important;
  color: #0747a6;
  font-weight: 680;
}

.project-kanban .switch-view-container {
  background: #fff;
  border-bottom: 1px solid #dfe1e6;
  border-radius: 0;
  padding-bottom: 6px;
}

.project-kanban .switch-view-container :is(.switch-view-button, .switch-view-dropdown-trigger) {
  border-radius: 4px;
  color: #42526e;
  font-size: .875rem;
  font-weight: 600;
}

.project-kanban .switch-view-container :is(.switch-view-button, .switch-view-dropdown-trigger).is-active {
  color: #0052cc;
  border-color: #0052cc;
}

.project-kanban .filter-container {
  background: #fff !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-kanban .kanban {
  background: #fff;
  scrollbar-color: #c1c7d0 transparent;
}

.project-kanban .kanban .bucket:not(.new-bucket) {
  background: #f4f5f7 !important;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-kanban .kanban .bucket-header {
  background: #f4f5f7 !important;
  border: 0;
  border-bottom: 1px solid #dfe1e6;
  border-radius: 0;
  padding: 8px 11px;
  box-shadow: none;
}

.project-kanban .kanban .bucket-header .title.input {
  color: #172b4d;
  font-size: .83rem;
  font-weight: 760 !important;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.project-kanban .kanban .bucket-header .limit {
  color: #42526e;
  background: #dfe1e6;
  border: 0;
  border-radius: 3px;
  font-size: .77rem;
  font-weight: 690;
  line-height: 1.45;
  padding: 3px 7px;
}

.project-kanban .kanban .bucket-header .limit.is-max {
  color: #bf2600;
  background: #ffebe6;
}

.project-kanban .kanban .bucket .tasks { padding-top: 5px; }
.project-kanban .kanban .bucket .task-item { padding: 4px 7px; }

.project-kanban .kanban .task-item > .kanban-card {
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(9,30,66,.14);
  transform: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.project-kanban .kanban .task-item > .kanban-card:not(.has-custom-background-color) {
  background: #fff !important;
}

.project-kanban .kanban .task-item > .kanban-card:is(:hover, :focus-within) {
  transform: none;
  border-color: #4c9aff;
  box-shadow: 0 2px 7px rgba(9,30,66,.2);
}

.project-kanban .kanban .kanban-card > .p-2 {
  padding: 10px 11px !important;
}

.project-kanban .kanban .kanban-card h3 {
  color: inherit;
  font-size: .87rem;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 7px 0 7px;
}

.project-kanban .kanban .kanban-card:not(.has-custom-background-color) :is(.task-id, .project-title) {
  color: #5e6c84;
  font-size: .7rem;
  letter-spacing: 0;
}

.project-kanban .kanban .kanban-card .footer {
  gap: 4px 6px;
  margin-top: 9px;
}

.project-kanban .kanban .kanban-card .footer :is(.icon, .priority-label, .comment-count),
.project-kanban .kanban .kanban-card .due-date {
  background: #f4f5f7;
  border-radius: 3px;
  color: #42526e;
  font-size: .72rem;
}

.project-kanban .kanban .kanban-card .label-wrapper .tag {
  border-radius: 3px;
  font-size: .71rem;
}

.project-kanban .kanban .kanban-card[data-is-overdue] .due-date {
  color: #bf2600;
  background: #ffebe6;
}

.project-kanban .kanban .bucket-footer {
  background: #f4f5f7;
  box-shadow: none;
  padding: 7px;
}

.project-kanban .kanban .bucket-footer :is(.button, button) {
  color: #42526e;
  background: transparent !important;
  font-weight: 560;
  font-size: .8rem;
  border-radius: 3px;
  box-shadow: none;
}

.project-kanban .kanban .bucket-footer :is(.button, button):hover {
  color: #0052cc;
  background: #deebff !important;
}

.project-kanban .kanban .ghost::after {
  border: 2px dashed #0052cc;
  border-radius: 4px;
  background: #deebff;
}

/* Jira-like palette in a manually selected dark mode, without forcing light UI. */
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket:not(.new-bucket),
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-header,
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-footer {
  background: #222d43 !important;
  border-color: #3d4a63;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .task-item > .kanban-card:not(.has-custom-background-color) {
  background: #293750 !important;
  border-color: #43516b;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-header .title.input {
  color: #e4eaff;
}

@media (max-width: 800px) {
  .project-kanban .kanban .bucket-header .options :is(button, .button, .dropdown-trigger) {
    min-width: 44px;
    min-height: 44px;
  }
  body:has(.project-kanban) .menu-container .menu-list a { min-height: 44px; }
}

/* Dark Jira workspace remains coherent when a user selects dark explicitly. */
:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) body:has(.project-kanban),
:is(body.dark, body[data-theme="dark"]):has(.project-kanban) {
  background: #172033 !important;
  color: #e6ebf7;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) body:has(.project-kanban) :is(header.navbar, .navbar.is-fixed-top),
:is(body.dark, body[data-theme="dark"]):has(.project-kanban) :is(header.navbar, .navbar.is-fixed-top) {
  background: #1d293e !important;
  border-color: #354158;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) body:has(.project-kanban) .menu-container,
:is(body.dark, body[data-theme="dark"]):has(.project-kanban) .menu-container {
  background: #1d293e !important;
  border-color: #354158;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) body:has(.project-kanban) .menu-container .menu-list a,
:is(body.dark, body[data-theme="dark"]):has(.project-kanban) .menu-container .menu-list a {
  color: #c3cce3;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban :is(.switch-view-container, .filter-container, .kanban) {
  background: #172033 !important;
  border-color: #354158;
}

:is(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .project-kanban .kanban .bucket-header .limit {
  color: #d7e3ff;
  background: #37465f;
}
