/* Keeper's Library is isolated to /rebrand. The current /app Why and Break remain untouched. */
html.ke-rebrand-mode #t-library { display: flex !important; }
html.ke-rebrand-mode #t-why,
html.ke-rebrand-mode #t-break { display: none !important; }
html.ke-rebrand-mode #scr-library.active { display: flex !important; }

html.ke-rebrand-mode #scr-library {
  --kl-navy: #1a2830;
  --kl-navy-soft: #263944;
  --kl-burgundy: #6d3346;
  --kl-gold: #c8a558;
  --kl-gold-light: #e9ba61;
  --kl-sage: #829888;
  --kl-cream: #f7f1e8;
  --kl-paper: #fffdf9;
  --kl-ink: #1f2c32;
  --kl-muted: #69757a;
  background: #fff !important;
  color: var(--kl-ink) !important;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 42px;
  transform: none !important;
}

html.ke-rebrand-mode #scr-library *,
html.ke-rebrand-mode #scr-library *::before,
html.ke-rebrand-mode #scr-library *::after { box-sizing: border-box; }
html.ke-rebrand-mode #scr-library button,
html.ke-rebrand-mode #scr-library input { font: inherit; }

html.ke-rebrand-mode .ke-library-header {
  align-items: center;
  background: var(--kl-navy);
  border-bottom: 1px solid rgba(233,186,97,.2);
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(16px,4vw,40px);
  position: sticky;
  top: 0;
  z-index: 30;
}
html.ke-rebrand-mode .ke-library-brand,
html.ke-rebrand-mode .ke-library-header-actions { align-items: center; display: flex; }
html.ke-rebrand-mode .ke-library-brand { gap: 11px; min-width: 0; }
html.ke-rebrand-mode .ke-library-brand img { flex: 0 0 43px; height: 43px; object-fit: contain; width: 43px; }
html.ke-rebrand-mode .ke-library-brand div,
html.ke-rebrand-mode .ke-library-brand span,
html.ke-rebrand-mode .ke-library-brand strong { display: block; min-width: 0; }
html.ke-rebrand-mode .ke-library-brand span { color: var(--kl-gold-light); font-size: 8px; font-weight: 900; letter-spacing: 1.1px; line-height: 1; }
html.ke-rebrand-mode .ke-library-brand strong { color: #fff; font-family: 'Playfair Display',serif; font-size: 19px; line-height: 1.08; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ke-rebrand-mode .ke-library-header-actions { gap: 9px; }
html.ke-rebrand-mode .ke-library-flame {
  align-items: center;
  background: var(--kl-cream);
  border: 1px solid rgba(233,186,97,.62);
  border-radius: 999px;
  color: var(--kl-burgundy);
  display: inline-flex;
  gap: 6px;
  height: 34px;
  justify-content: center;
  min-width: 56px;
  padding: 0 11px;
}
html.ke-rebrand-mode .ke-library-flame svg { fill: var(--kl-gold); height: 17px; width: 14px; }
html.ke-rebrand-mode .ke-library-flame circle { fill: var(--kl-cream); }
html.ke-rebrand-mode .ke-library-flame strong { color: var(--kl-burgundy); font-size: 12px; font-weight: 900; }
html.ke-rebrand-mode .ke-library-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(233,186,97,.32);
  border-radius: 50%;
  color: var(--kl-gold-light);
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 38px;
}
html.ke-rebrand-mode .ke-library-icon-button svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
html.ke-rebrand-mode .ke-library-icon-button .notif-badge-shared { align-items: center; background: var(--kl-gold-light); border-radius: 8px; color: var(--kl-navy); display: none; font-size: 9px; font-weight: 800; height: 16px; justify-content: center; min-width: 16px; padding: 0 4px; position: absolute; right: -4px; top: -4px; }

