:root {
  --blue-950: #072446;
  --blue-900: #0b2f58;
  --blue-800: #134d8c;
  --blue-700: #1f67b2;
  --blue-600: #2f87d7;
  --blue-300: #b9dcff;
  --blue-100: #eef6ff;
  --ink-900: #122943;
  --ink-700: #486582;
  --ink-500: #6d89a6;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --border: rgba(26, 101, 184, 0.24);
  --shadow-soft: 0 14px 30px rgba(7, 36, 70, 0.15);
  --shadow-hard: 0 20px 44px rgba(7, 36, 70, 0.22);
  --danger: #b92c4d;
  --danger-bg: #fce8ed;
  --ok: #1f8f54;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: 90%;
}

body {
  font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 126, 201, 0.22), transparent 29%),
    radial-gradient(circle at 86% 88%, rgba(18, 73, 128, 0.2), transparent 33%),
    linear-gradient(145deg, #f9fcff 0%, #eef6ff 52%, #f4faff 100%);
}

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

.hidden {
  display: none !important;
}

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

.bg-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.bg-shape-1 {
  width: 340px;
  height: 340px;
  top: -150px;
  right: -90px;
  background: radial-gradient(circle, rgba(46, 133, 214, 0.25), rgba(46, 133, 214, 0.04) 74%);
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(20, 78, 136, 0.2), rgba(20, 78, 136, 0.03) 72%);
}

.icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

.global-header {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 0;
  padding: 12px 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(236, 247, 255, 0.88));
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.brand h1 {
  margin: 3px 0 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.global-board-search {
  position: relative;
  flex: 1 1 340px;
  max-width: 560px;
  min-width: 220px;
}

.global-board-search-field {
  position: relative;
}

.global-board-search-field .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-700);
  pointer-events: none;
}

.global-board-search-input {
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 12px 0 34px;
}

.global-board-search-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  border: 1px solid rgba(26, 101, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 24px rgba(7, 36, 70, 0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 14;
}

.global-board-search-caption {
  margin: 2px 4px;
  font-size: 0.71rem;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.global-board-search-empty {
  margin: 2px 4px;
  font-size: 0.78rem;
  color: var(--ink-700);
}

.global-board-search-item {
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 10px;
  background: rgba(246, 251, 255, 0.82);
  padding: 6px 8px;
  text-align: left;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.global-board-search-item:hover,
.global-board-search-item:focus-visible {
  border-color: rgba(26, 101, 184, 0.4);
  background: rgba(236, 246, 255, 0.96);
  outline: none;
}

.global-board-search-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.global-board-search-item-meta {
  font-size: 0.74rem;
  color: var(--ink-700);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.current-user {
  height: 34px;
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 10px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  color: var(--blue-900);
  font-weight: 600;
  min-width: 230px;
  max-width: min(420px, 46vw);
}

.current-user:hover,
.current-user:focus-visible {
  border-color: rgba(26, 101, 184, 0.44);
  background: rgba(245, 251, 255, 0.96);
  outline: none;
}

.current-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f8cdf, #1f67b2);
  border: 1px solid rgba(8, 32, 57, 0.14);
  flex-shrink: 0;
}

.current-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.current-user-avatar-fallback {
  font-size: 0.68rem;
  line-height: 1;
  color: #f3f8ff;
  font-weight: 700;
}

.current-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.current-user-name {
  font-size: 0.76rem;
  color: var(--blue-900);
  line-height: 1.1;
}

.current-user-email {
  font-size: 0.68rem;
  color: var(--ink-700);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-user-chevron {
  margin-left: 1px;
  opacity: 0.8;
  flex-shrink: 0;
}

.app-root {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.account-verification-banner {
  border: 1px solid rgba(190, 44, 79, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 241, 244, 0.96), rgba(255, 248, 235, 0.94));
  box-shadow: var(--shadow-soft);
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-verification-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7e1d39;
}

.account-verification-copy p {
  margin: 0;
  font-size: 0.8rem;
}

.view {
  animation: fade-up 0.45s ease both;
}

.auth-view {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(500px, 100%);
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97), rgba(238, 247, 255, 0.92));
  box-shadow: var(--shadow-hard);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.34rem;
}

.auth-head p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.auth-mode-switch {
  display: flex;
  gap: 8px;
}

.auth-mode-switch .button {
  flex: 1;
}

.auth-mode-switch .button.is-active {
  border-color: rgba(31, 103, 178, 0.55);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.2) inset;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.auth-form-actions .button {
  flex: 1 1 180px;
}

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

.auth-inline-actions-end {
  justify-content: flex-end;
}

.auth-inline-actions-password {
  justify-content: flex-end;
}

.auth-inline-actions-password .button {
  flex: 0 0 auto;
}

#passwordResetRequestForm,
#passwordResetForm {
  border: 1px dashed rgba(26, 101, 184, 0.28);
  border-radius: 12px;
  background: rgba(246, 251, 255, 0.7);
  padding: 10px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 42px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.password-visibility-toggle .icon {
  width: 15px;
  height: 15px;
}

.button.tiny {
  height: 32px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.field-help {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-700);
}

.field-help.is-error {
  color: #9b1f3f;
}

.field-help.is-ok {
  color: #14693d;
}

.password-meter {
  height: 8px;
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.password-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #d98d1b;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-meter.is-weak .password-meter-fill {
  background: #d45742;
}

.password-meter.is-medium .password-meter-fill {
  background: #d98d1b;
}

.password-meter.is-strong .password-meter-fill {
  background: #1f8f54;
}

.password-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-rule {
  font-size: 0.75rem;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.password-rule .icon {
  width: 14px;
  height: 14px;
}

.password-rule.is-ok {
  color: #14693d;
}

.password-rule.is-bad {
  color: #9b1f3f;
}

.status-text {
  margin: 0;
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--ink-700);
}

.status-text.is-error {
  color: #9b1f3f;
}

.status-text.is-ok {
  color: #14693d;
}

.dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 120px);
}

