/* =================================
   Root Variables & Base Styles
   ================================= */
:root {
  --bg: #f7f8fa;
  --panel: #fff;
  --text: #1f2430;
  --muted: #6b7280;
  --primary: #3b82f6;
  --primary-light: #f4f9ff;
  --border: #e5e7eb;
  --error: #ef4444;
  --alert: #f08a00;
  --shadow: 0 6px 20px rgba(0, 0, 0, .08);
  --radius: 14px;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --stripe-mix: 4%;
  --comment-border: #f1f1f1;
}

html[data-theme="dark"] {
  --bg: #0f1216;
  --panel: #161a21;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --primary: #1a63be;
  --primary-light: #1e293b;
  --border: #242935;
  --error: #812b2b;
  --alert: #da8a4d;
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --comment-border: #2b3442;

  .card-desc::-webkit-scrollbar {
    width: 8px;
  }

  .card-desc::-webkit-scrollbar-track {
    background: var(--panel);
    border-radius: 4px;
  }

  .card-desc::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
    border: 2px solid var(--panel);
  }

  .card-desc::-webkit-scrollbar-thumb:hover {
    background-color: var(--muted);
  }

  .card-desc {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--panel);
  }
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif
}

/* Utility class to prevent body scrolling when a dialog is open */
body.dialog-open {
  overflow: hidden;
}

input {
  max-height: 42px;
  height: 42px;
}

/* =================================
   Header & Toolbar
   ================================= */
.app-header {
  position: sticky;
  /* position: relative; */
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(1.2) blur(6px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 12px clamp(12px, 2vw, 20px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  margin-right: 8px;
  font-size: 18px;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  flex-wrap: wrap
}

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

.search {
  flex: 1 1 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  outline: none
}

.search:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent)
}

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

.btn {
  padding: 10px 12px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  /* box-shadow: var(--shadow) */
}

.btn:hover, .btn.secondary:hover {
  transform: translateY(-1px);
  /* background: var(--primary-light); */
}

.btn:focus-visible {
  outline: 2px solid var(--primary)
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent
}

.btn.error {
  color: var(--error);
  background-color: var(--error);
  color: white;
  border: none;
}

.btn.secondary {
  background: transparent
}

.file-btn {
  font-size: 0.89em;
  text-align: center;
}

#themeToggle,
#menuBtn {
  min-width: 40px;
}

#menuBtn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
}

.menu-avatar-img,
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-image {
  width: 18px;
  height: 18px;
}

.avatar-image--subtle {
  width: 18px;
  height: 18px;
  opacity: 1;
}

/* --- Dropdown Menu Styles --- */
.dropdown-menu {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background-color: var(--panel);
  min-width: 180px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 10;
  padding: 8px;
}

.dropdown-content.show {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

hr {
  border: 0;
  height: 1px;
  margin: 10px 0;
  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.dropdown-content hr {
  width: 94%;
  margin: 4px auto;
  background: color-mix(in srgb, var(--border) 88%, transparent);
}

.dropdown-content .btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 400;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  box-sizing: border-box;
}

/* 2. Add the hover effect */
.dropdown-content .btn:hover {
  background: var(--primary);
  color: #fff;
  transform: none;
}


/* =================================
   Tag Filters
   ================================= */
.tag-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 20px 0px 20px;
}

#tagFilters {
  padding-top: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
}

.tag-chip.active {
  border-style: solid;
  color: var(--text)
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}


/* =================================
   Board & Columns
   ================================= */
.board {
  position: relative;
  padding: 16px;
  padding-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  min-height: calc(100vh - 150px);
  z-index: 1;
}

.board::-webkit-scrollbar {
  display: none;
}

.column {
  min-width: min(340px, 92vw);
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  flex-shrink: 0;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 8px
}

.drag-handle {
  border: none;
  background: transparent;
  cursor: grab;
  padding: 4px;
  user-select: none;
  color: var(--muted);
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing
}

.column-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  outline: none
}

.column-actions {
  margin-left: auto;
  display: flex;
  gap: 6px
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 20px;
  flex-grow: 1;
}

