
/* General Card Layout */
.library-card-wrapper[data-v-76309f40] {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.library-card-wrapper.is-list[data-v-76309f40] {
  height: auto;
}
.library-card-wrapper.is-dimmed[data-v-76309f40] {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.library-card-wrapper.is-dimmed[data-v-76309f40]:hover {
  opacity: 0.85;
}

/* Image Area Wrapper */
.image-area-wrapper[data-v-76309f40] {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgb(var(--v-theme-neutral-300));
}
.type-icon-fallback[data-v-76309f40] {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgb(var(--v-theme-background));
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-icon-fallback-icon[data-v-76309f40] {
  font-size: 64px;
  color: rgb(var(--v-theme-neutral-300));
}
.image-text-fallback[data-v-76309f40] {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgb(var(--v-theme-background));
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
.image-text-fallback-text[data-v-76309f40] {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgb(var(--v-theme-neutral-700));
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standard Image Display (Non-Stacked, Cropped) */
.card-image-container[data-v-76309f40] {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 4px 4px 0 0;
}
.card-image[data-v-76309f40] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.library-card-wrapper:not(.has-hover-desc):hover .card-image[data-v-76309f40] {
  transform: scale(1.05);
}
.card-image-contain[data-v-76309f40] {
  background-color: white;
}
.card-image-contain .card-image[data-v-76309f40] {
  object-fit: contain;
}
.image-description-overlay[data-v-76309f40] {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.image-description-overlay span[data-v-76309f40] {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-card-wrapper:hover .image-description-overlay[data-v-76309f40] {
  opacity: 1;
}

/* Standard Image Display (Non-Stacked, Full with Aspect Ratio) */
.full-aspect-image[data-v-76309f40] {
  border: 1px solid black;
  border-radius: 4px 4px 0 0;
  width: 100%;
}

/* Styles for Stacked Image Display: a single card in front, with the edges
 * of two more cards peeking out behind it at the top right. */
.stacked-image-container[data-v-76309f40] {
  position: relative;
  width: 100%;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  /* Room for the cards behind (they sit up and to the right). */
  padding: 14px 20px 8px 8px;
}
.stacked-front[data-v-76309f40] {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
  isolation: isolate;
  transition: transform 0.3s ease-in-out;
}
.stacked-front[data-v-76309f40]::before,
.stacked-front[data-v-76309f40]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 3px;
  background-color: rgb(var(--v-theme-neutral-200));
  border: 1px solid rgb(var(--v-theme-neutral-300));
  box-shadow: 0 1px 2px rgb(var(--v-theme-shadow-base));
}
.stacked-front[data-v-76309f40]::before {
  transform: translate(12px, -12px);
  z-index: -2;
}
.stacked-front[data-v-76309f40]::after {
  transform: translate(6px, -6px);
}
.stacked-image-top[data-v-76309f40] {
  display: block;
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  border-radius: 3px;
  background-color: rgb(var(--v-theme-background));
  border: 1px solid rgb(var(--v-theme-neutral-400));
  box-shadow:
    0 1px 3px rgb(var(--v-theme-shadow-base)),
    0 1px 2px rgb(var(--v-theme-shadow-base));
}
.library-card-wrapper:not(.has-hover-desc):hover .stacked-front[data-v-76309f40] {
  transform: scale(1.05);
}
.corner-label[data-v-76309f40] {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: white;
  background: linear-gradient(
    135deg,
    rgb(var(--v-theme-primary)),
    rgba(var(--v-theme-primary), 0.7)
  );
  box-shadow: 0 1px 2px rgba(var(--v-theme-shadow-elevated), 0.25);
  pointer-events: none;
}

/* Image Actions Overlay */
.image-actions-overlay[data-v-76309f40] {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background-color: rgba(var(--v-theme-surface), 0.9);
  border-radius: 6px;
  padding: 4px;
  box-shadow:
    0 2px 4px rgba(var(--v-theme-shadow-elevated), 0.2),
    0 1px 2px rgba(var(--v-theme-shadow-elevated), 0.15);
  display: flex;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}
.image-actions-overlay.actions-visible[data-v-76309f40] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.action-button[data-v-76309f40] {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: transparent;
  color: rgb(var(--v-theme-neutral-600));
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Action Button Hover States */
.action-button.present-hover[data-v-76309f40],
.action-button.edit-hover[data-v-76309f40],
.action-button.copy-hover[data-v-76309f40],
.action-button.settings-hover[data-v-76309f40],
.action-button.archive-hover[data-v-76309f40] {
  background-color: rgb(var(--v-theme-correct-background-light));
  color: rgb(var(--v-theme-primary));
}
.action-button.delete-hover[data-v-76309f40],
.action-button.destroy-hover[data-v-76309f40] {
  background-color: rgb(var(--v-theme-incorrect-background-light));
  color: rgb(var(--v-theme-error));
}

/* Card Content */
.line-clamp[data-v-76309f40] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-clamp-n[data-v-76309f40] {
  -webkit-line-clamp: var(--line-clamp-lines);
  line-clamp: var(--line-clamp-lines);
  /* Clip paint to the element box without forcing a fixed height. */
  overflow: hidden;
  clip-path: inset(0);
}
.v-card-title[data-v-76309f40] {
  font-size: 1rem;
  line-height: 1.4;
  white-space: normal !important;
  color: rgb(var(--v-theme-on-surface));
  word-break: break-word;
  display: flex;
  align-items: flex-start;
}
.card-title-text[data-v-76309f40] {
  min-width: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp-lines);
  line-clamp: var(--line-clamp-lines);
  overflow: hidden;
  text-overflow: ellipsis;
  contain: paint;
}
.v-card-subtitle[data-v-76309f40] {
  white-space: normal !important;
  color: rgb(var(--v-theme-on-surface));
  word-break: break-word;
  line-height: 1.4;
}
.label-append-icon[data-v-76309f40] {
  font-size: 16px;
  margin-bottom: 3px;
  color: rgb(var(--v-theme-on-surface));
}
.description-append-icon[data-v-76309f40] {
  font-size: 16px;
  margin-bottom: 3px;
  color: rgb(var(--v-theme-on-surface));
}

/* ── List Layout ────────────────────────────────────── */
.list-content-container[data-v-76309f40] {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  min-height: 50px;
}
.list-icon-section[data-v-76309f40] {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  height: 100%;
  align-self: center;
}
.list-content-section[data-v-76309f40] {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 100%;
}
.item-number[data-v-76309f40] {
  font-weight: 800;
  color: rgb(var(--v-theme-neutral-600));
}
.item-label[data-v-76309f40] {
  font-weight: 600;
  color: rgb(var(--v-theme-neutral-800));
}
.list-title-container[data-v-76309f40] {
  color: var(--v-theme-on-surface);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.list-subtitle-container[data-v-76309f40] {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: rgb(var(--v-theme-neutral-600));
}
.list-title-container + .list-subtitle-container[data-v-76309f40] {
  margin-top: 4px;
}
.list-card-markdown[data-v-76309f40] {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 0;
  padding: 0;
  height: 1.2em;
}
.list-card-markdown[data-v-76309f40] p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact list-layout override of the shared rules in styles/katex.css:
   shrink inline math and hide display math entirely so a formula never
   blows out the single-line row. */
.list-card-markdown[data-v-76309f40] .katex {
  font-size: 0.9em;
  max-height: 18px;
  vertical-align: middle;
}
.list-card-markdown[data-v-76309f40] .katex-display {
  display: none;
}
.list-action-section[data-v-76309f40] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 8px;
}

/* Phone: one full-width column, so covers keep the same 16:9 shape as the
   image cards instead of a fixed 124px strip (about 3:1 at this width). */
@media (max-width: 599px) {
.stacked-image-container[data-v-76309f40] {
    height: auto;
    aspect-ratio: 16 / 9;
}
.stacked-image-top[data-v-76309f40] {
    max-height: 150px;
}
}