.dashboard-header {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.88));
  box-shadow: var(--shadow-soft);
  padding: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-title-wrap {
  min-width: 180px;
}

.dashboard-title-wrap h2 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.12rem;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.dashboard-search {
  width: min(320px, 100%);
  min-width: 200px;
  flex: 1 1 230px;
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stat-pill {
  height: 30px;
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.75rem;
  color: var(--ink-700);
}

.board-composer {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-composer-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8rem;
  color: var(--ink-700);
}

.board-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.board-card {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-card.has-image {
  border-color: rgba(17, 42, 69, 0.35);
  box-shadow: 0 12px 28px rgba(6, 21, 39, 0.28);
}

.board-card.has-image .board-card-title,
.board-card.has-image .board-card-description {
  color: #f5f9ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.board-card.has-image .board-card-pill {
  border-color: rgba(232, 242, 255, 0.36);
  background: rgba(8, 25, 44, 0.58);
  color: #eff5ff;
}

.board-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.board-card-title {
  margin: 0;
  font-size: 1rem;
}

.board-card-description {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--ink-700);
  min-height: 34px;
}

.board-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.board-card-pill {
  height: 26px;
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  font-size: 0.72rem;
  color: var(--ink-700);
}

.board-card-actions {
  display: flex;
  gap: 8px;
}

.board-card-actions .button {
  flex: 1;
}

.board-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 122px);
}

.board-topbar {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.88));
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.board-topbar-left,
.board-topbar-middle,
.board-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-topbar-left {
  flex: 0 0 auto;
}

.board-topbar-middle {
  flex: 1 1 420px;
}

.board-topbar-right {
  flex: 0 1 auto;
}

.board-title-display-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 10px;
  padding: 4px 6px 4px 10px;
  background: rgba(255, 255, 255, 0.72);
}

.board-title-display {
  margin: 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  max-width: min(340px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-search-input {
  width: min(240px, 100%);
}

.board-status-inline {
  font-size: 0.82rem;
  color: var(--ink-700);
  white-space: nowrap;
}

#boardStatusText.is-error {
  color: #9b1f3f;
}

#boardStatusText.is-ok {
  color: #14693d;
}

.save-notification-toast {
  position: fixed;
  left: 50%;
  top: 74px;
  transform: translate(-50%, -8px);
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 999px;
  background: rgba(237, 246, 255, 0.72);
  color: var(--ink-700);
  box-shadow: 0 8px 18px rgba(7, 36, 70, 0.14);
  padding: 4px 7px 4px 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-notification-toast p {
  margin: 0;
}

.save-notification-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.save-notification-toast.is-fading {
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
}

.save-notification-toast.is-error {
  border-color: rgba(190, 44, 79, 0.32);
  background: rgba(255, 239, 244, 0.94);
  color: #8a1d39;
}

.save-notification-toast.is-ok:not(.is-save) {
  border-color: rgba(33, 133, 80, 0.28);
  background: rgba(235, 251, 242, 0.9);
  color: #145e38;
}

.save-notification-toast.is-save {
  border-color: rgba(26, 101, 184, 0.2);
  background: rgba(237, 246, 255, 0.62);
  color: rgba(34, 73, 110, 0.86);
}

.save-notification-dismiss {
  border: 0;
  background: transparent;
  color: inherit;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.save-notification-dismiss:hover {
  background: rgba(9, 31, 57, 0.08);
}

.topbar-labels {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid rgba(26, 101, 184, 0.18);
  border-radius: 10px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.72);
}

.filter-label {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-700);
  white-space: nowrap;
}

.label-filter-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.label-filter-chip {
  border: 1px solid rgba(8, 32, 57, 0.13);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.58;
  white-space: nowrap;
  flex: 0 0 auto;
}

.label-filter-chip.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(8, 32, 57, 0.22) inset;
}

.board-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.lists-viewport {
  --list-gap: 12px;
  --list-column-width: clamp(220px, calc((100% - (var(--list-gap) * 4)) / 5), 300px);
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  gap: var(--list-gap);
  align-items: flex-start;
  overflow: auto hidden;
  padding: 4px 42px 12px;
  scroll-behavior: smooth;
}

.lists-viewport::-webkit-scrollbar {
  height: 10px;
}

.lists-viewport::-webkit-scrollbar-thumb {
  background: rgba(11, 47, 88, 0.21);
  border-radius: 999px;
}

.add-list-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  align-self: flex-start;
  width: var(--list-column-width);
  flex: 0 0 var(--list-column-width);
  opacity: 0.78;
  transition: opacity 0.18s ease;
}

.add-list-pane:hover,
.add-list-pane:focus-within {
  opacity: 1;
}

.add-list-button {
  width: 100%;
  height: 44px;
  justify-content: center;
  white-space: nowrap;
  border-style: dashed;
}

.list-composer {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-composer-actions {
  display: flex;
  gap: 8px;
}

.list-composer-actions .button {
  flex: 1;
}

.list-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(26, 101, 184, 0.32);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-900);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 14;
  cursor: pointer;
}

.list-scroll-arrow-left {
  left: 4px;
}

.list-scroll-arrow-right {
  right: 4px;
}

.list-scroll-arrow-left .icon {
  animation: nudge-left 1.15s ease-in-out infinite;
}

.list-scroll-arrow-right .icon {
  animation: nudge-right 1.15s ease-in-out infinite;
}

@keyframes nudge-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

@keyframes nudge-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3px);
  }
}

@keyframes nudge-up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes nudge-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

.list {
  width: var(--list-column-width);
  flex: 0 0 var(--list-column-width);
  max-height: 100%;
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97), rgba(239, 248, 255, 0.92));
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.list.has-custom-color {
  background: var(--list-custom-bg);
  border-color: var(--list-custom-border, rgba(26, 101, 184, 0.22));
}