.btn-add-card {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--muted);
  box-shadow: none;
  font-weight: 500;
  font-size: 12px;
  padding: 0px 12px;
  margin: 0;
  width: auto;
  cursor: pointer;
  text-align: center;
}

.btn-add-card:hover {
  text-decoration: underline;
  background: transparent;
}

.column--empty .btn-add-card:first-of-type {
  display: none;
}

.column--empty .cards {
  min-height: 0;
  flex-grow: 0;
}

.column--empty .btn-add-card:last-of-type {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  border: 1px dashed color-mix(in srgb, var(--border) 72%, var(--primary) 28%);
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--muted) 55%, var(--text) 45%);
  text-decoration: none;
}

.column--empty .btn-add-card:last-of-type:hover {
  color: var(--primary);
  text-decoration: none;
}

.btn-del-card,
.btn-del-col,
.btn-rename {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  box-shadow: none;
  transition: color .2s ease
}

/* --- Archive Column Specific Styles --- */
.column--archive {
  background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 10px, var(--bg) 10px, var(--bg) 20px);
  border-style: dashed;
  display: none;
  /* Hidden by default */
}

.board--archive-visible .column--archive {
  display: flex;
  /* Show when board has the class */
}

/* =================================
   Cards
   ================================= */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  outline: none;
  transition: transform .12s ease, box-shadow .2s ease;
  cursor: pointer;
  word-wrap: break-word;
}

.card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent)
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  flex: 1
}

.card-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  max-height: 200px;
  overflow: auto;
  scrollbar-width: thin;
}

.card-desc::-webkit-scrollbar {
  width: 8px;
}

.card-desc::-webkit-scrollbar-track {
  background: var(--panel);
  border-radius: 4px;
}

.card-desc::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
  border: 2px solid var(--panel);
}

.card-desc::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}


.card-meta {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-top: 8px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.card-due {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), var(--primary) 8%)
}

.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.card.dragging {
  display: none;
}

.card-ghost {
  position: fixed;
  pointer-events: none;
  opacity: .9;
  transform: rotate(2deg);
  box-shadow: var(--shadow);
  z-index: 9999;
}

.card.placeholder {
  border: 2px dashed var(--primary);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7
}

body.dragging-ui,
body.dragging-ui * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none
}

.column-placeholder {
  background: repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--panel), #000 var(--stripe-mix)),
      color-mix(in srgb, var(--panel), #000 var(--stripe-mix)) 6px,
      transparent 6px,
      transparent 12px);
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.8;
}

/* =================================
   Dialogs
   ================================= */
dialog::backdrop {
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
}

dialog,
dialog:focus,
dialog:focus-visible {
  border: none;
  padding: 0;
  background: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.editor-form {
  width: min(740px, 90vw);
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0 clamp(16px, 5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.editor-form h3 {
  margin: 0px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  position: sticky;
  padding: clamp(12px, 5vw, 8px) 0 12px;
  top: 0;
  background: var(--panel);
}

.editor-form h3::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, var(--panel), transparent);
  pointer-events: none;
}

.editor-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--muted)
}

.editor-form input,
.editor-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  max-width: 100%;
  font-weight: 400;
  box-sizing: border-box;
}

.editor-form input[type="datetime-local"] {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  /* Reduced padding for mobile browsers that add internal clutter */
  padding: 10px 8px;
}

.editor-form textarea {
  resize: vertical;
  min-height: 96px
}

.editor-form input:focus,
.editor-form textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent)
}

.editor-form input[type="checkbox"] {
  width: auto;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.editor-actions {
  position: sticky;
  bottom: 0;
  background-color: var(--panel);
  padding-top: 12px;
  padding-bottom: clamp(16px, 5vw, 24px);
  z-index: 10;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions-extra:empty {
  display: none;
}

.actions-extra, .actions-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.move-to-menu-wrap {
  position: relative;
  flex: 1 1 calc(50% - 6px);
}

.move-to-menu-wrap .btn {
  width: 100%;
}

.editor-move-menu {
  top: auto;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  max-height: min(260px, 50vh);
  overflow-y: auto;
}

.editor-move-menu .btn {
  flex: 0 0 auto;
}

.editor-actions::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to top, var(--panel), transparent);
  pointer-events: none;
}

