/* The desktop filter lives outside the centered shell and never takes its width. */
#hp-usim-design .hp-live-filter,#hp-usim-design .hp-live-toggle{display:none}
@media(min-width:1024px){
 #hp-usim-design.hp-live-sidebar-ready.hp-live-in-view.hp-live-wide .hp-live-filter,
 #hp-usim-design.hp-live-sidebar-ready.hp-live-in-view.hp-live-open .hp-live-filter{display:flex}
 #hp-usim-design .hp-live-filter{flex-direction:column;position:fixed;z-index:35;left:var(--hp-live-left,auto);right:12px;top:var(--hp-live-top,24px);width:260px;box-sizing:border-box;max-height:calc(100vh - var(--hp-live-top,24px) - 16px);max-height:calc(100dvh - var(--hp-live-top,24px) - 16px);min-width:0;border:1px solid #d6e2f1;border-radius:17px;background:#fff;box-shadow:0 8px 28px #173d7212;overflow:hidden}
 #hp-usim-design.hp-live-compact .hp-live-filter{box-shadow:0 12px 40px #173d7230}
 #hp-usim-design.hp-live-sidebar-ready.hp-live-in-view.hp-live-compact:not(.hp-live-open) .hp-live-toggle{display:flex}
 #hp-usim-design .hp-live-toggle{position:fixed;right:0;top:calc(var(--hp-live-top,24px) + 40px);z-index:34;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:42px;min-height:108px;padding:12px 6px;border:1px solid #c6d8ed;border-right:0;border-radius:12px 0 0 12px;background:#f2f7ff;color:#1b5184;font:inherit;font-size:13px;font-weight:800;box-shadow:0 4px 16px #173d7218;cursor:pointer}
 #hp-usim-design .hp-live-toggle:hover{background:#e6f0ff}
 #hp-usim-design .hp-live-toggle:focus-visible{outline:2px solid #3285c9;outline-offset:-3px}
 #hp-usim-design #hp-live-close{display:none}
 #hp-usim-design.hp-live-compact #hp-live-close{display:block;position:absolute;right:8px;top:8px;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#56708a;font-size:23px;line-height:1;cursor:pointer}
 #hp-usim-design #hp-live-close:hover{background:#e3edf9}
 #hp-usim-design .hp-live-filter-head{position:relative;padding:18px 18px 14px;flex-shrink:0;border-bottom:1px solid #e3ebf5;background:linear-gradient(130deg,#edf5ff,#fff)}
 #hp-usim-design .hp-live-kicker{display:flex;align-items:center;gap:6px;color:#2365a6;font-size:12px;font-weight:750}
 #hp-usim-design .hp-live-kicker i{width:6px;height:6px;background:#258ccd;border-radius:50%;box-shadow:0 0 0 3px #258ccd15}
 #hp-usim-design .hp-live-filter-head h2{font-size:20px;line-height:1.4;letter-spacing:-.6px;margin:5px 0 3px;font-weight:800;color:#17395f}
 #hp-usim-design .hp-live-filter-head p{font-size:12px;color:#62778f;margin:0;line-height:1.5}
 #hp-usim-design .hp-live-filter-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:16px 16px 12px;scrollbar-width:thin;scrollbar-color:#c6d7e9 transparent}
 #hp-usim-design .hp-live-search-label{display:block;font-size:13px;font-weight:700;color:#3c5571;margin-bottom:6px}
 #hp-usim-design #hp-side-search{width:100%;min-width:0;box-sizing:border-box;height:42px;padding:9px 11px;border:1px solid #ceddeb;border-radius:8px;background:#f7faff;color:#17395f;font:inherit;font-size:14px;line-height:1.4;margin:0 0 13px}
 #hp-usim-design #hp-side-search::placeholder{color:#7c8fa3;font-size:13px}
 #hp-usim-design .hp-live-fields{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px 8px;align-items:center;min-width:0}
 #hp-usim-design .hp-live-fields label{color:#3c5571;font-size:13px;font-weight:700;margin-top:0}
 #hp-usim-design .hp-live-fields select{display:block;box-sizing:border-box;width:100%;min-width:0;height:39px;padding:6px 9px;border:1px solid #d5e0ec;border-radius:8px;background:#fff;color:#294560;font:inherit;font-size:13px;line-height:1.4;cursor:pointer;margin-bottom:0}
 #hp-usim-design .hp-live-fields .hp-live-selected{border-color:#8fb8e5;background:#eff6ff;color:#164f8f;font-weight:700}
 #hp-usim-design .hp-live-filter input:focus-visible,#hp-usim-design .hp-live-filter select:focus-visible,#hp-usim-design .hp-live-filter button:focus-visible{outline:2px solid #3285c9;outline-offset:2px}
 #hp-usim-design .hp-live-filter-foot{flex-shrink:0;padding:12px 16px 15px;border-top:1px solid #e3ebf5;background:#fff}
 #hp-usim-design .hp-live-filter-foot p{font-size:13px;text-align:center;color:#4b6480;margin:0 0 8px}
 #hp-usim-design .hp-live-filter-foot strong{font-size:18px;color:#174d87;font-weight:800;margin:0 3px}
 #hp-usim-design #hp-side-reset{display:block;width:100%;height:39px;border:1px solid #ceddec;border-radius:8px;background:#f7faff;color:#365b80;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
 #hp-usim-design #hp-side-reset:hover{background:#eaf3ff;border-color:#a5c5e8}
}