body.theme-dark .list.has-custom-color {
  background: var(--list-custom-bg-dark, var(--list-custom-bg));
  border-color: var(--list-custom-border-dark, var(--list-custom-border, rgba(119, 170, 230, 0.28)));
}

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

.list.is-drop-target {
  outline: 2px dashed rgba(31, 103, 178, 0.6);
  outline-offset: -4px;
}

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

.list-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.drag-hint {
  color: rgba(18, 73, 128, 0.7);
}

.list-title-input {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 5px 6px;
  font-weight: 700;
}

.list-title-input:hover {
  background: rgba(255, 255, 255, 0.8);
}

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

.list-count {
  height: 23px;
  border-radius: 999px;
  background: rgba(18, 73, 128, 0.1);
  color: var(--ink-700);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.list-menu {
  position: relative;
}

.list-menu[open] {
  z-index: 18;
}

.list-menu > summary {
  list-style: none;
}

.list-menu > summary::-webkit-details-marker {
  display: none;
}

.list-menu > summary::marker {
  content: "";
}

.list-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  border: 1px solid rgba(26, 101, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 24px rgba(7, 36, 70, 0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-menu:not([open]) .list-menu-popover {
  display: none;
}

.list-menu-action {
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 10px;
  background: rgba(246, 251, 255, 0.82);
  color: var(--ink-900);
  cursor: pointer;
  min-height: 34px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  text-align: left;
}

.list-menu-action:hover,
.list-menu-action:focus-visible {
  border-color: rgba(26, 101, 184, 0.4);
  background: rgba(236, 246, 255, 0.96);
  outline: none;
}

.list-menu-action.danger {
  border-color: rgba(185, 44, 77, 0.34);
  background: rgba(252, 232, 237, 0.9);
  color: #8a1d39;
}

.cards-stack-wrap {
  position: relative;
  flex: 1;
  min-height: 80px;
}

.cards-stack {
  height: 100%;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 2px;
}

.button.list-column-scroll-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 999px;
  padding: 0;
  z-index: 4;
  opacity: 0.64;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.button.list-column-scroll-arrow:hover,
.button.list-column-scroll-arrow:focus-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1.06);
}

.list-column-scroll-up {
  top: 4px;
}

.list-column-scroll-down {
  bottom: 4px;
}

.list-column-scroll-up .icon {
  animation: nudge-up 1.2s ease-in-out infinite;
}

.list-column-scroll-down .icon {
  animation: nudge-down 1.2s ease-in-out infinite;
}

.cards-stack.is-drop-target {
  outline: 2px dashed rgba(31, 103, 178, 0.52);
  outline-offset: -3px;
  border-radius: 10px;
}

.card {
  border: 1px solid rgba(26, 101, 184, 0.12);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: 0 8px 16px rgba(6, 34, 66, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 12px 19px rgba(6, 34, 66, 0.15);
}

.card:focus-visible {
  outline: 2px solid rgba(45, 126, 201, 0.55);
}

.card.is-dragging {
  opacity: 0.4;
}

.card-cover {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.card-cover.is-full {
  height: 62px;
  border-radius: 10px;
}

.card-cover.is-image {
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(11, 47, 88, 0.13);
  background: transparent !important;
}

.card-cover-image {
  display: none;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.card-cover.is-image .card-cover-image {
  display: block;
}

.card-title {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  border: 1px solid rgba(11, 47, 88, 0.13);
  border-radius: 999px;
  background: rgba(18, 73, 128, 0.08);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 0.71rem;
}

.badge.is-due-soon {
  background: rgba(240, 150, 36, 0.14);
  border-color: rgba(240, 150, 36, 0.3);
  color: #8a5111;
}

.badge.is-overdue {
  background: rgba(190, 44, 79, 0.15);
  border-color: rgba(190, 44, 79, 0.35);
  color: #8b203b;
}

.add-card-trigger {
  width: 100%;
  justify-content: flex-start;
}

.card-composer {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  width: min(390px, calc(100vw - 18px));
  max-height: calc(100vh - 24px);
  z-index: 40;
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.94));
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.panel-header {
  border-bottom: 1px solid rgba(26, 101, 184, 0.16);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.panel-header h3 {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.panel-section {
  border-bottom: 1px solid rgba(26, 101, 184, 0.12);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-section:last-child {
  border-bottom: none;
}

.panel-section h4 {
  margin: 0;
  font-size: 0.88rem;
}

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

.panel-collapsible {
  gap: 0;
}

.panel-collapsible-summary {
  margin: -10px -12px;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.panel-collapsible-summary::-webkit-details-marker {
  display: none;
}

.panel-collapsible-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-900);
}

.panel-collapsible-chevron {
  transition: transform 0.18s ease;
}

.panel-collapsible[open] .panel-collapsible-chevron {
  transform: rotate(180deg);
}

.panel-collapsible-body {
  padding-top: 8px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(7, 22, 41, 0.35);
  backdrop-filter: blur(1px);
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(46vh, 330px);
  overflow: auto;
  padding-right: 2px;
}

.theme-chip {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  min-width: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-900);
}

.theme-chip.is-active {
  border-color: rgba(31, 103, 178, 0.56);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.2) inset;
}

.theme-preview {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(8, 32, 57, 0.13);
}

.board-background-upload-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.board-background-help {
  margin: 6px 0 0;
}

.board-background-gallery {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 8px;
  max-height: min(38vh, 250px);
  overflow: auto;
  padding-right: 2px;
}

.board-background-chip {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  width: 100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink-900);
}

.board-background-chip:hover,
.board-background-chip:focus-visible {
  border-color: rgba(26, 101, 184, 0.42);
  background: rgba(241, 248, 255, 0.95);
  outline: none;
}

.board-background-chip.is-active {
  border-color: rgba(31, 103, 178, 0.56);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.2) inset;
}

.board-background-preview {
  width: 100%;
  height: 68px;
  border-radius: 7px;
  border: 1px solid rgba(8, 32, 57, 0.15);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.board-background-name {
  display: block;
  font-size: 0.74rem;
  line-height: 1.1;
  color: var(--ink-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-background-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-700);
}

.member-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-chip {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  height: 34px;
  padding: 0 10px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-900);
}

.member-chip.is-active {
  border-color: rgba(31, 103, 178, 0.56);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.2) inset;
}