.editor-actions .btn {
  flex: 1 1 calc(50% - 6px);
}

.editor-form-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-form-row > label {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  box-sizing: border-box;
}

.editor-meta-tags {
  flex: 1.4;
  order: 1;
}

.editor-meta-due {
  flex: 1 0 100%;
  order: 3;
}

.editor-meta-user {
  flex: 1;
  order: 2;
}

/* =================================
   Due Date Badges
   ================================= */

/* Base style for any colored due date badge */
.due-badge {
  padding: 4px 10px;
  border-radius: 12px;
}

/* Style for badges indicating a task is due soon (e.g., < 48 hours) */
.due-badge--soon {
  border: 1px solid var(--alert);
  color: var(--alert);
  padding: 2px 8px;
  border-radius: 16px;
}

/* Style for badges indicating a task is overdue */
.due-badge--overdue {
  background-color: var(--error);
  font-weight: 600;
  color: white;
}

/* =================================
   Custom Checkbox / Toggle Switch
   ================================= */

.checkbox-wrapper {
  padding: 0;
  display: flex;
  align-items: center;
  max-height: 24px;
}

.editor-form .toggle-switch {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  /* min-height: 35px; */
}

.editor-form .toggle-switch input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
}

.editor-form .toggle-switch .slider {
  display: none;
}

.editor-form .toggle-switch .label-text {
  flex: 1 1 auto;
  line-height: 1.35;
}

.label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}


.hidden {
  display: none;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.content-editor {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  min-height: 96px;
  max-height: 200px;
  resize: vertical;
  overflow: auto;
  font-weight: normal;
  cursor: text;
}

.content-editor:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.card-desc a {
  color: var(--primary);
  text-decoration: none;
}

.card-desc a:hover {
  text-decoration: underline;
}

.hotkey-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.hotkey-hints--inline {
  justify-content: flex-end;
  flex: 0 1 auto;
  white-space: nowrap;
  gap: 8px;
  font-size: 10px;
}

.hotkey-hints kbd {
  font-family: monospace;
  background-color: var(--border);
  padding: 3px 5px;
  border-radius: 6px;
  line-height: 1;
  font-size: 10px;
  font-weight: 600;
}


/* =================================
   Responsive Media Queries
   ================================= */

@media (max-width:640px) {
  .field-label-row {
    display: block;
  }

  .hotkey-hints {
    display: none;
  }
}

@media (max-width:700px) {
  .search {
    flex: 1 1 100%
  }

  .actions {
    order: 2;
    flex: 1;
    flex-wrap: wrap
  }

  .actions .btn {
    flex: 1 1 calc(50% - 8px)
  }

  .tag-filters {
    order: 3
  }
}

/* @media (max-width:420px) {
  .editor-actions {
    grid-template-columns: 1fr !important
  }
} */

/* Redesign popovers for mobile to be fullscreen like a modal window */
@media (max-width: 640px) {
  /* Targeted dialogs: editor, settings, admin panel, col/rename settings */
  dialog[open]:not(#confirmDialog):not(#importChoice):not(#lightbox) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important; /* Fix for Safari */
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: var(--panel) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 9999 !important;
  }

  dialog[open]:not(#confirmDialog):not(#importChoice):not(#lightbox) .editor-form {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 16px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: var(--panel) !important;
  }

  /* Make sticky headers look right in fullscreen and add more top space */
  dialog[open]:not(#confirmDialog):not(#importChoice) .editor-form h3 {
    padding-top: max(20px, env(safe-area-inset-top, 20px)) !important;
    z-index: 12 !important;
  }

  /* Ensure actions are flush with the bottom on mobile */
  dialog[open]:not(#confirmDialog):not(#importChoice) .editor-actions {
    margin-top: auto !important; /* Pushes footer to bottom if content is short */
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    margin-bottom: 0 !important;
    bottom: 0 !important;
    z-index: 11 !important;
    background: var(--panel) !important;
    /* iOS Safari Fix: use a large solid box-shadow to fill any gaps below the footer */
    box-shadow: 0 100px 0 0 var(--panel);
  }

  /* Compact form elements for mobile */
  .editor-form {
    gap: 10px !important;
  }

  .editor-form h3 {
    font-size: 16px !important;
    padding-bottom: 8px !important;
  }

  .editor-form label {
    font-size: 13px !important;
    gap: 4px !important;
  }

  .editor-form input,
  .editor-form textarea {
    font-size: 14px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  .editor-form textarea {
    min-height: 80px !important;
  }

  .editor-actions {
    gap: 8px !important;
    padding-top: 8px !important;
  }

  .actions-extra, .actions-main {
    gap: 8px !important;
  }

  .column {
    width: calc(100vw - 28px);
  }
}

/* Ensure alerts/choice dialogs stay compact and centered */
#confirmDialog .editor-form,
#importChoice .editor-form {
  width: min(380px, 90vw);
  max-height: 85vh;
}

.password-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.password-strength {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.password-strength--weak {
  color: #c26500;
}

.password-strength--ok {
  color: color-mix(in srgb, var(--primary), var(--muted) 40%);
}

.password-strength--good,
.password-strength--strong {
  color: #228b5d;
}

#adminDialog .editor-form.admin-panel {
  width: min(980px, 98vw);
  max-width: min(980px, 98vw);
  max-height: min(92vh, 960px);
  padding: 24px 24px 20px;
  overflow: hidden;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

#adminDialog .admin-panel h3 {
  position: static;
  padding: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#adminDialog .admin-panel h3::after {
  display: none;
}

#adminDialog .admin-panel .editor-actions.admin-panel-actions {
  position: static;
  margin-top: auto;
  padding: 0 0;
  /* border-top: 1px solid var(--border); */
}

