/* Shared visual rules, loaded after feature styles so pages use the same controls. */
:root{--ui-font:"Segoe UI",Arial,sans-serif;--ui-title:clamp(28px,2.1vw,34px);--ui-section:21px;--ui-view:18px;--ui-control:14px;--ui-meta:12px;--ui-radius:3px;--ui-focus:2px}
body,button,input,select,textarea{font-family:var(--ui-font)}
button,input,select,textarea{letter-spacing:normal}
button:disabled{cursor:default}
.workspace main .page-heading h1,.classic-calendar-heading h1,.live-guide-top h1{font-size:var(--ui-title);font-weight:650;letter-spacing:-.6px;line-height:1.2;color:var(--text)}
.section-heading h2,.collection-column>.section-heading h2,.global-search h2{font-size:var(--ui-section);font-weight:650;letter-spacing:-.3px;line-height:1.35;color:var(--text)}
.music-intro h2{font-size:24px;font-weight:650;letter-spacing:-.4px;line-height:1.3}
.media h3,.plex-collection-card h3,.music-card h3{font-weight:600;line-height:1.45}
.media-title,.collection-title-button{font-family:inherit;font-weight:inherit;color:var(--text);line-height:inherit}
.media-meta,.plex-collection-card>p,.music-card-info>p,.music-card-info small,.collection-meta,.home-row-status,.feed-empty,.live-guide-note,.demo-notice p{color:var(--muted)}
.media-meta,.plex-collection-card>p,.music-card-info small{font-size:var(--ui-meta);line-height:1.5}
.media-year{font-variant-numeric:tabular-nums}
.feature-facts,.feature-description,.feature-bottom-controls{color:var(--text)}
.feature-facts,.feature-bottom-controls{color:color-mix(in srgb,var(--text) 85%,transparent)}
.poster-hover{color:var(--text);background:color-mix(in srgb,var(--bg) 90%,transparent)}
.stream-nav button,.stream-tools button,.settings-navigation button{color:var(--muted)}
.stream-nav button:is(:hover,.active),.stream-tools button:hover,.settings-navigation button:is(:hover,.active){color:var(--text)}
.stream-nav button.active{background:none}
.settings-navigation button{border:0;border-radius:0;background:none;line-height:1.45}
.settings-navigation button.active{background:none;color:var(--text);font-weight:650}
.settings-page .panel h2,.settings-page-title{font-weight:650;letter-spacing:-.3px}
.settings-disclosure,.settings-collapsible{border-color:var(--line)}
.settings-page label,.settings-page input,.settings-page select,.settings-page textarea{font-size:var(--ui-control);line-height:1.5}
.settings-page :is(input,select,textarea){min-width:0;max-width:100%}
.settings-page input[type=checkbox],.settings-page input[type=radio]{accent-color:var(--accent)}
.primary,.secondary{font-family:inherit;font-size:var(--ui-control);font-weight:600;line-height:1.4;border-radius:var(--ui-radius);min-height:38px;box-shadow:none}
.primary{background:var(--accent);color:#171717;border:1px solid transparent}
.secondary{background:color-mix(in srgb,var(--panel) 75%,transparent);color:var(--text);border:1px solid var(--line)}
.text-button{background:none;border:0;box-shadow:none;color:var(--accent);font-family:inherit;line-height:1.45}
:is(.primary,.secondary,.text-button,.stream-nav button,.text-choices button,.trending-choices button):hover{filter:none}
.secondary:hover{border-color:color-mix(in srgb,var(--muted) 60%,var(--line));background:var(--panel)}
.text-button:hover{color:var(--text)}
.plex-filter-menu,.filter-dropdown .filter-panel,.saved-views-panel,#poster-action-menu{background:var(--panel);border-color:var(--line);border-radius:var(--ui-radius);color:var(--text)}
.plex-filter-menu button,.filter-token,.plex-bar-select select,.sort-direction{color:var(--text)}
.plex-filter-menu button.selected,.plex-filter-menu .filter-menu-back{color:var(--accent)}
.plex-filter-menu button:hover,.filter-token{background:color-mix(in srgb,var(--muted) 12%,var(--panel))}
.plex-bar-select option{background:var(--panel);color:var(--text)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}
:is(input,select,textarea):not([type=range]):not([type=checkbox]):not([type=radio]):focus{border-color:var(--accent);box-shadow:none}
:is(button,a,summary,input,select,textarea):focus-visible{outline:var(--ui-focus) solid var(--accent);outline-offset:4px}
.media-open:focus-visible,.plex-collection-cover:focus-visible,.season-card:focus-visible,.youtube-video:focus-visible,.music-art:focus-visible{outline:var(--ui-focus) solid var(--accent)!important;outline-offset:4px}
.media-open,.plex-collection-cover,.youtube-video,.youtube-video img,.music-art,.music-art img,.episode-thumb,.episode-thumb img{border-radius:0;box-shadow:none}
#content .text-choices>button,.page-subnav.text-choices>button{font-size:var(--ui-view);font-weight:600;line-height:1.45;color:var(--muted)}
#content :is(.home-row-choices,.collection-toolbar-controls>.text-choices,.youtube-formats,.music-toolbar .text-choices:first-of-type)>button,#popular-library .trending-choices>button{font-size:var(--ui-section);font-weight:650;line-height:1.45;letter-spacing:-.3px}
#content .text-choices>button:is([aria-pressed=true],[aria-selected=true],[aria-current=true]),#popular-library .trending-choices>button[aria-pressed=true],.page-subnav.text-choices>button[aria-current=page]{color:var(--text);background:none;border:0;box-shadow:none}
#content .text-choices>button:hover,#popular-library .trending-choices>button:hover{color:var(--text)}
#content .calendar-view-toggle.text-choices>button,#content .live-categories.text-choices>button{font-size:var(--ui-control)}
.calendar-period-controls>button,.live-time-controls>button{background:none;border:0;border-radius:var(--ui-radius);color:var(--text);font-size:var(--ui-control);min-height:36px}
:is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later){font-size:0!important;line-height:1;display:grid;place-items:center;color:var(--text);border:0;border-radius:var(--ui-radius);min-width:34px;min-height:36px;box-shadow:none}
:is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later)>svg{display:none}
:is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later)::before{content:"";display:block;width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);pointer-events:none}
:is(.shelf-arrow.left,.feature-arrow.previous,#live-categories-left,#calendar-previous,#live-earlier)::before{transform:rotate(225deg)}
.shelf-arrow,.feature-arrow{background:color-mix(in srgb,var(--bg) 85%,transparent)}
:is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later):hover{filter:none;color:var(--accent)}
:is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later):disabled{opacity:.3;cursor:default;color:var(--muted)}
.library-alphabet button{color:var(--muted);border-radius:0;font-variant-numeric:tabular-nums}
.library-alphabet button[aria-current=true]{color:var(--accent)}
.music-breadcrumb h2:empty,.home-row-status:empty{display:none}
.music-toolbar,.plex-collection-toolbar,.calendar-tool-row{row-gap:16px}
@media(max-width:760px){:root{--ui-section:18px;--ui-view:16px;--ui-control:13px}.music-intro h2{font-size:21px}.calendar-period-controls{gap:8px}.music-toolbar input,.live-guide-tools input[type=search]{max-width:100%}.feature-bottom-controls{gap:10px;flex-wrap:wrap}.feature-bottom-controls #feature-preview-status{min-width:0;overflow-wrap:anywhere}.detail-chips{flex-wrap:wrap}}
html.tv-mode{--ui-title:clamp(36px,3vw,60px);--ui-section:clamp(24px,1.5vw,38px);--ui-view:24px;--ui-control:22px;--ui-meta:18px;--ui-focus:4px}
.tv-mode .music-intro h2{font-size:var(--ui-section)}
.tv-mode :is(.primary,.secondary,.calendar-period-controls>button,.live-time-controls>button){min-height:48px;font-size:var(--ui-control)}
.tv-mode :is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later){min-width:48px;min-height:48px}
.tv-mode :is(.shelf-arrow,.feature-arrow,.live-category-arrow,#calendar-previous,#calendar-next,#live-earlier,#live-later)::before{width:14px;height:14px;border-width:3px 3px 0 0}
@media(prefers-reduced-motion:reduce){.text-choices button,.trending-choices button,.secondary,.text-button{transition:none}}

[hidden]{display:none!important}
.music-intro{justify-content:flex-end;margin:0 0 18px}.settings-mode .settings-navigation button:focus-visible{outline-offset:2px}

.settings-navigation button[aria-current="page"]{background:none;color:var(--text);font-weight:650}.settings-mode details.settings-disclosure{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.settings-mode details.settings-disclosure>summary{color:var(--text)}.settings-mode details.settings-disclosure>summary::after{color:var(--muted)}

.stream-nav{justify-content:flex-start}@media(max-width:760px){.live-guide-tools>.text-choices{flex-basis:100%}.live-guide-tools input[type=search]{flex:1 1 100%;width:100%;min-width:0}.live-guide-tools .live-time-controls{width:100%;justify-content:space-between}.stream-nav{column-gap:18px;row-gap:6px}.feature-bottom-controls button{white-space:nowrap}}

/* Need to Watch uses the library's poster dimensions, not wide summary tiles. */
.need-show-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(var(--poster-width),100%),var(--poster-width)));gap:25px 18px;justify-content:start;margin:24px 0}
.need-card-wrap{min-width:0;background:none;box-shadow:none}.need-card-wrap>.need-show-card{display:block;width:100%;padding:0;background:none;color:var(--text);text-align:left;border:0;border-radius:0;box-shadow:none}
.need-show-art{display:block;position:relative;width:100%;aspect-ratio:2/3;overflow:hidden;background:var(--panel);border-radius:0}.need-show-art>img{display:block;width:100%;height:100%;object-fit:cover;align-self:auto;border:0;border-radius:0}.need-show-art>span{display:grid;place-items:center;position:absolute;inset:0;color:var(--muted);font-size:36px}
.need-show-info{display:block;margin-top:10px;min-width:0}.need-show-info strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;font-weight:600;line-height:1.45;color:var(--text)}.need-show-info small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.need-card-wrap.need-selected{box-shadow:none}.need-selecting .need-show-card{padding:0}.need-selected>.need-show-card{background:none}.need-selected .need-show-art{outline:2px solid var(--accent);outline-offset:-2px}
.need-card-wrap>.need-select{left:6px;top:6px;margin:0;padding:4px;background:color-mix(in srgb,var(--bg) 90%,transparent);border-radius:var(--ui-radius)}.need-select input{margin:0;accent-color:var(--accent)}.need-card-wrap>.need-remove{background:color-mix(in srgb,var(--bg) 90%,transparent);color:var(--text);border-radius:var(--ui-radius)}
.need-show-card:focus-visible{outline:var(--ui-focus) solid var(--accent);outline-offset:4px}.need-show-card:hover{filter:none}.need-show-card:hover .need-show-info strong{color:var(--accent)}
#content>.section-heading:has(.need-heading-actions)>h1{font-size:var(--ui-title);font-weight:650;line-height:1.2;letter-spacing:-.6px}.need-heading-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.need-show-grid>.quiet-empty,.need-show-grid>p{grid-column:1/-1}
@media(max-width:600px){.need-show-grid{gap:22px 14px}.need-heading-actions{gap:10px}.need-show-info small{font-size:11px}}
.tv-mode .need-show-info strong{font-size:clamp(18px,1.1vw,28px)}.tv-mode .need-show-info small{font-size:var(--ui-meta)}.tv-mode .need-show-grid{gap:34px 28px}