.member-chip.is-inactive {
  opacity: 0.45;
}

.collaborator-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.collaborator-row {
  border: 1px solid rgba(26, 101, 184, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.collaborator-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collaborator-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaborator-email {
  font-size: 0.73rem;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaborator-tag {
  border: 1px solid rgba(26, 101, 184, 0.25);
  border-radius: 999px;
  background: rgba(45, 126, 201, 0.11);
  color: var(--blue-900);
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

.board-card-pill.role-pill {
  background: rgba(45, 126, 201, 0.1);
}

.board-card-pill.role-pill.is-owner {
  background: rgba(31, 143, 84, 0.16);
  border-color: rgba(25, 120, 71, 0.32);
  color: #185b36;
}

.board-card-pill.role-pill.is-editor {
  background: rgba(45, 126, 201, 0.14);
  border-color: rgba(31, 103, 178, 0.3);
  color: #1d4e82;
}

.member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-composer,
.label-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-composer-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.member-composer-actions {
  display: flex;
  gap: 8px;
}

.member-composer-actions .button {
  flex: 1;
}

.label-composer {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 8px;
}

.label-composer .button {
  grid-column: span 2;
}

.label-manager {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.label-manager-item {
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.label-manager-name-input {
  flex: 1;
}

.label-manager-color-input {
  flex: 0 0 54px;
  width: 54px;
  padding: 2px;
  height: 34px;
}

.label-manager-item .button {
  flex: 0 0 34px;
}

.label-manager-chip {
  border: 1px solid rgba(8, 32, 57, 0.13);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.panel-actions .button {
  flex: 1 1 160px;
}

.card-dialog {
  width: min(1160px, calc(100vw - 24px));
  border: none;
  padding: 0;
  background: transparent;
}

.card-dialog::backdrop {
  background: rgba(5, 18, 36, 0.46);
  backdrop-filter: blur(2px);
}

.card-dialog-form {
  border: 1px solid rgba(26, 101, 184, 0.24);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.93));
  box-shadow: var(--shadow-hard);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-dialog-cover {
  height: 58px;
  border-bottom: 1px solid rgba(26, 101, 184, 0.2);
  background: #2d7ec9;
}

.card-dialog-cover.is-full {
  height: 172px;
}

.dialog-header {
  border-bottom: 1px solid rgba(26, 101, 184, 0.16);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dialog-header h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.card-header-main {
  min-width: 0;
}

.card-dialog-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 0;
  flex: 1;
}

.card-dialog-main {
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.card-dialog-side {
  min-height: 0;
  border-left: 1px solid rgba(26, 101, 184, 0.16);
  background: linear-gradient(180deg, rgba(242, 249, 255, 0.78), rgba(236, 246, 255, 0.68));
  padding: 12px;
  overflow: auto;
}

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

.card-quick-action {
  flex: 1 1 140px;
}

.card-quick-action .icon {
  width: 14px;
  height: 14px;
}

.card-cover-preview {
  width: 100%;
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(26, 101, 184, 0.2);
  background: #2d7ec9;
}

.card-cover-preview.is-full {
  min-height: 136px;
}

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

.cover-size-actions .button {
  flex: 1 1 150px;
}

.cover-size-actions .button.is-active {
  border-color: rgba(31, 103, 178, 0.54);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.18) inset;
}

.cover-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cover-color-chip {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(8, 32, 57, 0.2);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}

.cover-color-chip:hover {
  transform: translateY(-1px);
}

.cover-color-chip.is-active {
  box-shadow: 0 0 0 2px rgba(8, 32, 57, 0.28) inset;
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-700);
  font-weight: 600;
}

.label-with-icon .icon {
  width: 15px;
  height: 15px;
  color: var(--blue-800);
}

.field-group {
  border: 1px solid rgba(26, 101, 184, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rich-editor {
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.rich-editor:focus-within {
  border-color: rgba(31, 103, 178, 0.5);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.16);
}

.rich-toolbar {
  border-bottom: 1px solid rgba(26, 101, 184, 0.16);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(242, 249, 255, 0.95), rgba(248, 252, 255, 0.9));
}

.rich-tool-button {
  min-width: 34px;
  height: 30px;
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  font: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
}

.rich-tool-button:hover {
  border-color: rgba(31, 103, 178, 0.42);
  background: #fff;
}

.rich-tool-button .icon {
  width: 14px;
  height: 14px;
}

.rich-tool-button.is-active {
  border-color: rgba(31, 103, 178, 0.54);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.18) inset;
  background: rgba(233, 245, 255, 0.9);
}

.rich-input {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  line-height: 1.52;
  font-size: 0.9rem;
  color: var(--ink-900);
  outline: none;
}

textarea#cardDescriptionInput {
  min-height: 220px;
}

.rich-input:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-500);
  pointer-events: none;
}

.rich-input p {
  margin: 0 0 10px;
}

.rich-input p:last-child {
  margin-bottom: 0;
}

.rich-input h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.3;
}

.rich-input ul,
.rich-input ol {
  margin: 0 0 10px 20px;
  padding: 0;
}

.rich-input blockquote {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid rgba(31, 103, 178, 0.55);
  background: rgba(233, 245, 255, 0.82);
  border-radius: 6px;
  color: var(--ink-700);
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-head h4 {
  margin: 0;
  font-size: 0.86rem;
}

.field-head-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.field-head-title .icon {
  width: 15px;
  height: 15px;
  color: var(--blue-800);
}

.muted {
  color: var(--ink-500);
  font-size: 0.75rem;
}

.label-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.label-chip {
  border: 1px solid rgba(8, 32, 57, 0.13);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.label-chip.is-active {
  box-shadow: 0 0 0 2px rgba(8, 32, 57, 0.24) inset;
}

.due-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-mini-label {
  min-width: 78px;
  font-size: 0.76rem;
  color: var(--ink-700);
  font-weight: 700;
}

.due-row input[type="date"],
.due-row select {
  flex: 1;
  min-width: 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-700);
}

.checkbox-inline.grow {
  flex: 1;
}

.checkbox-inline input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox-inline .icon {
  width: 14px;
  height: 14px;
  color: var(--blue-800);
}

.checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.checklist-item {
  border: 1px solid rgba(26, 101, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checklist-item.is-done .checklist-text {
  text-decoration: line-through;
  color: var(--ink-500);
}

.checklist-text {
  font-size: 0.84rem;
  color: var(--ink-900);
}

.custom-field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-field-row {
  border: 1px solid rgba(26, 101, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 8px;
}

.custom-field-row input {
  width: 100%;
}

.custom-field-form {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 8px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form.column {
  flex-direction: column;
}

.inline-form input,
.inline-form textarea {
  flex: 1;
}

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

.inline-actions .button {
  flex: 1 1 120px;
}

.attachment-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(26, 101, 184, 0.16);
}

.comment-list,
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.activity-list.compact {
  max-height: 180px;
}

#boardAuditList {
  max-height: 240px;
}

.archived-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.archived-item {
  border: 1px solid rgba(26, 101, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archived-item-title {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-900);
  font-weight: 700;
}

.archived-item-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.archived-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.archived-item-actions .button {
  flex: 1 1 110px;
}

.card-side-streams {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-side-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-side-title {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-side-title .icon {
  width: 14px;
  height: 14px;
  color: var(--blue-800);
}

.comment-item,
.activity-item {
  border: 1px solid rgba(26, 101, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
}

.comment-head {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.77rem;
}

.comment-time,
.activity-time {
  font-size: 0.74rem;
  color: var(--ink-500);
}

.comment-text,
.activity-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-900);
  word-break: break-word;
  white-space: pre-wrap;
}

.dialog-footer {
  border-top: 1px solid rgba(26, 101, 184, 0.16);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.confirm-dialog {
  width: min(480px, calc(100vw - 20px));
  border: none;
  padding: 0;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(6, 18, 35, 0.45);
}

.confirm-form {
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.93));
  box-shadow: var(--shadow-hard);
  padding: 14px;
}

.confirm-form h3 {
  margin: 0;
  font-size: 1rem;
}

#confirmMessage {
  margin: 10px 0 12px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

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

.board-meta-dialog {
  width: min(560px, calc(100vw - 20px));
}

.board-meta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-profile-dialog {
  width: min(820px, calc(100vw - 20px));
}

.user-profile-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.user-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-avatar-preview {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(26, 101, 184, 0.24);
  background: linear-gradient(145deg, rgba(47, 140, 223, 0.18), rgba(31, 103, 178, 0.2));
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.user-profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-profile-avatar-fallback {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.user-profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.list-color-dialog {
  width: min(700px, calc(100vw - 20px));
}

.list-color-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: min(50vh, 340px);
  overflow: auto;
  padding-right: 2px;
}

.list-color-chip {
  border: 1px solid rgba(26, 101, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-900);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 8px;
  cursor: pointer;
  text-align: left;
}

.list-color-chip:hover,
.list-color-chip:focus-visible {
  border-color: rgba(26, 101, 184, 0.42);
  background: rgba(241, 248, 255, 0.95);
  outline: none;
}

.list-color-chip.is-active {
  border-color: rgba(31, 103, 178, 0.56);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.2) inset;
}

.list-color-preview {
  width: 32px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(8, 32, 57, 0.15);
  flex-shrink: 0;
}

.list-color-preview-default {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 247, 255, 0.92) 100%);
}

.is-over {
  outline: 2px dashed rgba(31, 103, 178, 0.62);
  outline-offset: -3px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(26, 101, 184, 0.25);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.96);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(45, 126, 201, 0.32);
  border-color: rgba(45, 126, 201, 0.56);
}

.button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #1f67b2, #2f8cdf);
  box-shadow: 0 9px 18px rgba(15, 66, 121, 0.24);
}

.button.primary:hover {
  box-shadow: 0 12px 22px rgba(15, 66, 121, 0.31);
}

.button.ghost {
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(26, 101, 184, 0.22);
}

.button.ghost:hover {
  border-color: rgba(26, 101, 184, 0.43);
  background: rgba(255, 255, 255, 0.97);
}

.button.board-card-star-button.is-active,
.button#toggleBoardStarButton.is-active {
  color: #8f5a00;
  border-color: rgba(232, 162, 47, 0.62);
  background: linear-gradient(145deg, rgba(255, 246, 211, 0.96), rgba(255, 232, 174, 0.92));
  box-shadow: 0 0 0 2px rgba(232, 162, 47, 0.16) inset;
}