#adminDialog .admin-panel .editor-actions.admin-panel-actions::before {
  display: none;
}

.admin-panel-actions-main {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-user-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
  align-content: start;
}

/* User Card Styles */
.admin-user-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-user-card:hover {
  border-color: color-mix(in srgb, var(--border), var(--primary) 35%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.admin-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--panel), var(--bg) 55%);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.admin-user-head {
  flex-shrink: 0;
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  font-size: 17px;
}

.admin-user-identity {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.admin-user-display-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-email-hint {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

/* Badge-style toggles: [label] [switch] */
/* Use .admin-user-badges prefix to beat .editor-form label specificity */
.admin-user-badges .admin-badge-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: normal;
  white-space: nowrap;
  line-height: 1;
  color: var(--text);
}

.admin-user-badges .admin-badge-toggle.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-user-badges .admin-badge-toggle input {
  display: none;
}

.admin-user-badges .admin-badge-toggle .toggle-slider {
  width: 32px;
  height: 18px;
  border-radius: 18px;
  flex-shrink: 0;
}

.admin-user-badges .admin-badge-toggle .toggle-slider::before {
  width: 12px;
  height: 12px;
  left: 3px;
  bottom: 3px;
}

.admin-user-badges .admin-badge-toggle input:checked ~ .toggle-slider {
  background-color: var(--primary);
}

.admin-user-badges .admin-badge-toggle input:checked ~ .toggle-slider::before {
  transform: translateX(14px);
}

.admin-user-badges .admin-badge-toggle.is-checked .toggle-slider {
  background-color: var(--primary);
}

.admin-user-badges .admin-badge-toggle.is-checked .toggle-slider::before {
  transform: translateX(14px);
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  background-color: color-mix(in srgb, var(--border), transparent 30%);
  border-radius: 20px;
  transition: background-color 0.2s;
  flex: 0 0 auto;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-label-text {
  line-height: 1;
}

.admin-user-body {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-user-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.admin-user-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-user-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-left: 2px;
}

.admin-user-input {
  width: 100%;
  box-sizing: border-box;
}

.admin-user-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 18px 16px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 40%);
}

.admin-user-save {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary) !important;
  opacity: 0.8;
  cursor: pointer;
  line-height: 1;
}

.admin-user-delete {
  margin-right: auto;
  text-decoration: none !important;
  font-size: 13px;
  color: var(--error) !important;
  opacity: 0.75;
  cursor: pointer;
  line-height: 1;
}