/* Optional Simple mode: presentation only; saved row visibility stays intact. */
.simple-mode body{background:var(--bg)}
.simple-mode #brand-quote,.simple-mode .page-heading .eyebrow,.simple-mode .page-heading .muted,.simple-mode footer,.simple-mode .poster-sizer{display:none!important}
.simple-mode .plex-collection-card>p{display:none}
/* Service availability remains useful in the simplified layout. */
.simple-mode .media-meta{display:flex}
.simple-mode .workspace main .page-heading{margin-bottom:24px}
.simple-mode .media-grid{gap:24px}
.simple-mode .section-heading{margin-bottom:18px}
.simple-mode .feature-description{max-width:48ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.simple-mode #content:not(.simple-home-expanded)>:is(#home-need-watch,#home-continue,#home-continue-tv,#home-continue-movies,#home-watchlist,#home-just-released,#home-upcoming,#home-collections,#home-discover,#home-youtube,#home-twitch,#home-personal-titles,#home-shortcuts){display:none!important}
.simple-mode #simple-home-more{display:block;margin:24px auto 40px;padding:12px 24px}
.simple-mode #content.simple-home-expanded #simple-home-more{position:sticky;bottom:12px;background:var(--panel);z-index:3}
@media(hover:hover){.simple-mode .media:not(:hover):not(:focus-within) .poster-actions{opacity:0}}

.simple-mode .page-backdrop-stage{display:none!important}
.simple-mode body::before,.simple-mode body::after{opacity:0!important}

/* Keep the quiet Hello Kitty artwork visible in Simple mode. */
html.simple-mode[data-theme]:not([data-theme=hello-kitty]) .workspace main{background-image:none!important}

/* A quiet, always-available header switch, with the theme accent indicating On. */
.stream-tools #simple-mode-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:62px;padding:6px 8px;border:0;background:none;color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap}
#simple-mode-toggle .simple-mode-indicator{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.45;flex-shrink:0}
.stream-tools #simple-mode-toggle[aria-pressed=true]{color:var(--accent)}
#simple-mode-toggle[aria-pressed=true] .simple-mode-indicator{opacity:1}
.stream-tools #simple-mode-toggle:hover{color:var(--text)}
html.tv-mode .stream-tools #simple-mode-toggle{font-size:18px;min-height:48px}
@media(max-width:760px){.stream-tools #simple-mode-toggle{min-width:55px;padding:6px 4px;font-size:11px}}

/* Membership and the single-level settings navigation. */
.settings-pages>.settings-navigation{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.settings-pages>.settings-navigation>button{text-align:left;padding:11px 14px;min-height:42px;border-radius:3px;font-size:14px}
.settings-pages>.settings-navigation>button[aria-current=page]{background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--accent)}
.membership-features{margin:22px 0}
.membership-features>div,.plus-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
.membership-features dt{font-weight:500}.membership-features dd{margin:0;color:var(--accent);white-space:nowrap;font-size:13px}
.plus-entry small{color:var(--muted)}.plus-entry>span:last-child{display:flex;align-items:center;gap:12px;flex-shrink:0}
.plus-tool{border-bottom:1px solid var(--line);padding:14px 0}.plus-tool>summary{font-size:16px;cursor:pointer;color:var(--text)}
.plus-tool form{max-width:540px;padding-top:16px}.plus-tool [role=status]{color:var(--accent)}
.plus-lock-note{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;color:var(--muted);font-size:13px}
.plus-locked :is(input,select,textarea):disabled{opacity:.5}
.developer-section-title{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:.02em;padding:18px 0 2px;margin:0}
#membership-site-form,#membership-grant-form{max-width:540px}#membership-developer-status{color:var(--accent)}
.plus-list-dialog{width:min(1000px,92vw);max-height:85vh;overflow:auto;padding:30px}.plus-list-dialog h2{padding-right:30px}
.request-voting{margin-top:36px}.request-voting h2{font-size:21px}
@media(max-width:760px){.settings-pages>.settings-navigation{display:none}.membership-features>div{gap:12px}.plus-entry{align-items:flex-start;flex-wrap:wrap}.plus-entry>span:last-child{margin-left:auto}.plus-list-dialog{padding:22px}}

html[data-theme]:not([data-theme=hello-kitty]) .settings-mode .workspace main{background-image:none!important}.settings-mode .page-heading{min-height:0!important;margin-bottom:30px}.settings-mode .settings-page-title{margin-top:0}.settings-mode .page-heading .muted{display:none}
#loading-diagnostics table{width:100%;border-collapse:collapse;font-size:.85rem;margin-top:1rem}#loading-diagnostics th,#loading-diagnostics td{padding:.65rem .7rem;text-align:right;border-bottom:1px solid var(--border,rgba(255,255,255,.12));font-variant-numeric:tabular-nums}#loading-diagnostics th:first-child,#loading-diagnostics td:first-child{text-align:left;overflow-wrap:anywhere}#loading-diagnostics th{font-weight:600;color:inherit}@media(max-width:600px){#loading-diagnostics th,#loading-diagnostics td{padding:.5rem .25rem;font-size:.72rem}}
#content.cached-view-pending{position:relative}#content.cached-view-pending>:not(.cached-view-preview){visibility:hidden}#content>.cached-view-preview{position:absolute;inset:0 0 auto;pointer-events:none}.cached-view-preview .cached-view-status{margin:0 0 .65rem;font-size:.8rem}.cached-view-preview button,.cached-view-preview a{cursor:default}
#content.cached-view-pending>.cached-view-retry{visibility:visible;position:relative;z-index:2;float:right}
.media-meta .media-request{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-height:30px;margin-left:auto;padding:0;border:0;border-radius:0;background:transparent;color:#e9b75e;font-family:Arial,sans-serif;font-size:25px;font-weight:500;line-height:1;cursor:pointer}.media-meta .media-request:hover:not(:disabled){color:#ffdb88;background:rgba(244,189,80,.1)}.media-meta .media-request:focus-visible{outline:2px solid #e9b75e;outline-offset:2px}.media-meta .media-request:disabled{opacity:.65;cursor:default;font-size:18px}
.media-planned{display:block;margin:.25rem 0 0;color:#e9b75e;font-size:.72rem;line-height:1.35}.detail-links .media-request,.feature-actions .media-request{border:0;background:transparent;color:#e9b75e;font-family:Arial,sans-serif;font-size:28px;min-width:36px;min-height:36px;padding:0;cursor:pointer}.detail-links .media-request:disabled,.feature-actions .media-request:disabled{opacity:.65;cursor:default}.detail-links .media-planned,.feature-actions .media-planned{align-self:center;margin:0}
.developer-view-switch{display:inline-flex;align-items:center;margin-right:.3rem}.developer-view-switch select{width:auto;max-width:125px;min-height:32px;padding:4px 18px 4px 7px;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:.75rem;cursor:pointer}.developer-view-switch option{background:var(--panel);color:var(--text)}.media-meta .media-request.is-library-add,.detail-links .media-request.is-library-add,.feature-actions .media-request.is-library-add{font-family:inherit;font-size:.72rem;font-weight:600;width:auto;flex-basis:auto;line-height:1.2;padding:3px 0}.media-meta .media-request.is-library-add:disabled{font-size:18px}@media(max-width:700px){.developer-view-switch select{max-width:100px;font-size:.7rem}}
.developer-view-switch select{max-width:110px;background:transparent!important;color:var(--accent)!important}@media(min-width:1400px){html:not(.tv-mode) header:has(.developer-view-switch) .stream-nav{column-gap:10px;flex-wrap:wrap}}
.developer-view-switch select{width:124px;max-width:124px}@media(max-width:700px){.developer-view-switch select{width:100px;max-width:100px}}
.essentials-home #content{padding-top:24px}.essentials-intro{margin:0 4% 24px}.essentials-intro h1{font-size:clamp(24px,2vw,34px);margin:0}.essentials-home #home-up-next,.essentials-home #home-watchlist,.essentials-home #popular-library{margin-bottom:32px}.simple-mode body.essentials-home #content #home-watchlist{display:block!important}.essentials-home .trending-heading{max-width:none}.tv-mode .media-request{min-height:48px;min-width:48px}.tv-mode .feature-stage:focus-within .feature-copy{opacity:1!important;pointer-events:auto}.tv-mode .developer-view-switch select{min-height:48px;min-width:140px;font-size:16px;max-width:none}

@media(min-width:1400px){html:not(.tv-mode) header:has(.developer-view-switch) .stream-nav{column-gap:6px}html:not(.tv-mode) header:has(.developer-view-switch) .stream-tools{margin-left:12px;flex-shrink:0}}

/* Theme audit: reserve tool space and wrap navigation labels as units. */
.workspace>header .stream-nav{flex-wrap:wrap;row-gap:6px}
.workspace>header .stream-nav button{flex-shrink:0}
.workspace>header .stream-tools{flex-shrink:0}
.settings-navigation{top:calc(var(--top-nav-height,68px) + 16px)}
.settings-mode :is(.preference-row small,.settings-context,.setting-status span,.settings-navigation button:not(.selected),.settings-disclosure>summary small){color:var(--muted)}
html.strong-contrast :is(.muted,.preference-row small,.settings-context,.setting-status span,.settings-navigation button,.settings-disclosure>summary small){color:var(--muted)!important;opacity:1}
html.strong-contrast .workspace :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px;box-shadow:none}
@media(max-width:760px){.workspace>header .stream-tools{flex-wrap:wrap;max-width:100%;gap:6px;margin-left:auto}.workspace>header .stream-nav button{min-height:36px}.workspace>header .stream-brand{max-width:100%}}
@media(max-width:480px){.workspace>header .stream-tools{width:100%;justify-content:flex-end}.workspace>header .stream-nav{justify-content:flex-start;column-gap:16px}.workspace>header .stream-nav button{min-height:40px}}

.workspace>header .stream-tools{align-items:center}.workspace>header .developer-view-switch{margin:0 .3rem 0 0}

@media(max-width:480px){.workspace>header .stream-tools{gap:4px}.workspace>header .developer-view-switch select{width:114px;max-width:114px;font-size:13px}}

/* Adaptive navigation: same destinations, tailored to the available screen. */
.workspace>header .stream-nav [data-nav-browse],.workspace>header .stream-nav [data-nav-more]{display:none}
html[data-navigation=compact] .workspace>header .stream-nav [data-home]{display:none}
html[data-navigation=compact] .workspace>header .stream-nav :is([data-home="Overview"],[data-home="Need to Watch"],[data-home="Movies"],[data-home="TV shows"],[data-home="Collections"],[data-nav-more]){display:inline-flex}
html[data-navigation=compact] .stream-nav .theme-nav-symbol{display:none!important}
html[data-navigation=compact] .workspace>header .stream-nav{gap:8px 24px;justify-content:center}
html[data-navigation=compact] .workspace>header .stream-tools{margin-left:auto;gap:12px;width:auto}
html[data-navigation=compact] .workspace>header{gap:20px}
html[data-navigation=compact] .stream-nav button{min-height:40px}
.navigation-dialog{width:min(420px,calc(100vw - 28px));max-height:85dvh;padding:24px;box-sizing:border-box;background:var(--panel);color:var(--text);border:1px solid var(--line)}
.navigation-dialog h2{margin:0 36px 20px 0}.navigation-choices{display:grid;gap:6px}
.navigation-choices>button,.navigation-choices #navigation-profile-controls>button{display:block;width:100%;min-height:44px;text-align:left;padding:10px 12px;color:var(--text);background:transparent;font-size:16px}
.navigation-choices button:hover,.navigation-choices button[aria-current=page]{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
#navigation-profile-controls:not([hidden]){display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.navigation-dialog .developer-view-switch{display:grid;margin:0;gap:6px}.navigation-dialog .developer-view-switch .sr-only{position:static;width:auto;height:auto;clip:auto;overflow:visible}.navigation-dialog .developer-view-switch select{width:100%;max-width:none;min-height:44px;font-size:16px;background:var(--bg)!important;border:1px solid var(--line)}
.navigation-dialog [data-home] .theme-tool-symbol,.navigation-dialog [data-home]>svg{display:none}
.navigation-dialog #simple-mode-toggle[aria-pressed=true]{color:var(--accent)}
.navigation-dialog .close{min-width:40px;min-height:40px}.service-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff4141;margin-left:6px;flex-shrink:0}
@media(max-width:1199px){html[data-navigation=compact] .workspace>header .stream-nav :is([data-home="Movies"],[data-home="TV shows"],[data-home="Collections"]){display:none}html[data-navigation=compact] .workspace>header .stream-nav [data-nav-browse]{display:inline-flex}}
html.tv-mode[data-navigation=compact] .workspace>header .stream-nav :is([data-home="Movies"],[data-home="TV shows"],[data-home="Collections"]){display:none}
html.tv-mode[data-navigation=compact] .workspace>header .stream-nav [data-nav-browse]{display:inline-flex}
html.tv-mode .navigation-dialog{width:650px}.tv-mode .navigation-choices button{min-height:56px;font-size:22px}
@media(min-width:601px) and (max-width:1199px){html[data-navigation=compact] .workspace>header .stream-nav{order:0;flex-basis:auto;width:auto;gap:8px 18px}html[data-navigation=compact] .stream-brand:has(.theme-wordmark){width:180px;flex-basis:180px}}
@media(max-width:600px){
 html:not(.tv-mode)[data-navigation=compact] .workspace>header{min-height:64px;flex-wrap:nowrap;padding:8px 4%;gap:10px}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-brand{width:190px;flex-basis:190px;flex-shrink:1;min-width:0}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-tools{gap:8px;flex-wrap:nowrap;flex-shrink:0}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-nav{position:fixed;inset:auto 0 0;z-index:60;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);gap:4px;margin:0}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-nav button{justify-content:center;font-size:12px;min-height:48px;line-height:1.3;white-space:normal;padding:6px 3px;box-sizing:border-box}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-nav [data-nav-browse]{order:1}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-nav [data-home="Need to Watch"]{order:2}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-nav [data-nav-more]{order:3}
 html:not(.tv-mode)[data-navigation=compact] body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 html:not(.tv-mode)[data-navigation=compact] .brand-quote{display:none}
 html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-brand-icon{width:30px;height:34px;flex-basis:30px}
}

@media(min-width:1200px){html:not(.tv-mode)[data-navigation=compact] .stream-nav [data-home="Movies"]{order:1}html:not(.tv-mode)[data-navigation=compact] .stream-nav [data-home="TV shows"]{order:2}html:not(.tv-mode)[data-navigation=compact] .stream-nav [data-home="Collections"]{order:3}html:not(.tv-mode)[data-navigation=compact] .stream-nav [data-home="Need to Watch"]{order:4}html:not(.tv-mode)[data-navigation=compact] .stream-nav [data-nav-more]{order:5}}

#navigation-profile-controls [data-home]::after{content:attr(data-home)}
html.tv-mode[data-navigation=compact] .workspace>header .stream-nav button{min-height:56px}

@media(max-width:600px){html:not(.tv-mode)[data-navigation=compact] .theme-greeting{display:none!important}}
/* Personal setup keeps changes in a draft until the final save. */
.personal-setup{width:min(1100px,94vw);max-height:92dvh;padding:28px;background:var(--panel);color:var(--text);border:1px solid var(--line);box-sizing:border-box;overflow:auto}
.setup-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:10px 40px 28px 0;color:var(--muted);font-size:12px;letter-spacing:.06em}.setup-progress progress{width:100%;height:3px;accent-color:var(--accent)}
.setup-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px;align-items:start}.setup-content{min-width:0}.setup-content h2{font-size:28px;margin:0 0 12px;line-height:1.3}.setup-content>p{line-height:1.65}.setup-content label{display:grid;gap:8px;margin:18px 0}.setup-content input:not([type=checkbox]),.setup-content select{width:100%;box-sizing:border-box;min-height:44px}.setup-content fieldset{border:0;padding:0;margin:22px 0}.setup-content legend{color:var(--muted);font-size:14px;margin-bottom:10px}
.personal-avatar{display:inline-grid;place-items:center;flex-shrink:0;width:48px;height:48px;border:1px solid var(--accent);border-radius:50%;color:var(--accent);font-size:22px}.personal-avatar svg,#open-profile>svg{width:25px;height:25px}.setup-avatar-choices{display:flex;gap:12px;flex-wrap:wrap}.setup-avatar-choices button{display:grid;place-items:center;width:48px;height:48px;min-height:48px;border-radius:50%;border:1px solid var(--line);background:var(--bg);color:var(--text)}.setup-avatar-choices button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}.setup-avatar-choices svg{width:25px;height:25px}
.setup-live-preview{position:sticky;top:0;min-width:0;padding:24px;background-size:cover;background-position:center;border:1px solid var(--line);border-radius:4px;overflow:hidden;color:#f4f3ef}.setup-live-preview>small{color:#d6d6d6}.setup-preview-identity{display:flex;gap:14px;align-items:center;margin:24px 0 16px}.setup-preview-identity strong{font-size:20px;overflow-wrap:anywhere}.setup-preview-identity p{font-size:12px!important;line-height:1.5;margin:5px 0;color:#ddd}.setup-preview-identity .personal-avatar{color:var(--setup-accent);border-color:var(--setup-accent)}.setup-preview-theme{font-size:12px!important;color:var(--setup-accent)}.setup-preview-nav{font-size:10px;padding:12px 0;border-block:1px solid #ffffff22}.setup-preview-row{margin-top:20px}.setup-preview-row>strong{font-size:12px}.setup-preview-row>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}.setup-preview-row img,.setup-preview-row i{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;background:#ffffff16}.setup-preview-row:nth-of-type(n+5){display:none}
.setup-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.setup-footer button{min-height:44px}.setup-status{color:var(--muted);line-height:1.5}.setup-connections>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.setup-connections small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px}.setup-connections button{min-height:44px}
.setup-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;overflow:auto;gap:6px}.setup-service-grid label,.setup-content .setup-spoiler{display:flex;gap:10px;align-items:center;margin:0;padding:8px 0;min-height:32px;font-size:14px}.setup-service-grid input,.setup-spoiler input{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}.setup-service-grid [hidden]{display:none!important}
.setup-taste-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.setup-taste-grid img{width:100%;aspect-ratio:2/3;object-fit:cover}.setup-taste-grid article{min-width:0}.setup-taste-grid h3{font-size:13px;line-height:1.5;margin:8px 0}.setup-taste-grid article>div{display:grid;gap:4px}.setup-taste-grid button{font-size:12px;min-height:36px;text-align:left;padding:6px}.setup-taste-grid button[aria-pressed=true],.setup-finish-options button[aria-pressed=true]{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.setup-finish-options{display:grid;gap:8px}.setup-finish-options button{min-height:44px;text-align:left}
.personal-profile-panel{display:flex;gap:20px;align-items:start;flex-wrap:wrap}.personal-profile-panel h2{margin-top:0}.profile-gentle-tip{flex-basis:100%;border-top:1px solid var(--line);padding-top:14px}
@media(max-width:700px){.personal-setup{padding:20px;width:96vw;max-height:94dvh}.setup-layout{grid-template-columns:minmax(0,1fr);gap:20px}.setup-live-preview{position:static;order:-1;padding:14px;max-height:180px;overflow:hidden}.setup-live-preview>small,.setup-preview-nav,.setup-preview-row:nth-of-type(n+3){display:none}.setup-preview-identity{margin:0 0 8px}.setup-preview-identity strong{font-size:17px}.setup-preview-theme{margin:6px 0}.setup-preview-row{margin-top:10px}.setup-preview-row img{aspect-ratio:3/2}.setup-progress{margin-bottom:18px}.setup-content h2{font-size:24px}.setup-footer{gap:8px}.setup-service-grid{grid-template-columns:minmax(0,1fr)}.setup-taste-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html.tv-mode .personal-setup{width:1250px;padding:40px}.tv-mode .setup-content h2{font-size:36px}.tv-mode .setup-content :is(input,select,button){min-height:52px;font-size:20px}.tv-mode .setup-taste-grid button{font-size:18px}.tv-mode .setup-footer button{min-height:56px;font-size:22px}

dialog.personal-setup .setup-live-preview{display:block;width:auto;inset:auto;position:sticky;top:0}@media(max-width:700px){dialog.personal-setup .setup-live-preview{position:static}}

dialog.personal-setup[open]{display:flex;flex-direction:column}.personal-setup .setup-layout{min-height:0;overflow:auto;flex:1;padding-right:4px}.personal-setup .setup-progress,.personal-setup .setup-footer{flex-shrink:0}.personal-setup .setup-footer{margin-top:18px;padding-top:14px}.personal-setup .setup-status:empty{display:none}
.personal-setup .setup-live-preview{max-height:560px;overflow:auto}.personal-setup .setup-live-preview :is(p,strong,small,div){font-family:var(--setup-font),"Segoe UI",sans-serif!important}.personal-setup .setup-preview-row img{max-height:110px}.personal-setup .setup-preview-row:nth-of-type(n+5){display:block}
@media(max-width:700px){.personal-setup .setup-live-preview{max-height:165px;overflow:hidden}.personal-setup .setup-preview-row:nth-of-type(n+3){display:none}}

.personal-setup>.close{position:absolute;right:14px;top:10px;float:none;min-width:40px;min-height:40px;z-index:4}.personal-setup .setup-footer>.primary{width:auto;min-width:140px}.personal-setup .setup-live-preview{max-height:450px;overflow:hidden}.personal-setup .setup-progress{margin-top:4px}.personal-setup .setup-content input[type=checkbox]{accent-color:var(--accent)}

@media(max-width:700px){dialog.personal-setup .setup-layout{display:flex;flex-direction:column;align-items:stretch;gap:20px}dialog.personal-setup .setup-content{flex-shrink:0}dialog.personal-setup .setup-live-preview{position:static;flex:0 0 136px;height:136px;min-height:136px;max-height:136px;width:100%;overflow:hidden}}

.settings-mode .personal-profile-panel h2{display:none}.personal-profile-name{display:block;margin-bottom:12px;font-size:18px}.personal-profile-panel .text-button{min-height:40px;margin-right:14px}.profile-account-connections .setting-status>span{text-align:left}.profile-account-connections small{color:var(--muted)}

/* Illustrated profile collections use optimized, individually loaded portraits. */
.illustrated-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.personal-avatar:has(.illustrated-avatar){overflow:hidden;background:var(--bg)}#open-profile:has(.illustrated-avatar){padding:0;overflow:hidden;border-radius:50%}
.theme-avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}.theme-avatar-grid button{padding:9px;background:transparent;border:1px solid transparent;color:var(--muted);border-radius:4px;min-width:0;line-height:1.4}.theme-avatar-grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;margin-bottom:8px}.theme-avatar-grid span{display:block;font-size:12px;overflow-wrap:anywhere}.theme-avatar-grid button:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}.theme-avatar-grid button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.selected-avatar-portrait{display:flex;align-items:center;gap:18px;margin:20px 0}.selected-avatar-portrait img{width:144px;height:144px;border-radius:50%;object-fit:cover;border:2px solid var(--accent)}.selected-avatar-portrait strong{font-size:18px}.setup-avatar-choices:has(+[data-theme-avatar-picker]){margin-bottom:10px}
html.tv-mode .theme-avatar-grid span{font-size:18px}@media(max-width:600px){.theme-avatar-grid{gap:8px}.theme-avatar-grid button{padding:6px}.theme-avatar-grid span{font-size:12px}.selected-avatar-portrait img{width:112px;height:112px}}

