/* v0.5.141: Saved browsing shares the Account card layout. Save picker is separate. */
/* Resolve the private session before showing a cached account's collections. */
[data-saved-page][data-saved-owner-pending]>:not([data-saved-state-status]){visibility:hidden;pointer-events:none}
#saved-modal.hp-saved-view:not(.is-save-flow),
#saved-collection-modal.hp-saved-view{--hp-saved-view-gutter:16px;padding:24px!important;animation:none!important}
.hp-saved-view-back{display:none}
#saved-modal.hp-saved-view:not(.is-save-flow)>.hp-ui-modal__backdrop,
#saved-collection-modal.hp-saved-view>.hp-ui-modal__backdrop{background:rgba(0,0,0,.55)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#saved-modal.hp-saved-view:not(.is-save-flow)>.hp-saved-dialog,
#saved-collection-modal.hp-saved-view>.hp-saved-detail-dialog{
  display:block!important;position:relative!important;width:min(var(--hp-container,1120px),calc(100vw - 48px))!important;
  height:min(86dvh,860px)!important;max-height:calc(100dvh - 48px)!important;
  overflow:auto!important;padding:0 0 28px!important;background:#fff!important;color:#111;
  scrollbar-gutter:stable;overscroll-behavior:contain;scroll-behavior:auto!important;
  animation:none!important;transform:none!important;touch-action:auto!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow)>.hp-saved-dialog>.hp-ui-modal__close,
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-mark{display:none!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-heading{
  position:sticky!important;top:0!important;z-index:5;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px;
  align-items:center!important;gap:8px!important;width:100%!important;min-height:62px;
  margin:0 0 20px!important;padding:8px var(--hp-saved-view-gutter)!important;
  border-bottom:1.2px solid var(--hp-line)!important;background:#fff!important;box-shadow:none!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-view-back{
  display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;background:transparent;color:inherit;border-radius:50%;cursor:pointer;
}
.hp-saved-view-back svg{width:23px;height:23px}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-heading__title{justify-content:center;text-align:center;min-width:0}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-heading h2{margin:0!important;font-size:1.05rem!important;line-height:1.35!important;color:inherit!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-browser-v59{
  display:block!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-browser-v59>[hidden]{display:none!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-browser-v59>:not([hidden]){
  width:calc(100% - var(--hp-saved-view-gutter)*2)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-summary--collections{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:38px;margin-top:16px!important;margin-bottom:14px!important;padding:0!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-summary--collections>strong,
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-new-collection{font-size:1rem!important;line-height:1.3!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-new-collection{flex:0 0 auto}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-list-v59,
#saved-collection-modal.hp-saved-view .hp-saved-detail-list.hp-saved-detail-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;padding:0!important;
}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card,
#saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card{min-width:0;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__button,
#saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card__button{display:block!important;width:100%!important;min-width:0;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;text-align:left;touch-action:auto!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__cover,
#saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card__cover{position:relative;display:grid!important;place-items:center;width:100%!important;height:auto!important;aspect-ratio:4/5!important;border-radius:13px!important;overflow:hidden!important;background:var(--hp-surface-2)}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__cover img,
#saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card__cover img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__title,
#saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card__title{display:block!important;min-width:0;margin-top:7px!important;font-size:.9rem!important;line-height:1.35!important;font-weight:var(--hp-font-weight-strong)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__meta{display:flex!important;justify-content:space-between!important;align-items:center;gap:7px;margin-top:3px;color:var(--hp-muted)}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__meta small{font-size:.71rem!important;line-height:1.3!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__meta small:last-child{flex-shrink:0}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-load-more,
#saved-collection-modal.hp-saved-view .hp-saved-load-more{width:auto!important;display:table;margin:20px auto 0!important}
#saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-load-more[hidden],
#saved-collection-modal.hp-saved-view .hp-saved-load-more[hidden]{display:none!important}
#saved-collection-modal.hp-saved-view .hp-saved-detail-header{
  position:sticky!important;top:0!important;z-index:5;width:100%!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;
}
#saved-collection-modal.hp-saved-view .hp-saved-detail-toprow{padding:8px var(--hp-saved-view-gutter)!important;min-height:62px;border-bottom:1.2px solid var(--hp-line)}
#saved-collection-modal.hp-saved-view .hp-saved-detail-heading{width:100%!important;margin:0!important;padding:16px var(--hp-saved-view-gutter)!important}
#saved-collection-modal.hp-saved-view .hp-saved-detail-browser{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important}
#saved-collection-modal.hp-saved-view .hp-saved-detail-list.hp-saved-detail-grid,
#saved-collection-modal.hp-saved-view .hp-saved-detail-dialog>.hp-saved-detail-search,
#saved-collection-modal.hp-saved-view .hp-saved-detail-dialog>.hp-saved-detail-rename-form,
#saved-collection-modal.hp-saved-view .hp-saved-detail-dialog>.hp-saved-detail-selection-toolbar,
#saved-collection-modal.hp-saved-view .hp-saved-detail-dialog>.hp-saved-notice{width:calc(100% - var(--hp-saved-view-gutter)*2)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
.hp-saved-pattern-grid-empty{grid-column:1/-1}
/* Touch browsing is a document view, exactly like the touch Reader. */
html.hp-saved-document{height:auto!important;overflow:auto!important;overscroll-behavior:auto!important;scroll-behavior:auto!important}
body.hp-saved-document{position:static!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;background:#000!important;color:#fff!important}
html.hp-saved-document.hp-pattern-touch-reader-root:has(>body.hp-modal-open){overflow:auto!important}
body.hp-saved-document.hp-pattern-touch-reader-open.hp-modal-open{overflow:visible!important}
body.hp-saved-document>.site-header,body.hp-saved-document>.site-main,body.hp-saved-document>.site-footer,
body.hp-saved-document>.hp-profile-topbar,body.hp-saved-document>.hp-profile-shell,
body.hp-saved-document>[data-pattern-reader],body.hp-saved-document>.touch-floating-nav,
body.hp-saved-document>.desktop-floating-actions,body.hp-saved-document>#wpadminbar{display:none!important}
body.hp-saved-document #saved-modal.hp-saved-view:not(.is-save-flow),
body.hp-saved-document #saved-collection-modal.hp-saved-view{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:100dvh;max-height:none!important;overflow:visible!important;padding:0!important;background:#000!important;color:#fff!important;z-index:96}
body.hp-saved-document #saved-modal.hp-saved-view[hidden],
body.hp-saved-document #saved-collection-modal.hp-saved-view[hidden]{display:none!important}
body.hp-saved-document #saved-modal.hp-saved-view:not(.is-save-flow)>.hp-saved-dialog,
body.hp-saved-document #saved-collection-modal.hp-saved-view>.hp-saved-detail-dialog{
  position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:100dvh!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#000!important;color:#fff!important;padding:0 0 max(28px,env(safe-area-inset-bottom))!important;zoom:1!important;
}
body.hp-saved-document .hp-saved-view>.hp-ui-modal__backdrop{display:none!important}
body.hp-saved-document .hp-saved-view input{font-size:16px!important;scroll-margin-top:145px;scroll-margin-bottom:24px}
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-heading,
body.hp-saved-document #saved-collection-modal.hp-saved-view .hp-saved-detail-header{background:#000!important;color:#fff!important}
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-heading{padding-top:max(8px,env(safe-area-inset-top))!important}
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-collection-grid-card__meta{color:rgba(255,255,255,.66)}
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-summary--collections>strong,
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-new-collection{font-size:.84rem!important}
body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-collection-list-v59,
body.hp-saved-document #saved-collection-modal.hp-saved-view .hp-saved-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){.hp-saved-view{--hp-saved-view-gutter:10px!important}}
@media (max-width:639px){
  body.hp-saved-document #saved-modal.hp-saved-view .hp-saved-collection-list-v59,
  body.hp-saved-document #saved-collection-modal.hp-saved-view .hp-saved-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__title,
  #saved-collection-modal.hp-saved-view .hp-saved-pattern-grid-card__title{font-size:.86rem!important}
  #saved-modal.hp-saved-view:not(.is-save-flow) .hp-saved-collection-grid-card__meta small{font-size:.68rem!important}
}
.hp-saved-view :focus-visible{outline:2px solid var(--hp-accent);outline-offset:3px}

/* v0.5.142 — Saved and Collection are dedicated pages, not browsing modals. */
body.hp-profile-page .hp-saved-page,
body.hp-profile-page .hp-saved-collection-page{padding-bottom:72px}
body.hp-profile-page .hp-saved-page-content,
body.hp-profile-page .hp-saved-collection-content{
  width:min(calc(100% - 32px),var(--hp-container));
  margin:0 auto;
}
body.hp-profile-page .hp-saved-page-content{padding-top:22px}
body.hp-profile-page .hp-saved-collection-content{padding-top:22px}
body.hp-profile-page .hp-saved-page-topbar>strong{
  min-width:0;
  max-width:min(720px,calc(100vw - 124px));
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.hp-profile-page .hp-saved-page-exit{justify-self:end}

/* Saved protection note: keep the existing treatment, but size it to the page. */
body.hp-profile-page .hp-saved-page-protection{
  width:min(760px,100%);
  margin:0 auto 22px!important;
}

body.hp-profile-page .hp-saved-page-head{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 17px;
}
body.hp-profile-page .hp-saved-page-head h2{
  min-width:0;
  margin:0;
  color:var(--hp-text);
  font-size:1rem;
  line-height:1.35;
}
body.hp-profile-page .hp-saved-page-new{
  flex:0 0 auto;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  margin-right:0;
  padding:0 14px;
  border:0;
  border-radius:12px;
  background:var(--hp-accent);
  color:#fff;
  font-size:.9rem;
  font-weight:var(--hp-font-weight-strong);
  line-height:1;
  cursor:pointer;
  text-decoration:none;
  box-shadow:none;
  transition:transform .18s ease,filter .18s ease;
}
body.hp-profile-page .hp-saved-page-new:hover{background:var(--hp-accent);color:#fff;filter:brightness(.96);transform:translateY(-1px)}
body.hp-profile-page .hp-profile-new-collection{
  flex:0 0 auto;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:0 14px;
  border:1px solid var(--hp-line);
  border-radius:12px;
  background:var(--hp-surface);
  color:var(--hp-text);
  font-size:.9rem;
  font-weight:var(--hp-font-weight-strong);
  line-height:1;
  cursor:pointer;
  text-decoration:none;
}
body.hp-profile-page .hp-profile-new-collection:hover{border-color:color-mix(in srgb,var(--hp-accent) 46%,var(--hp-line));background:var(--hp-accent-soft)}

body.hp-profile-page .hp-saved-page-create-form,
body.hp-profile-page .hp-saved-page-rename-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
  margin:0 0 17px;
}
body.hp-profile-page .hp-saved-page-create-form[hidden],
body.hp-profile-page .hp-saved-page-rename-form[hidden]{display:none!important}
body.hp-profile-page .hp-saved-page-create-form input,
body.hp-profile-page .hp-saved-page-rename-form input{
  min-width:0;
  height:42px;
  padding:0 12px;
  border:1px solid var(--hp-line);
  border-radius:12px;
  outline:0;
  background:var(--hp-surface);
  color:var(--hp-text);
}
body.hp-profile-page .hp-saved-page-create-form input:focus,
body.hp-profile-page .hp-saved-page-rename-form input:focus{border-color:var(--hp-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--hp-accent) 16%,transparent)}
body.hp-profile-page .hp-saved-page-create-form button,
body.hp-profile-page .hp-saved-page-rename-form button{
  height:42px;
  padding:0 14px;
  border:1px solid var(--hp-accent);
  border-radius:12px;
  background:var(--hp-accent);
  color:#fff;
  font-weight:var(--hp-font-weight-strong);
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-create-form button.is-secondary,
body.hp-profile-page .hp-saved-page-rename-form button.is-secondary{border-color:var(--hp-line);background:var(--hp-surface-2);color:var(--hp-text)}
body.hp-profile-page .hp-saved-page-notice{min-height:0;margin:0 0 10px;color:var(--hp-accent);font-size:.82rem}
body.hp-profile-page .hp-saved-page-notice:empty{display:none}

/* Collection thumbnails: one real image + two CSS-only layers. */
body.hp-profile-page .hp-saved-page-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px 14px;
  align-items:start;
}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card{
  min-width:0;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__button{
  display:block;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}






body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__title{
  display:block;
  min-width:0;
  margin-top:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
  font-size:.9rem;
  line-height:1.35;
  font-weight:var(--hp-font-weight-strong);
}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:3px;
  color:var(--hp-muted);
}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
  font-size:.71rem;
  line-height:1.3;
  font-weight:var(--hp-font-weight-medium);
}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta small:first-child{flex:1 1 auto}
body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta small:last-child{flex:0 0 auto;text-align:right}
body.hp-profile-page .hp-saved-page-empty{margin:26px 0 0;padding:20px 0;color:var(--hp-muted);text-align:center}
@media (hover:hover) and (pointer:fine){
  
  
  
}

/* Collection page: Author-page proportions with Search + Edit above the cards. */
body.hp-profile-page .hp-saved-collection-controls{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
}
body.hp-profile-page .hp-saved-collection-search.site-search,
body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:42px!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-self:stretch!important;
  transform:none!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid var(--hp-line)!important;
  border-radius:12px!important;
  background:var(--hp-surface)!important;
}
body.hp-profile-page .hp-saved-collection-search__icon{
  flex:0 0 40px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  color:var(--hp-muted);
}
body.hp-profile-page .hp-saved-collection-search__icon svg{width:20px;height:20px}
body.hp-profile-page .hp-saved-collection-search input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  padding:0 13px 0 0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--hp-text)!important;
  font-size:.92rem!important;
}
body.hp-profile-page .hp-saved-page-edit-wrap{position:relative;flex:0 0 auto}
body.hp-profile-page .hp-saved-page-edit{
  min-width:76px;
  height:42px;
  padding:0 16px;
  border:1px solid var(--hp-line);
  border-radius:12px;
  background:var(--hp-surface);
  color:var(--hp-text);
  font-weight:var(--hp-font-weight-strong);
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-edit:hover{border-color:color-mix(in srgb,var(--hp-accent) 46%,var(--hp-line));background:var(--hp-accent-soft)}
body.hp-profile-page .hp-saved-page-edit-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  width:min(270px,calc(100vw - 28px));
  padding:8px;
  border:1px solid var(--hp-line);
  border-radius:14px;
  background:var(--hp-surface);
  color:var(--hp-text);
  box-shadow:var(--hp-shadow);
}
body.hp-profile-page .hp-saved-page-edit-menu[hidden]{display:none!important}
body.hp-profile-page .hp-saved-page-edit-menu__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:5px 6px 8px;
  border-bottom:1px solid var(--hp-line);
  margin-bottom:5px;
}
body.hp-profile-page .hp-saved-page-edit-close{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  font-size:1.25rem;
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-edit-menu>button:not(.hp-saved-page-edit-close){
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-edit-menu>button:not(.hp-saved-page-edit-close):hover{background:var(--hp-surface-2)}
body.hp-profile-page .hp-saved-page-edit-menu>button.is-danger{color:#c62828}

body.hp-profile-page .hp-saved-page-selection-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 15px;
  padding:10px 12px;
  border:1px solid var(--hp-line);
  border-radius:12px;
  background:var(--hp-surface);
}
body.hp-profile-page .hp-saved-page-selection-toolbar[hidden]{display:none!important}
body.hp-profile-page .hp-saved-detail-selection-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
body.hp-profile-page .hp-saved-page-selection-toolbar button{
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--hp-line);
  border-radius:10px;
  background:var(--hp-surface-2);
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-selection-toolbar button.is-danger{border-color:#d83b3b;background:#d83b3b;color:#fff}
body.hp-profile-page .hp-saved-page-selection-toolbar button:disabled{opacity:.45;cursor:not-allowed}

body.hp-profile-page .hp-saved-page-patterns,
body.hp-profile-page .hp-saved-page-pattern-empty{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
body.hp-profile-page .hp-saved-page-patterns .pattern-card{
  position:relative;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.hp-profile-page .hp-saved-page-patterns .pattern-card:hover{box-shadow:none}
body.hp-profile-page .hp-saved-page-patterns .pattern-card__media{overflow:hidden;border-radius:14px}
body.hp-profile-page .hp-saved-page-patterns .pattern-card__body{padding:9px 2px 2px;border:0;background:transparent}
body.hp-profile-page .hp-saved-page-patterns .hp-infinite-sentinel{height:1px}
body.hp-profile-page .hp-saved-page-card-select{
  position:absolute;
  top:8px;
  right:8px;
  z-index:6;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  background:rgba(0,0,0,.58);
  color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  cursor:pointer;
}
body.hp-profile-page .hp-saved-page-patterns .pattern-card.is-selected .hp-saved-page-card-select{background:var(--hp-accent)}
body.hp-profile-page .hp-saved-page-patterns .pattern-card.is-selectable .pattern-card__link{pointer-events:none}

@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-page-content,
  body.hp-profile-page .hp-saved-collection-content{width:calc(100% - 32px)}
  body.hp-profile-page .hp-saved-page-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}
  body.hp-profile-page .hp-saved-page-head h2,
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__title{color:#fff}
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta,
  body.hp-profile-page .hp-saved-page-empty{color:rgba(255,255,255,.68)}
  body.hp-profile-page .hp-profile-new-collection,
  body.hp-profile-page .hp-saved-page-edit,
  body.hp-profile-page .hp-saved-page-create-form input,
  body.hp-profile-page .hp-saved-page-rename-form input,
  body.hp-profile-page .hp-saved-page-create-form button.is-secondary,
  body.hp-profile-page .hp-saved-page-rename-form button.is-secondary,
  body.hp-profile-page .hp-saved-page-selection-toolbar,
  body.hp-profile-page .hp-saved-page-selection-toolbar button,
  body.hp-profile-page .hp-saved-page-edit-menu,
  body.hp-profile-page .hp-saved-collection-search.site-search,
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
    border-color:rgba(255,255,255,.18)!important;
    background:#15191c!important;
    color:#fff!important;
  }
  body.hp-profile-page .hp-saved-collection-search input{color:#fff!important}
  body.hp-profile-page .hp-saved-collection-search__icon{color:rgba(255,255,255,.66)}
  body.hp-profile-page .hp-saved-page-edit-menu__head{border-color:rgba(255,255,255,.12)}
  body.hp-profile-page .hp-saved-page-edit-menu>button:not(.hp-saved-page-edit-close):hover{background:rgba(255,255,255,.08)}
  body.hp-profile-page .hp-saved-page-patterns .pattern-card__description{color:#fff}
  body.hp-profile-page .hp-saved-page-pattern-empty{color:rgba(255,255,255,.68)}
}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-page-content,
  body.hp-profile-page .hp-saved-collection-content{width:calc(100% - 20px);padding-top:16px}
  body.hp-profile-page .hp-saved-page-protection{margin-bottom:17px!important}
  body.hp-profile-page .hp-saved-page-head{margin-bottom:14px}
  body.hp-profile-page .hp-saved-page-create-form,
  body.hp-profile-page .hp-saved-page-rename-form{grid-template-columns:minmax(0,1fr) auto;}
  body.hp-profile-page .hp-saved-page-create-form button.is-secondary,
  body.hp-profile-page .hp-saved-page-rename-form button.is-secondary{grid-column:2}
  body.hp-profile-page .hp-saved-collection-controls{gap:8px;margin-bottom:14px}
  body.hp-profile-page .hp-saved-page-edit{min-width:68px;padding-inline:13px}
  body.hp-profile-page .hp-saved-page-selection-toolbar{align-items:flex-start;flex-direction:column}
  body.hp-profile-page .hp-saved-detail-selection-actions{justify-content:flex-start}
}
@media (max-width:639px){
  body.hp-profile-page .hp-saved-page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}
  body.hp-profile-page .hp-saved-page-head h2{font-size:.94rem}
  body.hp-profile-page .hp-saved-page-new{min-height:36px;padding-inline:11px;font-size:.84rem}
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__title{font-size:.86rem}
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta small{font-size:.68rem}
}

/* Final v0.5.142 page refinements. */
body.hp-profile-page .hp-saved-page-protection[hidden]{display:none!important}
body.hp-profile-page .hp-saved-collection-search.site-search,
body.hp-profile-page .hp-saved-collection-search.site-search--catalog{border-radius:999px!important}


/* v0.5.143 — Saved page exit, Reader-matched divider, orange CTA and deeper 3-layer collection cards. */
body.hp-profile-page .hp-saved-page-topbar{
  border-bottom-color:var(--hp-line);
}
body.hp-profile-page .hp-saved-page-head{
  width:100%;
  padding-left:0;
  padding-right:0;
}
body.hp-profile-page .hp-saved-page-new{
  margin-left:auto;
  margin-right:0;
  border:0!important;
  background:var(--hp-accent)!important;
  color:#fff!important;
}

@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-page-topbar{border-bottom-color:#3d3d3d}
  body.hp-profile-page .hp-saved-page-new{background:var(--hp-accent)!important;color:#fff!important;border:0!important}
}

/* v0.5.144 — Home-style Collection search and always-visible 3-layer Saved thumbnails. */
body.hp-profile-page .hp-saved-collection-controls{
  justify-content:space-between;
}
body.hp-profile-page .hp-saved-collection-search.site-search,
body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
  flex:0 1 650px!important;
  width:min(650px,calc(100% - 94px))!important;
  max-width:650px!important;
  min-width:0!important;
  height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-self:auto!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid var(--hp-line)!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
body.hp-profile-page .hp-saved-collection-search input[type="search"]{
  order:1;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:100%!important;
  padding:0 6px 0 18px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:.92rem!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
body.hp-profile-page .hp-saved-collection-search input[type="search"]::placeholder{
  color:#8b8b8b!important;
  opacity:1!important;
}
body.hp-profile-page .hp-saved-collection-search input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none;
  appearance:none;
}
body.hp-profile-page .hp-saved-collection-search__icon{
  order:2;
  flex:0 0 46px;
  width:46px;
  height:100%;
  display:grid;
  place-items:center;
  color:#000!important;
  pointer-events:none;
}
body.hp-profile-page .hp-saved-collection-search__icon svg{
  width:25px!important;
  height:25px!important;
}

/* Three layers are visible even before hover. The bottom sheet carries the resting shadow. */





@media (hover:hover) and (pointer:fine){
  
  
  
}

@media (min-width:481px) and (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-collection-search.site-search,
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
    flex-basis:410px!important;
    width:min(410px,calc(100% - 86px))!important;
    max-width:410px!important;
  }
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-collection-search.site-search,
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
    border-color:rgba(255,255,255,.22)!important;
    background:#15191c!important;
    color:#fff!important;
  }
  body.hp-profile-page .hp-saved-collection-search input[type="search"]{
    color:#fff!important;
    caret-color:#111!important;
  }
  body.hp-profile-page .hp-saved-collection-search input[type="search"]::placeholder{
    color:#a9a9a9!important;
    opacity:1!important;
  }
  body.hp-profile-page .hp-saved-collection-search__icon{color:#fff!important}

  
  
  
  
}
@media (max-width:480px){
  body.hp-profile-page .hp-saved-collection-controls{
    gap:8px;
  }
  body.hp-profile-page .hp-saved-collection-search.site-search,
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:38px!important;
  }
  body.hp-profile-page .hp-saved-collection-search input[type="search"]{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    position:static!important;
    padding-left:13px!important;
    padding-right:4px!important;
    font-size:.86rem!important;
  }
  body.hp-profile-page .hp-saved-collection-search__icon{
    flex-basis:38px;
    width:38px;
  }
  body.hp-profile-page .hp-saved-collection-search__icon svg{
    width:24px!important;
    height:24px!important;
  }
}

/* v0.5.145 — Profile CTA and shared collection stacks (Saved + Profile).
   Border boxes start at -4px/-8px, so the 1px border is included in each step. */
body.hp-profile-page .hp-profile-new-collection,
body.hp-profile-page .hp-profile-new-collection:hover{
  border:0!important;
  background:var(--hp-accent)!important;
  color:#fff!important;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list){
  --hp-collection-border:#fff;
}
body.hp-profile-page .hp-saved-page-grid{row-gap:28px}
body.hp-profile-page .hp-profile-account-page .hp-profile-saved-list{row-gap:22px}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover{
  position:relative;
  isolation:isolate;
  display:block;
  width:100%;
  aspect-ratio:4/5;
  overflow:visible;
  border:0;
  border-radius:14px;
  background:transparent;
  box-shadow:none;
  transform:none;
  transform-origin:center;
  transition:none;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::before,
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::after,
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover>img,
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__fallback{
  box-sizing:border-box;
  border:1px solid var(--hp-collection-border);
  border-radius:14px;
  box-shadow:none;
  transform:none;
  transition:none;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::before,
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::after{
  content:"";
  position:absolute;
  height:100%;
  pointer-events:none;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::before{
  z-index:1;
  top:-8px;
  left:10%;
  right:10%;
  background:#D9D9D9;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover::after{
  z-index:2;
  top:-4px;
  left:5%;
  right:5%;
  background:#B4B4B4;
}
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__cover>img,
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__fallback{
  position:relative;
  z-index:3;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#A6A6A6;
}
/* Container units keep the hover enlargement at 3px per edge at every card width. */
body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__button{container-type:inline-size}
@media (hover:hover) and (pointer:fine){
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__button:hover .hp-saved-collection-grid-card__cover{
    transform:scale(1.02);
  }
  @supports (scale:calc(1 + 6px / 100cqw)){
    body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__button:hover .hp-saved-collection-grid-card__cover{
      transform:none;
      scale:calc(1 + 6px / 100cqw) calc(1 + 6px / 125cqw);
    }
  }
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list){--hp-collection-border:#000}
  body.hp-profile-page .hp-saved-page-grid{row-gap:26px}
  body.hp-profile-page .hp-profile-account-page .hp-profile-saved-list{row-gap:20px}
}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-profile-account-page .hp-profile-saved-list{row-gap:20px}
}
@media (max-width:639px){
  body.hp-profile-page .hp-saved-page-grid{row-gap:25px}
}

/* v0.5.146 — center the Saved heading between the visible Note and the
   rear thumbnail layer (which extends 8px above the grid's layout box).
   Moving only the heading preserves the current thumbnail positions. */
body.hp-profile-page .hp-saved-page-protection:not([hidden]) + .hp-saved-page-head{
  position:relative;
  top:-6.5px;
}
/* v0.5.149 — when signed in, the protection Note is hidden. Keep the same
   visual centering between the top divider and the rear thumbnail layer. */
body.hp-profile-page .hp-saved-page-protection[hidden] + .hp-saved-page-head{
  position:relative;
  top:-6.5px;
}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-saved-page-protection:not([hidden]) + .hp-saved-page-head,
  body.hp-profile-page .hp-saved-page-protection[hidden] + .hp-saved-page-head{top:-5.5px}
}
@media (max-width:1024px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))), (hover:none) and (pointer:coarse) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-profile-shell{
    min-height:calc(100dvh - var(--hp-profile-nav-height));
    padding-bottom:max(72px,calc(var(--hp-profile-nav-height) + 24px));
  }
}