#hp-usim-design .hp-recent-plan[hidden]{display:none!important}
#hp-usim-design .hp-recent-plan>div>span{display:flex;align-items:center;gap:5px}
#hp-usim-design .hp-recent-actions #hp-recent-copy{display:none!important}

@media(min-width:1024px){
 #hp-usim-design .hp-recent-plan{position:fixed;z-index:36;top:var(--hp-live-top,24px);left:var(--hp-live-left,auto);right:12px;width:260px;box-sizing:border-box;display:block;margin:0;padding:11px 13px 12px;border:1px solid #bfd8ee;border-radius:15px;background:linear-gradient(135deg,#f1f9ff 0%,#fff 70%);box-shadow:0 9px 28px #173d7224}
 #hp-usim-design .hp-recent-plan>div:first-child{padding-right:42px;min-width:0}
 #hp-usim-design .hp-recent-plan>div>span{margin:0 0 3px;color:#2872a5;font-size:12px;font-weight:800;line-height:1.4}
 #hp-usim-design .hp-recent-plan>div>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#183e63;font-size:14px;font-weight:800;line-height:1.35}
 #hp-usim-design .hp-recent-plan p{margin:3px 0 0;color:#087ca8;font-size:16px;font-weight:850;line-height:1.25}
 #hp-usim-design .hp-recent-actions{display:block}
 #hp-usim-design .hp-recent-actions #hp-recent-copy{display:none!important}
 #hp-usim-design .hp-recent-actions #hp-recent-open{position:absolute;right:11px;bottom:11px;display:flex;align-items:center;justify-content:center;width:31px;min-height:31px;height:31px;padding:0;border:0;border-radius:9px;background:#176fa9;color:#fff;font-size:0}
 #hp-usim-design .hp-recent-actions #hp-recent-open::after{content:'↗';font-size:18px;line-height:1}
 #hp-usim-design .hp-recent-actions #hp-recent-dismiss{position:absolute;right:5px;top:4px;width:27px;min-height:27px;height:27px;padding:0;border:0;border-radius:7px;background:transparent;color:#637c92;font-size:19px}
 #hp-usim-design .hp-recent-actions #hp-recent-dismiss:hover{background:#e5f1fb}
 #hp-usim-design .hp-recent-actions button:focus-visible{outline:2px solid #3285c9;outline-offset:2px}
 #hp-usim-design.hp-has-recent .hp-live-filter{top:calc(var(--hp-live-top,24px) + 122px);max-height:calc(100vh - var(--hp-live-top,24px) - 138px);max-height:calc(100dvh - var(--hp-live-top,24px) - 138px)}
 #hp-usim-design.hp-has-recent .hp-live-toggle{top:calc(var(--hp-live-top,24px) + 162px)}
}