html.ke-rebrand-mode .ke-library-main { margin: 0 auto; max-width: 1120px; padding: clamp(22px,3.5vw,42px) clamp(16px,4vw,40px) 64px; width: 100%; }
html.ke-rebrand-mode .ke-library-intro { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 24px; }
html.ke-rebrand-mode .ke-library-eyebrow { color: var(--kl-burgundy) !important; display: block; font-size: 9px; font-weight: 900; letter-spacing: 1.25px; line-height: 1.25; text-transform: uppercase; }
html.ke-rebrand-mode .ke-library-eyebrow.is-gold { color: #9f7624 !important; }
html.ke-rebrand-mode .ke-library-eyebrow.is-mauve { color: var(--kl-burgundy) !important; }
html.ke-rebrand-mode .ke-library-eyebrow.is-blue { color: #49677a !important; }
html.ke-rebrand-mode .ke-library-intro h1 { color: var(--kl-navy) !important; font-family: 'Playfair Display',serif; font-size: clamp(36px,5vw,62px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 8px 0 10px; }
html.ke-rebrand-mode .ke-library-intro p { color: #886b62 !important; font-family: 'Cormorant Garamond',serif; font-size: clamp(17px,2vw,21px); font-style: italic; line-height: 1.35; margin: 0; max-width: 680px; }
html.ke-rebrand-mode .ke-library-list-shortcut { align-items: center; background: var(--kl-cream); border: 1px solid rgba(200,165,88,.6); border-radius: 18px; color: var(--kl-navy); cursor: pointer; display: flex; flex: 0 0 auto; gap: 10px; min-width: 132px; padding: 12px 15px; text-align: left; }
html.ke-rebrand-mode .ke-library-list-shortcut > span:first-child { align-items: center; background: var(--kl-gold-light); border-radius: 50%; display: flex; font-size: 19px; height: 30px; justify-content: center; line-height: 1; width: 30px; }
html.ke-rebrand-mode .ke-library-list-shortcut strong,
html.ke-rebrand-mode .ke-library-list-shortcut small { display: block; }
html.ke-rebrand-mode .ke-library-list-shortcut strong { color: var(--kl-navy); font-size: 12px; }
html.ke-rebrand-mode .ke-library-list-shortcut small { color: var(--kl-muted); font-size: 9px; margin-top: 2px; }
html.ke-rebrand-mode .ke-library-list-shortcut[aria-pressed="true"] { background: var(--kl-burgundy); color: #fff; }
html.ke-rebrand-mode .ke-library-list-shortcut[aria-pressed="true"] strong,
html.ke-rebrand-mode .ke-library-list-shortcut[aria-pressed="true"] small { color: #fff; }

html.ke-rebrand-mode .ke-library-search { align-items: center; background: var(--kl-paper); border: 1px solid rgba(109,51,70,.5); border-radius: 16px; display: flex; gap: 10px; margin-bottom: 18px; min-height: 52px; padding: 0 14px; position: relative; }
html.ke-rebrand-mode .ke-library-search:focus-within { border-color: var(--kl-burgundy); box-shadow: 0 0 0 3px rgba(109,51,70,.1); }
html.ke-rebrand-mode .ke-library-search svg { fill: none; flex: 0 0 20px; height: 20px; stroke: var(--kl-burgundy); stroke-linecap: round; stroke-width: 1.8; width: 20px; }
html.ke-rebrand-mode .ke-library-search input { background: transparent; border: 0; color: var(--kl-ink); flex: 1; font-size: 13px; min-width: 0; outline: 0; padding: 0; }
html.ke-rebrand-mode .ke-library-search input::placeholder { color: #8a9296; opacity: 1; }
html.ke-rebrand-mode .ke-library-search button { background: transparent; border: 0; color: var(--kl-burgundy); cursor: pointer; font-size: 24px; line-height: 1; padding: 4px; }
html.ke-rebrand-mode .ke-library-search button[hidden] { display: none; }

html.ke-rebrand-mode .ke-library-filters { margin-bottom: 24px; }
html.ke-rebrand-mode .ke-library-filter-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 9px; }
html.ke-rebrand-mode .ke-library-filter-heading span { color: var(--kl-navy); font-size: 10px; font-weight: 900; letter-spacing: .55px; text-transform: uppercase; }
html.ke-rebrand-mode .ke-library-filter-heading button { background: transparent; border: 0; color: var(--kl-burgundy); cursor: pointer; font-size: 10px; font-weight: 800; }
html.ke-rebrand-mode .ke-library-filter-heading button[hidden] { display: none; }
html.ke-rebrand-mode .ke-library-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: none; }
html.ke-rebrand-mode .ke-library-filter-row::-webkit-scrollbar { display: none; }
html.ke-rebrand-mode .ke-library-filter-row button { align-items: center; background: #fff; border: 1px solid rgba(109,51,70,.22); border-radius: 999px; color: var(--kl-navy); cursor: pointer; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 800; gap: 6px; min-height: 36px; padding: 8px 13px; white-space: nowrap; }
html.ke-rebrand-mode .ke-library-filter-row button.is-active { background: var(--kl-burgundy); border-color: var(--kl-burgundy); color: #fff; box-shadow: 0 7px 18px rgba(109,51,70,.18); }
html.ke-rebrand-mode .ke-library-filter-row i { border-radius: 50%; display: block; height: 7px; width: 7px; }
html.ke-rebrand-mode .ke-library-filter-row i.is-peace { background: #d7b766; }
html.ke-rebrand-mode .ke-library-filter-row i.is-patterns { background: #6d3346; }
html.ke-rebrand-mode .ke-library-filter-row i.is-circle { background: #7e9586; }
html.ke-rebrand-mode .ke-library-filter-row i.is-different { background: #31536a; }

html.ke-rebrand-mode .ke-library-spotlight { background: var(--kl-navy); border: 1px solid var(--kl-gold); border-radius: 25px; box-shadow: 0 18px 42px rgba(26,40,48,.16); min-height: clamp(340px,46vw,510px); overflow: hidden; position: relative; }
html.ke-rebrand-mode .ke-library-spotlight::before,
html.ke-rebrand-mode .ke-library-card::before,
html.ke-rebrand-mode .ke-library-series-card::before { animation: keLibraryShimmer 5.2s ease-in-out infinite; background: linear-gradient(112deg,transparent 34%,rgba(255,255,255,.26) 49%,transparent 64%); content: ''; inset: 0; pointer-events: none; position: absolute; transform: translateX(-110%); z-index: 4; }
@keyframes keLibraryShimmer { 0%,32% { transform: translateX(-110%); } 68%,100% { transform: translateX(110%); } }
html.ke-rebrand-mode .ke-library-spotlight > img { height: 100%; inset: 0; object-fit: cover; object-position: center 30%; position: absolute; width: 100%; }
html.ke-rebrand-mode .ke-library-spotlight-shade { background: linear-gradient(90deg,rgba(15,29,37,.98) 0%,rgba(15,29,37,.83) 47%,rgba(15,29,37,.14) 84%),linear-gradient(0deg,rgba(15,29,37,.35),transparent 45%); inset: 0; position: absolute; }
html.ke-rebrand-mode .ke-library-spotlight-copy { color: #fff; max-width: 610px; padding: clamp(30px,5.2vw,62px); position: relative; z-index: 2; }
html.ke-rebrand-mode .ke-library-spotlight-copy > div:first-child { display: flex; flex-wrap: wrap; gap: 7px; }
html.ke-rebrand-mode .ke-library-spotlight-copy > div:first-child span { background: rgba(255,255,255,.12); border: 1px solid rgba(233,186,97,.45); border-radius: 999px; color: var(--kl-gold-light); font-size: 8px; font-weight: 900; letter-spacing: .8px; padding: 7px 9px; }
html.ke-rebrand-mode .ke-library-spotlight-copy > p:nth-of-type(1) { color: var(--kl-gold-light) !important; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; margin: 24px 0 8px; }
html.ke-rebrand-mode .ke-library-spotlight h2 { color: #fff !important; font-family: 'Playfair Display',serif; font-size: clamp(30px,4.5vw,52px); line-height: 1.04; margin: 0; max-width: 570px; }
html.ke-rebrand-mode .ke-library-spotlight-copy > p:nth-of-type(2) { color: rgba(255,255,255,.78) !important; font-family: 'Cormorant Garamond',serif; font-size: clamp(16px,2vw,20px); font-style: italic; line-height: 1.42; margin: 16px 0; max-width: 530px; }
html.ke-rebrand-mode .ke-library-spotlight-meta { color: rgba(255,255,255,.64); display: flex; flex-wrap: wrap; font-size: 10px; gap: 15px; margin-bottom: 24px; }
html.ke-rebrand-mode .ke-library-spotlight-meta span + span::before { color: var(--kl-gold-light); content: '•'; margin-right: 15px; }
html.ke-rebrand-mode .ke-library-spotlight-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.ke-rebrand-mode .ke-library-spotlight-actions button { border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 900; min-height: 42px; padding: 10px 18px; text-transform: uppercase; }
html.ke-rebrand-mode .ke-library-spotlight-actions button:first-child { align-items: center; background: var(--kl-gold-light); border: 1px solid var(--kl-gold-light); color: var(--kl-navy); display: inline-flex; gap: 9px; }
html.ke-rebrand-mode .ke-library-spotlight-actions button:first-child i { border-bottom: 5px solid transparent; border-left: 8px solid currentColor; border-top: 5px solid transparent; height: 0; width: 0; }
html.ke-rebrand-mode .ke-library-spotlight-actions button:last-child { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.34); color: #fff; }
html.ke-rebrand-mode .ke-library-spotlight-actions button[aria-pressed="true"] { background: var(--kl-burgundy); border-color: var(--kl-gold); color: #fff; }

html.ke-rebrand-mode .ke-library-section,
html.ke-rebrand-mode .ke-library-search-results { margin-top: clamp(36px,5.4vw,62px); }
html.ke-rebrand-mode .ke-library-search-results[hidden] { display: none; }
html.ke-rebrand-mode .ke-library-section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 18px; }
html.ke-rebrand-mode .ke-library-section-heading h2 { color: var(--kl-navy) !important; font-family: 'Playfair Display',serif; font-size: clamp(25px,3.2vw,37px); line-height: 1.06; margin: 6px 0 0; }
html.ke-rebrand-mode .ke-library-section-heading p { color: var(--kl-muted) !important; font-family: 'Cormorant Garamond',serif; font-size: 16px; font-style: italic; line-height: 1.35; margin: 8px 0 0; }
html.ke-rebrand-mode .ke-library-media-row,
html.ke-rebrand-mode .ke-library-series-row { display: grid; gap: 15px; grid-auto-columns: minmax(220px,28%); grid-auto-flow: column; overflow-x: auto; padding: 2px 2px 17px; scroll-snap-type: x proximity; scrollbar-color: rgba(200,165,88,.55) transparent; scrollbar-width: thin; }
html.ke-rebrand-mode .ke-library-card { background: var(--kl-paper); border: 1px solid rgba(200,165,88,.55); border-radius: 18px; box-shadow: 0 9px 24px rgba(26,40,48,.08); min-width: 0; overflow: hidden; position: relative; scroll-snap-align: start; }
html.ke-rebrand-mode .ke-library-card-open { background: transparent; border: 0; color: inherit; cursor: pointer; display: block; padding: 0; text-align: left; width: 100%; }
html.ke-rebrand-mode .ke-library-card-image { background: var(--kl-navy); display: block; height: 0; overflow: hidden; padding-top: 56.25%; position: relative; }
html.ke-rebrand-mode .ke-library-card-image > img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
html.ke-rebrand-mode .ke-library-card-image::after { background: linear-gradient(0deg,rgba(15,29,37,.42),transparent 62%); content: ''; inset: 0; position: absolute; }
html.ke-rebrand-mode .ke-library-card-badge { background: rgba(26,40,48,.91); border: 1px solid rgba(233,186,97,.55); border-radius: 999px; color: var(--kl-gold-light); font-size: 7px; font-weight: 900; left: 10px; letter-spacing: .55px; padding: 6px 8px; position: absolute; text-transform: uppercase; top: 10px; z-index: 2; }
html.ke-rebrand-mode .ke-library-play { align-items: center; background: rgba(255,255,255,.93); border: 2px solid var(--kl-gold); border-radius: 50%; bottom: 10px; display: flex; height: 33px; justify-content: center; left: 10px; position: absolute; width: 33px; z-index: 2; }
html.ke-rebrand-mode .ke-library-play::before { border-bottom: 5px solid transparent; border-left: 8px solid var(--kl-burgundy); border-top: 5px solid transparent; content: ''; margin-left: 2px; }
html.ke-rebrand-mode .ke-library-card-duration { bottom: 12px; color: #fff; font-size: 8px; font-weight: 900; position: absolute; right: 11px; text-shadow: 0 2px 5px rgba(0,0,0,.75); z-index: 2; }
html.ke-rebrand-mode .ke-library-card-complete { align-items: center; background: var(--kl-gold-light); border: 2px solid #fff; border-radius: 50%; color: var(--kl-navy); display: none; font-size: 11px; font-weight: 900; height: 27px; justify-content: center; position: absolute; right: 9px; top: 9px; width: 27px; z-index: 3; }
html.ke-rebrand-mode .ke-library-video-card.is-completed .ke-library-card-complete { display: flex; }
html.ke-rebrand-mode .ke-library-video-card.is-completed .ke-library-card-badge { display: none; }
html.ke-rebrand-mode .ke-library-card-copy { display: block; min-height: 122px; padding: 15px 15px 13px; }
html.ke-rebrand-mode .ke-library-card-copy > span,
html.ke-rebrand-mode .ke-library-card-copy strong,
html.ke-rebrand-mode .ke-library-card-copy small { display: block; }
html.ke-rebrand-mode .ke-library-card-copy > span { color: var(--kl-burgundy); font-size: 8px; font-weight: 900; letter-spacing: .65px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
html.ke-rebrand-mode .ke-library-card-copy strong { color: var(--kl-navy); font-family: 'Playfair Display',serif; font-size: 16px; line-height: 1.2; margin-top: 7px; }
html.ke-rebrand-mode .ke-library-card-copy small { color: var(--kl-muted); font-size: 9px; line-height: 1.35; margin-top: 8px; }
html.ke-rebrand-mode .ke-library-card-footer { align-items: center; border-top: 1px solid rgba(26,40,48,.08); display: flex; justify-content: space-between; min-height: 43px; padding: 7px 10px 7px 15px; }
html.ke-rebrand-mode .ke-library-card-footer span { color: var(--kl-muted); font-size: 8px; }
html.ke-rebrand-mode .ke-library-card-save { align-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--kl-burgundy); cursor: pointer; display: flex; font-size: 20px; height: 30px; justify-content: center; padding: 0; width: 30px; }
html.ke-rebrand-mode .ke-library-card-save[aria-pressed="true"] { background: var(--kl-burgundy); color: #fff; font-size: 14px; }
html.ke-rebrand-mode .ke-library-card:focus-within { outline: 3px solid rgba(200,165,88,.28); outline-offset: 2px; }
html.ke-rebrand-mode .ke-library-card:hover { transform: translateY(-2px); }

html.ke-rebrand-mode .ke-library-result-grid { display: grid; gap: 15px; grid-template-columns: repeat(3,minmax(0,1fr)); }
html.ke-rebrand-mode .ke-library-result-grid .ke-library-card { height: 100%; }
html.ke-rebrand-mode .ke-library-empty { background: var(--kl-cream); border: 1px solid rgba(200,165,88,.5); border-radius: 18px; padding: 30px; text-align: center; }
html.ke-rebrand-mode .ke-library-empty[hidden] { display: none; }
html.ke-rebrand-mode .ke-library-empty strong { color: var(--kl-navy); font-family: 'Playfair Display',serif; font-size: 22px; }
html.ke-rebrand-mode .ke-library-empty p { color: var(--kl-muted) !important; font-family: 'Cormorant Garamond',serif; font-size: 16px; font-style: italic; }
html.ke-rebrand-mode .ke-library-empty button { background: var(--kl-burgundy); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 900; padding: 11px 17px; text-transform: uppercase; }

html.ke-rebrand-mode .ke-library-series-row { grid-auto-columns: minmax(210px,25%); }
html.ke-rebrand-mode .ke-library-series-card { background: var(--kl-navy); border: 1px solid rgba(200,165,88,.65); border-radius: 18px; cursor: pointer; height: 178px; overflow: hidden; padding: 0; position: relative; scroll-snap-align: start; text-align: left; }
html.ke-rebrand-mode .ke-library-series-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
html.ke-rebrand-mode .ke-library-series-card::after { background: linear-gradient(0deg,rgba(15,29,37,.96),rgba(15,29,37,.04) 72%); content: ''; inset: 0; position: absolute; }
html.ke-rebrand-mode .ke-library-series-card span { bottom: 14px; left: 15px; position: absolute; right: 15px; z-index: 2; }
html.ke-rebrand-mode .ke-library-series-card strong,
html.ke-rebrand-mode .ke-library-series-card small { display: block; }
html.ke-rebrand-mode .ke-library-series-card strong { color: #fff; font-family: 'Playfair Display',serif; font-size: 18px; line-height: 1.1; }
html.ke-rebrand-mode .ke-library-series-card small { color: var(--kl-gold-light); font-size: 8px; font-weight: 800; margin-top: 5px; text-transform: uppercase; }

html.ke-rebrand-mode .ke-library-preview { align-items: center; display: flex; inset: 0; justify-content: center; padding: 20px; position: absolute; z-index: 80; }
html.ke-rebrand-mode .ke-library-preview[hidden] { display: none; }
html.ke-rebrand-mode .ke-library-preview-backdrop { background: rgba(15,29,37,.78); border: 0; inset: 0; padding: 0; position: absolute; width: 100%; }
html.ke-rebrand-mode .ke-library-preview-card { background: var(--kl-paper); border: 1px solid var(--kl-gold); border-radius: 22px; box-shadow: 0 28px 70px rgba(15,29,37,.35); max-height: calc(100% - 40px); max-width: 620px; overflow-y: auto; position: relative; width: 100%; z-index: 2; }
html.ke-rebrand-mode .ke-library-preview-close { align-items: center; background: rgba(15,29,37,.88); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 25px; height: 36px; justify-content: center; line-height: 1; padding: 0 0 3px; position: absolute; right: 13px; top: 13px; width: 36px; z-index: 4; }
html.ke-rebrand-mode .ke-library-preview-image { background: var(--kl-navy); height: 250px; overflow: hidden; position: relative; }
html.ke-rebrand-mode .ke-library-preview-image::after { background: linear-gradient(0deg,rgba(15,29,37,.58),transparent 62%); content: ''; inset: 0; position: absolute; }
html.ke-rebrand-mode .ke-library-preview-image img { height: 100%; object-fit: cover; width: 100%; }
html.ke-rebrand-mode .ke-library-preview-image span { background: var(--kl-gold-light); border-radius: 999px; bottom: 14px; color: var(--kl-navy); font-size: 8px; font-weight: 900; left: 16px; letter-spacing: .8px; padding: 7px 10px; position: absolute; z-index: 2; }
html.ke-rebrand-mode .ke-library-preview-body { padding: clamp(22px,4vw,34px); }
html.ke-rebrand-mode .ke-library-preview-body h2 { color: var(--kl-navy) !important; font-family: 'Playfair Display',serif; font-size: clamp(27px,4vw,38px); line-height: 1.08; margin: 8px 0 12px; }
html.ke-rebrand-mode .ke-library-preview-body > p { color: var(--kl-muted) !important; font-family: 'Cormorant Garamond',serif; font-size: 18px; line-height: 1.45; margin: 0; }
html.ke-rebrand-mode .ke-library-preview-pillars { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
html.ke-rebrand-mode .ke-library-preview-pillars span { background: var(--kl-cream); border-radius: 999px; color: var(--kl-burgundy); font-size: 8px; font-weight: 900; padding: 7px 10px; text-transform: uppercase; }
html.ke-rebrand-mode #ke-library-preview-save { background: var(--kl-burgundy); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 900; min-height: 42px; padding: 11px 18px; text-transform: uppercase; }
html.ke-rebrand-mode #ke-library-preview-save[aria-pressed="true"] { background: var(--kl-gold-light); color: var(--kl-navy); }
html.ke-rebrand-mode .ke-library-toast { background: var(--kl-navy); border: 1px solid var(--kl-gold); border-radius: 999px; bottom: 24px; color: #fff; font-size: 10px; font-weight: 800; left: 50%; max-width: calc(100% - 40px); padding: 11px 16px; position: absolute; text-align: center; transform: translateX(-50%); z-index: 95; }
html.ke-rebrand-mode .ke-library-toast[hidden] { display: none; }

@media (max-width: 760px) {
  html.ke-rebrand-mode .ke-library-header { min-height: 68px; padding: 10px 14px; }
  html.ke-rebrand-mode .ke-library-brand img { flex-basis: 38px; height: 38px; width: 38px; }
  html.ke-rebrand-mode .ke-library-brand span { font-size: 7px; }
  html.ke-rebrand-mode .ke-library-brand strong { font-size: 16px; }
  html.ke-rebrand-mode .ke-library-main { padding: 20px 14px 54px; }
  html.ke-rebrand-mode .ke-library-intro { align-items: flex-start; margin-bottom: 19px; }
  html.ke-rebrand-mode .ke-library-intro h1 { font-size: 36px; }
  html.ke-rebrand-mode .ke-library-intro p { font-size: 16px; }
  html.ke-rebrand-mode .ke-library-list-shortcut { border-radius: 15px; min-width: auto; padding: 9px 10px; }
  html.ke-rebrand-mode .ke-library-list-shortcut > span:first-child { height: 27px; width: 27px; }
  html.ke-rebrand-mode .ke-library-list-shortcut strong { font-size: 10px; }
  html.ke-rebrand-mode .ke-library-list-shortcut small { font-size: 8px; }
  html.ke-rebrand-mode .ke-library-spotlight { border-radius: 20px; min-height: 415px; }
  html.ke-rebrand-mode .ke-library-spotlight > img { object-position: 61% center; }
  html.ke-rebrand-mode .ke-library-spotlight-shade { background: linear-gradient(0deg,rgba(15,29,37,.98) 0%,rgba(15,29,37,.82) 50%,rgba(15,29,37,.16) 100%); }
  html.ke-rebrand-mode .ke-library-spotlight-copy { bottom: 0; padding: 24px 20px; position: absolute; }
  html.ke-rebrand-mode .ke-library-spotlight-copy > p:nth-of-type(1) { margin-top: 15px; }
  html.ke-rebrand-mode .ke-library-spotlight h2 { font-size: 29px; }
  html.ke-rebrand-mode .ke-library-spotlight-copy > p:nth-of-type(2) { font-size: 15px; margin: 11px 0; }
  html.ke-rebrand-mode .ke-library-spotlight-meta { margin-bottom: 15px; }
  html.ke-rebrand-mode .ke-library-section,
  html.ke-rebrand-mode .ke-library-search-results { margin-top: 38px; }
  html.ke-rebrand-mode .ke-library-section-heading h2 { font-size: 27px; }
  html.ke-rebrand-mode .ke-library-section-heading p { font-size: 15px; }
  html.ke-rebrand-mode .ke-library-media-row { grid-auto-columns: 74%; gap: 12px; margin-right: -14px; }
  html.ke-rebrand-mode .ke-library-series-row { grid-auto-columns: 68%; margin-right: -14px; }
  html.ke-rebrand-mode .ke-library-result-grid { grid-template-columns: 1fr; }
  html.ke-rebrand-mode .ke-library-result-grid .ke-library-card { display: grid; grid-template-columns: 42% 58%; }
  html.ke-rebrand-mode .ke-library-result-grid .ke-library-card-open { display: contents; }
  html.ke-rebrand-mode .ke-library-result-grid .ke-library-card-image { height: 100%; min-height: 138px; padding-top: 0; }
  html.ke-rebrand-mode .ke-library-result-grid .ke-library-card-copy { min-height: 138px; padding: 14px 13px; }
  html.ke-rebrand-mode .ke-library-result-grid .ke-library-card-footer { border-left: 1px solid rgba(26,40,48,.08); border-top: 0; bottom: 0; grid-column: 2; left: 42%; min-height: 38px; padding: 5px 9px 5px 13px; position: absolute; right: 0; }
  html.ke-rebrand-mode .ke-library-preview { padding: 12px; }
  html.ke-rebrand-mode .ke-library-preview-card { max-height: calc(100% - 24px); }
  html.ke-rebrand-mode .ke-library-preview-image { height: 210px; }
}

@media (max-width: 420px) {
  html.ke-rebrand-mode .ke-library-flame { min-width: 50px; padding: 0 9px; }
  html.ke-rebrand-mode .ke-library-icon-button { height: 35px; width: 35px; }
  html.ke-rebrand-mode .ke-library-intro { gap: 12px; }
  html.ke-rebrand-mode .ke-library-intro h1 { font-size: 32px; }
  html.ke-rebrand-mode .ke-library-list-shortcut { align-self: flex-start; }
  html.ke-rebrand-mode .ke-library-list-shortcut > span:last-child { display: none; }
  html.ke-rebrand-mode .ke-library-media-row { grid-auto-columns: 82%; }
  html.ke-rebrand-mode .ke-library-series-row { grid-auto-columns: 76%; }
}

@media (prefers-reduced-motion: reduce) {
  html.ke-rebrand-mode .ke-library-spotlight::before,
  html.ke-rebrand-mode .ke-library-card::before,
  html.ke-rebrand-mode .ke-library-series-card::before { animation: none; }
}
