.col-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 5rem;
}

.col-stack {
  min-width: 0;
  position: relative;
}

.col-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.col-header::-webkit-details-marker {
  display: none;
}
.col-header .col-header-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-header .col-header-count {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
  flex-shrink: 0;
}
.col-header .col-header-gear {
  flex-shrink: 0;
  font-size: 0.95rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.col-header .col-header-gear:hover {
  opacity: 1;
}

.col-header-blue {
  background: #3b82f6;
  color: #fff;
}

.col-header-yellow {
  background: #f59e0b;
  color: #1f1f1f;
}

.col-header-purple {
  background: #a855f7;
  color: #fff;
}

.col-header-green {
  background: #22c55e;
  color: #fff;
}

.col-header-neutral {
  background: #e5e7eb;
  color: #374151;
}

details[open] > .col-header {
  border-radius: 10px 10px 0 0;
}

.col-body {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.col-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  position: relative;
}
.col-card.is-pinned {
  border: 2px solid #ffd700;
  background: linear-gradient(to bottom, #fffdf7 0%, rgba(255, 255, 255, 0.88) 100%);
}
.col-card.is-pending {
  border: 2px dashed #f0ad4e;
  opacity: 0.85;
}

.col-card-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-card-text {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
  word-break: break-word;
}

.col-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.col-card-media {
  margin-top: 0.4rem;
  border-radius: 8px;
  overflow: hidden;
}
.col-card-media img, .col-card-media video {
  width: 100%;
  max-height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 8px;
}
.col-card-media img {
  cursor: pointer;
}

.teacher-controls {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  gap: 0.2rem;
}
.teacher-controls button {
  background: rgba(255, 255, 255, 0.75);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  line-height: 1;
  transition: background 0.15s;
}
.teacher-controls button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.col-add-btn {
  width: 100%;
  padding: 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}
.col-add-btn:hover, .col-add-btn:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  color: #374151;
  outline: none;
}

.col-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: #d1d5db;
  font-size: 0.85rem;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.25rem 2rem;
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold;
  line-height: 0.8;
  color: #aaa;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #dc3545;
}

.char-counter {
  display: block;
  text-align: right;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

#dropZone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
#dropZone:hover, #dropZone.drag-over {
  border-color: #ffcb2b;
  background: #fffef5;
}

.col-mgmt-popover {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 0.75rem;
  min-width: 190px;
  display: none;
}
.col-mgmt-popover.open {
  display: block;
}
.col-mgmt-popover .col-rename-input {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-family: inherit;
}
.col-mgmt-popover .col-rename-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.col-mgmt-popover .col-popover-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.col-mgmt-popover .col-popover-actions button {
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: background 0.12s;
}
.col-mgmt-popover .col-popover-actions button:hover {
  background: #f3f4f6;
}
.col-mgmt-popover .col-popover-actions button.danger {
  color: #dc2626;
}
.col-mgmt-popover .col-popover-actions button.danger:hover {
  background: #fef2f2;
}

.sortable-ghost {
  opacity: 0.3;
}

.sortable-chosen {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: rotate(0.5deg);
}

@media (min-width: 600px) {
  .col-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 1rem 5rem;
    align-items: start;
  }
  .col-body {
    max-height: min(100svh - 160px, 65svh);
    overflow-y: auto;
  }
  .col-card {
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .col-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.11);
  }
  .teacher-controls {
    opacity: 0;
    transition: opacity 0.2s;
  }
  .col-card:hover .teacher-controls {
    opacity: 1;
  }
  .modal {
    align-items: center;
    padding: 1rem;
  }
  .modal-content {
    border-radius: 12px;
    max-width: 520px;
    max-height: 90svh;
    padding: 1.5rem;
    width: 100%;
  }
}
.col-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.col-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
.col-lightbox-close:hover {
  color: #ffd700;
}
.col-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.col-lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (min-width: 900px) {
  .col-board {
    grid-template-columns: repeat(var(--col-count, 3), 1fr);
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 5rem;
  }
  .col-body {
    max-height: min(100svh - 140px, 70svh);
  }
}/*# sourceMappingURL=board-columns.css.map */