/* ===== ph-r37-ia-mega-style ===== */
/* =====================================================================
   PRICEHUMBLER R37 · INFORMATION ARCHITECTURE / WORKSPACE REDESIGN
   Base44-inspired structure only. PriceHumbler design language remains.
   ===================================================================== */
body.ph-r37-ia{--r37-rail-w:220px}
.ph-r37-rail{display:none}
.ph-r37-mobile-tabs{display:none}

@media(min-width:1181px){
  body.ph-r37-ia main#top,body.ph-r37-ia>.affiliate-disclosure,body.ph-r37-ia>footer{margin-left:var(--r37-rail-w)}
  body.ph-r37-ia main#top .shell,body.ph-r37-ia>.affiliate-disclosure .shell,body.ph-r37-ia>footer .shell{width:min(1280px,calc(100vw - 292px))}
  body.ph-r37-ia .ph-header .shell{width:min(1480px,calc(100vw - 56px))}
  body.ph-r37-ia #suggestOpen,body.ph-r37-ia #favoritesOpen,body.ph-r37-ia #adminOpen{display:none!important}
  .ph-r37-rail{
    position:fixed;z-index:88;left:0;top:106px;bottom:0;width:var(--r37-rail-w);display:flex;flex-direction:column;
    padding:18px 13px 17px;border-right:1px solid #D7E3E8;background:rgba(248,251,252,.96);backdrop-filter:blur(18px);
    box-shadow:8px 0 28px rgba(36,55,70,.035);overflow-y:auto;overscroll-behavior:contain
  }
  body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail{background:rgba(16,29,37,.97);border-color:#314854;box-shadow:8px 0 30px rgba(0,0,0,.18)}
}
.ph-r37-rail-brand{padding:2px 9px 17px;margin-bottom:8px;border-bottom:1px solid #DDE7EB}
.ph-r37-rail-brand strong{display:block;color:#17384D;font-size:16px;letter-spacing:-.25px}.ph-r37-rail-brand small{display:block;color:#738795;font-size:9px;margin-top:4px;letter-spacing:.04em;text-transform:uppercase}
body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-brand{border-color:#304751}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-brand strong{color:#EFF6F8}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-brand small{color:#8FA5AF}
.ph-r37-rail-group{display:grid;gap:4px}.ph-r37-rail-label{padding:14px 10px 5px;color:#82939E;font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.ph-r37-rail-btn{position:relative;width:100%;min-height:42px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#365466;text-align:left;cursor:pointer;font-size:12px;font-weight:730}
.ph-r37-rail-btn:hover{background:#EFF6F7;border-color:#D6E7E8;color:#17384D}.ph-r37-rail-btn.active{background:#E8F5F2;border-color:#B7DED5;color:#0E5D50;box-shadow:inset 3px 0 0 #16A085}
.ph-r37-rail-icon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;color:#476676;background:#EDF3F5;font-size:13px;font-weight:900}.ph-r37-rail-btn.active .ph-r37-rail-icon{background:#D9EFEA;color:#0D6D5C}
.ph-r37-rail-count{display:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;place-items:center;background:#D9EFEA;color:#0D6D5C;font-size:9px;font-weight:900}.ph-r37-rail-count.show{display:grid}
.ph-r37-rail-spacer{flex:1;min-height:14px}.ph-r37-rail-bottom{padding-top:12px;border-top:1px solid #DDE7EB;display:grid;gap:5px}
body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-btn{color:#B8C9D1}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-btn:hover{background:#1B303A;border-color:#35515D;color:#F0F6F8}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-btn.active{background:#183C37;border-color:#2B6257;color:#C9EFE6}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-icon{background:#213742;color:#B7CBD4}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-btn.active .ph-r37-rail-icon{background:#245149;color:#C9EFE6}body.ph-redesign-r2[data-theme="dark"] .ph-r37-rail-bottom{border-color:#304751}

@media(max-width:1180px){
  .ph-r37-mobile-tabs{position:sticky;top:72px;z-index:82;display:flex;gap:7px;padding:9px 14px;overflow-x:auto;background:rgba(247,250,251,.95);border-bottom:1px solid #D8E4E8;backdrop-filter:blur(16px);scrollbar-width:none}
  .ph-r37-mobile-tabs::-webkit-scrollbar{display:none}.ph-r37-mobile-tabs button{flex:0 0 auto;border:1px solid #D7E3E8;border-radius:999px;background:#FFF;color:#496474;padding:8px 12px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.ph-r37-mobile-tabs button.active{border-color:#9FD3C7;background:#EAF6F3;color:#0B6C5B}
  body.ph-redesign-r2[data-theme="dark"] .ph-r37-mobile-tabs{background:rgba(14,25,32,.96);border-color:#304650}body.ph-redesign-r2[data-theme="dark"] .ph-r37-mobile-tabs button{background:#172832;border-color:#354C57;color:#B7C8D0}body.ph-redesign-r2[data-theme="dark"] .ph-r37-mobile-tabs button.active{background:#1A403A;border-color:#32685D;color:#CCF0E8}
}
@media(max-width:680px){.ph-r37-mobile-tabs{top:62px;padding-inline:10px}.ph-r37-mobile-tabs button{padding:7px 10px}}

/* Cleaner discovery: simple tabs/chips, PriceHumbler cards remain unchanged. */
body.ph-r37-ia #categories-section{padding-top:12px;padding-bottom:8px}
body.ph-r37-ia #categories-section .categories{display:flex!important;gap:8px!important;overflow-x:auto!important;grid-template-columns:none!important;padding:2px 0 6px;scrollbar-width:none}
body.ph-r37-ia #categories-section .categories::-webkit-scrollbar{display:none}
body.ph-r37-ia #categories-section .category{flex:0 0 auto!important;min-height:38px!important;padding:9px 13px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;background:#F7FAFB!important;border:1px solid #D7E4E8!important;box-shadow:none!important}
body.ph-r37-ia #categories-section .category i{width:auto!important;height:auto!important;background:transparent!important;font-size:13px!important}body.ph-r37-ia #categories-section .category strong{font-size:11px!important;color:#345367!important}body.ph-r37-ia #categories-section .category small{display:none!important}
body.ph-r37-ia #categories-section .category.active{background:#E9F6F3!important;border-color:#9FD3C7!important}body.ph-r37-ia #categories-section .category.active strong{color:#0D6C5B!important}
body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #categories-section .category{background:#182A34!important;border-color:#34505B!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #categories-section .category strong{color:#C0D1D8!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #categories-section .category.active{background:#1A403A!important;border-color:#356B60!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #categories-section .category.active strong{color:#D1F2EA!important}
body.ph-r37-ia #recommendations{padding-top:22px}body.ph-r37-ia #recommendations .market-shell{border:1px solid #D8E5E9;border-radius:22px;background:#FFF;padding:22px;box-shadow:0 12px 34px rgba(36,55,70,.055)}
body.ph-r37-ia #recommendations .market-head{margin-bottom:16px!important;align-items:flex-end!important}body.ph-r37-ia #recommendations .market-head h2{font-size:26px!important;letter-spacing:-.8px!important;margin:4px 0 5px!important}body.ph-r37-ia #recommendations .market-head p{max-width:760px!important;font-size:11px!important;line-height:1.55!important}
body.ph-r37-ia #catalogViewTabs{padding:5px!important;border:1px solid #D9E5E9!important;border-radius:13px!important;background:#F6F9FA!important;gap:4px!important;overflow-x:auto!important;scrollbar-width:none}body.ph-r37-ia #catalogViewTabs::-webkit-scrollbar{display:none}body.ph-r37-ia .catalog-view-tab{flex:0 0 auto!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#657B88!important;padding:8px 11px!important;font-size:10px!important;box-shadow:none!important}body.ph-r37-ia .catalog-view-tab.active{background:#183A50!important;color:#FFF!important}
body.ph-r37-ia .catalog-toolbar{margin:13px 0 17px!important;padding:0!important;border:0!important;background:transparent!important}body.ph-r37-ia .catalog-result-copy strong{font-size:15px!important;color:#18384D!important}body.ph-r37-ia .catalog-result-copy small{font-size:10px!important;color:#728894!important}
body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #recommendations .market-shell{background:#14242D;border-color:#314B57;box-shadow:none}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #catalogViewTabs{background:#182A33!important;border-color:#34505B!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .catalog-view-tab{color:#AFC2CB!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .catalog-view-tab.active{background:#245147!important;color:#EAF7F4!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .catalog-result-copy strong{color:#EDF5F7!important}

/* Help & Contact: direct, calm page-like workspace. */
body.ph-r37-ia #help-center{padding-top:34px!important;padding-bottom:54px!important}
.ph-r37-help-shell{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:18px;align-items:start}.ph-r37-help-main,.ph-r37-help-side{border:1px solid #D6E4E8;border-radius:20px;background:#FFF;box-shadow:0 10px 28px rgba(36,55,70,.045)}.ph-r37-help-main{padding:22px}.ph-r37-help-side{padding:20px;display:grid;gap:14px}.ph-r37-help-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.ph-r37-help-head h2{font-size:28px!important;letter-spacing:-1px!important;margin:4px 0 6px!important;color:#18384D!important}.ph-r37-help-head p{font-size:11px!important;line-height:1.55!important;color:#657C8A!important;margin:0!important;max-width:700px}.ph-r37-help-topics{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px}.ph-r37-help-topic{border:1px solid #D5E3E7;background:#F9FBFC;color:#557080;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:800;cursor:pointer}.ph-r37-help-topic.active{background:#E7F5F1;border-color:#9FD2C6;color:#0C6A59}.ph-r37-help-form{display:grid;gap:12px}.ph-r37-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ph-r37-help-field{display:grid;gap:6px}.ph-r37-help-field.full{grid-column:1/-1}.ph-r37-help-field label{font-size:10px;font-weight:800;color:#496677}.ph-r37-help-field input,.ph-r37-help-field textarea{width:100%;border:1px solid #D5E2E7;border-radius:12px;background:#FBFCFD;color:#18384D;padding:11px 12px;font:inherit;font-size:12px;outline:none}.ph-r37-help-field textarea{min-height:128px;resize:vertical}.ph-r37-help-field input:focus,.ph-r37-help-field textarea:focus{border-color:#55AE9B;box-shadow:0 0 0 3px rgba(22,160,133,.09)}.ph-r37-help-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ph-r37-help-state{font-size:10px;color:#6D8290}.ph-r37-help-state.success{color:#0D745E}.ph-r37-help-state.error{color:#AD4C4C}.ph-r37-help-promise{padding:14px;border-radius:14px;background:#F5FAFA;border:1px solid #D8E8E8}.ph-r37-help-promise strong{display:block;color:#18384D;font-size:13px;margin-bottom:6px}.ph-r37-help-promise small{display:block;color:#607784;font-size:10px;line-height:1.55}.ph-r37-help-side h3{font-size:15px;margin:0;color:#18384D}.ph-r37-help-side p{font-size:10px;color:#687F8C;line-height:1.55;margin:0}.ph-r37-help-side-actions{display:grid;gap:8px}.ph-r37-support-email{padding:12px;border:1px dashed #CADCE2;border-radius:12px;color:#667D8A;font-size:10px;line-height:1.5}.ph-r37-support-email strong{display:block;color:#315264;margin-bottom:4px}
body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-main,body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-side{background:#14242D;border-color:#324B56;box-shadow:none}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-head h2,body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-side h3,body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-promise strong{color:#EFF6F8!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-head p,body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-side p{color:#AFC1CA!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-topic{background:#182B35;border-color:#36505B;color:#B8CAD1}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-topic.active{background:#1B403A;border-color:#356A60;color:#D0F1E9}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-field label{color:#B9CBD2}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-field input,body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-field textarea{background:#101D24;border-color:#36505A;color:#EFF5F7}body.ph-redesign-r2[data-theme="dark"] .ph-r37-help-promise{background:#172A31;border-color:#35515A}body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-email{border-color:#3A535D;color:#AFC1C9}body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-email strong{color:#DDE9ED}
@media(max-width:900px){.ph-r37-help-shell{grid-template-columns:1fr}.ph-r37-help-side{grid-template-columns:1fr 1fr}.ph-r37-help-side>h3,.ph-r37-help-side>p{grid-column:1/-1}}
@media(max-width:620px){.ph-r37-help-grid,.ph-r37-help-side{grid-template-columns:1fr}.ph-r37-help-field.full,.ph-r37-help-side>h3,.ph-r37-help-side>p{grid-column:auto}.ph-r37-help-main{padding:16px}.ph-r37-help-head h2{font-size:24px!important}}

/* Wishlist / price alerts as a calm dedicated workspace inside the existing safe modal. */
body.ph-r37-ia #favoritesModal .modal-panel{width:min(920px,calc(100vw - 28px))!important;max-height:min(820px,calc(100vh - 28px))!important;padding:24px!important;border-radius:22px!important}
body.ph-r37-ia #favoritesModal .ph-list-tabs{display:flex!important;gap:5px!important;padding:5px!important;margin:16px 0!important;border:1px solid #D7E4E8!important;border-radius:13px!important;background:#F4F8F9!important}body.ph-r37-ia #favoritesModal .ph-list-tabs button{flex:1!important;min-height:38px!important;border-radius:9px!important;border:0!important;background:transparent!important;color:#667C89!important;font-size:11px!important;font-weight:800!important}body.ph-r37-ia #favoritesModal .ph-list-tabs button.active{background:#183A50!important;color:#FFF!important;box-shadow:0 4px 12px rgba(24,58,80,.12)!important}
.ph-r37-alert-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin:5px 0 13px}.ph-r37-alert-heading strong{display:block;color:#18384D;font-size:15px}.ph-r37-alert-heading small{display:block;color:#738793;font-size:10px;margin-top:4px}.ph-r37-alert-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#E8F5F1;color:#0E6F5D;font-size:9px;font-weight:900}
body.ph-r37-ia .ph-price-alert-row{padding:14px!important;border:1px solid #D7E4E8!important;border-radius:14px!important;background:#FFF!important;box-shadow:0 4px 14px rgba(36,55,70,.035)!important}body.ph-r37-ia .ph-price-alert-row>div:first-child strong{font-size:13px!important;color:#18384D!important}body.ph-r37-ia .ph-price-alert-row>div:first-child small{font-size:10px!important;color:#738895!important}.ph-price-alert-target-chip{background:#E9F6F3!important;color:#0B6C5A!important;border:1px solid #B8DDD5!important}
body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #favoritesModal .ph-list-tabs{background:#172933!important;border-color:#35505A!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #favoritesModal .ph-list-tabs button{color:#B0C2CA!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia #favoritesModal .ph-list-tabs button.active{background:#245147!important;color:#F0F8F6!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .ph-price-alert-row{background:#172832!important;border-color:#354D58!important;box-shadow:none!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .ph-price-alert-row>div:first-child strong{color:#EEF5F7!important}body.ph-redesign-r2[data-theme="dark"].ph-r37-ia .ph-price-alert-row>div:first-child small{color:#A8BBC4!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-alert-heading strong{color:#EDF5F7}body.ph-redesign-r2[data-theme="dark"] .ph-r37-alert-heading small{color:#AFC0C8}

/* Notifications: page-like list + simple filters. */
body.ph-r37-ia #notificationsModal .modal-panel{width:min(860px,calc(100vw - 28px))!important;max-height:min(820px,calc(100vh - 28px))!important;padding:24px!important;border-radius:22px!important}
body.ph-r37-ia #notificationsModal .notification-toolbar{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important;padding-bottom:14px!important;border-bottom:1px solid #D9E5E9!important;margin-bottom:14px!important}body.ph-r37-ia #notificationsModal .notification-toolbar h2{font-size:26px!important;color:#18384D!important;letter-spacing:-.8px!important}.ph-r37-notification-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ph-r37-notification-filter{border:1px solid #D5E2E7;border-radius:999px;background:#FFF;color:#607784;padding:7px 10px;font-size:9px;font-weight:850;cursor:pointer}.ph-r37-notification-filter.active{background:#183A50;border-color:#183A50;color:#FFF}.ph-r37-notification-summary{font-size:10px;color:#758995;margin-top:3px}.notification-item{border-radius:14px!important;border:1px solid #D8E4E8!important;background:#FFF!important;padding:14px 15px!important;margin-bottom:8px!important;box-shadow:none!important}.notification-item.unread{border-color:#9FD7CA!important;background:#F0F9F6!important;box-shadow:inset 3px 0 0 #16A085!important}.notification-item strong{font-size:12px!important;color:#18384D!important}.notification-item p{font-size:10px!important;color:#667D8A!important;line-height:1.55!important}.notification-item small{font-size:9px!important;color:#8A9AA4!important}
body.ph-redesign-r2[data-theme="dark"] #notificationsModal .notification-toolbar{border-color:#344D58!important}body.ph-redesign-r2[data-theme="dark"] #notificationsModal .notification-toolbar h2{color:#EFF6F8!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-notification-filter{background:#172933;border-color:#35505A;color:#B4C7CF}body.ph-redesign-r2[data-theme="dark"] .ph-r37-notification-filter.active{background:#245147;border-color:#3B7468;color:#F0F8F6}body.ph-redesign-r2[data-theme="dark"] .notification-item{background:#172832!important;border-color:#354D58!important}body.ph-redesign-r2[data-theme="dark"] .notification-item.unread{background:#173B36!important;border-color:#3A6F63!important}body.ph-redesign-r2[data-theme="dark"] .notification-item strong{color:#EEF5F7!important}body.ph-redesign-r2[data-theme="dark"] .notification-item p{color:#AFC1CA!important}

/* Admin becomes a true workspace overlay: same functionality, much clearer IA. */
body.ph-r37-ia #adminModal .ph-r37-admin-panel{width:min(1480px,calc(100vw - 28px))!important;height:min(900px,calc(100vh - 24px))!important;max-height:calc(100vh - 24px)!important;padding:0!important;overflow:hidden!important;border-radius:22px!important;display:flex!important;flex-direction:column!important}
.ph-r37-admin-top{height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;border-bottom:1px solid #D7E3E8;background:#F8FBFC}.ph-r37-admin-brand strong{display:block;font-size:15px;color:#18384D}.ph-r37-admin-brand small{display:block;margin-top:2px;font-size:9px;color:#7C909C}.ph-r37-admin-top-actions{display:flex;align-items:center;gap:8px}.ph-r37-admin-back{border:0;background:transparent;color:#607885;font-size:10px;font-weight:800;cursor:pointer;padding:8px 10px}.ph-r37-admin-top .modal-close{position:static!important;margin:0!important;transform:none!important}
.ph-r37-admin-workspace{min-height:0;flex:1;display:grid;grid-template-columns:220px minmax(0,1fr)}.ph-r37-admin-sidebar{min-width:0;padding:16px 12px;border-right:1px solid #D7E3E8;background:#F7FAFB;overflow-y:auto}.ph-r37-admin-sidebar .admin-tabs{display:grid!important;gap:4px!important;margin:0!important}.ph-r37-admin-sidebar .admin-tab,.ph-r37-admin-overview-btn{width:100%;min-height:40px;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#526D7D!important;padding:9px 10px!important;text-align:left!important;font-size:11px!important;font-weight:790!important;cursor:pointer!important}.ph-r37-admin-sidebar .admin-tab:hover,.ph-r37-admin-overview-btn:hover{background:#EDF4F6!important;border-color:#D7E5E9!important}.ph-r37-admin-sidebar .admin-tab.active,.ph-r37-admin-overview-btn.active{background:#E5F4F0!important;border-color:#AED9D0!important;color:#0D6857!important;box-shadow:inset 3px 0 0 #16A085!important}.ph-r37-admin-sidebar-label{padding:14px 9px 6px;color:#82939E;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.ph-r37-admin-main{min-width:0;min-height:0;overflow:auto;padding:22px;background:#FFF}.ph-r37-admin-view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.ph-r37-admin-view-head h2{font-size:25px!important;margin:0 0 4px!important;letter-spacing:-.75px!important;color:#18384D!important}.ph-r37-admin-view-head p{margin:0!important;color:#748996!important;font-size:10px!important}.ph-r37-admin-overview{display:grid;gap:17px}.ph-r37-admin-overview.hidden{display:none!important}.ph-r37-admin-main #adminList.ph-r37-hidden{display:none!important}.ph-r37-admin-overview .admin-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0!important}.ph-r37-admin-overview .admin-stat{background:#F8FBFC!important;border-color:#D8E5E9!important;min-height:94px!important;padding:15px!important}.ph-r37-admin-overview .admin-stat strong{font-size:25px!important;color:#18384D!important}.ph-r37-admin-overview .admin-stat small{color:#748A96!important}.ph-r37-admin-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ph-r37-admin-quick{border:1px solid #D8E5E9;border-radius:16px;background:#FFF;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.ph-r37-admin-quick strong{display:block;color:#18384D;font-size:13px}.ph-r37-admin-quick small{display:block;color:#758A96;font-size:9px;line-height:1.45;margin-top:4px}.ph-r37-admin-quick button{flex:0 0 auto}
body.ph-r37-ia #adminModal #adminList{min-width:0}.ph-admin-product-center{margin:0!important}.ph-admin-product-hero{padding-top:0!important}.ph-admin-product-top-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}.ph-admin-product-top-actions #phAdminOpenImport{order:1}.ph-admin-product-top-actions #phAdminCreateProduct{order:2}.ph-admin-product-top-actions #phAdminRefreshProducts{order:3}.ph-admin-product-controls{border:1px solid #D9E5E9!important;background:#F7FAFB!important;border-radius:15px!important;padding:11px!important}.ph-admin-product-list{border:1px solid #D9E5E9!important;border-radius:15px!important;overflow:hidden!important;background:#FFF!important}.ph-admin-product-row{border-radius:0!important;border:0!important;border-bottom:1px solid #E1E9EC!important;background:#FFF!important;margin:0!important}.ph-admin-product-row:last-child{border-bottom:0!important}.ph-admin-product-row:hover{background:#F6FAFB!important}.ph-admin-product-filters{gap:5px!important}.ph-admin-filter{border-radius:999px!important}
body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-top{background:#12232B;border-color:#334C57}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-brand strong{color:#EFF6F8}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-brand small{color:#9AAFB8}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-sidebar{background:#14262F;border-color:#334C57}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-sidebar .admin-tab,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview-btn{color:#B5C7CF!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-sidebar .admin-tab:hover,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview-btn:hover{background:#1C3440!important;border-color:#3A5662!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-sidebar .admin-tab.active,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview-btn.active{background:#1B403A!important;border-color:#376C61!important;color:#D0F1E9!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-main{background:#0F1D24}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-view-head h2,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview .admin-stat strong,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-quick strong{color:#EEF5F7!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview .admin-stat,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-quick{background:#172A33!important;border-color:#36505B!important}.ph-r37-admin-overview .admin-stat,body.ph-redesign-r2[data-theme="dark"] .ph-r37-admin-overview .admin-stat{box-shadow:none!important}body.ph-redesign-r2[data-theme="dark"] .ph-admin-product-controls{background:#152832!important;border-color:#35505B!important}body.ph-redesign-r2[data-theme="dark"] .ph-admin-product-list,body.ph-redesign-r2[data-theme="dark"] .ph-admin-product-row{background:#152832!important;border-color:#35505B!important}body.ph-redesign-r2[data-theme="dark"] .ph-admin-product-row:hover{background:#1B313C!important}

/* Cleaner support ticket workspace with Base44-like status tabs. */
.ph-r37-support-toolbar{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.ph-r37-support-enhancer{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:10px;align-items:center;margin:12px 0 14px;padding:10px;border:1px solid #D9E5E9;border-radius:14px;background:#F7FAFB}.ph-r37-support-more{display:flex;align-items:center;gap:6px;color:#718691;font-size:8px;font-weight:850;white-space:nowrap}.ph-r37-support-more-select{min-width:150px;height:36px!important;border-radius:10px!important}.ph-r37-support-search-empty{padding:24px;text-align:center;color:#7D909A;font-size:10px}.ph-r37-support-page{}#adminList .support-list{border:1px solid #D9E5E9;border-radius:15px;overflow:hidden;background:#FFF;display:grid!important;gap:0!important}#adminList .support-ticket-card{margin:0!important;border:0!important;border-bottom:1px solid #E1E9EC!important;border-radius:0!important;background:#FFF!important}#adminList .support-ticket-card:last-of-type{border-bottom:0!important}#adminList .support-ticket-button{padding:13px 14px!important}#adminList .support-ticket-card:hover{background:#F7FAFB!important}.ph-r37-support-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.ph-r37-support-searchrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ph-r37-support-search{flex:1;min-width:240px;position:relative}.ph-r37-support-search input{width:100%;height:40px;border:1px solid #D7E3E8;border-radius:12px;background:#FBFCFD;color:#18384D;padding:0 13px 0 35px;font-size:11px;outline:none}.ph-r37-support-search span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#81939D}.ph-r37-support-filters{display:flex;gap:6px;flex-wrap:wrap}.ph-r37-support-filter{border:1px solid #D7E3E8;border-radius:999px;background:#FFF;color:#607784;padding:7px 11px;font-size:9px;font-weight:850;cursor:pointer}.ph-r37-support-filter.active{background:#183A50;border-color:#183A50;color:#FFF}.ph-r37-ticket-table{border:1px solid #D9E5E9;border-radius:15px;overflow:hidden;background:#FFF}.ph-r37-ticket-head,.ph-r37-ticket-row{display:grid;grid-template-columns:minmax(210px,1.7fr) minmax(150px,1fr) 140px 90px 120px 72px;gap:10px;align-items:center}.ph-r37-ticket-head{padding:10px 12px;background:#F5F8F9;color:#788B96;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.ph-r37-ticket-row{padding:11px 12px;border-top:1px solid #E1E9EC;cursor:pointer}.ph-r37-ticket-row:hover{background:#F7FAFB}.ph-r37-ticket-row strong{display:block;color:#18384D;font-size:11px}.ph-r37-ticket-row small{display:block;color:#81939D;font-size:8px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-r37-ticket-cell{font-size:9px;color:#607785;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ph-r37-ticket-row .support-status{justify-self:start}.ph-r37-ticket-row .admin-entry-actions{justify-self:end}.ph-r37-ticket-empty{padding:34px;text-align:center;color:#7A8E99;font-size:10px}
body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-search input{background:#142730;border-color:#36505B;color:#EEF5F7}body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-enhancer{background:#152832;border-color:#35505B}body.ph-redesign-r2[data-theme="dark"] #adminList .support-list,body.ph-redesign-r2[data-theme="dark"] #adminList .support-ticket-card{background:#152832!important;border-color:#35505B!important}body.ph-redesign-r2[data-theme="dark"] #adminList .support-ticket-card:hover{background:#1B333D!important}body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-filter{background:#172A33;border-color:#36505B;color:#B4C6CE}body.ph-redesign-r2[data-theme="dark"] .ph-r37-support-filter.active{background:#245147;border-color:#3B7468;color:#F0F8F6}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-table{background:#152831;border-color:#36505B}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-head{background:#182D36;color:#9FB1BA}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-row{border-color:#314B56}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-row:hover{background:#1B333D}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-row strong{color:#EEF5F7}body.ph-redesign-r2[data-theme="dark"] .ph-r37-ticket-cell{color:#B0C2CA}
@media(max-width:1050px){.ph-r37-support-enhancer{grid-template-columns:1fr}.ph-r37-support-more{justify-content:flex-start}.ph-r37-admin-workspace{grid-template-columns:184px minmax(0,1fr)}.ph-r37-ticket-head{display:none}.ph-r37-ticket-row{grid-template-columns:1fr auto}.ph-r37-ticket-row>*:nth-child(2),.ph-r37-ticket-row>*:nth-child(3),.ph-r37-ticket-row>*:nth-child(4){display:none}.ph-r37-ticket-row>*:nth-child(5){grid-column:2;grid-row:1}.ph-r37-ticket-row>*:nth-child(6){grid-column:2;grid-row:2}}
@media(max-width:760px){body.ph-r37-ia #adminModal .ph-r37-admin-panel{width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important;max-height:calc(100vh - 12px)!important}.ph-r37-admin-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.ph-r37-admin-sidebar{border-right:0;border-bottom:1px solid #D7E3E8;overflow-x:auto;padding:8px}.ph-r37-admin-sidebar .admin-tabs{display:flex!important;gap:5px!important;min-width:max-content}.ph-r37-admin-sidebar-label{display:none}.ph-r37-admin-overview-btn,.ph-r37-admin-sidebar .admin-tab{width:auto!important;white-space:nowrap!important;min-height:36px!important}.ph-r37-admin-main{padding:14px}.ph-r37-admin-overview .admin-summary{grid-template-columns:1fr 1fr!important}.ph-r37-admin-quick-grid{grid-template-columns:1fr}.ph-r37-admin-view-head h2{font-size:21px!important}}

/* Humbler stays visually untouched; only subtle context clarity. */
body.ph-r37-ia .humbler-assistant-context strong{max-width:305px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-r37-context-hint{display:block;margin-top:3px;color:#7FBFAF;font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}

/* ===== ph-r38-nav-polish-style ===== */
body.ph-r38-nav{
  --r38-rail-expanded:232px;
  --r38-rail-collapsed:72px;
  --r38-rail-w:var(--r38-rail-expanded);
  --r38-rail-top:116px;
}
body.ph-r38-nav.ph-r38-rail-collapsed{--r38-rail-w:var(--r38-rail-collapsed)}

@media(min-width:1181px){
  /* One primary navigation on desktop: the left workspace rail. */
  body.ph-r38-nav .ph-header-sub{display:none!important}
  body.ph-r38-nav.ph-r37-ia{--r37-rail-w:var(--r38-rail-w)}
  body.ph-r38-nav .ph-r37-rail{
    top:var(--r38-rail-top)!important;
    bottom:0!important;
    width:var(--r38-rail-w)!important;
    padding:14px 11px 16px!important;
    border-right:1px solid #D6E3E8!important;
    background:#F6FAFB!important;
    box-shadow:none!important;
    transition:width .24s ease,top .12s linear!important;
    overflow-x:hidden!important;
  }
  body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r37-rail{
    background:#11212A!important;border-color:#314853!important
  }
  body.ph-r38-nav main#top{
    margin-left:var(--r38-rail-w)!important;
    width:calc(100% - var(--r38-rail-w))!important;
    max-width:none!important;
    transition:margin-left .24s ease,width .24s ease!important;
    min-width:0!important;
  }
  body.ph-r38-nav main#top .shell{
    width:min(1280px,calc(100% - 48px))!important;
    max-width:calc(100% - 48px)!important;
  }
  body.ph-r38-nav>footer{
    margin-left:var(--r38-rail-w)!important;
    width:calc(100% - var(--r38-rail-w))!important;
    transition:margin-left .24s ease,width .24s ease!important;
  }
  body.ph-r38-nav>footer .shell{width:min(1280px,calc(100% - 48px))!important;max-width:calc(100% - 48px)!important}
  body.ph-r38-nav>.affiliate-disclosure{
    width:min(1280px,calc(100% - var(--r38-rail-w) - 48px))!important;
    margin-left:calc(var(--r38-rail-w) + 24px)!important;
    margin-right:24px!important;
    transition:margin-left .24s ease,width .24s ease!important;
  }
  /* The manual wizard now lives in the rail, not as another competing hero action. */
  body.ph-r38-nav #heroWizardOpen{display:none!important}
  body.ph-r38-nav #buy-assistant{display:none!important}
}

/* Rail becomes a polished collapsible workspace navigation. */
body.ph-r38-nav .ph-r37-rail-brand{position:relative;padding:5px 40px 16px 10px!important;min-height:58px}
.ph-r38-rail-toggle{
  position:absolute;right:4px;top:5px;width:32px;height:32px;border-radius:10px;
  border:1px solid #CFDEE3;background:#FFF;color:#355568;display:grid;place-items:center;
  cursor:pointer;transition:.18s ease;box-shadow:0 4px 12px rgba(36,55,70,.04)
}
.ph-r38-rail-toggle:hover{border-color:#9FCFC5;background:#EAF6F3;color:#0C6A59}
.ph-r38-rail-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .22s ease}
body.ph-r38-rail-collapsed .ph-r38-rail-toggle svg{transform:rotate(180deg)}
body.ph-redesign-r2[data-theme="dark"] .ph-r38-rail-toggle{background:#182D36;border-color:#36515D;color:#B9CBD3}
body.ph-redesign-r2[data-theme="dark"] .ph-r38-rail-toggle:hover{background:#1C403A;border-color:#3A6B61;color:#D4F1EA}

.ph-r37-rail-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.ph-r38-nav .ph-r37-rail-btn{transition:background .18s ease,border-color .18s ease,color .18s ease,padding .22s ease}
body.ph-r38-nav .ph-r37-rail-btn span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ph-r38-rail-collapsed .ph-r37-rail{padding-inline:9px!important}
body.ph-r38-rail-collapsed .ph-r37-rail-brand{padding:8px 0 14px!important;min-height:58px;text-align:center}
body.ph-r38-rail-collapsed .ph-r37-rail-brand strong,body.ph-r38-rail-collapsed .ph-r37-rail-brand small{display:none!important}
body.ph-r38-rail-collapsed .ph-r37-rail-brand::before{content:"PH";display:grid;place-items:center;width:34px;height:34px;margin:0 auto;border-radius:11px;background:#E4F3F0;color:#0B6B5A;font-size:11px;font-weight:950;letter-spacing:.02em}
body.ph-r38-rail-collapsed .ph-r38-rail-toggle{right:-3px;top:8px;width:27px;height:27px;border-radius:9px}
body.ph-r38-rail-collapsed .ph-r37-rail-label,body.ph-r38-rail-collapsed .ph-r37-rail-btn>span:nth-child(2){display:none!important}
body.ph-r38-rail-collapsed .ph-r37-rail-group{gap:6px!important}
body.ph-r38-rail-collapsed .ph-r37-rail-btn{grid-template-columns:1fr!important;place-items:center!important;padding:7px!important;min-height:43px!important}
body.ph-r38-rail-collapsed .ph-r37-rail-icon{width:29px!important;height:29px!important}
body.ph-r38-rail-collapsed .ph-r37-rail-count.show{display:grid!important;position:absolute;right:2px;top:2px;min-width:16px;height:16px;padding:0 4px;font-size:8px;border:2px solid #F6FAFB}
body.ph-redesign-r2[data-theme="dark"].ph-r38-rail-collapsed .ph-r37-rail-count.show{border-color:#11212A}
body.ph-r38-rail-collapsed .ph-r37-rail-bottom{padding-top:9px!important}
body.ph-redesign-r2[data-theme="dark"] .ph-r38-rail-collapsed .ph-r37-rail-brand::before{background:#1C403A;color:#D3F1E9}

/* Help is a dedicated workspace/tab, never another block inside the homepage. */
body.ph-r38-nav:not(.ph-r38-view-help) #help-center{display:none!important}
body.ph-r38-view-help main#top>section:not(#help-center){display:none!important}
body.ph-r38-view-help #help-center{display:block!important;padding-top:34px!important;padding-bottom:54px!important;min-height:calc(100vh - var(--r38-rail-top) - 10px)}
body.ph-r38-view-help>.affiliate-disclosure,body.ph-r38-view-help>footer{display:none!important}
.ph-r38-help-back{border:1px solid #D4E1E6;background:#F7FAFB;color:#476576;border-radius:11px;padding:8px 11px;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}
.ph-r38-help-back:hover{border-color:#9FD3C7;background:#EAF6F3;color:#0B6C5B}
body.ph-redesign-r2[data-theme="dark"] .ph-r38-help-back{background:#172A33;border-color:#36505B;color:#B9CBD3}

/* Category chips: same proportions, consistent line icons. */
body.ph-r38-nav #categories-section .category i{
  width:25px!important;height:20px!important;display:grid!important;place-items:center!important;
  border:1px solid #B9DCD5!important;border-radius:999px!important;background:#FFF!important;color:#15917C!important;
  flex:0 0 auto!important
}
body.ph-r38-nav #categories-section .category i svg{width:13px!important;height:13px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.ph-r38-nav #categories-section .category.active i{background:#E3F4F0!important;border-color:#77C9B8!important;color:#0B6A59!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #categories-section .category i{background:#20343E!important;border-color:#3D625E!important;color:#9BE0D2!important}

/* Distinguish manual guided selection from the chat assistant. */
.ph-r38-guided-note{display:block;font-size:8px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;color:#6E8794;margin-top:2px}
body.ph-r38-nav .ph-r37-rail-btn[data-r37-action="assistant"] .ph-r37-rail-icon{background:#E7EEF4;color:#365D75}
body.ph-r38-nav .ph-r37-rail-btn[data-r37-action="assistant"].active .ph-r37-rail-icon{background:#DCE9F0;color:#234D66}
body.ph-r38-nav .ph-r37-rail-btn[data-r37-action="assistant"].active{background:#EDF4F7;border-color:#C8DCE5;color:#274F66;box-shadow:inset 3px 0 0 #4C829D}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r37-rail-btn[data-r37-action="assistant"] .ph-r37-rail-icon{background:#203642;color:#A9C4D1}

/* Preserve mobile behavior; the renamed hero button remains available there. */
@media(max-width:1180px){
  body.ph-r38-nav main#top,body.ph-r38-nav>footer{margin-left:0!important;width:100%!important}
  body.ph-r38-nav>.affiliate-disclosure{width:var(--shell)!important;margin-inline:auto!important}
  body.ph-r38-nav #heroWizardOpen{display:inline-flex!important}
  body.ph-r38-view-help #help-center{min-height:auto}
}
@media(max-width:720px){.ph-r37-help-head{flex-direction:column}.ph-r38-help-back{align-self:flex-start}}

/* ===== ph-r39-layout-polish-style ===== */
/*
  R39 keeps the R38 navigation and category visuals, but fixes their placement:
  - rail toggle sits on the brand divider instead of covering the PH mark
  - product categories live inside the product market where they actually filter content
*/
@media(min-width:1181px){
  body.ph-r38-nav .ph-r37-rail-brand{
    position:relative!important;
    min-height:60px!important;
    padding:5px 10px 14px!important;
    margin-bottom:20px!important;
    border-bottom:1px solid #D8E5E9!important;
    overflow:visible!important;
  }
  body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r37-rail-brand{
    border-bottom-color:#314853!important;
  }
  body.ph-r38-nav .ph-r38-rail-toggle{
    top:auto!important;
    bottom:-14px!important;
    right:8px!important;
    left:auto!important;
    width:28px!important;
    height:28px!important;
    border-radius:999px!important;
    background:#F6FAFB!important;
    border:1px solid #BFD2D9!important;
    color:#36596B!important;
    box-shadow:0 3px 10px rgba(36,55,70,.09)!important;
    z-index:5!important;
  }
  body.ph-r38-nav .ph-r38-rail-toggle:hover{
    background:#E8F5F1!important;
    border-color:#80C9BA!important;
    color:#0B6B59!important;
    transform:translateY(-1px)!important;
  }
  body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r38-rail-toggle{
    background:#162A33!important;
    border-color:#3B5964!important;
    color:#B9CBD3!important;
    box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
  }
  body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r38-rail-toggle:hover{
    background:#1B3A36!important;
    border-color:#4D776D!important;
    color:#D4F1EA!important;
  }
  body.ph-r38-nav.ph-r38-rail-collapsed .ph-r37-rail-brand{
    min-height:60px!important;
    padding:8px 0 13px!important;
    margin-bottom:20px!important;
  }
  body.ph-r38-nav.ph-r38-rail-collapsed .ph-r38-rail-toggle{
    top:auto!important;
    bottom:-14px!important;
    left:50%!important;
    right:auto!important;
    margin-left:-14px!important;
    width:28px!important;
    height:28px!important;
  }
}

/* Categories now belong to the product market instead of floating above the hero. */
body.ph-r38-nav #recommendations .ph-r39-category-dock{
  width:100%!important;
  margin:18px 0 4px!important;
  padding:14px 0 13px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  border-top:1px solid #D9E5EA!important;
  border-bottom:1px solid #D9E5EA!important;
  background:transparent!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-label{
  flex:0 0 auto;
  color:#6A8492;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  white-space:nowrap;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .categories{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:1px 2px!important;
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category{
  flex:0 0 auto!important;
  min-height:40px!important;
  width:auto!important;
  padding:7px 13px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:999px!important;
  border:1px solid #CADCE3!important;
  background:#F8FBFC!important;
  color:#27495C!important;
  box-shadow:none!important;
  transform:none!important;
  scroll-snap-align:start;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category:hover{
  border-color:#91CFC3!important;
  background:#EFF8F6!important;
  color:#155B4E!important;
  transform:none!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category.active{
  border-color:#79CABB!important;
  background:#EAF7F3!important;
  color:#075F50!important;
  box-shadow:inset 0 0 0 1px rgba(22,160,133,.05)!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category strong{
  margin:0!important;
  color:inherit!important;
  font-size:10px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category small{display:none!important}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category i{
  width:25px!important;
  height:20px!important;
  margin:0!important;
  border-radius:999px!important;
  background:#FFF!important;
  border:1px solid #B9DCD5!important;
  color:#15917C!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category.active i{
  background:#DDF2ED!important;
  border-color:#75C6B6!important;
  color:#086554!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock{
  border-color:#314853!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-label{color:#8FA9B5}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock .category{
  background:#172B35!important;
  border-color:#38525D!important;
  color:#D5E2E7!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock .category:hover,
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock .category.active{
  background:#193A35!important;
  border-color:#4F8177!important;
  color:#DDF5EF!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock .category i{
  background:#20343E!important;
  border-color:#3D625E!important;
  color:#9BE0D2!important;
}

/* The category dock is a product-market tool, so keep spacing tight around the catalogue tabs. */
body.ph-r38-nav #recommendations .catalog-view-tabs{padding-top:12px!important}

@media(max-width:900px){
  body.ph-r38-nav #recommendations .ph-r39-category-dock{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:9px!important;
    padding-block:12px!important;
  }
  body.ph-r38-nav #recommendations .ph-r39-category-dock .categories{width:100%!important}
}

/* ===== ph-r40-clean-integration-style ===== */
/*
  R40 refines the two remaining friction points from R39:
  - the sidebar toggle no longer sits on the divider line
  - category chips are integrated inside the product-market controls instead of above them
*/
@media(min-width:1181px){
  body.ph-r38-nav .ph-r37-rail-brand{
    padding:6px 10px 8px!important;
    margin-bottom:6px!important;
    border-bottom:0!important;
    min-height:auto!important;
  }
  body.ph-r38-nav.ph-r38-rail-collapsed .ph-r37-rail-brand{
    padding:8px 0 6px!important;
    margin-bottom:6px!important;
    min-height:auto!important;
  }
}
body.ph-r38-nav .ph-r40-rail-toggle-row{
  display:flex;align-items:center;justify-content:flex-end;
  padding:0 10px 10px;
  margin:0 0 10px;
}
body.ph-r38-nav.ph-r38-rail-collapsed .ph-r40-rail-toggle-row{
  justify-content:center;
  padding:0 0 10px;
}
body.ph-r38-nav .ph-r38-rail-toggle{
  position:static!important;
  inset:auto!important;
  margin:0!important;
  width:30px!important;height:30px!important;border-radius:10px!important;
  background:#F7FBFC!important;border:1px solid #C5D8DE!important;color:#35596B!important;
  box-shadow:0 4px 12px rgba(36,55,70,.06)!important;
}
body.ph-r38-nav .ph-r38-rail-toggle:hover{
  background:#ECF8F5!important;border-color:#85CBBC!important;color:#0B6B59!important;
  transform:translateY(-1px)!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r38-rail-toggle{
  background:#162A33!important;border-color:#3C5A65!important;color:#B9CBD3!important;
}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r38-rail-toggle:hover{
  background:#1B3A36!important;border-color:#4C776E!important;color:#D4F1EA!important;
}

/* The category chips now sit within the product-market controls. */
body.ph-r38-nav #recommendations .ph-r39-category-label{display:none!important}
body.ph-r38-nav #recommendations .ph-r39-category-dock{
  display:block!important;
  width:100%!important;
  margin:12px 0 14px!important;
  padding:10px 12px!important;
  border:1px solid #D7E4E8!important;
  border-radius:16px!important;
  background:#F8FBFC!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .categories{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0!important;
  scroll-snap-type:x proximity;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category{
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:7px 13px!important;
  background:#FFFFFF!important;
  border:1px solid #CADCE3!important;
  border-radius:999px!important;
  color:#27495C!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category:hover{
  background:#EFF8F6!important;
  border-color:#91CFC3!important;
  color:#155B4E!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category.active{
  background:#EAF7F3!important;
  border-color:#79CABB!important;
  color:#075F50!important;
}
body.ph-r38-nav #recommendations .catalog-view-tabs{padding-top:0!important}
body.ph-r38-nav #recommendations .catalog-toolbar{margin-top:2px!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock{
  background:#13262F!important;
  border-color:#334C57!important;
}
@media(max-width:900px){
  body.ph-r38-nav #recommendations .ph-r39-category-dock{padding:9px 10px!important;margin:10px 0 12px!important}
}

/* ===== ph-r41-brand-polish-style ===== */
/* R41 turns the category bar into a clean rounded dock and upgrades the rail header. */
body.ph-r38-nav #recommendations .ph-r39-category-dock{
  display:block!important;
  width:fit-content!important;
  max-width:100%!important;
  margin:14px 0 16px!important;
  padding:10px 12px!important;
  border:1px solid #D7E3E8!important;
  border-radius:18px!important;
  background:#F8FBFC!important;
  box-shadow:0 10px 22px rgba(27,56,71,.06)!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .categories{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:10px!important;
  overflow-x:auto!important;
  padding:0!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category{
  background:#FFF!important;
}
body.ph-r38-nav #recommendations .catalog-toolbar{margin-top:8px!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav #recommendations .ph-r39-category-dock{
  background:#142730!important;
  border-color:#32505B!important;
  box-shadow:none!important;
}
@media(max-width:900px){
  body.ph-r38-nav #recommendations .ph-r39-category-dock{
    width:100%!important;
    padding:9px 10px!important;
  }
}

/* Rail header polish */
body.ph-r38-nav .ph-r37-rail-brand{
  padding:14px 14px 14px!important;
  margin-bottom:10px!important;
  border-bottom:1px solid #D9E6EB!important;
}
body.ph-r38-nav .ph-r41-brand-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
body.ph-r38-nav .ph-r41-wordmark{
  display:inline-flex!important;
  align-items:baseline;
  gap:0;
  font-size:17px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-0.03em!important;
  color:#183A50!important;
}
body.ph-r38-nav .ph-r41-wordmark .ph-r41-price{color:#183A50!important}
body.ph-r38-nav .ph-r41-wordmark .ph-r41-humbler{color:#16A085!important}
body.ph-r38-nav .ph-r41-tagline{
  display:block!important;
  margin-top:0!important;
  color:#738795!important;
  font-size:9.5px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  line-height:1.45!important;
}
body.ph-r38-nav .ph-r37-rail-brand .ph-r38-rail-toggle{
  flex:0 0 auto;
  width:30px!important;
  height:30px!important;
}
body.ph-r38-nav .ph-r40-rail-toggle-row{
  margin:0 0 8px!important;
}
body.ph-r38-nav:not(.ph-r38-rail-collapsed) .ph-r40-rail-toggle-row{display:none!important}
body.ph-r38-nav.ph-r38-rail-collapsed .ph-r40-rail-toggle-row{display:flex!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r37-rail-brand{border-color:#304A56!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r41-wordmark .ph-r41-price{color:#EAF3F5!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r41-wordmark .ph-r41-humbler{color:#56C5AC!important}
body.ph-redesign-r2[data-theme="dark"].ph-r38-nav .ph-r41-tagline{color:#9DB0B9!important}

/* ===== ph-r42-productmarket-polish-style ===== */
/* -----------------------------------------------------------
   R42 fixes the remaining product-market and dark-mode issues:
   1) category dock stays inside the Produktmarkt card
   2) no full-width blue stripe anymore
   3) catalog tabs get centered/symmetric active pills
   4) trust rail gets clean outer borders/corners
   5) dark mode proof chips + select + product card text improved
------------------------------------------------------------ */

/* --- Produktmarkt: category dock stays as an inner rounded card --- */
body.ph-r38-nav #recommendations .market-categories::before,
body.ph-redesign-r2 #recommendations .market-categories::before{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
body.ph-r38-nav #recommendations .market-categories,
body.ph-redesign-r2 #recommendations .market-categories{
  position:static!important;
  width:100%!important;
  margin:10px 0 14px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:10px 0 14px!important;
  padding:5px!important;
  border:1px solid #DEE7EC!important;
  border-radius:14px!important;
  background:#F3F6F8!important;
  box-shadow:none!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .categories,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .categories{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:4px!important;
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0!important;
  scrollbar-width:thin!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .category{
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:8px 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#5E7382!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category:hover,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .category:hover{
  background:#FFFFFF!important;
  color:#214F45!important;
  box-shadow:0 3px 10px rgba(36,55,70,.06)!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category.active,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .category.active{
  background:#FFFFFF!important;
  color:#155A4D!important;
  box-shadow:0 3px 10px rgba(36,55,70,.07)!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category strong,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .category strong{
  color:inherit!important;
  line-height:1.1!important;
}
body.ph-r38-nav #recommendations .ph-r39-category-dock .category i,
body.ph-redesign-r2 #recommendations .ph-r39-category-dock .category i{
  width:24px!important;
  height:20px!important;
  border-radius:999px!important;
  background:#FFFFFF!important;
  border:1px solid #B9DCD5!important;
  color:#15917C!important;
}
body.ph-r38-nav #recommendations .catalog-view-tabs,
body.ph-redesign-r2 #recommendations .catalog-view-tabs{
  margin-top:6px!important;
}

/* --- Produktmarkt tabs: more symmetric and centered --- */
body.ph-r38-nav #catalogViewTabs .catalog-view-tab,
body.ph-redesign-r2 #catalogViewTabs .catalog-view-tab{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  line-height:1!important;
  padding:8px 13px!important;
  border-radius:10px!important;
}
body.ph-r38-nav #catalogViewTabs .catalog-view-tab.active,
body.ph-redesign-r2 #catalogViewTabs .catalog-view-tab.active{
  background:#183A50!important;
  color:#FFFFFF!important;
  box-shadow:0 3px 10px rgba(36,55,70,.10)!important;
}
body.ph-r38-nav #catalogViewTabs .catalog-view-tab .ad-dot,
body.ph-redesign-r2 #catalogViewTabs .catalog-view-tab .ad-dot{
  margin-left:4px!important;
}

/* --- Trust rail: proper outer borders and corners --- */
body.ph-redesign-r2 .trust-rail{
  gap:10px!important;
  margin-top:18px!important;
  margin-bottom:18px!important;
  padding:10px!important;
  border:1px solid #DCE6EB!important;
  border-radius:18px!important;
  background:#FFFFFF!important;
  box-shadow:0 8px 22px rgba(36,55,70,.04)!important;
  overflow:visible!important;
}
body.ph-redesign-r2 .trust-intro,
body.ph-redesign-r2 .trust-point,
body.ph-redesign-r2 .trust-action{
  min-height:92px!important;
  border:1px solid #DCE6EB!important;
  border-radius:14px!important;
  background:#F8FBFC!important;
  box-shadow:none!important;
}
body.ph-redesign-r2 .trust-intro strong,
body.ph-redesign-r2 .trust-action button{color:#18364D!important}
body.ph-redesign-r2 .trust-intro small,
body.ph-redesign-r2 .trust-point span{color:#64798A!important}

/* --- Dark mode: category dock and tabs --- */
body.ph-redesign-r2[data-theme="dark"] #recommendations .ph-r39-category-dock{
  background:#182A33!important;
  border-color:#34505B!important;
}
body.ph-redesign-r2[data-theme="dark"] #recommendations .ph-r39-category-dock .category{
  background:transparent!important;
  color:#B6C7CF!important;
}
body.ph-redesign-r2[data-theme="dark"] #recommendations .ph-r39-category-dock .category:hover,
body.ph-redesign-r2[data-theme="dark"] #recommendations .ph-r39-category-dock .category.active{
  background:#20343E!important;
  color:#EAF4F7!important;
  box-shadow:none!important;
}
body.ph-redesign-r2[data-theme="dark"] #recommendations .ph-r39-category-dock .category i{
  background:#20343E!important;
  border-color:#3F615E!important;
  color:#9CE0D1!important;
}
body.ph-redesign-r2[data-theme="dark"] #catalogViewTabs .catalog-view-tab.active{
  background:#245147!important;
  color:#EFF8F6!important;
  box-shadow:none!important;
}

/* --- Dark mode: hero proof chips now really dark-mode aware --- */
body.ph-redesign-r2[data-theme="dark"] .ph-hero-proof span,
body.ph-redesign-r2[data-theme="dark"] .proofs span{
  background:#172A33!important;
  border:1px solid #35505B!important;
  color:#D9E6EC!important;
  box-shadow:none!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-hero-proof span b,
body.ph-redesign-r2[data-theme="dark"] .proofs span b{
  color:#7DDBC6!important;
}

/* --- Dark mode: trust rail cards keep visible outer edges --- */
body.ph-redesign-r2[data-theme="dark"] .trust-rail{
  background:#13242D!important;
  border-color:#334B56!important;
  box-shadow:none!important;
}
body.ph-redesign-r2[data-theme="dark"] .trust-intro,
body.ph-redesign-r2[data-theme="dark"] .trust-point,
body.ph-redesign-r2[data-theme="dark"] .trust-action{
  background:#172A33!important;
  border-color:#35505B!important;
}
body.ph-redesign-r2[data-theme="dark"] .trust-intro strong,
body.ph-redesign-r2[data-theme="dark"] .trust-action button,
body.ph-redesign-r2[data-theme="dark"] .trust-point b{
  color:#EDF5F8!important;
}
body.ph-redesign-r2[data-theme="dark"] .trust-intro small,
body.ph-redesign-r2[data-theme="dark"] .trust-point span{
  color:#AFC0CA!important;
}

/* --- Dark mode: select/dropdown readability --- */
body.ph-redesign-r2[data-theme="dark"] .select,
body.ph-redesign-r2[data-theme="dark"] .head-actions .select,
body.ph-redesign-r2[data-theme="dark"] select{
  background:#172A33!important;
  border-color:#36505B!important;
  color:#EDF5F8!important;
}
body.ph-redesign-r2[data-theme="dark"] .select:focus,
body.ph-redesign-r2[data-theme="dark"] select:focus{
  border-color:#57B9A2!important;
  box-shadow:0 0 0 3px rgba(87,185,162,.12)!important;
}
body.ph-redesign-r2[data-theme="dark"] select option{
  background:#172A33!important;
  color:#EDF5F8!important;
}

/* --- Dark mode: product-card readability is toned back up --- */
body.ph-redesign-r2[data-theme="dark"] .ph-product-card,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .product-body{
  background:#14252E!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .product-body{
  border-top:1px solid #304550!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-product-context span,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .product-desc,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-card-data small,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-price-row small,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-price-row em,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .affiliate-link-note,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .rating-row,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .rating-row small{
  color:#B8C8D1!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card h3,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-card-data b,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-price-row strong,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .source-pill{
  color:#F1F7F9!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-card-data,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-card-primary-signal,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal{
  background:#182B35!important;
  border-color:#36505B!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .price-alert{
  background:#1A2F39!important;
  border-color:#36505B!important;
  color:#EAF3F6!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .detail-btn{
  background:#1A2F39!important;
  border-color:#36505B!important;
  color:#EDF5F8!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .amazon-btn{
  background:#16A085!important;
  color:#FFFFFF!important;
}

@media(max-width:900px){
  body.ph-r38-nav #recommendations .ph-r39-category-dock,
  body.ph-redesign-r2 #recommendations .ph-r39-category-dock{
    margin:10px 0 12px!important;
  }
}

/* ===== ph-r43-card-alignment-style ===== */
/* -----------------------------------------------------------
   R43 fixes:
   1) Deal score legibility in dark mode
   2) Humble Score box less cramped
   3) Consistent vertical alignment of the Humble Score block
------------------------------------------------------------ */

/* --- Consistent content heights before the Humble Score block --- */
body.ph-redesign-r2 .ph-product-card .ph-product-context{
  min-height:26px!important;
  margin-bottom:8px!important;
}
body.ph-redesign-r2 .ph-product-card h3{
  min-height:2.8em!important;
  line-height:1.35!important;
  margin:0 0 8px!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
body.ph-redesign-r2 .ph-product-card .product-desc{
  min-height:48px!important;
  margin-bottom:14px!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
}

/* --- Humble Score box: roomier and visually calmer --- */
body.ph-redesign-r2 .ph-card-primary-signal{
  min-height:88px!important;
  padding:14px 16px!important;
  margin:14px 0 12px!important;
  border-radius:14px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
body.ph-redesign-r2 .ph-card-primary-signal>div{
  min-width:128px!important;
  flex:1 1 auto!important;
}
body.ph-redesign-r2 .ph-card-primary-signal small{
  font-size:10px!important;
  letter-spacing:.06em!important;
  margin-bottom:5px!important;
}
body.ph-redesign-r2 .ph-card-primary-signal strong{
  font-size:18px!important;
  line-height:1.1!important;
  margin-top:0!important;
}
body.ph-redesign-r2 .ph-card-primary-signal .trust-badge{
  flex:0 0 auto!important;
  margin-left:auto!important;
  white-space:nowrap!important;
}

/* --- Data row spacing under Humble Score --- */
body.ph-redesign-r2 .ph-card-data{
  margin-top:2px!important;
  margin-bottom:10px!important;
}

/* --- Deal score: better readability in all themes --- */
body.ph-redesign-r2 .ph-deal-signal{
  min-width:66px!important;
  text-align:center!important;
  padding:7px 10px!important;
  border-radius:9px!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-deal-signal{
  background:#DDF7EF!important;
  border:1px solid #8FD6C2!important;
  color:#0E5C4B!important;
  box-shadow:none!important;
}

/* --- Dark mode: keep score box readable and well separated --- */
body.ph-redesign-r2[data-theme="dark"] .ph-card-primary-signal{
  background:#1A2E38!important;
  border-color:#38535F!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-card-primary-signal small{
  color:#B7C8D1!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-card-primary-signal strong{
  color:#F1F7F9!important;
}

@media (max-width: 900px){
  body.ph-redesign-r2 .ph-product-card h3{
    min-height:auto!important;
    -webkit-line-clamp:3!important;
  }
  body.ph-redesign-r2 .ph-product-card .product-desc{
    min-height:auto!important;
  }
  body.ph-redesign-r2 .ph-card-primary-signal{
    min-height:84px!important;
    padding:13px 14px!important;
  }
}

/* ===== ph-r44-dark-signal-style ===== */
/* -----------------------------------------------------------
   R44 fixes:
   1) Stronger PriceHumbler colors for dark-mode signal chips/buttons
   2) Exact cross-card alignment of the Humble Score block
------------------------------------------------------------ */

/* --- Force identical vertical rhythm above the score area --- */
body.ph-redesign-r2 .ph-product-card .product-body{
  display:flex!important;
  flex-direction:column!important;
}
body.ph-redesign-r2 .ph-product-card .ph-product-context{
  height:24px!important;
  min-height:24px!important;
  margin-bottom:8px!important;
}
body.ph-redesign-r2 .ph-product-card h3{
  height:2.8em!important;
  min-height:2.8em!important;
  max-height:2.8em!important;
  line-height:1.4!important;
  margin:0 0 8px!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
body.ph-redesign-r2 .ph-product-card .product-desc{
  height:3.9em!important;
  min-height:3.9em!important;
  max-height:3.9em!important;
  line-height:1.3!important;
  margin-bottom:14px!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
}

/* --- Keep score/info blocks on a stable shared rhythm --- */
body.ph-redesign-r2 .ph-card-primary-signal{
  min-height:88px!important;
  margin:0 0 12px!important;
}
body.ph-redesign-r2 .ph-card-data{
  min-height:58px!important;
  align-items:start!important;
  margin:0 0 10px!important;
}
body.ph-redesign-r2 .ph-amazon-signal{
  min-height:42px!important;
  margin:0 0 12px!important;
}

/* --- Light theme small cleanup for signal clarity --- */
body.ph-redesign-r2 .ph-amazon-signal{
  border:1px solid #D6E1E7!important;
  background:#F4F8FA!important;
  color:#577081!important;
}
body.ph-redesign-r2 .ph-amazon-signal b,
body.ph-redesign-r2 .ph-amazon-signal strong{
  color:#243746!important;
}
body.ph-redesign-r2 .ph-card-foot .price-alert{
  min-height:34px!important;
}

/* --- Dark mode: match PriceHumbler colors and improve contrast --- */
body.ph-redesign-r2[data-theme="dark"] .ph-amazon-signal{
  background:#17323A!important;
  border:1px solid #2D5B5F!important;
  color:#BFD2DA!important;
  box-shadow:inset 3px 0 0 #16A085!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-amazon-signal b,
body.ph-redesign-r2[data-theme="dark"] .ph-amazon-signal strong{
  color:#E8FBF5!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-amazon-signal span:last-child,
body.ph-redesign-r2[data-theme="dark"] .ph-amazon-signal small{
  color:#B8CBD3!important;
}

body.ph-redesign-r2[data-theme="dark"] .ph-deal-signal{
  background:#CFF5E8!important;
  border:1px solid #72D0B4!important;
  color:#0B5C4C!important;
  opacity:1!important;
  box-shadow:0 0 0 1px rgba(11,92,76,.04)!important;
}

body.ph-redesign-r2[data-theme="dark"] .ph-card-foot .price-alert{
  background:#16333B!important;
  border:1px solid #2E5F63!important;
  color:#E9F8F4!important;
  opacity:1!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-card-foot .price-alert:hover{
  background:#1B4346!important;
  border-color:#57B9A2!important;
  color:#FFFFFF!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-card-foot .price-alert.active{
  background:#16A085!important;
  border-color:#16A085!important;
  color:#FFFFFF!important;
}

/* --- Make price helper copy in dark mode slightly more readable near the highlighted chips --- */
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .affiliate-link-note{
  color:#AFC2CB!important;
}

@media (max-width: 900px){
  body.ph-redesign-r2 .ph-product-card h3,
  body.ph-redesign-r2 .ph-product-card .product-desc{
    height:auto!important;
    min-height:unset!important;
    max-height:none!important;
  }
  body.ph-redesign-r2 .ph-card-data{
    min-height:auto!important;
  }
}

/* ===== ph-r45-badge-containment-style ===== */
/* -----------------------------------------------------------
   R45 fixes:
   1) Keep review-trust badge fully inside the Humble Score box
   2) Make dark-mode Deal badge unmistakably readable
------------------------------------------------------------ */

/* --- Humble Score box becomes a robust 2-column grid --- */
body.ph-redesign-r2 .ph-card-primary-signal{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:12px!important;
  overflow:hidden!important;
}
body.ph-redesign-r2 .ph-card-primary-signal > div{
  min-width:0!important;
  width:auto!important;
  flex:none!important;
}
body.ph-redesign-r2 .ph-card-primary-signal .trust-badge{
  margin-left:0!important;
  justify-self:end!important;
  align-self:center!important;
  max-width:126px!important;
  min-height:28px!important;
  padding:6px 10px!important;
  white-space:normal!important;
  text-align:center!important;
  line-height:1.15!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  font-size:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}

/* Slightly rebalance the left score column so there is always room */
body.ph-redesign-r2 .ph-card-primary-signal strong{
  font-size:17px!important;
}

/* --- Dark mode deal chip: darker text + clearer border --- */
body.ph-redesign-r2[data-theme="dark"] .ph-deal-signal{
  background:#D8F6EB!important;
  border:1px solid #56B79C!important;
  color:#0A4035!important;
  font-weight:900!important;
  letter-spacing:0!important;
  opacity:1!important;
  text-shadow:none!important;
  filter:none!important;
}

/* Ensure any nested text inherits the readable dark text */
body.ph-redesign-r2[data-theme="dark"] .ph-deal-signal,
body.ph-redesign-r2[data-theme="dark"] .ph-deal-signal *{
  color:#0A4035!important;
}

/* Small mobile fallback */
@media (max-width: 640px){
  body.ph-redesign-r2 .ph-card-primary-signal{
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:10px!important;
  }
  body.ph-redesign-r2 .ph-card-primary-signal .trust-badge{
    justify-self:start!important;
    max-width:none!important;
  }
}

/* ===== ph-r46-final-deal-contrast-style ===== */
/* -----------------------------------------------------------
   R46 fixes:
   1) Force readable dark-mode Deal badge text with higher specificity
   2) Lock the review-data badge fully inside the Humble Score panel
   3) Keep Humble Score panels aligned left-to-right
------------------------------------------------------------ */

/* --- Make the score box layout deterministic on every card --- */
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(108px,124px)!important;
  align-items:center!important;
  column-gap:12px!important;
  row-gap:0!important;
  min-height:88px!important;
  padding:14px 16px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal > div{
  min-width:0!important;
  width:auto!important;
  flex:none!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge{
  justify-self:end!important;
  align-self:center!important;
  width:100%!important;
  max-width:124px!important;
  min-height:30px!important;
  margin:0!important;
  padding:6px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  box-sizing:border-box!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal small{
  display:block!important;
  margin:0 0 6px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal strong{
  display:block!important;
  margin:0!important;
  line-height:1.08!important;
}

/* --- Stronger light-theme signal clarity too --- */
body.ph-redesign-r2 .ph-product-card .ph-amazon-signal{
  border-radius:11px!important;
}

/* --- Dark mode: use PriceHumbler contrast with matching/high specificity --- */
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal{
  background:#CFF6E8!important;
  border:1px solid #62C4A6!important;
  color:#083E33!important;
  font-weight:900!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:none!important;
  filter:none!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal *{
  color:#083E33!important;
}

body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal{
  background:#17323A!important;
  border:1px solid #2E6064!important;
  color:#C3D7DE!important;
  box-shadow:inset 3px 0 0 #16A085!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal b,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal strong{
  color:#F0FBF8!important;
}

/* --- Keep score modules on the same vertical rhythm across cards --- */
body.ph-redesign-r2 .ph-product-card .ph-card-data{
  min-height:58px!important;
  margin:0 0 12px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-amazon-signal{
  min-height:44px!important;
  margin:0 0 12px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-price-row{
  min-height:76px!important;
  align-items:center!important;
}

@media (max-width: 640px){
  body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal{
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:10px!important;
  }
  body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge{
    justify-self:start!important;
    width:auto!important;
    max-width:100%!important;
  }
}

/* ===== ph-r47-final-visual-style ===== */
/* -----------------------------------------------------------
   R47 final visual consistency pass
   1) Force readable Deal badge text in dark mode
   2) Keep review-trust badge fully inside score box
   3) Normalize score-box vertical position across product cards
------------------------------------------------------------ */

/* --- Normalize the upper text stack so the score panel starts on the same height --- */
body.ph-redesign-r2 .ph-product-card .product-body{
  display:flex!important;
  flex-direction:column!important;
}
body.ph-redesign-r2 .ph-product-card .ph-product-context{
  min-height:24px!important;
  height:24px!important;
  margin-bottom:8px!important;
  align-items:center!important;
}
body.ph-redesign-r2 .ph-product-card h3{
  min-height:48px!important;
  max-height:48px!important;
  height:48px!important;
  margin:0 0 8px!important;
  line-height:1.38!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
body.ph-redesign-r2 .ph-product-card .product-desc{
  min-height:54px!important;
  max-height:54px!important;
  height:54px!important;
  margin:0 0 14px!important;
  line-height:1.38!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
}

/* --- Humble Score card: exact placement and internal containment --- */
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 122px!important;
  align-items:center!important;
  column-gap:12px!important;
  min-height:90px!important;
  margin:0 0 12px!important;
  padding:14px 14px!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal > div:first-child{
  min-width:0!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge,
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge.medium{
  position:static!important;
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:122px!important;
  max-width:122px!important;
  min-width:122px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  margin:0!important;
  box-sizing:border-box!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.15!important;
  font-size:11px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal small{
  margin:0 0 5px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal strong{
  margin:0!important;
  line-height:1.08!important;
}

/* --- Keep the rows beneath the score block stable as well --- */
body.ph-redesign-r2 .ph-product-card .ph-card-data{
  min-height:58px!important;
  margin:0 0 12px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-amazon-signal{
  min-height:44px!important;
  margin:0 0 12px!important;
}
body.ph-redesign-r2 .ph-product-card .ph-price-row{
  min-height:76px!important;
  margin-top:0!important;
}
body.ph-redesign-r2 .ph-product-card .ph-deal-signal{
  min-width:72px!important;
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  border-radius:11px!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:0!important;
}

/* --- Dark mode: strong readable PriceHumbler contrast on small chips --- */
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-price-row .ph-deal-signal{
  background:#D7F7EA!important;
  border:1px solid #67C9AA!important;
  color:#08382F!important;
  -webkit-text-fill-color:#08382F!important;
  text-shadow:none!important;
  box-shadow:0 0 0 1px rgba(8,56,47,.05)!important;
  opacity:1!important;
  filter:none!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-deal-signal *,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-price-row .ph-deal-signal *{
  color:#08382F!important;
  -webkit-text-fill-color:#08382F!important;
  opacity:1!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal{
  background:#16343B!important;
  border:1px solid #2E6367!important;
  color:#D0E3E9!important;
}
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal b,
body.ph-redesign-r2[data-theme="dark"] .ph-product-card .ph-amazon-signal strong{
  color:#F1FCF8!important;
}

@media (max-width: 900px){
  body.ph-redesign-r2 .ph-product-card h3,
  body.ph-redesign-r2 .ph-product-card .product-desc{
    min-height:unset!important;
    max-height:none!important;
    height:auto!important;
  }
}

@media (max-width: 640px){
  body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal{
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:10px!important;
  }
  body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge,
  body.ph-redesign-r2 .ph-product-card .ph-card-primary-signal .trust-badge.medium{
    justify-self:start!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
}
