/* ══════════════════════════════
   DECKS TAB
══════════════════════════════ */
.decks-tab-wrapper {
  --main: #2966f4;
  --dark: #0a0a0a;
  --g600: #475467;
  --g500: #667085;
  --g400: #98a2b3;
  --g300: #d0d5dd;
  --g200: #eef1f5;
  --g100: #f2f4f7;
  --white: #ffffff;
  --orange: #f97316;
  --font: var(--gf-font);

  font-family: var(--gf-font);
  background: #ffffff;
  border-radius: 32px;
  color: var(--dark);
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;

  /* Fill the tab so an empty list centres in the page area under the header,
     instead of sitting at the top of its own min-height box. */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.decks-tab-wrapper > [x-component="decks/empty-states"] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* ── PAGE HEADER ── */
.decks-tab-wrapper .page-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.decks-tab-wrapper .page-header::-webkit-scrollbar {
  display: none;
}

.decks-tab-wrapper .page-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: var(--dark);
  letter-spacing: -0.4px;
  margin: 0;
  flex-shrink: 0;
}

.decks-tab-wrapper .header-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--g100);
  border-radius: 32px;
  padding: 4px;
  flex-shrink: 0;
}

.decks-tab-wrapper .tab {
  padding: 8px 20px;
  border-radius: 32px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: var(--g600);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--gf-font);
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

.decks-tab-wrapper .tab:hover {
  color: var(--dark);
}

.decks-tab-wrapper .tab.active {
  background: var(--white);
  color: var(--main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.decks-tab-wrapper .header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.decks-tab-wrapper .btn-explore {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--g200);
  border-radius: 32px;
  background: var(--white);
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: var(--dark);
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

.decks-tab-wrapper .btn-explore:hover {
  background: var(--g100);
  border-color: var(--g300);
}

.decks-tab-wrapper .btn-upload {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 32px;
  background: var(--main);
  border: none;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: var(--white);
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

.decks-tab-wrapper .btn-upload:hover {
  background: #2054cc;
  transform: translateY(-1px);
}

/* ── GRID ── */
.decks-tab-wrapper .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  row-gap: 48px;
}

/* ── DECK CARD ── */
.decks-tab-wrapper .deck-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* ── FOLDER STACK ── */
.decks-tab-wrapper .folder-stack,
.share-modal-preview-box .folder-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.decks-tab-wrapper .folder-tab-1,
.share-modal-preview-box .folder-tab-1 {
  width: 68%;
  height: 26px;
  background: #f2f4f7;
  border-radius: 16px;
  margin-bottom: -16px;
  z-index: 1;
}

.decks-tab-wrapper .folder-tab-2,
.share-modal-preview-box .folder-tab-2 {
  width: 89%;
  height: 30px;
  background: #eef1f5;
  border-radius: 16px;
  margin-bottom: -16px;
  z-index: 2;
  position: relative;
}

.decks-tab-wrapper .preview,
.share-modal-preview-box .preview {
  width: 100%;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 240ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}

.decks-tab-wrapper .deck-card:hover .preview {
  transform: translateY(-8px);
  box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.1);
}

.decks-tab-wrapper .preview-inner,
.share-modal-preview-box .preview-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--g200);
  background: var(--white);
  position: relative;
}

.decks-tab-wrapper .preview-inner img,
.share-modal-preview-box .preview-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A deck without a cover paints its category, title and description in the preview,
   and the verification badge is pinned to that same top-left corner. Start the text
   below the badge so the two never sit on top of each other, and clamp the trailing
   line so it cannot run out of the card. */
.decks-tab-wrapper .deck-preview-fallback {
  padding-top: 72px;
}

.decks-tab-wrapper .deck-preview-fallback > span:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── DECK CARD TOP ──
   The reusable deck-card component shown at the top of the deck modals
   (share, request verifiers, verifier picker, verification checkout): the
   folder stack with its layered sheets and the rounded cover. Placements scale
   it down with a transform, so proportions stay identical everywhere. */
.deck-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.deck-card-top .folder-tab-1 {
  width: 68%;
  height: 26px;
  background: #f2f4f7;
  border-radius: 16px;
  margin-bottom: -16px;
  z-index: 1;
  position: relative;
}

.deck-card-top .folder-tab-2 {
  width: 84%;
  height: 30px;
  background: #eef1f5;
  border-radius: 16px;
  margin-bottom: -16px;
  z-index: 2;
  position: relative;
}

.deck-card-top .preview {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.deck-card-top .preview-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.deck-card-top .preview-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── TOP BADGES OVERLAY ── */
.decks-tab-wrapper .badge-group,
.share-modal-preview-box .badge-group {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  width: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  z-index: 10;
}

.decks-tab-wrapper .badge-icon,
.share-modal-preview-box .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 12px 16px -4px rgba(0, 0, 0, 0.12);
}

.decks-tab-wrapper .badge-icon.verified,
.share-modal-preview-box .badge-icon.verified {
  background: rgba(41, 102, 244, 0.9);
  color: #fff;
}

.decks-tab-wrapper .badge-pill,
.share-modal-preview-box .badge-pill {
  height: auto;
  min-height: 28px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  padding: 5px 18px;
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-medium);
  color: #fff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
}

.decks-tab-wrapper .badge-pill.verified,
.share-modal-preview-box .badge-pill.verified {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(4px);
}

.decks-tab-wrapper .badge-pill.unverified,
.share-modal-preview-box .badge-pill.unverified {
  background: rgba(217, 119, 6, 0.85);
  backdrop-filter: blur(4px);
}

.decks-tab-wrapper .deck-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-left: auto;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: #17212b;
  color: #fff;
  font-size: var(--gf-text-chip);
  font-weight: var(--gf-weight-bold);
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.decks-tab-wrapper .deck-source-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #7254f5;
}

.decks-tab-wrapper .deck-source-badge.uploaded .deck-source-badge-icon {
  background: #2966f4;
}

.decks-tab-wrapper .deck-source-badge-icon svg {
  width: 14px;
  height: 14px;
}

.deck-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 5px 4px 14px;
  border: 1px solid rgba(248, 190, 66, 0.75);
  border-radius: 999px;
  background: #17212b;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(12, 20, 30, 0.18);
  white-space: nowrap;
  font-size: var(--gf-text-control);
  line-height: 1;
  font-weight: var(--gf-weight-semibold);
}