.button.board-card-star-button.is-active svg,
.button#toggleBoardStarButton.is-active svg {
  stroke: #aa6500;
  fill: rgba(255, 194, 66, 0.9);
  stroke-width: 2.05;
}

.button.danger {
  color: #8f223e;
  background: var(--danger-bg);
  border-color: rgba(190, 44, 79, 0.25);
}

.button.danger:hover {
  background: #f9dce5;
  border-color: rgba(190, 44, 79, 0.44);
}

.button.icon-only {
  width: 38px;
  padding: 0;
}

body.theme-dark {
  --blue-950: #d9ebff;
  --blue-900: #e5f1ff;
  --blue-800: #9fc8f3;
  --blue-700: #73b0ef;
  --blue-600: #4a98e4;
  --blue-300: #345f8e;
  --blue-100: #152538;
  --ink-900: #e7f1ff;
  --ink-700: #bdd0e8;
  --ink-500: #8ea7c5;
  --surface: rgba(17, 29, 44, 0.92);
  --surface-strong: #132337;
  --border: rgba(119, 170, 230, 0.28);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.36);
  --shadow-hard: 0 20px 44px rgba(0, 0, 0, 0.5);
  --danger-bg: rgba(138, 45, 67, 0.34);
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 10%, rgba(66, 124, 188, 0.16), transparent 29%),
    radial-gradient(circle at 86% 88%, rgba(32, 83, 138, 0.17), transparent 34%),
    linear-gradient(145deg, #0b1320 0%, #0f1b2d 52%, #102338 100%);
}