.admin-user-delete:hover {
  opacity: 1;
  text-decoration: underline !important;
}

.admin-user-save:hover {
  opacity: 1;
  text-decoration: underline !important;
}



@media (min-width:900px) {
  .board {
    padding: 24px
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px
}

.editor-form-row {
  flex-direction: column;
}

@media (max-width:639px) {
  .editor-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "tags user"
      "due due";
    gap: 12px;
    align-items: start;
  }

  .editor-meta-tags {
    grid-area: tags;
  }

  .editor-meta-user {
    grid-area: user;
  }

  .editor-meta-due {
    grid-area: due;
  }

  #adminDialog .editor-form.admin-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(16px, env(safe-area-inset-bottom, 16px)) !important;
    gap: 16px !important;
    overflow: hidden !important;
  }

  #adminDialog .admin-panel h3 {
    font-size: 20px !important;
    padding: 0 !important;
  }

  #adminDialog .admin-panel .admin-user-list {
    gap: 10px;
    padding-right: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
  }

  .admin-user-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .admin-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .admin-user-badges {
    flex-basis: 100%;
    gap: 20px;
  }

  .admin-user-body {
    padding: 14px 14px 10px;
  }

  .admin-user-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-user-footer {
    padding: 10px 14px 14px;
    gap: 12px;
  }

  .admin-user-save {
    min-width: 0;
  }

  #adminDialog .admin-panel .editor-actions.admin-panel-actions {
    padding-top: 12px !important;
  }
}

@media (min-width:640px) {
  .editor-form-row {
    flex-direction: row;
  }
}

.db-provider-choice {
  display: flex;
  width: 100%;
}

.db-provider-choice .lang-tabs {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.db-provider-choice .lang-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
}

.db-settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: left;
}

.db-settings-section p.label-text {
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

/* Profile dialog redesign */
#profileDialog .editor-form {
  width: min(420px, 92vw);
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.profile-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), var(--primary) 10%);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 20px;
}

.profile-avatar-preview.placeholder {
  background: color-mix(in srgb, var(--panel), var(--primary) 14%);
}

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

/* Profile dialog — large centered avatar */
#profileDialog .profile-avatar-preview {
  width: 96px;
  height: 96px;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 2px var(--border), 0 4px 20px rgba(0, 0, 0, 0.1);
  background: color-mix(in srgb, var(--panel), var(--primary) 12%);
  font-size: 36px;
}

#profileDialog .profile-avatar-preview.placeholder::after {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  background: var(--muted);
  opacity: 0.25;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v1h16v-1c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.33 0-8 2.67-8 4v1h16v-1c0-1.33-2.67-4-8-4z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: 2.5px solid var(--panel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.profile-avatar-edit-btn:hover {
  background: color-mix(in srgb, var(--primary), black 12%);
  transform: scale(1.08);
}

.profile-remove-avatar-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  line-height: 1;
}

.profile-remove-avatar-link:hover:not(:disabled) {
  color: var(--text);
}

.profile-remove-avatar-link:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

#profileDialog #profileEmail {
  background: color-mix(in srgb, var(--panel), var(--border) 40%);
  color: var(--muted);
  cursor: default;
}

.board-login-gate {
  width: min(520px, calc(100vw - 32px));
  margin: 40px auto 0;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel), white 4%), var(--panel));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.board-login-gate h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.board-login-gate p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.45;
}

.board-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  /* max-width: 420px; */
  margin: 0 auto;
}

.board-login-form--secondary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.board-login-form-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.board-auth-switch {
  margin-top: 10px;
  text-align: center;
}

.board-auth-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}

.board-auth-link:hover {
  text-decoration: underline;
}

.board-login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.board-login-form input {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  max-width: 100%;
  font-weight: 400;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.board-login-form input:focus {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.board-login-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  opacity: 1;
  font-weight: 400;
}

.board-login-form .password-strength {
  margin-top: 8px;
}

.board-login-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  min-height: 48px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}



.card-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.card-creator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: color-mix(in srgb, var(--muted), transparent 22%);
}

.card-comments-count {
  align-self: flex-end;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
}