.deck-premium-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #ffd36d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deck-premium-badge strong {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffd36d;
  color: #38290c;
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-bold);
}

/* Buy action on a paid deck the viewer does not own yet. */
.decks-tab-wrapper .deck-buy-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 100px;
  background: #12b76a;
  color: #ffffff;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  text-align: center;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.decks-tab-wrapper .deck-buy-btn:hover {
  background: #0e9f5d;
}

/* ── META INFO ── */
.decks-tab-wrapper .card-meta {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.decks-tab-wrapper .meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.decks-tab-wrapper .meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.decks-tab-wrapper .title-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-width: 100%;
}

.decks-tab-wrapper .deck-title {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #0a0a0a;
  line-height: var(--gf-leading-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.decks-tab-wrapper .meta-date {
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-medium);
  color: var(--g600);
}

.decks-tab-wrapper .meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.decks-tab-wrapper .av-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  isolation: isolate;
}

.decks-tab-wrapper .mav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  margin-right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--g200);
}

.decks-tab-wrapper .mav:last-child {
  margin-right: 0;
}

.decks-tab-wrapper .mav span {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #475467;
}

.decks-tab-wrapper .more-count {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--main);
  color: var(--white);
  font-size: var(--gf-text-control);
  font-weight: var(--gf-weight-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  margin-left: -10px;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.decks-tab-wrapper button.more-count:focus-visible {
  outline: 2px solid var(--main);
  outline-offset: 2px;
}

.decks-tab-wrapper .pending-text {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  color: var(--g600);
  margin-left: 12px;
}

.decks-tab-wrapper .request-link {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: var(--main);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ── MORE MENU DROPDOWN ── */
.decks-tab-wrapper .more-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.decks-tab-wrapper .more-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  border-radius: 50%;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.decks-tab-wrapper .more-btn:hover {
  background: var(--g100);
}

.decks-tab-wrapper .dropdown-top {
  padding: 12px;
  border-bottom: 1px solid var(--g100);
}

.decks-tab-wrapper .btn-request {
  width: 100%;
  padding: 10px;
  background: var(--main);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.decks-tab-wrapper .btn-request:hover {
  opacity: 0.9;
}

.decks-tab-wrapper .founders_dashboard_collaboration_more_menu_item.danger {
  color: #ef4444;
}

.decks-tab-wrapper .founders_dashboard_collaboration_more_menu_item.danger svg {
  color: #ef4444;
}

/* ── SHARE DECK MODAL ── */
.share-deck-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.share-deck-modal {
  background: #ffffff;
  border-radius: 32px;
  width: 650px;
  max-width: 96vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0px 20px 64px -4px rgba(16, 24, 40, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.share-deck-modal::-webkit-scrollbar {
  display: none;
}

.share-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.share-modal-header h2 {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #000000;
  margin: 0;
}

.share-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f2f4f7;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.share-modal-close:hover {
  background: #e9edf2;
}

.share-modal-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.share-modal-preview-box {
  width: 100%;
  height: 160px;
  background: transparent;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-modal-preview-box .folder-stack {
  transform: scale(0.5);
  transform-origin: center center;
  pointer-events: none;
}

.share-modal-preview-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.share-modal-preview-info h3 {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  text-align: center;
  color: #0a0a0a;
  margin: 0;
}

.share-modal-preview-info p {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  text-align: center;
  color: #667085;
  margin: 0;
}

.share-modal-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.share-modal-section-header {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.share-modal-section-title {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #0a0a0a;
  margin: 0;
}

.share-modal-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.share-modal-horizontal::-webkit-scrollbar {
  display: none;
}

.share-person-gamified {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  flex-shrink: 0;
  cursor: pointer;
}

.gamified-avatar-wrap {
  width: 56px;
  height: 56px;
  position: relative;
  filter: drop-shadow(0px 4px 8px rgba(16, 24, 40, 0.06));
}

/* Star-badge shape via clip-path */
.gamified-avatar-bg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.gamified-avatar-bg.gold {
  background: linear-gradient(135deg, #fffca8, #fdb836, #f1dc83);
  clip-path: polygon(
    50% 0%,
    61% 8%,
    74% 4%,
    79% 17%,
    93% 21%,
    91% 35%,
    100% 45%,
    93% 56%,
    97% 70%,
    84% 76%,
    82% 90%,
    68% 90%,
    60% 100%,
    50% 94%,
    40% 100%,
    32% 90%,
    18% 90%,
    16% 76%,
    3% 70%,
    7% 56%,
    0% 45%,
    9% 35%,
    7% 21%,
    21% 17%,
    26% 4%,
    39% 8%
  );
}

.gamified-avatar-bg.blue {
  background: linear-gradient(135deg, #41b8fd, #0013bd, #6cc7fd);
  clip-path: polygon(
    50% 0%,
    85% 15%,
    100% 50%,
    85% 85%,
    50% 100%,
    15% 85%,
    0% 50%,
    15% 15%
  );
}

.gamified-avatar-bg.silver {
  background: linear-gradient(135deg, #c2e8fd, #919191, #dddddd);
  clip-path: polygon(
    50% 0%,
    80% 10%,
    100% 35%,
    100% 65%,
    80% 90%,
    50% 100%,
    20% 90%,
    0% 65%,
    0% 35%,
    20% 10%
  );
}

.gamified-avatar-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}

.gamified-avatar-outer {
  display: none;
}

.gamified-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.share-person-gamified span {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body-strong);
  line-height: var(--gf-leading-body-strong);
  color: #475467;
  text-align: center;
}

.share-modal-more-btn {
  width: 56px;
  height: 56px;
  background: #f2f4f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-modal-more-btn:hover {
  background: #e9edf2;
}

.share-social-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-social-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.share-copy-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  width: 100%;
  background: #f2f4f7;
  border-radius: 32px;
  cursor: pointer;
  border: none;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-copy-box:hover {
  background: #e9edf2;
}

.share-link-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-link-text {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #0a0a0a;
}

.share-copy-btn {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  text-align: center;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ── MORE VIEW STYLES ── */
.share-modal-preview.more-view {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  width: 100%;
}

.share-modal-preview.more-view .share-modal-preview-box {
  width: 110px;
  height: 76px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.share-modal-preview.more-view .share-modal-preview-box .folder-stack {
  transform: scale(0.35);
  transform-origin: center center;
}

.share-modal-preview.more-view .share-modal-preview-info {
  align-items: flex-start;
  gap: 4px;
  width: auto;
}

.share-modal-preview.more-view .share-modal-preview-info h3 {
  text-align: left;
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #0a0a0a;
}

.share-modal-preview.more-view .share-modal-preview-info p {
  text-align: left;
  font-size: var(--gf-text-body);
  color: #667085;
}

.share-search-wrapper {
  position: relative;
  width: 100%;
}

.share-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-search-input {
  width: 100%;
  background: #f2f4f7;
  border: none;
  outline: none;
  border-radius: 100px;
  padding: 14px 20px 14px 48px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #0a0a0a;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-search-input:focus {
  background: #e9edf2;
}

.share-selected-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
}

.share-selected-item {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.share-selected-item .gamified-avatar-wrap {
  width: 48px;
  height: 48px;
}

.share-selected-item .gamified-avatar-bg.gold {
  clip-path: polygon(
    50% 0%,
    61% 8%,
    74% 4%,
    79% 17%,
    93% 21%,
    91% 35%,
    100% 45%,
    93% 56%,
    97% 70%,
    84% 76%,
    82% 90%,
    68% 90%,
    60% 100%,
    50% 94%,
    40% 100%,
    32% 90%,
    18% 90%,
    16% 76%,
    3% 70%,
    7% 56%,
    0% 45%,
    9% 35%,
    7% 21%,
    21% 17%,
    26% 4%,
    39% 8%
  );
}

.share-selected-item .gamified-avatar-bg.blue {
  clip-path: polygon(
    50% 0%,
    85% 15%,
    100% 50%,
    85% 85%,
    50% 100%,
    15% 85%,
    0% 50%,
    15% 15%
  );
}

.share-selected-item .gamified-avatar-bg.silver {
  clip-path: polygon(
    50% 0%,
    80% 10%,
    100% 35%,
    100% 65%,
    80% 90%,
    50% 100%,
    20% 90%,
    0% 65%,
    0% 35%,
    20% 10%
  );
}

.share-selected-item .gamified-avatar-ring {
  inset: 4px;
}

.share-selected-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 1.5px solid #d0d5dd;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #344054;
  padding: 0;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-selected-remove:hover {
  background: #f2f4f7;
  color: #0a0a0a;
}

.share-people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 12px;
}

.share-people-list::-webkit-scrollbar {
  width: 6px;
}

.share-people-list::-webkit-scrollbar-track {
  background: transparent;
}

.share-people-list::-webkit-scrollbar-thumb {
  background: #e9edf2;
  border-radius: 99px;
}

.share-person-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 16px;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
}

.share-person-item:hover {
  background: #f9fafb;
}

.share-person-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-person-item-info h5 {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #0a0a0a;
  margin: 0;
}

.share-person-item-info span {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  color: #667085;
}

.share-person-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  color: transparent;
  flex-shrink: 0;
}

.share-person-item.is-selected .share-person-checkbox {
  border-color: #2966f4;
  background: #2966f4;
  color: #ffffff;
}

.share-person-checkbox svg {
  display: none;
}

.share-person-item.is-selected .share-person-checkbox svg {
  display: block;
}

.share-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid #f2f4f7;
  padding-top: 20px;
  margin-top: 12px;
}

.share-btn-back {
  background: #f2f4f7;
  color: #344054;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-btn-back:hover {
  background: #e9edf2;
}

.share-btn-primary {
  background: #2966f4;
  color: #ffffff;
  border-radius: 100px;
  padding: 12px 28px;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  border: none;
  cursor: pointer;
  transition:
    opacity 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-btn-primary:hover:not(:disabled) {
  background: #2054cc;
}

.decks-tab-wrapper.templates-mode {
  max-width: none;
  padding: 24px 0 40px;
  border-radius: 0;
  /* clip + small margin (instead of hidden) so card dropdowns can paint a
     little past the wrapper edge without ever bleeding far. */
  overflow: clip;
  overflow-clip-margin: 64px;
  background: #ffffff;
}

.templates-browser {
  width: 100%;
  background: #ffffff;
}

.templates-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 20px;
}

.templates-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: auto;
}

.templates-title-wrap h1 {
  margin: 0;
  color: #101828;
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  font-weight: var(--gf-weight-bold);
  letter-spacing: -0.5px;
}

.templates-back-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.templates-back-btn:hover {
  background: #e9edf2;
  color: #101828;
}

.templates-back-btn svg {
  width: 18px;
  height: 18px;
}

.templates-sort-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.templates-sort-tabs::-webkit-scrollbar,
.template-row::-webkit-scrollbar {
  display: none;
}

.templates-sort-tabs button {
  border: 0;
  background: transparent;
  color: #475467;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.templates-sort-tabs button:hover {
  color: #101828;
  background: #f2f4f7;
}

.templates-sort-tabs button.active {
  background: #eaf0ff;
  color: #2966f4;
}

.template-category-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #2966f4 #e4e7ec;
  scroll-snap-type: x proximity;
  -ms-overflow-style: auto;
}

.template-category-strip::-webkit-scrollbar {
  height: 6px;
}

.template-category-strip::-webkit-scrollbar-track {
  background: #e4e7ec;
  border-radius: 999px;
}

.template-category-strip::-webkit-scrollbar-thumb {
  background: #2966f4;
  border-radius: 999px;
}

.template-category-pill {
  min-width: auto;
  height: 64px;
  border: 0;
  border-radius: 20px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #344054;
  font-family: var(--gf-font);
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #f9fafb;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.template-category-pill:hover {
  transform: translateY(-2px);
}

.template-category-pill span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #475467;
  color: #ffffff;
  flex: 0 0 auto;
}

.template-category-pill svg {
  width: 18px;
  height: 18px;
}

.template-category-pill b {
  font-size: var(--gf-text-body);
  line-height: 1;
  font-weight: var(--gf-weight-semibold);
  letter-spacing: -0.2px;
}

.template-category-pill.all {
  background: #f2f4f7;
}

.template-category-pill.all span {
  background: #475467;
}

.template-category-pill.startups {
  background: #fde9e9;
}

.template-category-pill.startups span {
  background: #f04438;
}

.template-category-pill.business {
  background: #eaf0ff;
}

.template-category-pill.business span {
  background: #2966f4;
}

.template-category-pill.marketing {
  background: #e7f7ee;
}

.template-category-pill.marketing span {
  background: #14b86f;
}

.template-category-pill.sales {
  background: #fef2e3;
}

.template-category-pill.sales span {
  background: #fb8c00;
}

.template-category-pill.academic {
  background: #eceff7;
}

.template-category-pill.academic span {
  background: #5161af;
}

.template-category-pill.basic {
  background: #e9eaec;
}

.template-category-pill.basic span {
  background: #162437;
}

.template-category-pill.hr-tech {
  background: #f4f3ff;
}

.template-category-pill.hr-tech span {
  background: #7a5af8;
}

.template-category-pill.active {
  color: #101828;
  border-color: var(--category-accent, #2966f4);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--category-accent, #2966f4) 24%, transparent);
}

.template-category-strip > .template-category-pill:not(.all) {
  background: var(--category-tint);
}

.template-category-strip > .template-category-pill:not(.all) span {
  background: var(--category-accent);
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 2) {
  --category-tint: #fee4e2;
  --category-accent: #d92d20;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 3) {
  --category-tint: #dcfce7;
  --category-accent: #16a34a;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 4) {
  --category-tint: #dbeafe;
  --category-accent: #2563eb;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 5) {
  --category-tint: #ede9fe;
  --category-accent: #7c3aed;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 6) {
  --category-tint: #ffedd5;
  --category-accent: #ea580c;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 7) {
  --category-tint: #cffafe;
  --category-accent: #0891b2;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 8) {
  --category-tint: #fce7f3;
  --category-accent: #db2777;
}

.template-category-strip > .template-category-pill:not(.all):nth-child(8n + 9) {
  --category-tint: #ecfccb;
  --category-accent: #4d7c0f;
}

.template-section {
  padding: 0 0 24px;
}

.template-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 16px;
  color: #101828;
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  font-weight: var(--gf-weight-semibold);
}

.section-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475467;
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.section-icon.startups {
  color: #f04438;
}

.section-icon.business {
  color: #2966f4;
}

.section-icon.marketing {
  color: #14b86f;
}

.section-icon.sales {
  color: #fb8c00;
}

.section-icon.academic {
  color: #5161af;
}

.section-icon.basic {
  color: #162437;
}

.section-icon.hr-tech {
  color: #7a5af8;
}

.template-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 0 24px;
}

.template-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.template-card:hover {
  transform: translateY(-4px);
}

.template-card:hover,
.template-card:focus-within {
  position: relative;
  /* Above sibling cards' z-index:2 headline text and the fixed sidebar (z 100). */
  z-index: 110;
}

/* An opened menu always sits above every other card — even a hovered one. */
.template-card:has(.gf-menu--open) {
  position: relative;
  z-index: 120;
}

.template-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(90deg, #10244c 0 56%, #1e4e8c 56% 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    box-shadow 240ms cubic-bezier(0.2, 0, 0, 1),
    filter 240ms cubic-bezier(0.2, 0, 0, 1);
}

.template-card:hover .template-thumb {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  filter: brightness(1.04);
}

.template-premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.template-kicker {
  font-size: var(--gf-text-caption);
  line-height: 1.5;
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
  opacity: 0.86;
}

.template-headline {
  position: relative;
  z-index: 2;
  max-width: 74%;
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  font-weight: var(--gf-weight-semibold);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.template-headline em,
.template-headline span {
  color: inherit;
  font-style: italic;
}

.template-subline {
  margin-top: auto;
  max-width: 82%;
  font-size: var(--gf-text-caption);
  line-height: 1.5;
  opacity: 0.82;
}

.template-panel {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 32%;
  height: 38%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #07936b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
}

/* A template that has its own cover shows the artwork the deck actually opens on, so the card
   in the catalog, the preview and the deck in My Decks all read as the same deck. The box takes
   the slide's 16:9 shape so the artwork is never cropped. */
.template-thumb.has-cover {
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #f2f4f7;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.template-thumb.has-cover .template-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-thumb.banking {
  background: linear-gradient(90deg, #0aa071 0 60%, #e7f8ee 60%);
}

.template-thumb.banking .template-headline {
  max-width: 54%;
}

.template-thumb.certify {
  background:
    linear-gradient(90deg, rgba(108, 18, 22, 0.86), rgba(108, 18, 22, 0.42)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 90px
    ),
    #541b21;
}

.template-thumb.ecofuel {
  background: linear-gradient(90deg, #075b43 0 56%, #2c867d 56% 100%);
}

.template-thumb.ecofuel::after,
.template-thumb.mental::after,
.template-thumb.skyline::after,
.template-thumb.hire::after,
.template-thumb.zero::after {
  content: "";
  position: absolute;
  inset: 24px 16px 24px auto;
  width: 32%;
  border: 1.5px dashed currentColor;
  opacity: 0.35;
}

.template-thumb.zero {
  background: #f8faff;
  color: #0f1f35;
}

.template-thumb.zero em {
  color: #4285ff;
}

.template-thumb.nutrition {
  background: #f8f3ea;
  color: #315a1e;
}

.template-thumb.nutrition .template-headline {
  font-family: Georgia, serif;
  font-weight: var(--gf-weight-medium);
}

.template-thumb.copytrade {
  background: #0c172a;
}

.template-thumb.copytrade span {
  color: #4a8bff;
  font-style: normal;
}

.template-thumb.mental {
  background: linear-gradient(90deg, #10695f 0 52%, #188779 52%);
}

.template-thumb.mental em {
  color: #ff9b2d;
}

.template-thumb.skyline {
  background: linear-gradient(90deg, #1d416c 0 56%, #0b2743 56%);
}

.template-thumb.skyline .template-headline {
  font-family: Georgia, serif;
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
}

.template-thumb.hire {
  background: linear-gradient(90deg, #ff6336 0 50%, #f5e9d6 50%);
}

.template-thumb.hire .template-headline {
  max-width: 44%;
}

.template-thumb.research {
  background: linear-gradient(90deg, #3b2f7e 0 56%, #6c5ce7 56%);
}

.template-thumb.board-pack {
  background: linear-gradient(90deg, #0b2743 0 55%, #1d416c 55%);
}

.template-thumb.enterprise-sales {
  background: linear-gradient(90deg, #1546a0 0 52%, #2f7cf6 52%);
}

.template-thumb.partnership {
  background: linear-gradient(90deg, #0e5e6f 0 56%, #15a3b8 56%);
}

.template-thumb.hiring-plan {
  background: linear-gradient(90deg, #4c1d95 0 54%, #7a5af8 54%);
}

.template-thumb.launch-blueprint {
  background: linear-gradient(90deg, #b4470f 0 56%, #f97316 56%);
}

.template-thumb.accelerator {
  background: linear-gradient(90deg, #a8192c 0 52%, #f04438 52%);
}

.template-thumb.seed-pitch {
  background: linear-gradient(90deg, #065f46 0 58%, #12b76a 58%);
}

.template-thumb.series-a {
  background: linear-gradient(90deg, #0f172a 0 56%, #334155 56%);
}

.template-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  color: #475467;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  padding: 0 4px;
}

.template-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.template-stats svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #475467;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-stats b {
  font-weight: var(--gf-weight-medium);
}

/* Host for the shared dropdown-menu component (components/dropdown-menu/menu.html) —
   template cards use the same trigger icon + panel as the deck cards. */
.template-more-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.no-templates-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background: #ffffff;
  border: 1.5px dashed #e9edf2;
  border-radius: 24px;
  margin: 32px 24px;
}

.no-templates-placeholder svg {
  width: 48px;
  height: 48px;
  color: #98a2b3;
  margin-bottom: 16px;
}

.no-templates-placeholder h3 {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0 0 8px 0;
}

.no-templates-placeholder p {
  font-size: var(--gf-text-body);
  color: #667085;
  margin: 0;
  max-width: 320px;
}

@media (max-width: 1400px) {
  .template-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .templates-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .templates-title-wrap h1 {
    font-size: var(--gf-text-section);
  }

  .templates-sort-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .template-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .template-row {
    grid-template-columns: 1fr;
  }
}

/* ── RESPONSIVE ── */

/* Founder My Decks view */
.founders_dashboard_deals_body .decks-tab-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.founders_dashboard_deals_body .decks-tab-wrapper .page-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 0 30px;
  overflow: visible;
}

.founders_dashboard_deals_body .decks-tab-wrapper .page-title {
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  letter-spacing: 0;
}

.founders_dashboard_deals_body .decks-tab-wrapper .header-center {
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.founders_dashboard_deals_body .decks-tab-wrapper .tab {
  min-height: 40px;
  padding: 8px 20px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #101828;
}

.founders_dashboard_deals_body .decks-tab-wrapper .tab.active {
  background: #edf2ff;
  color: #2966f4;
  box-shadow: none;
}

.founders_dashboard_deals_body .decks-tab-wrapper .header-actions {
  justify-self: end;
  gap: 12px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .btn-explore,
.founders_dashboard_deals_body .decks-tab-wrapper .btn-upload {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
}

.founders_dashboard_deals_body .decks-tab-wrapper .btn-explore {
  background: #f2f4f7;
}

.founders_dashboard_deals_body .decks-tab-wrapper .btn-upload:disabled {
  cursor: wait;
  opacity: 0.7;
}

.founders_dashboard_deals_body .decks-tab-wrapper .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 48px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .deck-card {
  min-width: 0;
  align-items: stretch;
}

.founders_dashboard_deals_body .decks-tab-wrapper .folder-tab-1 {
  width: 68%;
  height: 22px;
  margin-bottom: -13px;
  border-radius: 12px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .folder-tab-2 {
  width: 84%;
  height: 24px;
  margin-bottom: -14px;
  border-radius: 12px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .preview,
.founders_dashboard_deals_body .decks-tab-wrapper .preview-inner {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .preview {
  box-shadow: none;
}

.founders_dashboard_deals_body .decks-tab-wrapper .deck-card:hover .preview {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.founders_dashboard_deals_body .decks-tab-wrapper .preview-inner img {
  object-fit: cover;
  object-position: center;
}

.founders_dashboard_deals_body
  .decks-tab-wrapper
  .preview-inner
  > div:not(.badge-group)
  span {
  font-size: var(--gf-text-body) !important;
  line-height: var(--gf-leading-body) !important;
}

.founders_dashboard_deals_body .decks-tab-wrapper .badge-group {
  top: 12px;
  left: 12px;
  align-items: center;
  gap: 8px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .badge-icon {
  width: 40px;
  height: 40px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .badge-pill {
  min-height: 32px;
  height: auto;
  padding: 6px 18px;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.founders_dashboard_deals_body .decks-tab-wrapper .card-meta {
  gap: 8px;
  padding: 12px 12px 0;
}

.founders_dashboard_deals_body .decks-tab-wrapper .title-col {
  min-width: 0;
  gap: 4px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .deck-title,
.founders_dashboard_deals_body .decks-tab-wrapper .meta-date,
.founders_dashboard_deals_body .decks-tab-wrapper .pending-text,
.founders_dashboard_deals_body .decks-tab-wrapper .request-link,
.founders_dashboard_deals_body .decks-tab-wrapper .more-count,
.founders_dashboard_deals_body .decks-tab-wrapper .mav {
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.founders_dashboard_deals_body .decks-tab-wrapper .deck-title {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: var(--gf-weight-medium);
}

.founders_dashboard_deals_body .decks-tab-wrapper .meta-date {
  font-weight: var(--gf-weight-regular);
}

.founders_dashboard_deals_body .decks-tab-wrapper .meta-bottom {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 12px;
}

.founders_dashboard_deals_body .decks-tab-wrapper .pending-text {
  margin-left: 0;
}

.founders_dashboard_deals_body .decks-tab-wrapper .mav,
.founders_dashboard_deals_body .decks-tab-wrapper .more-count {
  width: 28px;
  height: 28px;
  min-width: 28px;
  overflow: hidden;
  font-size: var(--gf-text-body);
  line-height: 1;
}

.founders_dashboard_deals_body .decks-tab-wrapper .mav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
}

.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state h2,
.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state p {
  margin: 0;
}

.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state h2 {
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
}

.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state p,
.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state button {
  font: inherit;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.founders_dashboard_deals_body .decks-tab-wrapper .decks-status-state button {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #2966f4;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .founders_dashboard_deals_body .decks-tab-wrapper .page-header {
    grid-template-columns: 1fr auto;
  }

  .founders_dashboard_deals_body .decks-tab-wrapper .header-center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .founders_dashboard_deals_body .decks-tab-wrapper .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .founders_dashboard_deals_body .decks-tab-wrapper .page-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .founders_dashboard_deals_body .decks-tab-wrapper .header-center,
  .founders_dashboard_deals_body .decks-tab-wrapper .header-actions {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .founders_dashboard_deals_body .decks-tab-wrapper .grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

/* ── VERIFIERS MODAL ── */
.deck-verifiers-modal {
  max-width: 480px;
}

.deck-verifiers-subtitle {
  margin: -8px 0 16px;
  color: #475467;
  font-size: var(--gf-text-body);
}

.deck-verifiers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
}

.deck-verifier-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 16px;
}

.deck-verifier-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--g200, #eef1f5);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #475467;
  flex: 0 0 auto;
}

.deck-verifier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-verifier-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.deck-verifier-name {
  color: #101828;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
}

.deck-verifier-date {
  color: #667085;
  font-size: var(--gf-text-caption);
}

.deck-verifier-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  flex: 0 0 auto;
}

.deck-verifier-status.pending {
  background: #fef2e3;
  color: #b54708;
}

.deck-verifier-status.approved {
  background: #ecfdf3;
  color: #027a48;
}

.deck-verifier-status.rejected {
  background: #fef3f2;
  color: #b42318;
}

.deck-verifiers-modal .gf-empty-host {
  min-height: 200px;
  flex: 0 0 auto;
}

.btn-founder-earnings {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 24px;
  background: var(--g100);
  color: #344054;
  font: inherit;
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

.deck-upload-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(40, 86, 164, .28);
  backdrop-filter: blur(8px);
  overflow: auto;
  box-sizing: border-box;
}

.deck-upload-modal {
  display: flex;
  flex-direction: column;
  width: min(1004px, 100%);
  max-height: min(850px, calc(100dvh - 40px));
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, .2);
  color: #101828;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
}

.deck-upload-header { display: flex; align-items: center; gap: 18px; padding: 30px 36px 18px; }
.deck-upload-heading-icon { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 16px; background: #3f6ef5; color: #fff; box-shadow: 0 8px 20px rgba(41, 102, 244, .24); }
.deck-upload-heading-icon svg { width: 24px; height: 24px; }
.deck-upload-heading-copy { min-width: 0; }
.deck-upload-header h2 { margin: 0 0 4px; color: #101828; font-size: var(--gf-text-section); line-height: 1.2; font-weight: var(--gf-weight-bold); }
.deck-upload-header p { margin: 0; color: #667085; font-size: var(--gf-text-body); line-height: 1.45; }
.deck-upload-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 50%; background: #f2f4f7; color: #475467; font-size: 26px; line-height: 1; cursor: pointer; }
.deck-upload-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.deck-upload-fields { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 30px 36px; min-height: 0; padding: 10px 36px 30px; overflow-y: auto; }
.deck-upload-column { display: flex; min-width: 0; flex-direction: column; gap: 22px; }
.deck-upload-field { display: flex; min-width: 0; flex-direction: column; gap: 9px; color: #101828; font-size: var(--gf-text-body); line-height: 1.35; font-weight: var(--gf-weight-semibold); }
.deck-upload-field > span:first-child { min-height: 22px; }
.deck-upload-field .deck-upload-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deck-upload-field .deck-upload-label-row small { color: #98a2b3; font-size: var(--gf-text-body); }
.deck-upload-field input[type="text"], .deck-upload-field textarea, .deck-upload-price input { width: 100%; min-height: 54px; padding: 14px 18px; border: 1px solid transparent; border-radius: 17px; background: #f2f3f6; color: #101828; font-family: var(--gf-font); font-size: var(--gf-text-body); line-height: 1.4; font-weight: var(--gf-weight-regular); box-sizing: border-box; }
.deck-upload-field input[type="text"]:focus, .deck-upload-field textarea:focus, .deck-upload-price input:focus { border-color: #2966f4; outline: 3px solid rgba(41, 102, 244, .12); }
.deck-upload-field textarea { min-height: 120px; resize: vertical; }
.deck-upload-field input::placeholder, .deck-upload-field textarea::placeholder { color: #667085; opacity: 1; }
.deck-upload-dropzone { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 10px; min-height: 137px; padding: 18px; border: 1px dashed #94adff; border-radius: 18px; background: #f5f7ff; text-align: center; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.deck-upload-dropzone:hover, .deck-upload-dropzone:focus-within { border-color: #2966f4; background: #f3f6ff; }
.deck-upload-file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #fff; color: #2966f4; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.deck-upload-file-icon svg { width: 22px; height: 22px; }
.deck-upload-file-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; align-items: center; }
.deck-upload-file-copy strong { max-width: 100%; overflow-wrap: anywhere; color: #101828; font-weight: var(--gf-weight-semibold); }
.deck-upload-file-copy small, .deck-upload-field small { color: #667085; font-size: var(--gf-text-body); line-height: 1.4; font-weight: var(--gf-weight-regular); }
.deck-upload-browse { color: #2966f4; }
.deck-upload-dropzone input, .deck-cover-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.deck-upload-category-control { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 12px; border: 1px solid transparent; border-radius: 17px; background: #f2f3f6; box-sizing: border-box; }
.deck-upload-category-control:focus-within { border-color: #2966f4; outline: 3px solid rgba(41, 102, 244, .12); }
.deck-upload-category-pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 38px; padding: 4px 8px 4px 14px; border: 1px solid #b8c9ff; border-radius: 999px; background: #eaf0ff; color: #234cbd; font-size: var(--gf-text-body); line-height: 1.25; font-weight: var(--gf-weight-medium); }
.deck-upload-category-pill button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #536078; font: inherit; cursor: pointer; }
.deck-upload-category-control input { min-width: 90px; min-height: 38px; flex: 1 1 auto; border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0 !important; }
.deck-upload-suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; color: #667085; font-size: var(--gf-text-body); font-weight: var(--gf-weight-regular); }
.deck-upload-suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.deck-upload-suggestion-list button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border: 1px solid #d6deee; border-radius: 999px; background: #fff; color: #475467; font: inherit; font-size: var(--gf-text-body); font-weight: var(--gf-weight-medium); cursor: pointer; transition: border-color 140ms ease, background 140ms ease, color 140ms ease; }
.deck-upload-suggestion-list button > span:first-child { color: #2966f4; font-weight: var(--gf-weight-bold); }
.deck-upload-suggestion-list button:hover, .deck-upload-suggestion-list button.is-selected { border-color: #b8c9ff; background: #f2f5ff; color: #234cbd; }
.deck-cover-picker { display: flex; align-items: center; gap: 16px; }
.deck-cover-preview { position: relative; display: grid; place-items: center; width: 168px; aspect-ratio: 16 / 9; flex: 0 0 auto; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 16px; background: linear-gradient(135deg, #3b8177, #225a63); color: #fff; font-size: var(--gf-text-body); line-height: 1.3; text-align: center; }
.deck-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.deck-cover-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-weight: var(--gf-weight-semibold); }
.deck-cover-placeholder svg { display: none; }
.deck-cover-auto { position: absolute; top: 8px; right: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .24); color: #fff; font-size: var(--gf-text-body); font-weight: var(--gf-weight-bold); }
.deck-cover-actions { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 9px; }
.deck-cover-button, .deck-cover-remove { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #d6deee; border-radius: 999px; background: #fff; color: #101828; font: inherit; font-size: var(--gf-text-body); font-weight: var(--gf-weight-semibold); white-space: nowrap; cursor: pointer; }
.deck-cover-button:hover, .deck-cover-remove:hover { border-color: #2966f4; color: #234cbd; }
.deck-cover-actions small { color: #667085; font-size: var(--gf-text-body); line-height: 1.4; font-weight: var(--gf-weight-regular); }
.deck-upload-segmented { display: flex; gap: 8px; padding: 4px; border-radius: 24px; background: #f2f4f7; }
.deck-upload-segmented button { min-height: 38px; flex: 1; border: 0; border-radius: 20px; background: transparent; color: #667085; font: inherit; font-weight: var(--gf-weight-semibold); cursor: pointer; }
.deck-upload-segmented button.is-selected { background: #fff; color: #2966f4; box-shadow: 0 1px 3px #1018281a; }
.deck-upload-options { margin: 0; padding: 0; border: 0; }
.deck-upload-options legend { margin-bottom: 8px; color: #344054; font-size: var(--gf-text-caption); font-weight: var(--gf-weight-semibold); }
.deck-upload-toggle { display: flex; align-items: center; gap: 9px; min-height: 38px; color: #344054; font-weight: var(--gf-weight-regular); }
.deck-upload-toggle input { width: 17px; height: 17px; accent-color: #2966f4; }
.deck-upload-price { display: grid; grid-template-columns: auto minmax(0, 190px); align-items: center; gap: 8px; margin: 6px 0; }
.deck-upload-price > span { color: #667085; }
.deck-upload-price small { grid-column: 2; }
.deck-upload-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 36px 20px; border-top: 1px solid #eaecf0; background: #fafbfe; }
.deck-upload-footer > p { margin: 0; color: #667085; font-size: var(--gf-text-body); line-height: 1.4; font-weight: var(--gf-weight-regular); }
.deck-upload-footer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.deck-upload-footer button { min-width: 116px; min-height: 56px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: var(--gf-text-body); font-weight: var(--gf-weight-semibold); cursor: pointer; }
.deck-upload-cancel { border: 1px solid #d6deee; background: #fff; color: #101828; }
.deck-upload-save { border: 0; background: #2966f4; color: #fff; }
.deck-upload-footer button:disabled, .deck-upload-close:disabled { opacity: .55; cursor: not-allowed; }
.founder-earnings-close { width: 40px; height: 40px; border: 1px solid #eaecf0; border-radius: 50%; background: #fff; color: #667085; font-size: var(--gf-text-title-card); cursor: pointer; }
.founder-earnings-period { min-height: 40px; margin-left: auto; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 22px; background: #fff; color: #344054; font: inherit; }
.founder-earnings-balance { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: #2966f4; color: #fff; }
.founder-earnings-balance strong { font-size: var(--gf-text-section); }
.founder-earnings-total { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; color: #667085; }
.founder-earnings-total strong { color: #101828; font-size: var(--gf-text-title-card); }
.founder-earnings-withdraw { min-height: 42px; padding: 0 14px; border: 0; border-radius: 22px; background: #101828; color: #fff; font: inherit; font-weight: var(--gf-weight-semibold); cursor: pointer; }
.founder-earnings-withdraw:disabled { opacity: .5; cursor: not-allowed; }
.founder-earnings-stat { display: flex; justify-content: space-between; gap: 12px; color: #667085; }
.founder-earnings-stat strong { color: #101828; }
.founder-earnings-summary-error { margin: 0; color: #b42318; font-size: var(--gf-text-caption); line-height: 1.4; }
.founder-earnings-link { margin-top: auto; color: #2966f4; font-weight: var(--gf-weight-semibold); text-decoration: none; }
.founder-earnings-error { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #667085; text-align: center; }
.founder-earnings-error button { padding: 10px 16px; border: 0; border-radius: 22px; background: #2966f4; color: #fff; cursor: pointer; }

@media (max-width: 800px) {
  .deck-upload-backdrop { padding: 14px; }
  .deck-upload-modal { max-height: calc(100dvh - 28px); border-radius: 24px; }
  .deck-upload-header { padding: 22px 24px 16px; }
  .deck-upload-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 10px 24px 24px; }
  .deck-upload-footer { padding: 16px 24px 18px; }
  .earnings-modal-layout { grid-template-columns: minmax(0, 1fr); }
  .earnings-modal-chart { height: 340px; }
  .earnings-summary-panel { height: auto; }
}

@media (max-width: 520px) {
  .deck-upload-backdrop { padding: 8px; }
  .deck-upload-modal { max-height: calc(100dvh - 16px); border-radius: 20px; }
  .deck-upload-header { gap: 12px; padding: 20px 18px 14px; }
  .deck-upload-heading-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .deck-upload-header h2 { font-size: var(--gf-text-card); }
  .deck-upload-fields { gap: 18px; padding: 8px 18px 20px; }
  .deck-cover-picker { align-items: flex-start; gap: 12px; }
  .deck-cover-preview { width: min(40%, 148px); }
  .deck-cover-actions { flex: 1 1 auto; }
  .deck-cover-button, .deck-cover-remove { min-height: 42px; padding-inline: 13px; white-space: normal; text-align: center; }
  .deck-upload-footer { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px 18px 18px; }
  .deck-upload-footer-actions { justify-content: flex-end; }
  .deck-upload-footer-actions button { min-height: 50px; }
}

/* The single-slide fallback rail shows the deck's own cover. The themed swatch stays as the
   last resort for a deck with no artwork at all, but a real cover must never be replaced by it:
   the swatch is coloured from an older theme vocabulary, so most decks fell back to the same
   navy rectangle and the one thumbnail on screen contradicted the slide beside it. */
.template-thumb.template-thumb--cover {
  padding: 0;
  object-fit: cover;
  display: block;
  background: #eef2f6;
}

/* ── AI deck reviews ─────────────────────────────────────────────────────────── */
/* Lives inside the My Decks header: reviews are about these decks, so the tab sits beside the
   deck filters rather than in the sidebar. */
/* Sits inside the pill-shaped header group, so it only needs to lay its own buttons out. */
.decks-tab-wrapper .deck-filter-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.decks-tab-wrapper .deck-ai-review-tab {
  position: relative;
}

.decks-tab-wrapper .deck-ai-review-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: #3366e8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.decks-tab-wrapper .ai-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 32px;
}

.decks-tab-wrapper .ai-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.decks-tab-wrapper .ai-reviews-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #101828;
}

.decks-tab-wrapper .ai-reviews-sub {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: #667085;
}

.decks-tab-wrapper .ai-reviews-refresh {
  flex: none;
  padding: 8px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
}

.decks-tab-wrapper .ai-reviews-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}

.decks-tab-wrapper .ai-reviews-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  font-size: 13px;
}

.decks-tab-wrapper .ai-reviews-empty {
  padding: 40px 24px;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  text-align: center;
}

.decks-tab-wrapper .ai-reviews-empty-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #101828;
}

.decks-tab-wrapper .ai-reviews-empty-copy {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.55;
  color: #667085;
}

.decks-tab-wrapper .ai-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decks-tab-wrapper .ai-review {
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.decks-tab-wrapper .ai-review.is-open {
  border-color: #c7d7fe;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.decks-tab-wrapper .ai-review-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.decks-tab-wrapper .ai-review-deck {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.decks-tab-wrapper .ai-review-deck-title {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decks-tab-wrapper .ai-review-deck-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #667085;
}

.decks-tab-wrapper .ai-review-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f7;
  color: #475467;
}

.decks-tab-wrapper .ai-review-status.is-pending {
  background: #eef4ff;
  color: #2a5bd7;
}

.decks-tab-wrapper .ai-review-status.is-ready {
  background: #ecfdf3;
  color: #027a48;
}

.decks-tab-wrapper .ai-review-status.is-failed {
  background: #fef3f2;
  color: #b42318;
}

.decks-tab-wrapper .ai-review-score {
  font-variant-numeric: tabular-nums;
}

.decks-tab-wrapper .ai-review-chevron {
  flex: none;
  color: #98a2b3;
  transition: transform 0.15s ease;
}

.decks-tab-wrapper .ai-review.is-open .ai-review-chevron {
  transform: rotate(180deg);
}

.decks-tab-wrapper .ai-review-body {
  padding: 0 16px 16px;
  border-top: 1px solid #f2f4f7;
}

.decks-tab-wrapper .ai-review-pending,
.decks-tab-wrapper .ai-review-failed {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.decks-tab-wrapper .ai-review-pending {
  color: #475467;
}

.decks-tab-wrapper .ai-review-failed {
  color: #b42318;
}

.decks-tab-wrapper .ai-review-verdict {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #101828;
}

.decks-tab-wrapper .ai-review-summary {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475467;
}

.decks-tab-wrapper .ai-review-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.decks-tab-wrapper .ai-review-dimension-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}

.decks-tab-wrapper .ai-review-meter {
  height: 6px;
  margin: 6px 0 6px;
  border-radius: 3px;
  background: #f2f4f7;
  overflow: hidden;
}

.decks-tab-wrapper .ai-review-meter > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #98a2b3;
}

.decks-tab-wrapper .ai-review-meter > span.is-strong,
.decks-tab-wrapper .ai-review-dimension-head .is-strong {
  background: #12b76a;
  color: #027a48;
}

.decks-tab-wrapper .ai-review-meter > span.is-fair,
.decks-tab-wrapper .ai-review-dimension-head .is-fair {
  background: #f79009;
  color: #b54708;
}

.decks-tab-wrapper .ai-review-meter > span.is-weak,
.decks-tab-wrapper .ai-review-dimension-head .is-weak {
  background: #f04438;
  color: #b42318;
}

.decks-tab-wrapper .ai-review-dimension-comment {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #667085;
}

.decks-tab-wrapper .ai-review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .decks-tab-wrapper .ai-review-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.decks-tab-wrapper .ai-review-column-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}

.decks-tab-wrapper .ai-review-strengths,
.decks-tab-wrapper .ai-review-improvements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decks-tab-wrapper .ai-review-strengths li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #344054;
}

.decks-tab-wrapper .ai-review-strengths li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #12b76a;
  font-weight: 700;
}

.decks-tab-wrapper .ai-review-improvements li {
  padding: 10px 12px;
  border: 1px solid #eaecf0;
  border-left: 3px solid #98a2b3;
  border-radius: 10px;
  background: #fcfcfd;
}

.decks-tab-wrapper .ai-review-improvements li.is-high {
  border-left-color: #f04438;
}

.decks-tab-wrapper .ai-review-improvements li.is-medium {
  border-left-color: #f79009;
}

.decks-tab-wrapper .ai-review-improvements li.is-low {
  border-left-color: #12b76a;
}

.decks-tab-wrapper .ai-review-improvement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.decks-tab-wrapper .ai-review-improvement-title {
  font-size: 13px;
  font-weight: 600;
  color: #101828;
}

.decks-tab-wrapper .ai-review-improvement-slide {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: #667085;
}

.decks-tab-wrapper .ai-review-improvement-detail {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #475467;
}

.decks-tab-wrapper .ai-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #f2f4f7;
}

.decks-tab-wrapper .ai-review-open-deck {
  font-size: 13px;
  font-weight: 600;
  color: #2a5bd7;
  text-decoration: none;
}

.decks-tab-wrapper .ai-review-open-deck:hover {
  text-decoration: underline;
}

.decks-tab-wrapper .ai-review-credits {
  font-size: 12px;
  color: #667085;
}