/* Profile creation controls share the collection grid's exact content gutters. */
body.hp-profile-page .hp-profile-account-page .hp-saved-page-create-form,
body.hp-profile-page .hp-profile-account-page .hp-saved-page-notice{
  width:min(calc(100% - 32px),var(--hp-container));
  max-width:100%;box-sizing:border-box;margin-left:auto;margin-right:auto;
}
@media (max-width:767px) and (not ((any-pointer: coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  body.hp-profile-page .hp-profile-account-page .hp-saved-page-create-form,
  body.hp-profile-page .hp-profile-account-page .hp-saved-page-notice{width:calc(100% - 20px)}
}

.hp-saved-page-edit-menu .hp-collection-privacy{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:12px;width:100%;border:0;background:transparent;color:inherit;cursor:pointer}
.hp-collection-privacy>span:first-child{display:grid;gap:4px;min-width:0}.hp-collection-privacy strong{font-size:14px}.hp-collection-privacy small{font-size:12px;color:var(--hp-muted);line-height:1.35}
.hp-collection-privacy__track{position:relative;width:44px;height:26px;flex:0 0 44px;border-radius:999px;background:#9c9d97;transition:background .15s}
.hp-collection-privacy__track::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}
.hp-collection-privacy[aria-checked="true"] .hp-collection-privacy__track{background:var(--hp-accent)}.hp-collection-privacy[aria-checked="true"] .hp-collection-privacy__track::after{transform:translateX(18px)}
.hp-profile-created-title{display:flex;align-items:center;gap:10px;min-width:0}.hp-profile-created-title h2{margin:0}
@media (max-width:639px){.hp-profile-created-title{gap:7px}.hp-profile-created-head{gap:8px;flex-wrap:wrap}.hp-profile-create-button{margin-left:auto}}

body.hp-profile-page .hp-created-pending{display:inline-block;margin:0 0 6px;padding:4px 8px;border-radius:6px;background:var(--hp-surface-2);color:var(--hp-accent);font-size:12px;line-height:1.4}

/* v0.5.276: keep the logically closed Save sheet visible only for its exit slide.
   Hidden still controls history/state; the lazy modal module owns animation cleanup. */
@media (max-width:1024px) and (not ((any-pointer:coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))),
       (hover:none) and (pointer:coarse) and (not ((any-pointer:coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  #saved-modal.is-save-flow.hp-save-sheet-leaving[hidden]{display:grid!important;pointer-events:none!important;z-index:109}
  body.hp-save-sheet-closing{overflow:hidden!important}
}

/* v0.5.277: this backdrop is a button. Reset the UA's light outset border,
   which otherwise draws bright strips along the top and left of the dim layer. */
@media (max-width:1024px) and (not ((any-pointer:coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))),
       (hover:none) and (pointer:coarse) and (not ((any-pointer:coarse) and (min-width:640px) and (min-device-width:640px) and (min-device-height:640px))){
  #saved-modal.is-save-flow>.hp-ui-modal__backdrop{
    border:0!important;padding:0!important;margin:0!important;
    appearance:none!important;-webkit-appearance:none!important;box-shadow:none!important;
  }
}
