/* Home (live and video portal) and the shared top tabs: layout and colour only. All type metrics stay in typography.css. */
/* The three top tabs sit in the header's top row, after the plain search on a wide screen and before the account actions. */
.public-shop .shop-topnav{display:flex;align-items:center;gap:4px;margin-left:auto}
.public-shop .shop-topnav+.header-actions{margin-left:0}
/* If large text leaves no room for the tabs in that row, they wrap to a second row instead of squeezing the brand. */
@media(min-width:601px){.public-shop .header-inner{flex-wrap:wrap;row-gap:0}}
.public-shop .shop-top-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:22px;color:#4a4a4a;white-space:nowrap}
.public-shop .shop-top-link .shop-icon{display:none;width:20px;height:20px}
.public-shop .shop-top-link:hover{background:#eef4ff;color:#0f55bd}
.public-shop .shop-top-link.active{background:#e6efff;color:#0f55bd}
.public-shop .shop-top-link.active .shop-icon{color:#1769e0}
@media(min-width:1280px){.public-shop .shop-top-link .shop-icon{display:block}}
/* Wide screens: the plain search and the three tabs share the row between the upload button and the account actions; the tabs stay centred in what the search leaves.
   Only the search shrinks (to its 200px floor). If the row still overflows, client/shop/viewport.js hides the brand text, then gives the tabs a second row. */
@media(min-width:1101px){
 .public-shop .shop-topnav{flex:1 1 auto;justify-content:center;margin-left:0;min-width:max-content}
 .public-shop .shop-topnav+.header-actions{flex-shrink:0}
 html:not([data-shop-header-wrap]) .public-shop .header-inner{flex-wrap:nowrap}
 .public-shop .header-inner>.brand{flex-shrink:0}
}
/* Large text that no longer fits one row (client/shop/viewport.js sets the attribute): the tabs take a second row. */
html[data-shop-header-wrap] .public-shop .shop-topnav{order:3;flex:1 0 100%;justify-content:flex-start;margin:0 -30px 0 -24px;min-width:0;padding:0 24px;border-top:1px solid #f0f0f0}
html[data-shop-header-wrap] .public-shop .shop-topnav+.header-actions{margin-left:auto}
/* Small tablets: brand, tabs and account still fit one row once the account button shows only its icon (the phone treatment) and "TH" is dropped. */
@media(min-width:601px) and (max-width:819px){
 .public-shop .brand small{display:none}
 .public-shop .login{position:relative;min-width:44px;padding:8px;border:0;justify-content:center}
 .public-shop .login span{display:none}
 .public-shop .login[data-signed-in]::after{position:absolute;top:8px;right:6px;box-shadow:0 0 0 2px #fff}
}
/* The header is one row (76px + its border); the fixed sidebar starts below it even before the script measures it. */
@media(min-width:601px) and (min-height:501px),(min-width:960px){.public-shop .shop-sidebar{top:var(--shop-header-height,77px)}}
@media(max-width:600px),(max-width:959px) and (max-height:500px){.public-shop .shop-topnav{display:none}}
/* Home palette: same blue service palette as the live rooms page. */
.public-shop[data-shop-portal-page]{background:#f4f7fc;color:#17233b;--portal-blue:#1769e0;--portal-dark:#0f55bd;--portal-line:#d9e3f4;--portal-muted:#55617a}
.public-shop[data-shop-portal-page] .shop-nav-link.active{color:#0f55bd;background:#e6efff}
.public-shop[data-shop-portal-page] .shop-nav-link.active .shop-icon{color:#1769e0}
.public-shop[data-shop-portal-page] .shop-top-link.active{background:#e6efff;color:#0f55bd}
.public-shop[data-shop-portal-page] a:focus-visible,.public-shop[data-shop-portal-page] button:focus-visible,.public-shop[data-shop-portal-page] input:focus-visible{outline:3px solid #1769e0;outline-offset:2px}
.public-shop .portal{max-width:1480px;min-width:0}
.public-shop .portal [id]{scroll-margin-top:calc(var(--shop-header-height,77px) + 16px)}
.public-shop .portal-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,20rem);gap:20px}
.public-shop .portal-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:28px;min-width:0;padding:32px;border-radius:22px;color:#fff;background:radial-gradient(circle at 88% 8%,#1f4fae 0,#0000 46%),linear-gradient(120deg,#0a225a 0%,#12388a 100%);overflow:hidden}
.public-shop .portal-hero-copy{display:grid;gap:12px;justify-items:start;min-width:0}
.public-shop .portal-hero h1{margin:0;overflow-wrap:anywhere}
.public-shop .portal-eyebrow{margin:0;color:#a9c8ff}
.public-shop .portal-lead{margin:0;color:#d6e3ff;overflow-wrap:anywhere}
.public-shop .portal-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.public-shop .portal-primary,.public-shop .portal-ghost{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:8px 22px;border-radius:14px;text-align:center;overflow-wrap:anywhere}
.public-shop .portal-primary{background:#fff;color:#0a225a}
.public-shop .portal-primary:hover{background:#e6efff}
.public-shop .portal-primary .shop-icon{width:22px;height:22px;color:#e52b36}
.public-shop .portal-ghost{border:1px solid #ffffff80;color:#fff}
.public-shop .portal-ghost:hover{background:#ffffff1f}
.public-shop .portal-hero a:focus-visible,.public-shop .portal-hero button:focus-visible{outline-color:#fff}
.public-shop .portal-feature{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.public-shop .portal-feature .shop-video{min-width:0}
.public-shop .portal-feature .shop-video-caption{display:none}
.public-shop .portal-feature .shop-video-tools{margin:8px 0 0;color:#d6e3ff}
.public-shop .portal-feature .shop-video-tools a{color:#fff}
.public-shop .portal-feature .shop-video-retry{border-color:#ffffff80;background:#ffffff1a;color:#fff}
.public-shop .portal-slide-info{display:grid;gap:4px;justify-items:start;min-width:0}
.public-shop .portal-slide-service{color:#a9c8ff}
.public-shop .portal-slide-title{margin:0;min-height:3em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.public-shop .portal-slide-info>small{color:#d6e3ff;overflow-wrap:anywhere}
.public-shop .portal-slide-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#fff;text-decoration:underline;text-underline-offset:4px}
.public-shop .portal-controls{display:flex;align-items:center;justify-content:center;gap:10px}
.public-shop .portal-step{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#ffffff1a;color:#fff}
.public-shop .portal-step:hover{background:#ffffff33}
.public-shop .portal-step .shop-icon{width:22px;height:22px}
.public-shop .portal-dots{display:flex;align-items:center}
.public-shop .portal-dot{position:relative;width:28px;height:44px;padding:0;border:0;background:none}
.public-shop .portal-dot::before{content:'';position:absolute;left:50%;top:50%;width:10px;height:10px;transform:translate(-50%,-50%);border-radius:50%;background:#ffffff80}
.public-shop .portal-dot[aria-current=true]::before{width:24px;border-radius:6px;background:#fff}
.public-shop .portal-side{display:grid;grid-template-rows:1fr 1fr;gap:16px;min-width:0}
.public-shop .portal-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;gap:8px 14px;min-width:0;padding:20px;border:1px solid var(--portal-line);border-radius:20px;background:#fff;color:#17233b}
.public-shop .portal-card:hover{border-color:var(--card-ink)}
.public-shop .portal-card-live{--card-ink:#b3202b;background:#fff0ef;border-color:#ffd5d2}
.public-shop .portal-card-services{--card-ink:#0f55bd;background:#e6efff;border-color:#c9dcfb}
.public-shop .portal-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fff;color:var(--card-ink)}
.public-shop .portal-card-live .portal-card-icon{color:#e52b36}
.public-shop .portal-card-icon .shop-icon{width:26px;height:26px}
.public-shop .portal-card-copy{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.public-shop .portal-card-copy small{color:var(--portal-muted)}
.public-shop .portal-card-go{grid-column:1/-1;color:var(--card-ink)}
.public-shop .portal-section{margin-top:32px;min-width:0}
.public-shop .portal-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-bottom:16px}
.public-shop .portal-heading>div{min-width:0}
.public-shop .portal-heading small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-all{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#0f55bd}
.public-shop .portal-all:hover{text-decoration:underline;text-underline-offset:4px}
.public-shop .portal-room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11.5rem),1fr));gap:18px}
.public-shop .portal-room{display:grid;align-content:start;gap:8px;min-width:0;padding:10px 10px 14px;border:1px solid var(--portal-line);border-radius:16px;background:#fff}
.public-shop .portal-room:hover{border-color:#1769e0}
.public-shop .portal-room-cover{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--rooms-from),var(--rooms-to));color:var(--rooms-ink)}
.public-shop .portal-room-cover svg{display:block;width:100%;height:100%}
.public-shop .portal-badge{position:absolute;top:8px;left:8px;padding:2px 10px;border-radius:999px;background:#ffffffeb;color:#17233b}
.public-shop .portal-room h3{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.public-shop .portal-video h3{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.public-shop .portal-room-meta{display:flex;align-items:center;gap:8px;min-width:0}
.public-shop .portal-room-meta small{min-width:0;color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-avatar{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--rooms-from),var(--rooms-to));color:var(--rooms-ink)}
.public-shop .portal-avatar .shop-icon{width:16px;height:16px}
.public-shop .portal-video-grid,.public-shop .portal-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:22px 18px}
.public-shop .portal-video{display:grid;align-content:start;gap:10px;min-width:0;border-radius:16px}
.public-shop .portal-video-cover{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--shop-soft)}
.public-shop .portal-video-rank{position:absolute;top:10px;left:10px;display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:8px;background:#1769e0;color:#fff}
.public-shop .portal-video-duration{position:absolute;left:10px;bottom:10px;padding:2px 8px;border-radius:6px;background:#0f172ad9;color:#fff}
.public-shop .portal-play{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:44px;height:32px;border-radius:10px;background:#e52b36;color:#fff}
.public-shop .portal-play .shop-icon{width:24px;height:24px}
.public-shop .portal-video-copy{display:grid;gap:4px;min-width:0}
.public-shop .portal-video-channel{display:flex;align-items:center;gap:8px;min-width:0}
.public-shop .portal-video-avatar{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--shop-soft);color:#17233b}
.public-shop .portal-video-copy small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-video-tag{color:var(--shop-accent)}
.public-shop .portal-video:hover h3{color:#0f55bd}
.public-shop .portal-video-none{margin:0 0 16px;color:var(--portal-muted)}
/* Video pages (/videos/ and /videos/<service>/, see server/shop/portal/video-page.ts): one player and the videos related to it.
   The markup carries the state; the cards that are not related to the playing video stay hidden until a search is typed. */
.public-shop .portal-page-head{display:grid;gap:10px;margin:0 0 14px}
.public-shop .portal[data-portal-video-hub] .portal-page-head{gap:14px}
.public-shop .portal[data-portal-video-hub] .portal-video-catalog{padding:0;border:0;background:transparent;box-shadow:none}
.public-shop .portal[data-portal-video-hub] .portal-catalog-duration{top:8px;left:8px;right:auto;bottom:auto;border-radius:12px}
.public-shop .portal[data-portal-video-hub] .portal-catalog-btn{min-height:44px}
.public-shop .portal[data-portal-video-hub] .portal-view-switch{border-radius:10px}
.public-shop .portal[data-portal-video-hub] .portal-view-btn{width:34px;height:34px;border-radius:8px}
/* The video index is a quiet catalogue. Watch pages and the Shorts discovery banner keep their own layouts. */
.public-shop[data-shop-video-index]{background:#fff;color:#151515;--portal-muted:#666}
.public-shop .portal-video-simple{display:block;min-width:0}
.public-shop .portal-simple-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 24px;min-width:0}
.public-shop .portal-simple-categories{flex:1 1 18rem;min-width:0;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.public-shop .portal-simple-categories .portal-video-chips{display:flex;flex-wrap:nowrap;gap:8px;margin:0;width:max-content}
.public-shop .portal-video-simple .portal-simple-categories .portal-filter-pill{flex-shrink:0;max-width:none;min-height:38px;padding:6px 14px;border:0;border-radius:999px;background:#f1f5f9;box-shadow:none;color:#1e293b;white-space:nowrap}
.public-shop .portal-video-simple .portal-simple-categories .portal-filter-pill:hover{background:#e2e8f0;color:#0f55bd}
.public-shop .portal-simple-categories .portal-filter-pill.active{background:#1769e0;color:#fff}
.public-shop .portal-video-simple .portal-simple-categories .portal-filter-pill.active{background:#1769e0;border-color:#1769e0;color:#fff}
.public-shop .portal-simple-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}
.public-shop .portal-tool-btn{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#334155}
.public-shop .portal-tool-btn:hover,.public-shop .portal-tool-btn[aria-current=page]{border-color:#1769e0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal-tool-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-sort-prefix{color:#475569;white-space:nowrap}
@media(max-width:640px){.public-shop .portal-sort-prefix{display:none}}
.public-shop .portal-video-options{position:relative;flex-shrink:0;z-index:6}
.public-shop .portal-video-options>summary{display:grid;place-items:center;width:38px;height:38px;list-style:none;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#334155;cursor:pointer}
.public-shop .portal-video-options>summary::-webkit-details-marker{display:none}
.public-shop .portal-video-options>summary:hover{background:#f1f1f1}
.public-shop .portal-video-options-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(22rem,calc(100vw - 48px));display:grid;gap:14px;padding:16px;border:1px solid #ddd;border-radius:12px;background:#fff;box-shadow:0 5px 22px #0002}
.public-shop .portal-video-options-panel .portal-video-library-nav{margin:0}
.public-shop .portal-video-options-panel .portal-video-controls{flex-wrap:wrap;justify-content:flex-start}
.public-shop .portal-video-simple .portal-catalog-grid{gap:30px 16px}
.public-shop .portal-video-simple .portal-catalog-body{grid-template-columns:36px minmax(0,1fr) 34px;gap:8px}
.public-shop .portal-video-simple .portal-catalog-avatar{width:36px;height:36px;background:#f1f1f1;color:#333}
.public-shop .portal-video-simple .portal-catalog-copy{gap:4px}
.public-shop .portal-video-simple .portal-catalog-title-link{color:#151515}
.public-shop .portal-video-simple .portal-card-menu>summary{width:34px;min-height:34px;height:34px;padding:4px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#334155}
.public-shop .portal-video-simple .portal-card-menu>summary:hover,.public-shop .portal-video-simple .portal-card-menu[open]>summary{border-color:#cbd5e1;background:#e2e8f0;color:#0f172a}
.public-shop .portal-video-simple .portal-catalog-meta{gap:2px 8px;color:#666}
.public-shop .portal-video-simple .portal-catalog-meta>span+span:not([data-video-publication-status],[data-video-cover-state],[data-video-pin-state])::before{content:"·";margin-right:8px}
.public-shop .portal-video-simple .portal-catalog-cover{border-radius:12px}
.public-shop .portal-video-simple[data-portal-video-hub] .portal-catalog-duration{top:auto;left:auto;bottom:7px;right:7px;border-radius:4px;padding:1px 5px;background:#000d}
.public-shop .portal-video-simple .portal-card-menu .favorite-toggle{position:static;place-self:stretch;height:auto;box-shadow:none}
.public-shop .portal-video-simple .portal-catalog-footer{margin-top:28px}
.public-shop .portal-page-head-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.public-shop .portal-page-title{margin:0;overflow-wrap:anywhere}
.public-shop .portal-page-head small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-video-count-badge{display:inline-flex;align-items:center;min-height:36px;padding:4px 14px;border:1px solid #cdd9ee;border-radius:999px;background:#fff;color:#0f55bd}
.public-shop .portal-video-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border:1px solid var(--portal-line);border-radius:16px;background:#fff}
.public-shop .portal-video-chips{display:flex;flex-wrap:wrap;gap:8px}
.public-shop .portal-filter-pill{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border-radius:999px;cursor:pointer}
.public-shop .portal-filter-icon{display:inline-grid;place-items:center}
.public-shop .portal-filter-icon .shop-icon{width:16px;height:16px}
.public-shop .portal-filter-pill.tone-featured:not(.active) .portal-filter-icon{color:#e11d48}
.public-shop .portal-filter-pill.tone-live:not(.active) .portal-filter-icon{color:#7e22ce}
.public-shop .portal-filter-pill.tone-content:not(.active) .portal-filter-icon{color:#c2410c}
.public-shop .portal-filter-pill.tone-tech:not(.active) .portal-filter-icon{color:#15803d}
.public-shop .portal-filter-pill.tone-ai:not(.active) .portal-filter-icon{color:#be185d}
.public-shop .portal-filter-pill.tone-courses:not(.active) .portal-filter-icon{color:#1769e0}
.public-shop .portal-filter-pill.active .portal-filter-icon{color:#fff}
.public-shop .portal-video-catalog{display:grid;gap:16px;margin:0 0 28px;padding:18px;border:1px solid var(--portal-line);border-radius:20px;background:#fff;box-shadow:0 4px 18px #0f172a0a}
.public-shop .portal-catalog-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.public-shop .portal-catalog-title{margin:0;color:#17233b;overflow-wrap:anywhere}
.public-shop .portal-video-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.public-shop .portal-video-sort{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px;border:1px solid #cdd9ee;border-radius:10px;background:#fff;color:#17233b}
.public-shop .portal-sort-icon{display:inline-grid;place-items:center;color:#55617a}
.public-shop .portal-sort-icon .shop-icon{width:16px;height:16px}
.public-shop .portal-video-sort select{min-height:32px;border:0;background:transparent;color:#17233b;cursor:pointer}
.public-shop .portal-view-switch{display:inline-flex;align-items:center;gap:4px;padding:3px;border:1px solid #cdd9ee;border-radius:10px;background:#fff}
.public-shop .portal-view-btn{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#55617a;cursor:pointer}
.public-shop .portal-view-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-view-btn.active{background:#1769e0;color:#fff}
.public-shop .portal-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(15rem,calc((100% - 60px)/4))),1fr));gap:28px 20px}
@media(min-width:601px){.public-shop .portal[data-video-cols="3"]:not([data-video-layout=list]) .portal-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(18rem,calc((100% - 40px)/3))),1fr))}}
.public-shop .portal-catalog-card{display:grid;grid-template-rows:auto 1fr;gap:12px;min-width:0;padding:0;border:0;border-radius:12px;background:transparent;align-content:start}
.public-shop .portal-catalog-card:hover .portal-catalog-cover{box-shadow:0 5px 18px #0f172a1a}
.public-shop .portal-catalog-card[data-video-hover-preview=active] .portal-catalog-cover{box-shadow:0 0 0 2px #1769e0}
.public-shop .portal-hover-preview-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:1}
.public-shop .portal-catalog-cover{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--shop-soft)}
.public-shop .portal-catalog-duration{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:6px;background:#0f172ad9;color:#fff}
.public-shop .portal-catalog-body{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-content:start;gap:10px;min-width:0}
.public-shop .portal-catalog-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e9e5ff;color:#5b21b6;overflow:hidden}
.public-shop .portal-catalog-copy{display:grid;gap:5px;min-width:0;align-content:start}
.public-shop .portal-catalog-badge{display:inline-flex;align-items:center;justify-self:start;gap:4px;padding:2px 7px;border-radius:8px;max-width:100%;overflow-wrap:anywhere}
.public-shop .portal-catalog-badge .shop-icon{flex-shrink:0;width:13px;height:13px}
.public-shop .portal-catalog-badge.tone-featured{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.public-shop .portal-catalog-badge.tone-live{background:#f3e8ff;color:#6b21a8;border:1px solid #e9d5ff}
.public-shop .portal-catalog-badge.tone-content{background:#ffedd5;color:#9a3412;border:1px solid #fed7aa}
.public-shop .portal-catalog-badge.tone-tech{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.public-shop .portal-catalog-badge.tone-ai{background:#fce7f3;color:#9d174d;border:1px solid #fbcfe8}
.public-shop .portal-catalog-badge.tone-courses{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.public-shop .portal-catalog-badge.tone-other{background:#f1f5f9;color:#334155;border:1px solid #cbd5e1}
.public-shop .portal-catalog-card-title{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.public-shop .portal-catalog-title-link{color:#17233b}
.public-shop .portal-catalog-card:hover .portal-catalog-title-link{color:#0f55bd}
.public-shop .portal-catalog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;color:var(--portal-muted);min-width:0}
.public-shop .portal-catalog-meta-item{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;overflow-wrap:anywhere}
.public-shop .portal-catalog-meta-item span{overflow-wrap:anywhere}
.public-shop .portal-catalog-meta :is([data-video-publication-status],[data-video-cover-state],[data-video-pin-state]){padding:1px 6px;border-radius:6px;background:#f1f5f9;color:#334155}
.public-shop .portal-catalog-meta-item .shop-icon{flex-shrink:0;width:14px;height:14px}
.public-shop .portal-card-menu{position:relative;min-width:0}
.public-shop .portal-card-menu>summary{display:grid;place-items:center;list-style:none;width:40px;min-height:44px;padding:4px;border-radius:50%;cursor:pointer;color:#475569}
.public-shop .portal-card-menu>summary::-webkit-details-marker{display:none}
.public-shop .portal-card-menu>summary:hover,.public-shop .portal-card-menu[open]>summary{background:#e2e8f0}
.public-shop .portal-card-menu>summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.public-shop .portal-catalog-actions{position:absolute;right:0;top:calc(100% + 6px);z-index:25;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;width:min(14.5rem,calc(100vw - 32px));padding:8px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 12px 32px #0f172a24}
.public-shop .portal-catalog-actions .portal-catalog-btn{padding:8px;overflow-wrap:anywhere}
.public-shop .portal .portal-catalog-actions .portal-menu-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:auto;min-height:36px;padding:6px 12px;border:0;border-radius:10px;background:transparent;color:#1e293b;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.public-shop .portal .portal-catalog-actions .portal-menu-item:hover{border:0;background:#f1f5f9;color:#0f55bd}
.public-shop .portal .portal-catalog-actions .portal-menu-item.is-active{border:0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal .portal-catalog-actions .portal-menu-item.is-danger{border:0;background:transparent;color:#b91c1c}
.public-shop .portal .portal-catalog-actions .portal-menu-item.is-danger:hover{border:0;background:#fef2f2;color:#991b1b}
.public-shop .portal .portal-catalog-actions .favorite-toggle[aria-pressed=true]{background:#fff1f2;color:#be123c}
.public-shop .portal-menu-icon{display:inline-grid;place-items:center;flex-shrink:0;width:20px;height:20px}
.public-shop .portal-menu-icon .shop-icon{width:18px;height:18px}
.public-shop .portal-menu-icon.tone-play{color:#1769e0}
.public-shop .portal-menu-icon.tone-edit{color:#f59e0b}
.public-shop .portal-menu-icon.tone-move{color:#3b82f6}
.public-shop .portal-menu-icon.tone-copy{color:#8b5cf6}
.public-shop .portal-menu-icon.tone-tags{color:#ec4899}
.public-shop .portal-menu-icon.tone-share{color:#10b981}
.public-shop .portal-menu-icon.tone-download{color:#0ea5e9}
.public-shop .portal-menu-icon.tone-details{color:#64748b}
.public-shop .portal-menu-icon.tone-favorite{color:#e11d48}
.public-shop .portal-menu-icon.tone-delete{color:#ef4444}
.public-shop .portal-menu-divider{width:100%;height:0;margin:4px 0;border:0;border-top:1px solid #e2e8f0}
.public-shop .portal-action-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px}
.public-shop .portal-action-modal[hidden]{display:none}
.public-shop .portal-action-backdrop{position:fixed;inset:0;background:#0f172a8c;backdrop-filter:blur(3px)}
.public-shop .portal-action-dialog{position:relative;z-index:1;display:grid;gap:16px;width:min(32rem,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 20px 48px #0f172a3d;overflow-y:auto}
.public-shop .portal-action-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}
.public-shop .portal-action-title{margin:0;color:#0f172a;overflow-wrap:anywhere}
.public-shop .portal-action-body{display:grid;gap:14px;min-width:0}
.public-shop .portal-action-form{display:grid;gap:14px;min-width:0}
.public-shop .portal-action-lead{margin:0;color:#334155;overflow-wrap:anywhere}
.public-shop .portal-action-field{display:grid;gap:6px;min-width:0}
.public-shop .portal-action-field>span{color:#1e293b}
.public-shop .portal-action-field :is(input,select,textarea){width:100%;min-height:42px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;color:#0f172a}
.public-shop .portal-action-field textarea{min-height:84px;resize:vertical}
.public-shop .portal-action-foot{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:6px}
.public-shop .portal-watch-btn.is-danger{border-color:#dc2626;background:#dc2626;color:#fff}
.public-shop .portal-watch-btn.is-danger:hover{border-color:#b91c1c;background:#b91c1c;color:#fff}
.public-shop .portal-tag-chips{display:flex;flex-wrap:wrap;gap:8px}
.public-shop .portal-tag-chip{min-height:34px;padding:4px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155;cursor:pointer}
.public-shop .portal-tag-chip:hover{border-color:#1769e0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal-details-list{display:grid;grid-template-columns:minmax(6.5rem,auto) minmax(0,1fr);gap:8px 14px;margin:0;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.public-shop .portal-details-list dt{color:#475569}
.public-shop .portal-details-list dd{margin:0;color:#0f172a;overflow-wrap:anywhere}
.public-shop .portal-action-error{margin:0;padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#b91c1c;overflow-wrap:anywhere}
.public-shop .portal-action-error[hidden]{display:none}
.public-shop .portal-video-library-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.public-shop .portal-video-library-nav [aria-current=page],.public-shop .portal-cols-switch [aria-pressed=true]{background:#0f172a;border-color:#0f172a;color:#fff}
.public-shop .portal-cols-switch{display:flex;flex-wrap:wrap;gap:8px}
.public-shop .portal-video-source-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.public-shop .portal-uploaded-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,#e0e7ff,#ede9fe);color:#7c3aed}
.public-shop .portal-external-card[data-external-source=TikTok] .portal-uploaded-placeholder{background:linear-gradient(135deg,#0f172a,#1e293b 55%,#be123c);color:#fff}
.public-shop :is(.portal-uploaded-card,.portal-external-card) .portal-catalog-cover img:not(.shop-video-cover){position:absolute;width:100%;height:100%;inset:0;object-fit:contain;background:#0f172a}
/* A YouTube cover is a 16:9 picture (older copies carry it inside a 4:3 file with black bars), so it fills the 16:9 frame; cropping a 4:3 copy removes exactly those bars. */
.public-shop .portal-external-card[data-external-source=YouTube] .portal-catalog-cover img:not(.shop-video-cover){object-fit:cover}
.public-shop .portal-uploaded-cover-note{position:absolute;left:12px;right:12px;bottom:10px;color:#fff;background:#0f172acc;border-radius:6px;text-align:center}
.public-shop .portal-preview-stage>video{display:block;width:100%;height:100%;max-height:65dvh;background:#000;object-fit:contain}
.public-shop .portal-catalog-btn{display:grid;place-items:center;min-height:36px;padding:0;border:1px solid #d5e0f2;border-radius:10px;background:#f8faff;color:#475569;cursor:pointer}
.public-shop .portal-catalog-btn:hover{border-color:#1769e0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal-catalog-btn.primary{border-color:#1769e0;background:#1769e0;color:#fff}
.public-shop .portal-catalog-btn.primary:hover{border-color:#0f55bd;background:#0f55bd;color:#fff}
.public-shop .portal-catalog-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-catalog-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:16px;border-top:1px solid #e9effa}
.public-shop .portal-catalog-summary{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-catalog-pager{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.public-shop .portal-catalog-pages{display:inline-flex;align-items:center;gap:6px}
.public-shop .portal-page-btn{display:grid;place-items:center;min-width:36px;height:36px;padding:0 10px;border:1px solid #cdd9ee;border-radius:8px;background:#fff;color:#17233b;cursor:pointer}
.public-shop .portal-page-btn:hover:not(:disabled){border-color:#1769e0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal-page-btn.active{border-color:#1769e0;background:#1769e0;color:#fff}
.public-shop .portal-page-btn:disabled{opacity:.45;cursor:default}
.public-shop .portal-page-btn .shop-icon{width:16px;height:16px}
.public-shop .portal-page-size{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:2px 12px;border:1px solid #cdd9ee;border-radius:8px;background:#fff;color:#17233b}
.public-shop .portal-page-size select{min-height:30px;border:0;background:transparent;color:#0f55bd;cursor:pointer}
.public-shop .portal-catalog-media{position:relative}
.public-shop .portal-catalog-media>.favorite-toggle{position:absolute;top:8px;right:8px;z-index:2;width:36px;height:36px;background:#fffffff2;box-shadow:0 2px 8px #0f172a24}
.public-shop .portal-search-mark{padding:0 2px;border-radius:4px;background:#fef08a;color:#17233b}
.public-shop .portal[data-video-layout=list] .portal-catalog-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.public-shop .portal[data-video-layout=list] .portal-catalog-card{grid-template-columns:minmax(9rem,16rem) minmax(0,1fr);align-items:center;gap:16px}
.public-shop .portal-video-simple[data-video-watching=true]>.portal-simple-topbar,.public-shop .portal-video-simple[data-video-watching=true]>.portal-video-catalog{display:none}
.public-shop .portal-preview-modal{position:relative;display:block;width:100%;padding:4px 0 32px;background:transparent}
.public-shop .portal-preview-modal[hidden]{display:none}
.public-shop .portal-watch-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
@media(min-width:1024px){
 .public-shop .portal-watch-layout{grid-template-columns:minmax(0,1fr) minmax(24rem,27.5rem);gap:24px}
 .public-shop .portal-video-simple[data-watch-theater-mode] .portal-watch-layout{grid-template-columns:minmax(0,1fr)}
}
.public-shop .portal-watch-primary{display:grid;gap:12px;min-width:0}
.public-shop .portal-watch-player-shell{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0a0a0f;box-shadow:0 12px 32px #0f172a26}
.public-shop .portal-preview-stage{position:relative;width:100%;height:100%;background:#000}
.public-shop .shop-vip-gate{display:grid;place-items:center;align-content:center;gap:12px;min-height:12rem;padding:24px;text-align:center;background:#0f172a;color:#fff}
.public-shop .shop-vip-gate p{margin:0;overflow-wrap:anywhere}
.public-shop .portal-catalog-media{position:relative}
.public-shop .portal-vip-chip{position:absolute;top:8px;left:8px;z-index:2;padding:4px 8px;border-radius:999px;background:#7c3aed;color:#fff}
.public-shop .portal-preview-stage .shop-player-frame,.public-shop .portal-preview-stage>video{display:block;width:100%;height:100%;max-height:none;border:0;background:#000;object-fit:contain}
.public-shop .portal-watch-overlay-tools{position:absolute;top:14px;right:14px;z-index:3;display:grid;gap:10px}
.public-shop .portal-watch-overlay-btn{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #ffffff2e;border-radius:50%;background:#0f172aa8;color:#fff;cursor:pointer;backdrop-filter:blur(6px)}
.public-shop .portal-watch-overlay-btn:hover,.public-shop .portal-watch-overlay-btn[aria-pressed=true]{background:#e11d48;border-color:#fb7185}
.public-shop .portal-watch-overlay-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-watch-controls{position:absolute;inset:auto 0 0 0;z-index:3;display:grid;gap:6px;padding:18px 14px 10px;background:linear-gradient(180deg,transparent 0%,#000000b3 55%,#000000de 100%);color:#fff}
.public-shop .portal-watch-controls[hidden]{display:none}
.public-shop .portal-watch-progress-row{display:flex;align-items:center;width:100%}
.public-shop .portal-watch-seek{width:100%;height:5px;margin:0;accent-color:#ef4444;cursor:pointer}
.public-shop .portal-watch-controls-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.public-shop .portal-watch-controls-left,.public-shop .portal-watch-controls-right{display:inline-flex;align-items:center;gap:8px;min-width:0}
.public-shop .portal-watch-ctrl-btn{position:relative;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer}
.public-shop .portal-watch-ctrl-btn:hover{background:#ffffff24}
.public-shop .portal-watch-ctrl-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-watch-volume{width:64px;height:4px;margin:0;accent-color:#ef4444;cursor:pointer}
.public-shop .portal-watch-time{color:#f8fafc;white-space:nowrap}
.public-shop .portal-watch-hd-badge{position:absolute;top:1px;right:0;padding:0 3px;border-radius:3px;background:#ef4444;color:#fff}
.public-shop .portal-watch-header-block{display:grid;gap:4px;min-width:0;padding-top:4px}
.public-shop .portal-preview-service{color:#0f55bd;overflow-wrap:anywhere}
.public-shop .portal-preview-title{margin:0;color:#0f172a;overflow-wrap:anywhere}
.public-shop .portal-watch-submeta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0}
.public-shop .portal-preview-meta{color:#64748b;overflow-wrap:anywhere}
.public-shop .portal-watch-hashtag{padding:0;border:0;background:transparent;color:#1769e0;cursor:pointer}
.public-shop .portal-watch-action-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:4px 0}
.public-shop .portal-watch-creator-box{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.public-shop .portal-watch-creator-avatar{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:#7c6fd6;color:#fff}
.public-shop .portal-watch-creator-text{display:grid;gap:1px;min-width:0}
.public-shop .portal-watch-creator-name{color:#0f172a;overflow-wrap:anywhere}
.public-shop .portal-watch-creator-sub{color:#64748b;overflow-wrap:anywhere}
.public-shop .portal-watch-follow-btn{min-height:38px;padding:6px 20px;border:0;border-radius:999px;background:#111827;color:#fff;cursor:pointer}
.public-shop .portal-watch-follow-btn:hover,.public-shop .portal-watch-follow-btn[aria-pressed=true]{background:#334155}
.public-shop .portal-watch-pill-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.public-shop .portal-watch-like-pill{display:inline-flex;align-items:center;min-height:38px;border:1px solid #e2e8f0;border-radius:999px;background:#f1f5f9;overflow:hidden}
.public-shop .portal-watch-like-btn,.public-shop .portal-watch-dislike-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 14px;border:0;background:transparent;color:#0f172a;cursor:pointer}
.public-shop .portal-watch-like-btn:hover,.public-shop .portal-watch-dislike-btn:hover,.public-shop .portal-watch-like-btn[aria-pressed=true],.public-shop .portal-watch-dislike-btn[aria-pressed=true]{background:#e2e8f0;color:#1769e0}
.public-shop .portal-watch-like-divider{width:1px;height:20px;background:#cbd5e1}
.public-shop .portal-watch-pill-btn{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 14px;border:1px solid #e2e8f0;border-radius:999px;background:#f1f5f9;color:#0f172a;cursor:pointer}
.public-shop .portal-watch-pill-btn:hover{background:#e2e8f0;border-color:#cbd5e1}
.public-shop .portal-watch-pill-btn .shop-icon,.public-shop .portal-watch-like-btn .shop-icon,.public-shop .portal-watch-dislike-btn .shop-icon{width:17px;height:17px;flex-shrink:0}
.public-shop .portal-preview-close{width:38px;height:38px;padding:0;justify-content:center}
/* Watch player declutter (0.0.488): controls fade while a clip plays untouched (js/player/idle-chrome.js sets data-chrome-idle). On a phone the four round tools no longer stack taller than the picture. */
.public-shop .portal-watch-overlay-tools,.public-shop .portal-watch-controls{transition:opacity .25s}
.public-shop .portal-watch-player-shell[data-chrome-idle] :is(.portal-watch-overlay-tools,.portal-watch-controls){opacity:0}
@media(prefers-reduced-motion:reduce){.public-shop .portal-watch-overlay-tools,.public-shop .portal-watch-controls{transition:none}}
@media(max-width:600px){
 .public-shop .portal-watch-overlay-tools{top:8px;right:8px;grid-auto-flow:column;gap:8px}
 .public-shop .portal-watch-overlay-tools [data-watch-overlay=share]{display:none}
 .public-shop .portal-watch-controls{gap:2px;padding:10px 10px 4px}
 .public-shop .portal-watch-controls :is([data-watch-pip],[data-watch-theater],[data-watch-volume]){display:none}
}
.public-shop .portal-watch-desc-box{display:grid;gap:6px;padding:14px 16px;border-radius:14px;background:#f3f4f6;color:#1e293b}
.public-shop .portal-watch-desc-text{margin:0;color:#1e293b;overflow-wrap:anywhere}
.public-shop .portal-watch-desc-more{display:inline-flex;align-items:center;justify-self:start;gap:4px;padding:0;border:0;background:transparent;color:#0f172a;cursor:pointer}
.public-shop .portal-watch-desc-more .shop-icon{width:15px;height:15px}
.public-shop .portal-watch-comments{display:grid;gap:14px;padding-top:8px}
.public-shop .portal-watch-comments-header{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.public-shop .portal-watch-comments-heading{margin:0;color:#0f172a}
.public-shop .portal-watch-comments-sort{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border:0;border-radius:8px;background:transparent;color:#334155;cursor:pointer}
.public-shop .portal-watch-comments-sort .shop-icon{width:15px;height:15px}
.public-shop .portal-watch-comment-form{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:12px}
.public-shop .portal-watch-comment-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#6366f1;color:#fff}
.public-shop .portal-watch-comment-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 12px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc}
.public-shop .portal-watch-comment-input{width:100%;min-height:34px;border:0;background:transparent;color:#0f172a;outline:none}
.public-shop .portal-watch-comment-emoji{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#64748b;cursor:pointer}
.public-shop .portal-watch-comment-emoji .shop-icon{width:18px;height:18px}
.public-shop .portal-watch-comments-list{display:grid;gap:14px}
.public-shop .portal-watch-comment-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:12px;min-width:0}
.public-shop .portal-watch-comment-user-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#7c6fd6;color:#fff}
.public-shop .portal-watch-comment-body{display:grid;gap:4px;min-width:0}
.public-shop .portal-watch-comment-pin{display:inline-flex;align-items:center;gap:4px;color:#64748b}
.public-shop .portal-watch-comment-pin .shop-icon{width:13px;height:13px}
.public-shop .portal-watch-comment-author-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.public-shop .portal-watch-comment-author-badge{display:inline-block;padding:1px 8px;border-radius:6px;background:#1e293b;color:#fff}
.public-shop .portal-watch-comment-time{color:#64748b}
.public-shop .portal-watch-comment-text{margin:0;color:#0f172a;overflow-wrap:anywhere}
.public-shop .portal-watch-comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:2px}
.public-shop .portal-watch-comment-act,.public-shop .portal-watch-comment-reply{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:0;border-radius:6px;background:transparent;color:#475569;cursor:pointer}
.public-shop .portal-watch-comment-act .shop-icon{width:15px;height:15px}
.public-shop .portal-watch-comment-menu{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#64748b;cursor:pointer}
.public-shop .portal-watch-comment-menu .shop-icon{width:16px;height:16px}
.public-shop .portal-watch-secondary{display:grid;gap:12px;min-width:0;align-content:start}
.public-shop .portal-watch-side-filters{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0}
.public-shop .portal-watch-side-chips{display:flex;align-items:center;flex-wrap:nowrap;overflow-x:auto;gap:6px;min-width:0;scrollbar-width:none}
.public-shop .portal-watch-side-chip{flex:0 0 auto;min-height:44px;padding:6px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f1f5f9;color:#1e293b;cursor:pointer}
.public-shop .portal-watch-side-chip:hover{background:#e2e8f0}
.public-shop .portal-watch-side-chip.active{border-color:#1769e0;background:#1769e0;color:#fff}
.public-shop .portal-watch-side-next{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#334155;cursor:pointer}
.public-shop .portal-watch-side-next:disabled{opacity:.4;cursor:default}
.public-shop .portal-watch-side-status{margin:10px 0;overflow-wrap:anywhere}
.public-shop .portal-watch-side-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.public-shop .portal-watch-side-tools a{display:inline-flex;align-items:center;min-height:44px;padding:6px 8px}
.public-shop .portal-watch-side-next .shop-icon{width:15px;height:15px}
.public-shop .portal-watch-side-list{display:grid;gap:10px;min-width:0}
.public-shop .portal-watch-side-item{min-width:0;border-radius:10px}
.public-shop .portal-watch-side-item.active{background:#f1f5f9}
.public-shop .portal-watch-side-link{display:grid;grid-template-columns:minmax(7.5rem,9.75rem) minmax(0,1fr) auto;align-items:start;gap:10px;min-width:0;padding:4px;border-radius:10px;color:#0f172a}
.public-shop .portal-watch-side-link:hover{background:#f8fafc}
.public-shop .portal-watch-side-thumb{position:relative;aspect-ratio:16/9;width:100%;border-radius:8px;overflow:hidden;background:#0f172a}
.public-shop .portal-watch-side-thumb img,.public-shop .portal-watch-side-thumb svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.public-shop .portal-watch-side-duration{position:absolute;right:6px;bottom:6px;padding:1px 6px;border-radius:5px;background:#0f172ad9;color:#fff}
.public-shop .portal-watch-side-progress{position:absolute;inset:auto 0 0 0;height:4px;background:#ffffff59}
.public-shop .portal-watch-side-progress span{display:block;height:100%;background:#e11d48}
.public-shop .portal-watch-side-chip[hidden]{display:none}
.public-shop .portal-watch-side-copy{display:grid;gap:2px;min-width:0}
.public-shop .portal-watch-side-title{margin:0;color:#0f172a;display:block;overflow-wrap:anywhere}
.public-shop .portal-watch-side-pub,.public-shop .portal-watch-side-meta{display:block;color:#64748b;overflow-wrap:anywhere}
.public-shop .portal-watch-side-more{padding:2px 4px;color:#64748b}
@media(max-width:480px){
 .public-shop .portal-watch-side-link{grid-template-columns:minmax(6rem,7.5rem) minmax(0,1fr) auto;gap:8px}
 .public-shop .portal-watch-volume{display:none}
}
/* Services list (/services/, server/shop/portal/services-page.ts): only the categories section, so it starts at the top. */
.public-shop .portal[data-portal-services]>.portal-section{margin-top:0}
.public-shop .portal[data-portal-videos] .portal-videos{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"watch" "heading" "none" "list";gap:0;align-items:start;margin-top:0}
.public-shop .portal[data-portal-videos] .portal-watch{display:grid;grid-area:watch;grid-template-columns:minmax(0,1fr);min-width:0;margin-bottom:28px}
.public-shop .portal[data-portal-videos][data-portal-searching] .portal-heading-related,.public-shop .portal[data-portal-videos]:not([data-portal-searching]) .portal-heading-search{display:none}
.public-shop .portal[data-portal-videos][data-portal-searching] .portal-heading-search{display:flex}
.public-shop .portal[data-portal-videos][data-portal-searching] .portal-hub-sections{display:none}
.public-shop .portal[data-portal-videos] .portal-heading{grid-area:heading}
.public-shop .portal[data-portal-videos] .portal-video-none{grid-area:none}
.public-shop .portal[data-portal-videos] .portal-video-grid{grid-area:list}
/* Without a search the list holds only the videos related to the one playing; a search lists every match. */
.public-shop .portal[data-portal-videos]:not([data-portal-searching]) .portal-video:not([data-related]){display:none}
.public-shop .portal[data-portal-videos][data-portal-filtering] .portal-video:not([data-related]),.public-shop .portal[data-portal-videos][data-portal-related-filter] .portal-video:not([data-related]){display:grid}
.public-shop .portal-watch-item{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.public-shop .portal-watch-item .shop-video{min-width:0}
.public-shop .portal-watch-info{display:grid;gap:12px;justify-items:start;min-width:0}
.public-shop .portal-watch-title{margin:0;overflow-wrap:anywhere}
/* Muted text only: the tone accents of several categories are below 4.5:1 on this background (pixel check found 4.06 to 4.43). */
.public-shop .portal-watch-info>small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-watch-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;padding:12px 16px;border:1px solid var(--portal-line);border-radius:16px;background:#fff}
.public-shop .portal-watch-channel{display:flex;align-items:center;gap:12px;min-width:0}
.public-shop .portal-watch-avatar{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:var(--shop-soft);color:#17233b}
.public-shop .portal-watch-owner{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.public-shop .portal-watch-owner small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-watch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.public-shop .portal-watch-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border:1px solid #cdd9ee;border-radius:999px;background:#f8faff;color:#17233b;cursor:pointer}
.public-shop .portal-watch-btn:hover{border-color:#1769e0;background:#eaf2ff;color:#0f55bd}
.public-shop .portal-watch-btn .shop-icon{width:18px;height:18px}
.public-shop .portal-watch-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 16px;border-radius:999px;background:#1769e0;color:#fff}
.public-shop .portal-watch-link:hover{background:#0f55bd}
.public-shop .portal-share-status{color:#0f55bd;overflow-wrap:anywhere}
.public-shop .portal-watch-details{display:grid;gap:10px;width:100%;padding:16px;border:1px solid var(--portal-line);border-radius:16px;background:#fff;overflow-wrap:anywhere}
.public-shop .portal-watch-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:#0f55bd}
.public-shop .portal-watch-desc{margin:0;color:#17233b}
.public-shop .portal-watch-tags{display:flex;flex-wrap:wrap;gap:8px}
.public-shop .portal-watch-tag{min-height:36px;padding:4px 12px;border:1px solid #dbe7fb;border-radius:999px;background:#f1f6ff;color:#0f55bd;cursor:pointer}
.public-shop .portal-watch-tag:hover{border-color:#1769e0;background:#e0ecff}
.public-shop .portal-related-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.public-shop .portal-related-chip{min-height:36px;padding:4px 12px;border:1px solid #cdd9ee;border-radius:999px;background:#fff;color:#2d3b57;cursor:pointer}
.public-shop .portal-related-chip:hover{border-color:#1769e0;background:#eaf2ff}
.public-shop .portal-related-chip.active{border-color:#1769e0;background:#1769e0;color:#fff}
.public-shop .portal-hub-sections{display:grid;gap:28px;margin-top:32px}
.public-shop .portal-hub-block{margin-top:0;padding:22px;border:1px solid var(--portal-line);border-radius:20px;background:#fff}
.public-shop .portal-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:14px}
.public-shop .portal-cat-tile{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--portal-line);border-radius:16px;background:#f8faff;color:#17233b}
.public-shop .portal-cat-tile:hover{border-color:var(--shop-accent);background:#fff}
.public-shop .portal-cat-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--shop-soft);color:var(--shop-accent)}
.public-shop .portal-cat-icon .shop-icon{width:22px;height:22px}
.public-shop .portal-cat-copy{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.public-shop .portal-cat-copy small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal[data-video-layout=list] .portal-hub-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.public-shop .portal[data-video-layout=list] .portal-hub-grid .portal-video{grid-template-columns:minmax(9rem,16rem) minmax(0,1fr);align-items:center;gap:16px;padding:10px;border:1px solid var(--portal-line);background:#f8faff}
.public-shop .portal-video[aria-current=page] h3{color:#0f55bd}
@media(min-width:1280px){
 .public-shop .portal[data-portal-videos] .portal-videos{grid-template-columns:minmax(0,1fr) minmax(16rem,22rem);grid-template-areas:"watch heading" "watch none" "watch list";grid-template-rows:auto auto 1fr;column-gap:24px}
 .public-shop .portal[data-portal-videos] .portal-watch{margin-bottom:0}
 .public-shop .portal[data-portal-videos] .portal-video-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .public-shop .portal[data-portal-videos] .portal-video-grid .portal-video{grid-template-columns:minmax(7.5rem,42%) minmax(0,1fr);align-items:start;gap:12px}
 .public-shop .portal[data-portal-videos] .portal-videos>.portal-heading{margin-bottom:12px}
}
.public-shop .portal .shop-filter{border:1px solid #cdd9ee;background:#fff;color:#2d3b57}
.public-shop .portal .shop-filter:hover{border-color:#1769e0;background:#eaf2ff}
.public-shop .portal .shop-filter.active{border-color:#1769e0;background:#1769e0;color:#fff}
.public-shop .portal .category-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr));gap:14px}
.public-shop .portal-tile{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:14px;padding:16px;border:1px solid var(--portal-line);border-radius:16px;background:#fff}
.public-shop .portal-tile:hover{border-color:var(--shop-accent)}
.public-shop .portal-tile-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--shop-soft);color:var(--shop-accent)}
.public-shop .portal-tile-icon .shop-icon{width:24px;height:24px}
.public-shop .portal-tile-copy{min-width:0}
.public-shop .portal-tile h3{margin:0 0 2px;overflow-wrap:anywhere}
.public-shop .portal-tile p{margin:0;color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-tile .service-status{margin-top:4px;color:#46526b;overflow-wrap:anywhere}
.public-shop .portal .shop-empty{background:#fff;border-color:var(--portal-line)}
.public-shop .portal .availability-note{color:var(--portal-muted)}
.public-shop .portal-bottom{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;margin-top:32px}
.public-shop .portal-panel{min-width:0;padding:22px;border:1px solid var(--portal-line);border-radius:18px;background:#fff}
.public-shop .portal-panel h2{margin:0 0 14px;overflow-wrap:anywhere}
.public-shop .portal-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.public-shop .portal-stat{min-width:0;padding:14px 16px;border:1px solid #dbe7fb;border-radius:14px;background:#f1f6ff}
.public-shop .portal-stat-number{display:block;color:#0f55bd}
.public-shop .portal-stat small{color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-panel-note{margin-top:12px;color:var(--portal-muted);overflow-wrap:anywhere}
.public-shop .portal-publishers{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.public-shop .portal-publisher{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:8px;border-radius:12px}
.public-shop .portal-publisher:hover{background:#f1f6ff}
.public-shop .portal-letter{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--shop-soft);color:#17233b}
.public-shop .portal-publisher-copy{display:grid;min-width:0;overflow-wrap:anywhere}
.public-shop .portal-publisher-copy small{color:var(--portal-muted)}
.public-shop .portal-publisher-go{padding:4px 14px;border:1px solid #cdd9ee;border-radius:999px;color:#0f55bd;white-space:nowrap}
.public-shop .portal .how-section{margin-top:32px;padding:0;border-top:0}
.public-shop .portal .step{background:#fff;border-color:var(--portal-line)}
.public-shop .portal .step>span{color:#1769e0}
@media(max-width:1100px){
 .public-shop .portal-top{grid-template-columns:minmax(0,1fr)}
 .public-shop .portal-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
}
@media(max-width:800px){
 .public-shop .portal-hero{grid-template-columns:minmax(0,1fr);padding:24px}
 .public-shop .portal-side{grid-template-columns:minmax(0,1fr)}
 .public-shop .portal-bottom{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 .public-shop[data-shop-portal-page]{background:#fff;--portal-line:#e9e6f0;--portal-muted:#655e73}
 .public-shop .portal-hero{padding:20px;border-radius:22px;gap:24px;background:radial-gradient(circle at 95% 0,#b328b34d,transparent 65%),linear-gradient(135deg,#211543,#432185)}
 .public-shop .portal-hero-copy{gap:10px}
 .public-shop .portal-eyebrow,.public-shop .portal-slide-service{color:#e1cfff}
 .public-shop .portal-lead,.public-shop .portal-slide-info>small{color:#efe6ff}
 .public-shop .portal-actions{gap:10px;width:100%}
 .public-shop .portal-primary{color:var(--app-accent);border-radius:12px}
 .public-shop .portal-ghost{border-radius:12px}
 .public-shop .portal-side{gap:12px}
 .public-shop .portal-card{border-radius:18px;background:#fff;border-color:var(--portal-line);padding:18px}
 .public-shop .portal-card-live{--card-ink:var(--app-hot)}
 .public-shop .portal-card-services{--card-ink:var(--app-accent)}
 .public-shop .portal-card-icon{background:#f4eeff}
 .public-shop .portal-card-live .portal-card-icon{color:var(--app-hot);background:#fff0f6}
 .public-shop .portal-section{margin-top:28px}
 .public-shop .portal-heading{margin-bottom:14px;align-items:center}
 .public-shop .portal-room-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));gap:12px}
 .public-shop .portal-video-grid,.public-shop .portal-hub-grid{gap:22px 12px}
 .public-shop .portal-video-catalog{padding:16px}
 .public-shop .portal-catalog-grid,.public-shop .portal[data-video-layout=list] .portal-catalog-card,.public-shop .portal[data-video-layout=list] .portal-hub-grid .portal-video{grid-template-columns:minmax(0,1fr);gap:12px}
 .public-shop .portal .category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:12px}
 .public-shop .portal-tile{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;border-radius:18px;align-content:start}
 .public-shop .portal-tile-icon{border-radius:14px}
 .public-shop .portal .shop-filter.active{background:var(--app-accent);border-color:var(--app-accent)}
 .public-shop .portal-publisher-go{color:var(--app-hot);border-color:#f6c4d9;background:#fff0f6}
 .public-shop .portal-primary,.public-shop .portal-ghost{flex:1 1 100%}
 .public-shop .portal-panel{padding:18px}
}

.public-shop .shop-preroll{position:absolute;inset:0;display:grid;grid-template-areas:"label count" "mid mid" "cta skip";grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;padding:12px;gap:8px;background:#000;color:#fff;container-type:size}
.public-shop .shop-preroll :is(video,img){position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.public-shop .shop-preroll :is(span,button,a){position:relative;max-width:100%;overflow-wrap:anywhere;padding:6px 10px;border-radius:8px}
.public-shop .shop-preroll span{grid-area:label;place-self:start;background:#171717;color:#fff}
.public-shop .shop-preroll span[data-preroll-count]{grid-area:count;place-self:start end}
.public-shop .shop-preroll span[data-preroll-count]:empty{display:none}
/* A frame too small for the countdown line at the current text size keeps the skip button reachable: the time then shows on the skip button itself. */
@container (max-height:9.5em){.public-shop .shop-preroll span[data-preroll-count]{display:none}}
.public-shop .shop-preroll span[data-preroll-status]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.public-shop .shop-preroll button{grid-area:skip;place-self:end;min-height:44px;background:#fff;color:#162036;border:1px solid #162036}
.public-shop .shop-preroll button:disabled{background:#d9dee8;color:#3b465c;cursor:not-allowed}
.public-shop .shop-preroll a[data-preroll-link]{grid-area:cta;place-self:end start;display:inline-flex;align-items:center;min-height:44px;background:#ffd23f;color:#162036;border:1px solid #162036;text-decoration:none}
.public-shop .shop-preroll :is(button,a):focus-visible{outline:3px solid #ff8bca;outline-offset:2px}