body.theme-dark .bg-shape-1 {
  background: radial-gradient(circle, rgba(80, 143, 212, 0.2), rgba(80, 143, 212, 0.02) 74%);
}

body.theme-dark .bg-shape-2 {
  background: radial-gradient(circle, rgba(31, 103, 178, 0.2), rgba(31, 103, 178, 0.02) 72%);
}

body.theme-dark .global-header,
body.theme-dark .auth-card,
body.theme-dark .dashboard-header,
body.theme-dark .board-composer,
body.theme-dark .board-card,
body.theme-dark .board-topbar,
body.theme-dark .list,
body.theme-dark .list-composer,
body.theme-dark .card-composer,
body.theme-dark .board-panel,
body.theme-dark .panel-section,
body.theme-dark .card-dialog-form,
body.theme-dark .confirm-form,
body.theme-dark .field-group,
body.theme-dark .rich-editor,
body.theme-dark .comment-item,
body.theme-dark .activity-item,
body.theme-dark .checklist-item,
body.theme-dark .label-manager-item {
  border-color: rgba(119, 170, 230, 0.28);
  background: linear-gradient(165deg, rgba(19, 35, 54, 0.96), rgba(14, 28, 45, 0.92));
  color: var(--ink-900);
}

body.theme-dark .board-title-display-wrap,
body.theme-dark .topbar-labels {
  border-color: rgba(119, 170, 230, 0.28);
  background: rgba(16, 31, 48, 0.86);
}

body.theme-dark .board-status-inline {
  color: #b7cae2;
}

body.theme-dark .account-verification-banner {
  border-color: rgba(229, 122, 148, 0.38);
  background: linear-gradient(135deg, rgba(74, 26, 42, 0.92), rgba(67, 41, 23, 0.9));
}

body.theme-dark .account-verification-copy {
  color: #ffc9d6;
}

body.theme-dark .field-mini-label {
  color: #a8c0df;
}

body.theme-dark .panel-collapsible-title {
  color: #d6e8ff;
}

body.theme-dark .board-card-pill,
body.theme-dark .stat-pill,
body.theme-dark .list-count,
body.theme-dark .member-chip,
body.theme-dark .label-manager-chip {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(20, 37, 58, 0.88);
  color: var(--ink-700);
}

body.theme-dark .list-scroll-arrow {
  border-color: rgba(119, 170, 230, 0.38);
  background: rgba(15, 32, 50, 0.92);
  color: #d5e8ff;
}

body.theme-dark .button.list-column-scroll-arrow {
  border-color: rgba(119, 170, 230, 0.48);
  background: rgba(15, 32, 50, 0.92);
  color: #d5e8ff;
}

body.theme-dark .collaborator-row {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(20, 37, 58, 0.88);
}

body.theme-dark .collaborator-name {
  color: var(--ink-900);
}

body.theme-dark .collaborator-email {
  color: #95afd0;
}

body.theme-dark .collaborator-tag {
  border-color: rgba(136, 184, 241, 0.42);
  background: rgba(34, 61, 90, 0.85);
  color: var(--ink-900);
}

body.theme-dark #passwordResetRequestForm,
body.theme-dark #passwordResetForm {
  border-color: rgba(119, 170, 230, 0.42);
  background: rgba(16, 31, 48, 0.78);
}

body.theme-dark .custom-field-row {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(20, 37, 58, 0.88);
}

body.theme-dark .archived-item {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(20, 37, 58, 0.88);
}

body.theme-dark .archived-item-title {
  color: var(--ink-900);
}

body.theme-dark .archived-item-meta {
  color: #95afd0;
}

body.theme-dark .board-card-pill.role-pill.is-owner {
  background: rgba(29, 124, 75, 0.3);
  border-color: rgba(56, 163, 108, 0.52);
  color: #c9efd8;
}

body.theme-dark .board-card-pill.role-pill.is-editor {
  background: rgba(46, 98, 162, 0.36);
  border-color: rgba(104, 160, 227, 0.52);
  color: #d3e9ff;
}

body.theme-dark .current-user {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(20, 37, 58, 0.9);
  color: var(--ink-900);
}

body.theme-dark .current-user:hover,
body.theme-dark .current-user:focus-visible {
  border-color: rgba(136, 184, 241, 0.62);
  background: rgba(25, 46, 70, 0.96);
}