.avatar-picker{width:min(720px,94vw);max-height:90dvh;overflow:auto;background:var(--panel);color:var(--text);padding:28px;border:1px solid var(--line)}.avatar-picker>.close{position:absolute;right:12px;top:10px;min-width:40px;min-height:40px}.avatar-picker h2{margin:0 40px 10px 0}.avatar-picker fieldset{border:0;margin:22px 0;padding:0}.avatar-picker legend{color:var(--muted);font-size:13px;margin-bottom:12px}.avatar-picker label{display:grid;gap:8px;margin:18px 0}.avatar-picker-current{display:grid;place-items:center;width:144px;height:144px;border:2px solid var(--accent);border-radius:50%;overflow:hidden;flex-shrink:0;color:var(--accent);font-size:48px}.avatar-picker-current>svg{width:65px;height:65px}.avatar-picker-actions{display:flex;justify-content:flex-end;align-items:center;gap:18px;position:sticky;bottom:-28px;background:var(--panel);padding:18px 0 0;border-top:1px solid var(--line);margin-top:20px}.avatar-picker-actions .primary{width:auto;min-height:44px}.avatar-picker .theme-avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-picker .theme-avatar-grid img{max-width:160px;margin:0 auto 10px}.tv-mode .avatar-picker{width:1000px}.tv-mode .avatar-picker button{min-height:52px}.tv-mode .avatar-picker-current{width:180px;height:180px}@media(max-width:600px){.avatar-picker{padding:20px}.avatar-picker-current{width:112px;height:112px}.avatar-picker .theme-avatar-grid{gap:6px}.avatar-picker .theme-avatar-grid span{font-size:12px}}

