/* v0.5.271 — match the existing tablet/desktop light palette on phones.
   Colors ONLY: do not change grid, typography, spacing or device behavior.
   The fixed touch navigation and the black image/ad field intentionally stay dark,
   exactly as they do on tablets. */
@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))){
  :root{
    --hp-bg:#fff!important;--hp-surface:#fff!important;
    --hp-surface-2:#f3f3f3!important;--hp-surface-3:#e9e9e9!important;
    --hp-text:#111!important;--hp-muted:#5f5f5f!important;
    --hp-line:#c9c9c9!important;--hp-accent-soft:#fff1e5!important;
    --hp-shadow:0 8px 28px rgba(0,0,0,.10)!important;
  }
  html,body,.site-main,.site-header,.site-header--catalog,.site-header__top-shell,
  .catalog-nav-area,.site-footer,.page-content{
    background:#fff!important;color:#111!important;
  }
  .site-header,.site-header__top-shell,.site-header--catalog,.catalog-nav-area{
    border-color:var(--hp-line)!important;
  }
  .site-brand-wrap .hp-theme-logo-slogan,
  .site-search--catalog button,.site-saved-button,.site-account-button,
  .site-more-button{color:#111!important}
  .site-search--catalog{background:#fff!important;color:#111!important;border-color:var(--hp-line)!important}
  .catalog-pill{background:#f2f2f2!important;color:#111!important;border-color:currentColor!important}
  .catalog-pill:hover{background:#e8e8e8!important;color:#111!important}
  .catalog-pill.is-active,.catalog-pill.is-open,.catalog-pill[aria-expanded="true"]{
    background:#000!important;color:#fff!important;
  }
  .catalog-submenu,.site-more-menu__panel,.site-account-menu__panel,
  .site-notifications__panel,.site-search--catalog .hp-menu-suggest{
    background:#fff!important;color:#111!important;border-color:var(--hp-line)!important;
  }
  .site-account-button{background:#fff!important;color:#111!important;border-color:var(--hp-line)!important}
  .site-notifications__more,.site-notifications__settings,.site-notifications__settings-toggle:hover,
  .site-notifications__close:hover,.site-notifications__setting-group button:hover,
  .site-notifications__setting-group button:focus-visible,
  .hp-next-page,.more-action,.hp-secondary-button{
    background:var(--hp-surface-2)!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;
  }
  .site-notifications__more:hover,.site-notifications__more:focus-visible{
    background:var(--hp-surface-3)!important;
  }
  .site-notification-button__badge{border-color:#fff!important}
  .site-footer{border-color:var(--hp-line)!important}

  /* Article page: image panels keep tablet's dark ad field, sidebar returns to light. */
  body.single-hp_pattern .site-main--article,.hp-pattern-entry-card.article-layout,
  .hp-pattern-sidebar-home,.hp-pattern-entry-card .article-sidebar,
  body.single-hp_pattern .related-patterns,
  body.single-hp_pattern .related-patterns .pattern-card__body{
    background:#fff!important;color:#111!important;
  }
  .hp-pattern-sidebar-home .creator-card,.creator-card{
    background:#fff!important;color:#111!important;border-color:var(--hp-line)!important;
  }
  .article-fallback-content{background:var(--hp-surface)!important;color:var(--hp-text)!important}
  .hp-pattern-sidebar-home .article-action:hover,.article-action:hover{
    background:var(--hp-surface-2)!important;
  }
  .related-patterns{border-color:var(--hp-line)!important}
  .hp-pattern-preview-shell{background:#f3f3f3!important}
  .hp-pattern-sidebar-home .article-sidebar,
  .hp-pattern-sidebar-home .article-sidebar>h1,
  .hp-pattern-sidebar-home .article-description-meta,
  .hp-pattern-sidebar-home .article-action,
  .hp-pattern-sidebar-home .creator-card__identity strong{color:#111!important}
  .hp-pattern-sidebar-home .creator-card__identity>span{color:var(--hp-muted)!important}

  /* Reader: same bright sidebar and text as tablet, black image/ad column. */
  body.single-hp_pattern .hp-pattern-reader__dialog,
  body.single-hp_pattern .hp-pattern-reader.hp-reader-touch .hp-pattern-reader__dialog,
  body.single-hp_pattern .hp-pattern-reader__layout,
  body.single-hp_pattern .hp-pattern-reader.hp-reader-touch .hp-pattern-reader__layout,
  body.single-hp_pattern .hp-pattern-reader__sidebar,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__sidebar,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-sidebar,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__sidebar .article-sidebar,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__sidebar .creator-card,
  body.single-hp_pattern .hp-pattern-reader__sidebar .creator-card{
    background:#fff!important;color:#111!important;
  }
  body.single-hp_pattern .hp-pattern-reader__sidebar{border-bottom-color:var(--hp-line)!important}
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-sidebar>h1,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-sidebar h1,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-action,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-action--rating.is-active .rating-inline,
  body.single-hp_pattern .hp-pattern-reader__sidebar .creator-card__identity strong,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-sidebar__summary,
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-description-meta{
    color:#111!important;
  }
  body.single-hp_pattern .hp-pattern-reader__sidebar .creator-card__identity>span{color:var(--hp-muted)!important}
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__sidebar .article-sidebar-save.is-saved,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__sidebar .article-sidebar-save[aria-pressed="true"]{
    background:#111!important;color:#fff!important;
  }
  body.single-hp_pattern .hp-pattern-reader__sidebar .article-description-meta__more{
    background:linear-gradient(90deg,transparent 0%,#fff 18%,#fff 100%)!important;
  }
  body.single-hp_pattern .hp-pattern-reader__content,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__content{
    background:#000!important;color:#fff!important;
  }
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__visuals .visual-block{
    background:#000!important;border-color:#303030!important;
  }
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block figcaption,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__visuals .visual-block figcaption{
    background:#151515!important;color:#fff!important;border-color:#303030!important;
  }
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block figcaption :is(strong,span){color:#fff!important}
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block figcaption small{color:#bbb!important}
  /* The overlay matches tablet exactly (.46 opacity and no full-screen blur). */
  body.single-hp_pattern .hp-pattern-reader .hp-pattern-reader__backdrop{
    background:rgba(0,0,0,.46)!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }

  /* Comment, rating, translation, Saved/Collection, and Share overlays. */
  .hp-ui-modal__dialog,.share-modal__dialog,.hp-people-modal .hp-people-dialog,
  .hp-saved-modal.is-save-flow .hp-saved-dialog{
    background:#fff!important;color:#111!important;border-color:var(--hp-line)!important;
  }
  .hp-ui-modal__close,.hp-comment-modal__close,.share-modal__close,
  .share-modal__dialog h2,.hp-people-header h2{color:#111!important}
  .hp-ui-modal__close:hover,.hp-comment-modal__close:hover,
  .share-modal__close:hover,.hp-people-modal .hp-ui-modal__close:hover{
    background:var(--hp-surface-2)!important;
  }
  .comment-list,.report-preview,.comment-form-lite input,.comment-form-lite textarea,
  .report-form input,.report-form textarea,.report-form select,
  #rating-modal .hp-rating-statistics{
    background:var(--hp-surface-2)!important;color:#111!important;border-color:var(--hp-line)!important;
  }
  #comment-modal .hp-comment-modal__header,#comment-modal .hp-comment-modal__body,
  #comment-modal .hp-comment-modal__footer,#comment-modal.hp-overlay-keyboard-comment .hp-comment-modal__footer{
    background:#fff!important;color:#111!important;
  }
  #comment-modal .hp-comment-name-trigger__avatar,
  #comment-modal .hp-comment-entry,
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-name-popover input{
    background:var(--hp-surface-2)!important;color:#111!important;
  }
  #comment-modal .hp-comment-name-popover,#comment-modal .hp-comment-emoji-popover{
    background:#fff!important;color:#111!important;border-color:var(--hp-line)!important;
  }
  #comment-modal .hp-comment-emoji-trigger:hover,#comment-modal .hp-comment-emoji-choice:hover{
    background:var(--hp-surface-2)!important;
  }
  .hp-translation-guide-method__access{background:var(--hp-accent-soft)!important;border-color:var(--hp-line)!important}
  .hp-translation-guide-modal .hp-translation-guide-dialog__close:hover,
  .hp-translation-quick-modal .hp-translation-guide-dialog__close:hover{
    background:var(--hp-surface-2)!important;
  }
  .share-preview,.share-copy{background:var(--hp-surface-2)!important;color:#111!important;border-color:var(--hp-line)!important}
  .share-app>span:last-child,.share-preview small,.share-copy input{color:var(--hp-text)!important}
  .share-app--x .share-app__icon{background:#000!important;color:#fff!important}
  .hp-people-header{border-color:var(--hp-line)!important}
  .hp-people-name{color:#2854d9!important}
  .hp-people-status{color:var(--hp-muted)!important}
  .hp-people-more{background:var(--hp-surface-2)!important;color:#111!important;border-color:var(--hp-line)!important}
  .hp-people-modal .hp-people-follow.is-self{background:#eee!important;border-color:#eee!important;color:#777!important}
  .hp-saved-detail-edit-menu,#saved-modal.hp-saved-modal:not(.is-save-flow) .hp-saved-heading,
  .hp-saved-protection,.hp-saved-restore-prompt,
  .hp-save-flow--pinterest .hp-save-flow__inline-panel--new,
  .hp-save-flow--pinterest .hp-save-flow__create-area,
  #saved-modal.hp-saved-modal.is-save-flow .hp-save-flow--pinterest .hp-save-flow__create-area{
    background:#fff!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;
  }
  .hp-saved-protection.is-important{background:var(--hp-accent-soft)!important;border-color:var(--hp-accent)!important}
  .hp-saved-protection__icon,.hp-saved-restore-prompt__icon,
  .hp-saved-detail-edit-menu button.hp-saved-detail-edit-close,
  .hp-save-flow--pinterest .hp-save-flow__collection-thumb,
  .hp-save-flow--pinterest .hp-save-flow__collection-fallback{
    background:var(--hp-surface-2)!important;color:var(--hp-text)!important;
  }
  .hp-save-flow--pinterest .hp-save-flow__form input{
    background:var(--hp-surface)!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;
  }
  .hp-save-flow--pinterest .hp-save-flow__divider::before,
  .hp-save-flow--pinterest .hp-save-flow__divider::after{background:var(--hp-line)!important}
  #saved-collection-modal .hp-saved-detail-toprow{border-color:var(--hp-line)!important}
  #saved-collection-modal .hp-saved-detail-exit:hover{background:var(--hp-surface-2)!important}

  /* Profile, Creator and Collection use the tablet's same pale background. */
  .hp-profile-page,.hp-profile-shell{background:#fbfaf7!important;color:#111!important}
  .hp-profile-topbar{background:#fbfaf7!important;color:#111!important;border-color:var(--hp-line)!important}
  .hp-profile-avatar-image,.hp-profile-avatar-initial{background:var(--hp-surface)!important}
  .hp-profile-avatar-edit{border-color:#fbfaf7!important}
  .hp-profile-edit-button,.hp-author-patterns .hp-infinite-more,
  .hp-profile-created-patterns .hp-infinite-more,
  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-collection-search.site-search,
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{
    background:var(--hp-surface)!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;
  }
  .hp-profile-share-button:hover{background:var(--hp-surface-2)!important}
  /* Preserve the black bottom navigation and its white controls, like tablet. */
  .touch-floating-nav{background:rgba(0,0,0,.98)!important;color:#fff!important}
  .touch-floating-nav .floating-nav-button,.touch-floating-nav .floating-nav-button__label{color:#fff!important}
  /* Restore readable text for phone-specific legacy white-on-dark selectors. */
  .site-search,.site-search--catalog input[type="text"],
  .site-search--catalog input[type="search"],.site-search--catalog input:not([type]),
  .category-menu-toggle,.category-nav__all,.category-nav__trigger,.category-nav__dropdown,
  .catalog-submenu a,.site-notification-button,
  .page-content,.content-narrow,.archive-heading,.archive-heading p,
  .hp-infinite-more,.pattern-card__body,.pattern-card__desc,
  .hp-next-page,.modal-empty,.more-action small,
  .site-notifications__excerpt,.site-notifications__item small,
  .site-notifications__setting-label{
    color:var(--hp-text)!important;
  }
  .site-account-button:not(.has-avatar),
  .site-account-button:not(.has-avatar):hover,
  .site-account-button:not(.has-avatar):focus-visible{color:var(--hp-text)!important}
  body.logged-in .site-account-button.has-no-avatar{color:#fff!important}
  .site-saved-button__badge,.site-notification-button__badge,
  .touch-floating-nav .floating-nav-button__badge{color:#fff!important}
  .article-sidebar,.article-sidebar h1,.article-sidebar__summary,
  .article-action,.article-action--rating.is-active .rating-inline,
  .creator-card__identity strong{
    color:var(--hp-text)!important;
  }
  .creator-card__identity>span,.comment-item__meta time,
  .report-preview small{color:var(--hp-muted)!important}
  .visual-block{background:var(--hp-surface)!important;border-color:var(--hp-line)!important}
  .visual-block figcaption{background:var(--hp-surface-2)!important;color:var(--hp-text)!important}
  .visual-block figcaption strong,.visual-block figcaption span{color:var(--hp-text)!important}
  /* Keep the black Reader image backgrounds and light captions after the
     generic article color selectors above. */
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__visuals .visual-block{
    background:#000!important;border-color:#303030!important;
  }
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block figcaption{
    background:#151515!important;color:#fff!important;border-color:#303030!important;
  }
  body.single-hp_pattern .hp-pattern-reader__visuals .visual-block figcaption :is(strong,span){color:#fff!important}
  #comment-modal .hp-comment-modal__header h2,
  #comment-modal .hp-comment-modal__close,
  #comment-modal .comment-list,
  #comment-modal .comment-item__meta strong,
  #comment-modal .comment-item p,
  #comment-modal .hp-comment-name-trigger__avatar,
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-entry textarea,
  #comment-modal .hp-comment-name-popover p,
  #comment-modal .hp-comment-emoji-popover__head small,
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-name-popover input,
  #comment-modal .hp-comment-avatar-picker__head span,
  #comment-modal .hp-comment-avatar-picker__head small{
    color:var(--hp-text)!important;
  }
  #comment-modal .hp-comment-send{color:#fff!important}
  #rating-modal .hp-rating-statistics h3,
  #rating-modal .hp-rating-statistics__score{color:var(--hp-text)!important}
  .hp-translation-quick-modal .hp-translation-guide-dialog__close,
  .hp-translation-guide-modal .hp-translation-guide-dialog__close{
    color:var(--hp-text)!important;
  }
  .hp-saved-detail-back,.hp-saved-detail-edit-menu__head strong,
  .hp-saved-detail-edit-menu button.hp-saved-detail-edit-close,
  .hp-saved-protection__copy strong,.hp-saved-restore-prompt__copy strong,
  .hp-saved-modal.is-save-flow .hp-saved-heading__title h2,
  .hp-save-flow--pinterest .hp-save-flow__collection-name,
  .hp-saved-modal.is-save-flow .hp-ui-modal__close,
  #saved-collection-modal .hp-saved-detail-toprow h2,
  #saved-collection-modal .hp-saved-detail-back,
  #saved-collection-modal .hp-saved-detail-count,
  #saved-collection-modal .hp-saved-detail-exit,
  #saved-modal .hp-saved-dialog>.hp-ui-modal__close{
    color:var(--hp-text)!important;
  }
  .hp-profile-icon-button,.hp-profile-stats strong,
  .hp-profile-tab,.hp-profile-saved-head h2,
  .hp-profile-edit-button,.hp-author-stats,.hp-author-stats strong,
  .hp-author-posts-head h2,
  .hp-profile-account-page .hp-profile-panel-head h2,
  .hp-author-patterns .hp-infinite-more,
  .hp-profile-created-patterns .hp-infinite-more,
  body.hp-profile-page .hp-saved-page-head h2,
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__title,
  body.hp-profile-page .hp-saved-page-patterns .pattern-card__description,
  body.hp-profile-page .hp-saved-collection-search input,
  body.hp-profile-page .hp-saved-collection-search input[type="search"],
  body.hp-profile-page .hp-saved-collection-search__icon{
    color:var(--hp-text)!important;
  }
  .hp-profile-avatar-image,.hp-profile-avatar-initial{color:var(--hp-accent)!important}
  body.hp-profile-page .hp-saved-page-new{color:#fff!important}

}

/* v0.5.272 — use the existing desktop component colors on phones.
   Only paint properties are overridden; all responsive dimensions stay intact. */
@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))){
  /* main */
  body{background:#fff!important;color:var(--hp-text)!important;}
  .category-nav__all{background:var(--hp-surface)!important;}
  .category-nav__trigger{background:var(--hp-surface)!important;}
  .category-nav__dropdown{background:var(--hp-surface)!important;}
  .site-main{background:#fff!important;}
  .site-header{background:#fff!important;}
  .hp-ui-modal__dialog{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  .hp-ui-modal__close{color:var(--hp-text)!important;}
  .hp-ui-modal__close:hover{background:var(--hp-surface-2)!important;}
  .more-action{background:var(--hp-surface-2)!important;color:var(--hp-text)!important;}
  .hp-secondary-button{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .modal-empty{color:var(--hp-muted)!important;}
  .more-action small{color:var(--hp-muted)!important;}
  .site-footer{background:#fff!important;}
  .page-content{background:var(--hp-surface)!important;border-color:var(--hp-line)!important;}
  .site-header--catalog{background:#fff!important;}
  .site-search--catalog{border-color:var(--hp-line)!important;background:#fff!important;}
  .site-account-button{border-color:var(--hp-line)!important;background:#f2f2f2!important;color:#111!important;}
  .catalog-pill{background:#f2f2f2!important;color:#111!important;}
  .catalog-submenu{background:var(--hp-surface)!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;}
  .site-search--catalog input[type="text"]{color:var(--hp-text)!important;}
  .site-search--catalog input[type="search"]{color:var(--hp-text)!important;}
  .site-search--catalog input:not([type]){color:var(--hp-text)!important;}
  .site-search--catalog button{color:#000!important;}
  .site-header__top-shell{background:#fff!important;}
  .catalog-nav-area{background:#fff!important;}
  .hp-account-message.is-error{color:#c93439!important;}
  .hp-account-message.is-success{color:#217a51!important;}
  .site-brand-wrap .hp-theme-logo-slogan{color:#111!important;}
  .catalog-pill.is-active{background:#000!important;color:#fff!important;}
  .catalog-pill.is-open{background:#000!important;color:#fff!important;}
  .catalog-pill[aria-expanded="true"]{background:#000!important;color:#fff!important;}
  .site-saved-button{color:#111!important;}
  .hp-saved-detail-back{color:var(--hp-text)!important;}
  .hp-saved-detail-edit-menu{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;}
  .hp-saved-detail-edit-menu__head strong{color:var(--hp-text)!important;}
  .hp-saved-detail-edit-menu button.hp-saved-detail-edit-close{color:var(--hp-text)!important;background:var(--hp-surface-2)!important;}
  .hp-saved-protection{border-color:color-mix(in srgb,var(--hp-accent) 22%,var(--hp-line))!important;background:#f2f2f2!important;}
  .hp-saved-protection__icon{background:color-mix(in srgb,var(--hp-accent) 10%,var(--hp-surface-2))!important;}
  .hp-saved-protection__restore{color:var(--hp-muted)!important;}
  .hp-saved-restore-prompt{border-color:color-mix(in srgb,var(--hp-accent) 22%,var(--hp-line))!important;background:color-mix(in srgb,var(--hp-accent) 5%,var(--hp-surface))!important;}
  .hp-saved-protection.is-important{border-color:color-mix(in srgb,var(--hp-accent) 42%,var(--hp-line))!important;background:#f2f2f2!important;}
  .hp-saved-restore-prompt__icon{background:var(--hp-surface-2)!important;}
  .hp-saved-protection__copy strong{color:var(--hp-text)!important;}
  .hp-saved-restore-prompt__copy strong{color:var(--hp-text)!important;}
  .hp-saved-protection__copy small{color:var(--hp-muted)!important;}
  .hp-saved-restore-prompt__copy p{color:var(--hp-muted)!important;}
  .hp-save-flow--pinterest .hp-save-flow__collection-name{color:var(--hp-text)!important;}
  .hp-save-flow--pinterest .hp-save-flow__list-title{color:var(--hp-muted)!important;}
  .hp-save-flow--pinterest .hp-save-flow__empty{color:var(--hp-muted)!important;}
  .hp-save-flow--pinterest .hp-save-flow__collection-thumb{background:color-mix(in srgb,var(--hp-text) 8%,var(--hp-surface-2))!important;}
  .hp-save-flow--pinterest .hp-save-flow__collection-fallback{background:color-mix(in srgb,var(--hp-text) 9%,var(--hp-surface-2))!important;}
  .hp-save-flow--pinterest .hp-save-flow__inline-panel--new{border-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;}
  .hp-save-toast{background:rgba(20,20,20,.92)!important;color:#fff!important;}
  #saved-modal.hp-saved-modal:not(.is-save-flow) .hp-saved-heading{background:var(--hp-surface)!important;}
  .site-account-menu__panel{background:var(--hp-surface)!important;}
  .site-account-menu__panel a:hover{background:var(--hp-surface-2)!important;}
  .hp-save-flow--pinterest .hp-save-flow__divider{color:var(--hp-muted)!important;}
  .hp-save-flow--pinterest .hp-save-flow__divider::before{background:var(--hp-line)!important;}
  .hp-save-flow--pinterest .hp-save-flow__divider::after{background:var(--hp-line)!important;}
  #saved-modal.hp-saved-modal.is-save-flow .hp-save-flow--pinterest .hp-save-flow__create-area{background:var(--hp-surface)!important;}
  .catalog-pill:hover{background:#e8e8e8!important;color:#111!important;}
  .site-search--catalog input::placeholder{color:var(--hp-muted)!important;}
  .site-footer p{color:var(--hp-muted)!important;}
  .site-more-button{color:var(--hp-text)!important;}
  .site-more-menu__panel{background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  #saved-collection-modal .hp-saved-detail-toprow h2{color:var(--hp-text)!important;}
  #saved-collection-modal .hp-saved-detail-back{color:var(--hp-text)!important;}
  #saved-collection-modal .hp-saved-detail-count{color:#000!important;}
  #saved-collection-modal .hp-saved-detail-exit{color:var(--hp-text)!important;}
  #saved-collection-modal .hp-saved-detail-exit:hover{background:var(--hp-surface-2)!important;}
  #saved-modal .hp-saved-dialog>.hp-ui-modal__close{color:var(--hp-text)!important;}
  .site-notification-button{color:#000!important;}
  .site-notification-button__badge{border-color:#fff!important;}
  .site-notifications__panel{background:var(--hp-surface,#fff)!important;color:var(--hp-text,#111)!important;}
  .site-notifications__more{border-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;color:var(--hp-text)!important;}
  .site-notifications__more:hover{background:var(--hp-surface-3)!important;color:var(--hp-text)!important;}
  .site-notifications__more:focus-visible{background:var(--hp-surface-3)!important;color:var(--hp-text)!important;}
  .site-notifications__header{border-bottom-color:var(--hp-line)!important;}
  .site-notifications__settings{border-bottom-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;}
  .site-notifications__settings-toggle:hover{background:var(--hp-surface-2)!important;}
  .site-notifications__settings-toggle:focus-visible{background:var(--hp-surface-2)!important;}
  .site-notifications__close:hover{background:var(--hp-surface-2)!important;}
  .site-notifications__close:focus-visible{background:var(--hp-surface-2)!important;}
  .site-notifications__settings-toggle.is-open{background:var(--hp-accent-soft)!important;}
  .site-notifications__excerpt{color:var(--hp-muted)!important;}
  .site-notifications__item small{color:var(--hp-muted)!important;}
  .site-notifications__setting-label{color:var(--hp-muted)!important;}
  .site-notifications__setting-group button:hover{background:var(--hp-surface-3)!important;}
  .site-notifications__setting-group button:focus-visible{background:var(--hp-surface-3)!important;}
  .site-account-button:not(.has-avatar){color:var(--hp-text)!important;}
  .site-account-button:not(.has-avatar):hover{color:var(--hp-text)!important;}
  .site-account-button:not(.has-avatar):focus-visible{color:var(--hp-text)!important;}

  /* listing */
  .pattern-card__media{background:transparent!important;}
  .pattern-card__description{color:var(--hp-text)!important;}

  /* profile */
  .hp-profile-page{background:#fbfaf7!important;}
  .hp-profile-topbar{background:#fff!important;border-bottom-color:var(--hp-line)!important;}
  .hp-profile-icon-button{color:var(--hp-text)!important;}
  .hp-profile-avatar-image{background:var(--hp-surface)!important;border-color:color-mix(in srgb,var(--hp-accent) 54%,#fff)!important;color:var(--hp-accent)!important;}
  .hp-profile-avatar-initial{background:var(--hp-surface)!important;border-color:color-mix(in srgb,var(--hp-accent) 54%,#fff)!important;color:var(--hp-accent)!important;}
  .hp-profile-avatar-edit{border-color:#fff!important;}
  .hp-profile-username{color:var(--hp-muted)!important;}
  .hp-profile-stats span{color:var(--hp-muted)!important;}
  .hp-profile-bio{color:var(--hp-muted)!important;}
  .hp-profile-stats strong{color:var(--hp-text)!important;}
  .hp-profile-tab{color:var(--hp-text)!important;}
  .hp-profile-edit-button{background:var(--hp-surface)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .hp-profile-saved-list .hp-saved-collection-grid-card__meta{color:var(--hp-muted)!important;}
  .hp-profile-created-empty{color:var(--hp-muted)!important;}
  .hp-author-stats{color:#000!important;}
  .hp-author-stats strong{color:inherit!important;}
  .hp-author-posts-head h2{color:var(--hp-text)!important;}
  .hp-author-follow-button.is-following{border-color:#111!important;background:#111!important;color:#fff!important;}
  .hp-author-patterns .hp-infinite-more{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  .hp-author-empty{color:var(--hp-muted)!important;}
  .hp-profile-account-page .hp-profile-panel-head h2{color:var(--hp-text)!important;}
  .hp-profile-created-patterns .hp-infinite-more{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}

  /* saved-view */
  body.hp-profile-page .hp-saved-page-head h2{color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__title{color:inherit!important;}
  body.hp-profile-page .hp-saved-page-grid .hp-saved-collection-grid-card__meta{color:var(--hp-muted)!important;}
  body.hp-profile-page .hp-saved-page-empty{color:var(--hp-muted)!important;}
  body.hp-profile-page .hp-profile-new-collection{border-color:currentColor!important;background:var(--hp-accent)!important;color:#fff!important;}
  body.hp-profile-page .hp-saved-page-edit{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-create-form input{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-rename-form input{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-create-form button.is-secondary{border-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-rename-form button.is-secondary{border-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-page-selection-toolbar{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;}
  body.hp-profile-page .hp-saved-page-selection-toolbar button{border-color:var(--hp-line)!important;background:var(--hp-surface-2)!important;}
  body.hp-profile-page .hp-saved-page-edit-menu{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-collection-search.site-search{border-color:var(--hp-line)!important;background:#fff!important;}
  body.hp-profile-page .hp-saved-collection-search.site-search--catalog{border-color:var(--hp-line)!important;background:#fff!important;}
  body.hp-profile-page .hp-saved-collection-search input{color:var(--hp-text)!important;}
  body.hp-profile-page .hp-saved-collection-search__icon{color:#000!important;}
  body.hp-profile-page .hp-saved-page-edit-menu>button:not(.hp-saved-page-edit-close):hover{background:var(--hp-surface-2)!important;}
  body.hp-profile-page .hp-saved-page-topbar{border-bottom-color:var(--hp-line)!important;}
  body.hp-profile-page .hp-saved-collection-search input[type="search"]{color:#111!important;}
  body.hp-profile-page .hp-saved-collection-search input[type="search"]::placeholder{color:#8b8b8b!important;}

  /* share */
  .share-modal__dialog{border-color:var(--hp-line)!important;background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  .share-modal__close{color:var(--hp-text)!important;}
  .share-modal__close:hover{background:var(--hp-surface-2)!important;}
  .share-preview{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;}
  .share-copy{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;}
  .share-preview small{color:var(--hp-muted)!important;}
  .share-app>span:last-child{color:var(--hp-text)!important;}
  .share-app--x .share-app__icon{background:#000!important;}
  .share-copy input{color:var(--hp-text)!important;}

  /* profile-social */
  .hp-people-modal .hp-people-dialog{background:#fff!important;color:#111!important;}
  .hp-people-modal .hp-ui-modal__close:hover{background:#f3f3f3!important;}
  .hp-people-status{color:#666!important;}
  .hp-people-name{color:#2854d9!important;}
  .hp-people-more{background:#f5f5f5!important;border-color:#ddd!important;color:inherit!important;}
  .hp-people-modal .hp-people-follow.is-self{background:#eee!important;border-color:#eee!important;color:#777!important;}

  /* pattern */
  .comment-form-lite textarea{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .article-fallback-content{background:var(--hp-surface)!important;color:var(--hp-text)!important;}
  .article-sidebar h1{color:#111!important;}
  .article-action{color:#111!important;}
  .article-action:hover{background:var(--hp-surface-2)!important;}
  .creator-card__identity strong{color:var(--hp-text)!important;}
  .creator-card__identity>span{color:var(--hp-muted)!important;}
  .article-sidebar__summary{color:#111!important;}
  .comment-list{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;}
  .report-preview{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;}
  .comment-form-lite input{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .report-form input{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .report-form textarea{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .report-form select{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important;}
  .comment-item__meta time{color:var(--hp-muted)!important;}
  .report-preview small{color:var(--hp-muted)!important;}
  .article-action--rating.is-active .rating-inline{color:#111!important;}
  body.single-hp_pattern .site-main--article{background:#fff!important;}
  .creator-save.is-saved{color:#111!important;}
  .creator-save[aria-pressed="true"]{color:#111!important;}
  #comment-modal .hp-comment-modal__header h2{color:var(--hp-text)!important;}
  #comment-modal .hp-comment-name-trigger{color:var(--hp-muted)!important;}
  #comment-modal .hp-comment-name-trigger__avatar{background:transparent!important;color:inherit!important;}
  #comment-modal .hp-comment-emoji-trigger:hover{background:transparent!important;color:var(--hp-text)!important;}
  #comment-modal .hp-comment-emoji-trigger:focus-visible{background:transparent!important;color:var(--hp-text)!important;}
  #comment-modal .hp-comment-send{background:transparent!important;color:var(--hp-accent)!important;}
  #comment-modal .hp-comment-send:disabled{background:transparent!important;color:color-mix(in srgb,var(--hp-muted) 58%,transparent)!important;}
  #comment-modal .hp-comment-composer-form.is-first-commenter .hp-comment-name-trigger{background:color-mix(in srgb,var(--hp-accent) 6%,transparent)!important;}
  #comment-modal .hp-comment-composer-form:not(.is-name-needed) .hp-comment-name-trigger{color:var(--hp-muted)!important;}
  #comment-modal .hp-comment-emoji-trigger{color:var(--hp-muted)!important;}
  .hp-translation-guide-method__access{border-color:#e1e6e2!important;background:#f3f7f4!important;color:#52705a!important;}
  .hp-pattern-entry-card.article-layout{background:var(--hp-surface)!important;}
  .hp-pattern-preview-shell{background:#f2f2f2!important;}
  .hp-pattern-sidebar-home{background:var(--hp-surface)!important;}
  .hp-pattern-sidebar-home .article-action:hover{background:transparent!important;}
  body.single-hp_pattern .related-patterns{background:#fff!important;}
  #rating-modal .hp-rating-statistics{border-color:#e3e3e3!important;background:#f7f7f7!important;color:#111!important;}
  #rating-modal .hp-rating-statistics h3{color:#111!important;}
  #rating-modal .hp-rating-statistics__score{color:#111!important;}
  #rating-modal .hp-rating-statistics__score span{color:#666!important;}
  #rating-modal .hp-rating-statistics__total{color:#666!important;}
  #rating-modal .hp-rating-statistics__label{color:#555!important;}
  #rating-modal .hp-rating-statistics__percent{color:#666!important;}
  #rating-modal .hp-rating-statistics__stars-base{color:#c9c9c9!important;}
  #rating-modal .hp-rating-statistics__track{background:#dedede!important;}
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-name-trigger:hover{color:#000!important;}
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-name-trigger:focus-visible{color:#000!important;}
  #comment-modal .comment-item__recipient{color:#087ac2!important;}
  #comment-modal .hp-comment-reply-context strong[data-comment-reply-name]{color:#087ac2!important;}
  #comment-modal .hp-comment-avatar-picker{border-top-color:var(--hp-line)!important;}
  #comment-modal .hp-comment-avatar-picker__head span{color:var(--hp-text)!important;}
  #comment-modal .hp-comment-avatar-picker__head small{color:var(--hp-muted)!important;}

  /* sell-products */
  .hp-shop-carousel__arrow{background:rgba(255,255,255,.76)!important;color:var(--hp-text)!important;}

  /* video */
  .hp-pattern-preview-shell--video{background:#000!important;}

  /* create-post */
  #profile-create-post-modal .hp-composer__picker{background:#0005!important;}
  #profile-create-post-modal .hp-composer__quota{background:rgba(255,255,255,.84)!important;}
}
/* Phone-only controls and legacy selectors without a desktop counterpart. */
@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))){
  .pattern-card h2,.pattern-card__description,.archive-heading h1,.archive-heading h2,
  .hp-ui-modal__dialog h2{color:var(--hp-text)!important}
  body.single-hp_pattern .hp-pattern-sidebar-home .article-sidebar__summary,
  body.single-hp_pattern .hp-pattern-sidebar-home .article-description-meta__copy{color:#111!important}
  body.single-hp_pattern :is(.hp-pattern-sidebar-home,.hp-pattern-reader__sidebar) .article-sidebar-save:is(.is-saved,[aria-pressed="true"]){background:#000!important;color:#fff!important}
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list){--hp-collection-border:#fff!important}
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__title{color:var(--hp-text)!important}
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__meta,
  body.hp-profile-page :is(.hp-saved-page-grid,.hp-profile-saved-list) .hp-saved-collection-grid-card__meta small,
  .hp-profile-created-empty,.hp-author-empty,
  body.hp-profile-page .hp-saved-page-pattern-empty{color:var(--hp-muted)!important}
  body.hp-profile-page .hp-saved-page-selection-toolbar,
  body.hp-profile-page .hp-saved-page-selection-toolbar button{color:var(--hp-text)!important}
  body.hp-profile-page .hp-saved-page-edit-menu__head,.hp-profile-content{border-color:var(--hp-line)!important}
  /* The first image's top padding is white; later image/ad gaps stay black. */
  body.single-hp_pattern .hp-pattern-reader__content,
  body.single-hp_pattern .hp-reader-touch .hp-pattern-reader__content{
    background:linear-gradient(#fff,#fff) 0 0 / 100% var(--hp-touch-article-gap,20px) no-repeat #000!important;
  }
  .hp-mobile-search-panel:not([hidden]),.hp-mobile-search-panel__top,.hp-mobile-search-panel__body{
    background:var(--hp-surface)!important;color:var(--hp-text)!important;
  }
  .hp-mobile-search-panel__form{background:var(--hp-surface-2)!important}
  .hp-mobile-search-panel__back,.hp-mobile-search-panel__form input[type="search"],
  .hp-mobile-search-panel__form button,
  .site-search--catalog.is-mobile-search-open input[type="text"],
  .site-search--catalog.is-mobile-search-open input[type="search"],
  .site-search--catalog.is-mobile-search-open input:not([type]){color:var(--hp-text)!important}
  .hp-mobile-search-panel__form input::placeholder{color:var(--hp-muted)!important}
  .site-search--catalog.is-mobile-search-open{border-color:var(--hp-line)!important}
  .site-search--catalog .hp-menu-suggest{
    --hp-line:#c9c9c9!important;--hp-muted:#5f5f5f!important;--hp-surface-2:#f3f3f3!important;
  }
  .hp-save-flow--pinterest .hp-save-flow__form label{color:var(--hp-muted)!important}
  .hp-saved-detail-edit-menu__head,.hp-saved-protection__icon,.hp-saved-restore-prompt__icon,
  #comment-modal .hp-ui-modal__dialog--comments,
  #comment-modal .hp-comment-modal__header,#comment-modal .hp-comment-modal__footer,
  #comment-modal .hp-comment-entry,#comment-modal .hp-comment-entry:focus-within,
  #comment-modal .hp-comment-name-trigger,
  #comment-modal .hp-comment-composer-form:not(.is-name-needed) .hp-comment-name-trigger,
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-name-popover input{
    border-color:var(--hp-line)!important;
  }
  #comment-modal .comment-form-lite.hp-comment-composer-form .hp-comment-entry textarea::placeholder,
  #comment-modal .hp-comment-name-popover p,
  #comment-modal .hp-comment-emoji-popover__head small{color:var(--hp-muted)!important}
  #comment-modal .hp-comment-name-hint{color:var(--hp-accent)!important}
  #comment-modal .hp-comment-modal__close:focus-visible,
  #comment-modal .hp-comment-emoji-choice:focus-visible,
  #saved-collection-modal .hp-saved-detail-exit:active,
  .hp-translation-quick-modal .hp-translation-guide-dialog__close:is(:hover,:active),
  .hp-translation-guide-modal .hp-translation-guide-dialog__close:is(:hover,:active){
    background:var(--hp-surface-2)!important;color:var(--hp-text)!important;
  }
  .hp-pattern-preview-shell--video :is(.hp-video,.hp-video__stage,.hp-video__player,.hp-video__start),
  .hp-pattern-preview-shell--video .hp-video__player :is(video,iframe){background:#000!important}
  .hp-profile-saved-empty{color:var(--hp-text)!important}
  #hp-site-footer{border-top-color:var(--hp-footer-line,#dedede)!important}
  #comment-modal .hp-comment-name-trigger,
  #comment-modal .hp-comment-composer-form:not(.is-name-needed) .hp-comment-name-trigger{border-color:var(--hp-muted)!important}
}

/* v0.5.273: Only the root underlay behind Chrome's phone navigation area.
   Site content and the fixed 4-button dock keep their previous colors/layout. */
@media (max-width:639px){html{background-color:#000!important}}

/* v0.5.276: override the former dark-phone rating text in every rating state. */
@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.single-hp_pattern :is(.hp-pattern-sidebar-home,.hp-pattern-reader__sidebar) .article-action--rating .rating-inline,
  body.single-hp_pattern :is(.hp-pattern-sidebar-home,.hp-pattern-reader__sidebar) .article-action--rating.is-active .rating-inline{
    color:#111!important;-webkit-text-fill-color:#111!important;
  }
}