.card-creator-label {
  opacity: 0.8;
}

.card-assignee--subtle {
  font-size: 11px;
  color: inherit;
}

.avatar-dot--subtle {
  width: 18px;
  height: 18px;
  font-size: 10px;
  opacity: 1;
}

.avatar-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  background: var(--primary);
  text-transform: uppercase;
}

/* =================================
   User Badges & Autocomplete
   ================================= */
.tag-chip.user-chip {
  border-style: solid;
  background: color-mix(in srgb, var(--panel), var(--primary) 4%);
  padding-left: 4px;
}

.tag-chip.user-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), var(--primary) 15%);
  color: var(--text);
  margin-top: 4px;
}

.user-badge .avatar-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  background: var(--primary);
  text-transform: uppercase;
}

.user-input-wrapper {
  position: relative;
  width: 100%;
}

.clear-input-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  line-height: 1;
  transition: color 0.2s;
}

.clear-input-btn:hover {
  color: var(--text);
}

/* Reusing autocomplete styles from tags */
.user-input-wrapper .autocomplete-suggestions {
  display: none;
}

.user-input-wrapper .autocomplete-suggestions.show {
  display: block;
}

/* =================================
   Tags Autocomplete
   ================================= */
.tags-input-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.autocomplete-suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
  font-weight: 400;
  color: var(--text);
}

.suggestion-item:hover {
  background: var(--primary-light);
}

.suggestion-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.suggestion-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lang-tabs {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px;
  gap: 2px;
}

.lang-tab {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-tab:hover {
  background: var(--primary-light);
}

.lang-tab.active {
  background: var(--primary);
  color: #fff;
}

.lang-tab.active:hover {
  background: var(--primary);
}
/* =================================
   Card Attachments
   ================================= */
.card-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.attachment-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: zoom-in;
}

.attachment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attachment-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.attachment-item:hover .attachment-delete {
  opacity: 1;
}

.attachment-item.uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bg), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================================
   Fullscreen Viewer
   ================================= */
#lightbox {
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
  outline: none;
}

#lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lightbox .close-lightbox {
  position: absolute;
  top: -12px;
  right: 0px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  text-shadow: 0px 0px 5px #00000047;
}

/* =================================
   Editor Upload Area
   ================================= */
.editor-attachments-section {
  position: relative;
  /* margin-top: 20px; */
  /* padding-bottom: 8px; */
}

.editor-comments-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-bottom: 8px;
  /* padding-top: 4px; */
  /* border-top: 1px solid color-mix(in srgb, var(--border), transparent 20%); */
}

.editor-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  border: 1px solid var(--comment-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--panel), var(--bg) 35%);
}

.comment-item.comment-reply {
  margin-left: 20px;
  border-radius: 1px 12px 12px 12px;
}

.comment-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.comment-item-date {
  font-size: 11px;
  color: var(--muted);
}

.comment-item-actions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.comment-item-actions .btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none !important;
  opacity: 0.7;
}

.comment-item-actions .btn-link:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--primary), transparent 90%);
}

.comment-replying-to {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

.comment-item-text {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.45;
}

.comment-empty-message {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
  opacity: 0.8;
}

.comment-composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 2px;
}

#commentInput {
  flex: 1 1 auto;
  min-width: 0;
}

.comment-icon-btn {
  flex: 0 0 auto;
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.editor-attachments-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.editor-attachment {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.editor-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-attachment-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 0.95em;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.btn-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.attachment-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.attachment-hint {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.6;
  font-weight: 400;
  pointer-events: none;
}

/* =================================
   Dropzone Overlay (Subtle)
   ================================= */
.dropzone {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--primary);
  box-sizing: border-box;
}

.dropzone.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.dropzone-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(4px);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone.active .dropzone-content {
  transform: translateY(0);
}

.dropzone-icon {
  color: #fff;
  background: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 25%, transparent);
}

.dropzone-content p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  letter-spacing: -0.012em;
}

@media (max-width: 600px) {
  .attachment-hint {
    display: none;
  }
  .dropzone-content {
    gap: 8px;
  }
  .dropzone-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .dropzone-content p {
    font-size: 14px;
  }
}