@media(max-width:1023px){
 body.um-recent-visible{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
 #hp-usim-design .hp-recent-plan{position:fixed;z-index:39;left:0;right:0;bottom:0;top:auto;width:100%;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border:1px solid #bfd8ee;border-bottom:0;border-radius:15px 15px 0 0;background:#fff;box-shadow:0 -7px 28px #173d7226}
 #hp-usim-design .hp-recent-plan>div:first-child{min-width:0;padding-right:0}
 #hp-usim-design .hp-recent-plan>div>span{margin:0 0 2px;color:#2872a5;font-size:11px;font-weight:800;line-height:1.3}
 #hp-usim-design .hp-recent-plan>div>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#183e63;font-size:13px;font-weight:800;line-height:1.4}
 #hp-usim-design .hp-recent-plan p{margin:1px 0 0;color:#087ca8;font-size:15px;font-weight:850;line-height:1.3}
 #hp-usim-design .hp-recent-actions{display:flex;align-items:center;flex-wrap:nowrap;padding-right:24px}
 #hp-usim-design .hp-recent-actions #hp-recent-open{min-height:40px;padding:8px 10px;border:0;border-radius:9px;background:#176fa9;color:#fff;font-size:12px;white-space:nowrap}
 #hp-usim-design .hp-recent-actions #hp-recent-dismiss{position:absolute;right:6px;top:6px;width:27px;min-height:27px;height:27px;padding:0;border:0;border-radius:7px;background:transparent;color:#637c92;font-size:19px}
 #hp-usim-design .hp-recent-actions button:focus-visible{outline:2px solid #3285c9;outline-offset:2px}
}

/* Keep one recent-plan surface visible on both layouts; each selection replaces its text. */
#hp-usim-design .hp-recent-plan:not([hidden]){border-color:#3ca9db;background:linear-gradient(115deg,#102c5c 0%,#1556a0 62%,#087f94 100%);box-shadow:0 10px 32px #0b3b6a55}
#hp-usim-design .hp-recent-plan::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;border-radius:15px 15px 0 0;background:linear-gradient(90deg,#ffd56d,#ff9e4b 55%,#8ce9f5)}
#hp-usim-design .hp-recent-plan>div>span{width:max-content;max-width:100%;padding:3px 7px;border-radius:999px;background:#ffcf70;color:#3b2d19;font-weight:850}
#hp-usim-design .hp-recent-plan>div>strong{color:#fff}
#hp-usim-design .hp-recent-plan p{color:#b9f5ff}
#hp-usim-design .hp-recent-actions #hp-recent-open{border-color:#ffcf70;background:#ffcf70;color:#17365d;box-shadow:0 3px 10px #0a25474d}
#hp-usim-design .hp-recent-actions #hp-recent-open:hover{border-color:#ffe1a1;background:#ffe1a1}
#hp-usim-design .hp-recent-actions #hp-recent-dismiss{background:#ffffff20;color:#fff}
#hp-usim-design .hp-recent-actions #hp-recent-dismiss:hover{background:#ffffff38;color:#fff}

@media(max-width:1023px){
 #hp-usim-design .hp-recent-plan:not([hidden]){box-shadow:0 -8px 28px #0b3b6a50}
}
@media(min-width:1024px) and (prefers-reduced-motion:no-preference){
 #hp-usim-design .hp-recent-plan.hp-recent-refresh{animation:hpRecentGlow .42s ease-out}
}
@media(max-width:1023px) and (prefers-reduced-motion:no-preference){
 #hp-usim-design .hp-recent-plan.hp-recent-refresh{animation:hpRecentRise .3s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes hpRecentGlow{0%{box-shadow:0 0 0 7px #ffcf7099,0 10px 32px #0b3b6a55}100%{box-shadow:0 10px 32px #0b3b6a55}}
@keyframes hpRecentRise{0%{transform:translateY(105%)}65%{transform:translateY(0);box-shadow:0 0 0 5px #ffcf7080,0 -8px 28px #0b3b6a50}100%{transform:translateY(0);box-shadow:0 -8px 28px #0b3b6a50}}