body.theme-dark .current-user-avatar {
  border-color: rgba(149, 192, 243, 0.38);
  background: linear-gradient(145deg, #3a8bd8, #2d6fb4);
}

body.theme-dark .current-user-name {
  color: var(--ink-900);
}

body.theme-dark .current-user-email {
  color: #abc3e1;
}

body.theme-dark .global-board-search-field .icon {
  color: #9ec4ed;
}

body.theme-dark .global-board-search-input {
  border-color: rgba(119, 170, 230, 0.34);
  background: rgba(17, 34, 53, 0.92);
}

body.theme-dark .global-board-search-dropdown {
  border-color: rgba(119, 170, 230, 0.34);
  background: rgba(16, 31, 48, 0.97);
  box-shadow: 0 16px 26px rgba(2, 8, 18, 0.52);
}

body.theme-dark .global-board-search-caption,
body.theme-dark .global-board-search-empty,
body.theme-dark .global-board-search-item-meta {
  color: #a8c0df;
}

body.theme-dark .global-board-search-item {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(20, 37, 58, 0.88);
  color: var(--ink-900);
}

body.theme-dark .global-board-search-item:hover,
body.theme-dark .global-board-search-item:focus-visible {
  border-color: rgba(136, 184, 241, 0.58);
  background: rgba(25, 46, 70, 0.96);
}

body.theme-dark .list-menu-popover {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(16, 31, 48, 0.96);
}

body.theme-dark .list-menu-action {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(20, 37, 58, 0.88);
  color: var(--ink-900);
}

body.theme-dark .list-menu-action:hover,
body.theme-dark .list-menu-action:focus-visible {
  border-color: rgba(136, 184, 241, 0.58);
  background: rgba(25, 46, 70, 0.96);
}

body.theme-dark .list-menu-action.danger {
  border-color: rgba(214, 120, 147, 0.52);
  background: rgba(138, 45, 67, 0.38);
  color: #ffdbe5;
}

body.theme-dark .list-color-chip {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(20, 37, 58, 0.88);
  color: var(--ink-900);
}

body.theme-dark .list-color-chip:hover,
body.theme-dark .list-color-chip:focus-visible {
  border-color: rgba(136, 184, 241, 0.58);
  background: rgba(25, 46, 70, 0.96);
}

body.theme-dark .list-color-chip.is-active {
  border-color: rgba(136, 184, 241, 0.62);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.24) inset;
}

body.theme-dark .list-color-preview {
  border-color: rgba(149, 192, 243, 0.42);
}

body.theme-dark .list-color-preview-default {
  background: linear-gradient(165deg, rgba(23, 38, 57, 0.96) 0%, rgba(17, 30, 46, 0.92) 100%);
}

body.theme-dark .user-profile-avatar-preview {
  border-color: rgba(119, 170, 230, 0.36);
  background: linear-gradient(145deg, rgba(46, 97, 160, 0.5), rgba(31, 70, 122, 0.52));
}

body.theme-dark .user-profile-avatar-fallback {
  color: #e6f1ff;
}

body.theme-dark .board-background-chip {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(20, 37, 58, 0.88);
  color: var(--ink-900);
}

body.theme-dark .board-background-chip:hover,
body.theme-dark .board-background-chip:focus-visible {
  border-color: rgba(136, 184, 241, 0.58);
  background: rgba(25, 46, 70, 0.96);
}

body.theme-dark .board-background-chip.is-active {
  border-color: rgba(136, 184, 241, 0.62);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.24) inset;
}

body.theme-dark .board-background-preview {
  border-color: rgba(149, 192, 243, 0.42);
}

body.theme-dark .board-background-name,
body.theme-dark .board-background-empty {
  color: #b8cde6;
}

body.theme-dark .dialog-header,
body.theme-dark .dialog-footer,
body.theme-dark .rich-toolbar {
  border-color: rgba(119, 170, 230, 0.24);
}

body.theme-dark .card-dialog-side {
  border-color: rgba(119, 170, 230, 0.24);
  background: linear-gradient(180deg, rgba(17, 33, 51, 0.9), rgba(14, 29, 46, 0.88));
}

body.theme-dark .card-dialog-cover,
body.theme-dark .card-cover-preview {
  border-color: rgba(119, 170, 230, 0.24);
}

body.theme-dark .card-cover.is-image {
  border-color: rgba(119, 170, 230, 0.3);
}

body.theme-dark .cover-color-chip {
  border-color: rgba(149, 192, 243, 0.4);
}

body.theme-dark .cover-color-chip.is-active {
  box-shadow: 0 0 0 2px rgba(211, 229, 250, 0.36) inset;
}

body.theme-dark .cover-size-actions .button.is-active {
  border-color: rgba(136, 184, 241, 0.58);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.24) inset;
}

body.theme-dark .card-side-title {
  color: var(--ink-700);
}

body.theme-dark .card-side-title .icon {
  color: #8bb8ec;
}

body.theme-dark .card-dialog::backdrop,
body.theme-dark .confirm-dialog::backdrop {
  background: rgba(2, 8, 18, 0.72);
}

body.theme-dark .rich-toolbar {
  background: linear-gradient(180deg, rgba(16, 30, 48, 0.96), rgba(15, 27, 44, 0.9));
}

body.theme-dark .rich-tool-button {
  border-color: rgba(119, 170, 230, 0.35);
  background: rgba(18, 34, 53, 0.9);
  color: var(--ink-900);
}

body.theme-dark .rich-tool-button:hover {
  border-color: rgba(136, 184, 241, 0.58);
  background: rgba(24, 43, 66, 0.96);
}

body.theme-dark .rich-tool-button.is-active {
  border-color: rgba(136, 184, 241, 0.58);
  box-shadow: 0 0 0 2px rgba(31, 103, 178, 0.24) inset;
  background: rgba(34, 61, 90, 0.94);
}

body.theme-dark .card {
  border-color: rgba(119, 170, 230, 0.26);
  background: rgba(16, 30, 47, 0.9);
}

body.theme-dark .card:hover {
  border-color: rgba(136, 184, 241, 0.56);
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  border-color: rgba(119, 170, 230, 0.35);
  background: rgba(15, 29, 47, 0.94);
  color: var(--ink-900);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #7e9abe;
}

