/* 4ga Boards Card Cover Collapse/Expand Modes */
body[data-gno-cover="compact"] [class*="Card_cover__"],
body[data-gno-cover="compact"] [class*="ImageCell_image__"] {
  max-height: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: max-height 0.2s ease, height 0.2s ease;
}

body[data-gno-cover="hidden"] [class*="Card_cover__"],
body[data-gno-cover="hidden"] [class*="ImageCell_image__"] {
  display: none !important;
}

body [class*="Card_cover__"][data-gno-card-expanded="true"],
body [class*="ImageCell_image__"][data-gno-card-expanded="true"] {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Floating Global Toggle Button */
#gno-cover-toggle-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 155, 60, 0.45);
  background: rgba(24, 26, 32, 0.92);
  color: #f4f5f7;
  font-size: 12px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

#gno-cover-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: #c89b3c;
  background: rgba(32, 35, 44, 0.98);
}

#gno-cover-toggle-btn .gno-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c89b3c;
}

body[data-gno-cover="hidden"] #gno-cover-toggle-btn .gno-dot {
  background: #d13639;
}

body[data-gno-cover="full"] #gno-cover-toggle-btn .gno-dot {
  background: #3ecf8e;
}

/* Per-card subtle expand button on hover */
.gno-card-cover-wrap {
  position: relative;
}

.gno-card-peek-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 17, 22, 0.78);
  color: #f4f5f7;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.gno-card-cover-wrap:hover .gno-card-peek-btn {
  opacity: 1;
}

.gno-card-peek-btn:hover {
  background: #c89b3c;
  color: #0a0a0c;
  border-color: #c89b3c;
}

/* Jira-style Card & Task ID Badges */
.gno-id-badge {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 1px 6px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(200, 155, 60, 0.16);
  border: 1px solid rgba(200, 155, 60, 0.42);
  color: #e5b85c;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gno-id-badge:hover {
  background: #c89b3c;
  color: #0a0a0c;
}

.gno-id-badge-task {
  font-size: 10px;
  padding: 1px 5px;
  margin-right: 5px;
  background: rgba(108, 178, 235, 0.14);
  border-color: rgba(108, 178, 235, 0.38);
  color: #82c4f8;
}

.gno-id-badge-task:hover {
  background: #82c4f8;
  color: #0a0a0c;
}

.gno-id-badge-modal {
  font-size: 12px;
  padding: 2px 8px;
  margin-right: 8px;
}