.avatar-picker .avatar-basic-options{margin:12px 0}.avatar-picker .avatar-basic-options>summary{color:var(--muted);font-size:13px;padding:8px 0;cursor:pointer}.avatar-picker .avatar-basic-options[open] .setup-avatar-choices{margin:12px 0}.avatar-picker .selected-avatar-portrait{margin:14px 0}.avatar-picker .avatar-picker-current{width:112px;height:112px}.avatar-picker .theme-avatar-grid{gap:10px;margin:10px 0}.avatar-picker .theme-avatar-grid img{max-width:140px}.avatar-picker .theme-avatar-grid span{font-size:14px}.avatar-picker .theme-avatar-grid button{padding:6px}.tv-mode .avatar-picker .avatar-picker-current{width:180px;height:180px}.tv-mode .avatar-picker .theme-avatar-grid img{max-width:180px}.tv-mode .avatar-picker .theme-avatar-grid span{font-size:18px}

.avatar-picker>p.muted{margin:4px 0 10px;font-size:13px}.avatar-picker .avatar-picker-current{width:80px;height:80px}.avatar-picker .selected-avatar-portrait{margin:10px 0}.avatar-picker .avatar-basic-options{margin:6px 0}.avatar-picker label{margin:12px 0}.avatar-picker .theme-avatar-grid img{max-width:128px}.tv-mode .avatar-picker .avatar-picker-current{width:180px;height:180px}