body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
  outline: 2px solid rgba(93, 149, 213, 0.32);
  border-color: rgba(130, 179, 236, 0.62);
}

body.theme-dark .button.ghost {
  color: var(--ink-900);
  background: rgba(17, 32, 50, 0.9);
  border-color: rgba(119, 170, 230, 0.3);
}

body.theme-dark .button.ghost:hover {
  border-color: rgba(136, 184, 241, 0.62);
  background: rgba(22, 40, 63, 0.96);
}

body.theme-dark .button.board-card-star-button.is-active,
body.theme-dark .button#toggleBoardStarButton.is-active {
  color: #ffeab9;
  border-color: rgba(255, 203, 103, 0.68);
  background: linear-gradient(145deg, rgba(101, 74, 22, 0.78), rgba(83, 61, 17, 0.72));
  box-shadow: 0 0 0 2px rgba(255, 196, 80, 0.2) inset;
}

body.theme-dark .button.board-card-star-button.is-active svg,
body.theme-dark .button#toggleBoardStarButton.is-active svg {
  stroke: #ffd675;
  fill: rgba(255, 188, 53, 0.4);
}

body.theme-dark .button.primary {
  background: linear-gradient(135deg, #2d7dcc, #4697e3);
  box-shadow: 0 9px 18px rgba(3, 14, 28, 0.44);
}

body.theme-dark .button.primary:hover {
  box-shadow: 0 12px 22px rgba(3, 14, 28, 0.52);
}

body.theme-dark .save-notification-toast {
  border-color: rgba(119, 170, 230, 0.32);
  background: rgba(18, 36, 56, 0.66);
  color: rgba(207, 227, 248, 0.88);
  box-shadow: 0 10px 20px rgba(2, 8, 18, 0.46);
}

body.theme-dark .save-notification-toast.is-save {
  border-color: rgba(119, 170, 230, 0.3);
  background: rgba(18, 36, 56, 0.58);
  color: rgba(207, 227, 248, 0.82);
}

body.theme-dark .save-notification-toast.is-error {
  border-color: rgba(255, 170, 196, 0.46);
  background: rgba(89, 29, 47, 0.92);
  color: #ffd8e4;
}

body.theme-dark .save-notification-toast.is-ok:not(.is-save) {
  border-color: rgba(98, 193, 143, 0.48);
  background: rgba(21, 72, 48, 0.88);
  color: #d6ffea;
}

body.theme-dark .save-notification-dismiss:hover {
  background: rgba(214, 231, 251, 0.12);
}

body.theme-dark .button.danger {
  color: #ffe7ee;
  background: linear-gradient(135deg, rgba(167, 57, 88, 0.95), rgba(125, 37, 61, 0.95));
  border-color: rgba(255, 170, 196, 0.54);
  box-shadow: 0 9px 18px rgba(8, 3, 7, 0.48);
}

body.theme-dark .button.danger:hover {
  background: linear-gradient(135deg, rgba(186, 66, 99, 0.98), rgba(141, 42, 69, 0.98));
  border-color: rgba(255, 189, 210, 0.66);
  box-shadow: 0 12px 22px rgba(8, 3, 7, 0.56);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .save-notification-toast {
    top: 70px;
    max-width: calc(100vw - 26px);
  }

  .board-topbar-left,
  .board-topbar-middle,
  .board-topbar-right {
    width: 100%;
  }

  .board-topbar-middle,
  .board-topbar-right {
    flex-wrap: wrap;
  }

  .board-topbar-right {
    justify-content: flex-start;
  }

  .topbar-labels {
    flex: 1 1 100%;
  }

  .card-dialog {
    width: min(980px, calc(100vw - 18px));
  }

  .card-dialog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-dialog-side {
    border-left: none;
    border-top: 1px solid rgba(26, 101, 184, 0.16);
  }
}

@media (max-width: 840px) {
  .account-verification-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .account-verification-banner .button {
    width: 100%;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-search {
    width: 100%;
  }

  .dashboard-stats {
    justify-content: flex-end;
  }

  .dashboard-actions {
    width: 100%;
    margin-left: 0;
  }

  .dashboard-actions .button {
    flex: 1;
  }

  .board-composer-row {
    grid-template-columns: 1fr;
  }

  .user-profile-grid {
    grid-template-columns: 1fr;
  }

  .board-topbar-middle,
  .board-topbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .board-search-input {
    flex: 1 1 220px;
    width: 100%;
  }

  .topbar-labels {
    width: 100%;
  }

  .board-workspace {
    flex-direction: column;
    overflow: visible;
  }

  .lists-viewport {
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 10px 6px;
  }

  .add-list-pane {
    width: var(--list-column-width);
    flex-basis: var(--list-column-width);
  }

  .theme-chip {
    width: 100%;
  }

  .theme-picker {
    grid-template-columns: 1fr;
  }

  .cover-palette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .global-header,
  .app-root {
    width: 100%;
  }

  .global-header {
    margin-top: 0;
    border-radius: 0;
    flex-wrap: wrap;
  }

  .global-board-search {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .header-actions {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }

  .header-actions .button {
    flex: 1;
  }

  .current-user {
    min-width: 0;
    max-width: 58%;
  }

  .board-view {
    height: auto;
    min-height: calc(100vh - 110px);
  }

  .board-topbar-right {
    flex-wrap: wrap;
  }

  .board-topbar-right .button {
    flex: 0 0 auto;
  }

  .board-search-input {
    width: 100%;
  }

  .dialog-footer {
    flex-direction: column-reverse;
  }

  .dialog-footer .button {
    width: 100%;
  }

  .due-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-mini-label {
    min-width: 0;
  }

  .custom-field-form,
  .custom-field-row {
    grid-template-columns: 1fr;
  }

  .card-quick-action {
    flex: 1 1 100%;
  }

  .cover-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-dialog-main,
  .card-dialog-side {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