.avatar-picker-current>.illustrated-avatar{width:100%;height:100%;max-width:none;border:0;border-radius:inherit;object-fit:cover}

/* Primary utility actions stay visible on every screen. */
.workspace>header .stream-tools>[data-home]:is([data-home="Settings"],[data-home="Notifications"]){display:grid;flex-shrink:0}
@media(max-width:600px){html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-tools{gap:2px}html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-tools>button{width:36px;min-width:36px;min-height:44px}html:not(.tv-mode)[data-navigation=compact] .workspace>header .stream-brand{flex-basis:160px}}
/* Plex-style shell; the previous shell remains selectable in Display. */
#library-menu-toggle,.library-menu-shade{display:none}
html[data-interface=plex] .workspace>header{position:sticky;top:0;z-index:70;min-height:68px;background:color-mix(in srgb,var(--bg) 94%,transparent);border-bottom:1px solid var(--line)}
html[data-interface=plex] .workspace>header .stream-nav{position:fixed;inset:var(--top-nav-height,68px) auto 0 0;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:3px;width:218px;box-sizing:border-box;padding:20px 12px;overflow-y:auto;background:color-mix(in srgb,var(--bg) 96%,transparent);border-right:1px solid var(--line);border-top:0;margin:0}
html[data-interface=plex] .workspace>header .stream-nav button{display:flex!important;justify-content:flex-start;align-items:center;width:100%;padding:10px 16px;min-height:44px;font-size:14px;line-height:1.5;white-space:normal;text-align:left;order:0;border-radius:3px;border-left:3px solid transparent;color:var(--muted)}
html[data-interface=plex] .workspace>header .stream-nav button:is(.active,[aria-current=page]){color:var(--accent);border-left-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
html[data-interface=plex] .workspace>header .stream-nav button:hover{color:var(--text);background:color-mix(in srgb,var(--text) 6%,transparent)}
html[data-interface=plex] .workspace>header .stream-nav [data-nav-browse]{display:none!important}
html[data-interface=plex] .plex-navigation-label{margin:20px 18px 7px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);order:0}
html[data-interface=plex] .workspace>main{margin-left:218px;min-width:0}
html[data-interface=plex] .workspace>header .stream-tools{margin-left:auto;width:auto;flex-wrap:nowrap}
html[data-interface=plex] .settings-nav-group{display:grid;gap:3px;margin-bottom:18px}
html[data-interface=plex] .settings-nav-group>p{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:0 14px;margin:12px 0 7px}
html[data-interface=plex] .settings-nav-group>button{text-align:left;min-height:42px;padding:10px 14px;color:var(--muted);background:none;font-size:14px;border-radius:3px}
html[data-interface=plex] .settings-nav-group>button[aria-current=page]{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.interface-layout-control{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}
html.tv-mode[data-interface=plex] .workspace>header .stream-nav{width:260px;padding:22px 16px}html.tv-mode[data-interface=plex] .workspace>main{margin-left:260px}html.tv-mode[data-interface=plex] .workspace>header .stream-nav button{font-size:20px;min-height:56px}
@media(max-width:900px){
html:not(.tv-mode)[data-interface=plex] body{padding-bottom:0}
html:not(.tv-mode)[data-interface=plex] .workspace>main{margin-left:0}
html:not(.tv-mode)[data-interface=plex] .workspace>header{flex-wrap:nowrap;padding:8px 4%;gap:8px}
html:not(.tv-mode)[data-interface=plex] #library-menu-toggle{display:grid;place-items:center;background:none;color:var(--text);width:32px;min-width:32px;height:44px;padding:4px;flex-shrink:0}
#library-menu-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-brand{width:auto;flex-basis:150px;min-width:0;flex-shrink:1;gap:6px}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-brand-copy{min-width:0}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-brand-name,html:not(.tv-mode)[data-interface=plex] .workspace>header .theme-wordmark{max-width:100%;width:100%}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-nav{display:none!important;width:min(280px,82vw);z-index:73;grid-template-columns:none;padding-bottom:24px}
html:not(.tv-mode)[data-interface=plex] .workspace>header.library-menu-open .stream-nav{display:flex!important}
html:not(.tv-mode)[data-interface=plex] .library-menu-open .library-menu-shade{display:block;position:fixed;inset:var(--top-nav-height,68px) 0 0;width:100%;height:100dvh;background:#0009;border:0;z-index:72}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-tools{gap:2px;flex-shrink:0}
html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-tools>button{width:36px;min-width:36px;min-height:44px}
html:not(.tv-mode)[data-interface=plex] .brand-quote{display:none}
}
@media(max-width:360px){html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-brand-copy{display:none}html:not(.tv-mode)[data-interface=plex] .workspace>header .stream-brand{flex-basis:auto}}
html[data-interface=plex] .workspace>header .stream-nav>*{order:0!important}
html[data-interface=plex] .plex-library-icon{display:inline-flex;flex:0 0 20px;width:20px;height:20px;margin-right:13px;color:currentColor}html[data-interface=plex] .plex-library-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-interface=plex] .stream-nav .theme-nav-symbol{display:none!important}
@media(max-width:900px){html:not(.tv-mode)[data-interface=plex][data-navigation] .workspace>header .stream-nav{inset:var(--top-nav-height,68px) auto 0 0;height:calc(100dvh - var(--top-nav-height,68px));width:min(280px,82vw);padding:14px 12px 24px;gap:3px;justify-content:flex-start}html:not(.tv-mode)[data-interface=plex][data-navigation] .workspace>header .stream-nav button{justify-content:flex-start;font-size:14px;min-height:44px;flex:0 0 auto;padding:10px 16px}html:not(.tv-mode)[data-interface=plex][data-navigation] .workspace>header .stream-nav .plex-navigation-label{flex-shrink:0}}
html[data-interface=plex] #comfort-settings label:has(#comfort-navigation){display:none}
#sidebar-collapse-toggle{display:none;background:none;color:var(--text);width:36px;min-width:36px;height:44px;padding:6px;flex-shrink:0}
#sidebar-collapse-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6}
@media(min-width:901px){html[data-interface=plex] #sidebar-collapse-toggle{display:grid;place-items:center}html[data-interface=plex][data-sidebar-collapsed=true] .workspace>header .stream-nav{width:68px;padding-inline:8px}html[data-interface=plex][data-sidebar-collapsed=true] .workspace>main{margin-left:68px}html[data-interface=plex][data-sidebar-collapsed=true] .workspace>header .stream-nav button{font-size:0!important;justify-content:center!important;padding:10px 6px;position:relative;gap:0}html[data-interface=plex][data-sidebar-collapsed=true] .plex-library-icon{margin:0}html[data-interface=plex][data-sidebar-collapsed=true] .plex-navigation-label{height:1px;margin:12px 5px;background:var(--line);font-size:0}html[data-interface=plex][data-sidebar-collapsed=true] .stream-nav .service-live-dot{position:absolute;top:7px;right:4px;margin:0}}
html.tv-mode[data-interface=plex] #sidebar-collapse-toggle{display:grid;place-items:center;min-width:48px;min-height:48px}
html.tv-mode[data-interface=plex][data-sidebar-collapsed=true] .workspace>header .stream-nav{width:84px;padding-inline:12px}html.tv-mode[data-interface=plex][data-sidebar-collapsed=true] .workspace>main{margin-left:84px}
html.tv-mode[data-interface=plex][data-sidebar-collapsed=true] .workspace>header .stream-nav button{font-size:0!important;justify-content:center!important;padding:12px 6px;position:relative;gap:0}html.tv-mode[data-interface=plex][data-sidebar-collapsed=true] .plex-library-icon{margin:0}html.tv-mode[data-interface=plex][data-sidebar-collapsed=true] .plex-navigation-label{height:1px;margin:12px 5px;background:var(--line);font-size:0}
.header-search{display:none}
@media(min-width:901px){html[data-interface=plex] .workspace>header .header-search{display:flex;align-items:center;flex:1 1 420px;max-width:640px;min-width:180px;margin:0 auto;background:color-mix(in srgb,var(--text) 5%,transparent);border:1px solid var(--line);border-radius:4px}html[data-interface=plex] .workspace>header .header-search:focus-within{border-color:var(--accent)}html[data-interface=plex] .header-search input{width:100%;min-width:0;background:none;border:0;outline:none;padding:10px 14px;color:var(--text);font:inherit;font-size:14px;min-height:42px;box-shadow:none}html[data-interface=plex] .header-search input::placeholder{color:var(--muted)}html[data-interface=plex] .header-search button{display:grid;place-items:center;flex-shrink:0;width:44px;min-height:42px;padding:10px;background:none;color:var(--muted)}html[data-interface=plex] .header-search button:hover{color:var(--accent)}html[data-interface=plex] .header-search svg{width:20px;height:20px}html[data-interface=plex] .workspace>header .stream-tools>[data-home=Search]{display:none}html[data-interface=plex] .workspace>header .stream-tools{margin-left:0}}
html.tv-mode[data-interface=plex] .header-search{display:flex;align-items:center;flex:1;max-width:720px;min-width:180px;margin:auto;border:1px solid var(--line);background:var(--panel)}html.tv-mode[data-interface=plex] .header-search input{font-size:20px;min-height:52px}html.tv-mode[data-interface=plex] .header-search button{min-width:52px;min-height:52px}
.header-search{position:relative}.header-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:90;max-height:min(65vh,620px);overflow:auto;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:4px;box-shadow:0 12px 32px #0007}.header-search-results[hidden]{display:none}.header-search-results>p{font-size:12px;color:var(--muted);padding:4px 10px;margin:3px 0 6px}.workspace>header .header-search .header-search-matches>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;height:auto;min-height:48px;padding:9px 10px;gap:3px;background:none;border:0;color:var(--text)}.header-search-matches>button strong{font-size:14px;font-weight:550;line-height:1.4}.header-search-matches>button small{font-size:12px;color:var(--muted)}.workspace>header .header-search .header-search-matches>button:is(:hover,:focus-visible){background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent)}
.plex-home-picker{width:min(1000px,94vw);max-height:92dvh;box-sizing:border-box;padding:36px;background:var(--bg,#151719);color:var(--text,#f4f3ef);border:1px solid var(--line,#444);overflow:auto}.plex-home-picker::backdrop{background:#000c}.plex-home-picker h1{text-align:center;font-size:30px}.plex-home-picker>[data-household-note]{text-align:center;line-height:1.6}.plex-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:18px;margin:30px 0}.plex-home-profile{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 8px;background:transparent;color:var(--text);border:1px solid transparent}.plex-home-profile:is(:hover,:focus-visible),.plex-home-profile[aria-current=true]{border-color:var(--accent,#e9b75e);background:color-mix(in srgb,var(--accent,#e9b75e) 6%,transparent)}.plex-home-avatar{position:relative;display:grid;place-items:center;width:100px;height:100px;background:var(--panel,#252729);border-radius:50%;font-size:38px;overflow:hidden}.plex-home-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.plex-home-profile strong{font-size:16px;overflow-wrap:anywhere}.plex-home-profile small{font-size:12px;color:var(--muted,#aaa);line-height:1.5}.plex-home-pin{max-width:340px;margin:30px auto}.plex-home-pin[hidden],.plex-home-grid[hidden]{display:none}.plex-home-pin input{width:100%;box-sizing:border-box;min-height:48px;font-size:24px;letter-spacing:.4em}.plex-home-picker [role=status]{line-height:1.6}.tv-mode .plex-home-picker{width:1250px;padding:48px}.tv-mode .plex-home-profile{min-height:220px}.tv-mode .plex-home-avatar{width:140px;height:140px}.tv-mode .plex-home-profile strong{font-size:22px}.tv-mode .plex-home-profile small{font-size:18px}@media(max-width:600px){.plex-home-picker{padding:22px}.plex-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plex-home-avatar{width:90px;height:90px}.plex-home-picker h1{font-size:25px}}
.playlist-heading{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.playlist-heading h1{margin-right:auto}.playlist-heading input{width:min(300px,100%)}.playlist-card button{display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left;background:none;color:var(--text);padding:0;gap:9px}.playlist-card img,.playlist-art-placeholder{width:100%;aspect-ratio:1;object-fit:cover;display:grid;place-items:center;background:var(--panel);font-size:42px;color:var(--muted)}.playlist-card strong{font-size:14px;line-height:1.5}.playlist-card small,.playlist-entry small{color:var(--muted);font-size:12px}.playlist-browse[hidden],.playlist-detail[hidden]{display:none}.playlist-detail-heading{margin:22px 0 28px}.playlist-detail-heading p{max-width:780px;line-height:1.7}.playlist-entry{display:flex;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.playlist-position{width:28px;text-align:center;color:var(--muted);flex-shrink:0}.playlist-entry img{width:140px;aspect-ratio:16/9;object-fit:cover;flex-shrink:0}.playlist-entry>div{min-width:0;flex:1}.playlist-entry strong,.playlist-entry small{display:block;line-height:1.5}.playlist-entry p{font-size:13px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.playlist-entry>a{flex-shrink:0;font-size:13px}@media(max-width:600px){.playlist-entry{gap:10px;flex-wrap:wrap}.playlist-entry img{width:90px}.playlist-entry>div{flex-basis:calc(100% - 140px)}.playlist-entry>a{margin-left:38px}.playlist-heading input{width:100%}}
.playlist-card>a{display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left;background:none;color:var(--text);padding:0;gap:9px;text-decoration:none}.playlist-card>a:hover{color:var(--accent)}.playlist-card>a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}

/* Library owners use a compact green add icon; member requests retain their theme color. */
.media-meta .media-request.is-library-add,.detail-links .media-request.is-library-add,.feature-actions .media-request.is-library-add{font-size:24px;line-height:1;min-width:28px;width:28px;padding:2px;text-align:center}
.media-request.is-library-add:not(:disabled){color:#54d68b!important}
.home-service-icons{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
/* Profile shortcuts remain available in compact and expanded layouts. */
html[data-navigation] .workspace>header .stream-nav.has-menu-pins button{display:flex!important;order:0!important}
.menu-pins-dialog{width:min(580px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;overflow:auto}
.menu-pin-list{display:grid;gap:3px}
.menu-pin-row{display:flex;align-items:center;gap:8px;min-height:44px;border-bottom:1px solid var(--line)}
.menu-pin-row>button:first-child,.menu-pin-row>label{flex:1;text-align:left;display:flex;align-items:center;gap:12px;padding:10px 8px;margin:0}
.menu-pin-row input{width:18px;height:18px;accent-color:var(--accent);flex:none}
.menu-pin-row .plex-library-icon{width:22px;height:22px;flex:none}
.menu-pin-row .plex-library-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7}
.menu-pin-actions{display:flex;gap:12px;position:sticky;bottom:0;background:var(--panel);padding:14px 0 4px}
.device-preview-dialog{width:calc(100vw - 32px);max-width:1800px;max-height:94dvh;box-sizing:border-box;overflow:auto}
.device-preview-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding-right:30px}
.device-preview-toolbar label{display:grid;gap:6px;margin:0}
.device-preview-toolbar input[type=number]{width:92px}
.device-preview-remote{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.device-preview-remote[hidden]{display:none}
.device-preview-viewport{position:relative;width:100%;min-height:220px;overflow:hidden;background:#060708;border:1px solid var(--line)}
.device-preview-viewport iframe{position:absolute;left:0;top:0;max-width:none;transform-origin:top left;border:0;background:#080a0d}
.watchlist-control{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.watchlist-bookmark{display:inline-block;width:22px;height:22px;flex:none;vertical-align:middle;margin-right:2px}
#app .watchlist-control.is-saved,#poster-action-menu .watchlist-control.is-saved{color:#e9b75e!important}

/* Web developer permission preview stays beside the header tools. */
.workspace>header .stream-tools>.developer-view-switch{display:inline-flex;flex:0 0 auto;margin:0 8px 0 0}.workspace>header .stream-tools>.developer-view-switch select{font-family:inherit;font-size:12px;font-weight:400;width:112px;max-width:112px;min-height:32px;padding:4px 20px 4px 8px;border:1px solid transparent;border-radius:4px;background:transparent!important}.workspace>header .stream-tools>.developer-view-switch select:hover{background:rgba(255,255,255,.05)!important;border-color:var(--line)}
