
html.mobp {
  --field: var(--panel-2);
  --field-ring: transparent;
  --glass: color-mix(in srgb, var(--panel) 80%, transparent);
  --scrim: rgba(0, 0, 0, .52);
  --mobp-gut: 12px;  --mobp-gl: max(var(--mobp-gut), env(safe-area-inset-left, 0px));  --mobp-gr: max(var(--mobp-gut), env(safe-area-inset-right, 0px));
  --mobp-dock: calc(21px + env(safe-area-inset-bottom, 0px));}
html.mobp[data-theme="light"] {
  --field: var(--panel);
  --field-ring: var(--line-strong);
  --scrim: color-mix(in srgb, var(--ink) 38%, transparent);
}
html.mobp .mobp-off { display: none !important; }
html.mobp .top:not(.up-top) {
  max-width: none; height: calc(52px + env(safe-area-inset-top, 0px)); margin: 0; padding: env(safe-area-inset-top, 0px) var(--mobp-gr) 0 var(--mobp-gl); box-sizing: border-box;  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px;
}
html.mobp .top:not(.up-top) .brand { flex: none; min-width: 0; }
html.mobp .top:not(.up-top) .brand h1 { margin: 0; font-size: 21px; line-height: 1; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
html.mobp .top:not(.up-top) .tagline { display: none; }
html.mobp .top:not(.up-top) > .theme-swatches { margin-left: auto; order: 9; }
html.mobp .top:not(.up-top) > .top-right {
  display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0;
}
html.mobp .top:not(.up-top) > .top-right ~ .theme-swatches { margin-left: 0; }
html.mobp .top:has(> .top-right > #engine-chip) { flex-wrap: nowrap; gap: 8px; }
html.mobp .top:has(> .top-right > #engine-chip) > .top-right { display: flex; }
html.mobp .top:has(> .top-right > #engine-chip) > .top-right::after { content: none; }
html.mobp .top:has(> .top-right > #engine-chip) > .top-right > .bell-wrap { order: 0; margin-left: 0; }
html.mobp .top:has(> .top-right > #engine-chip) > .top-right > #btn-upgrade { order: -2; }
html.mobp .top:has(> .top-right > #engine-chip) > .top-right > #engine-chip { order: -1; margin-right: auto; }
html.mobp #engine-chip {
  height: 24px; min-height: 24px; padding: 0 9px; font-size: 12px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
html.mobp #btn-dev { display: none; }html.mobp .top .bell-btn {
  width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 999px; background: var(--panel-2); color: var(--ink); box-shadow: none; flex: none;
}

html.mobp body:not(.welcome-page)::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 13; background: var(--bg); pointer-events: none; }
html.mobp body:not(.welcome-page) > .theme-swatches { top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }

html.mobp body:not(.welcome-page) .theme-swatches { padding: 0; gap: 0; background: none; }
html.mobp :is(.top .bell-btn, body:not(.welcome-page) .theme-swatches .swatch) svg { width: 22px; height: 22px; }html.mobp body:not(.welcome-page) .theme-swatches .swatch:not(.on) { display: none; }
html.mobp body:not(.welcome-page) .theme-swatches .swatch.on {
  width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;}
html.mobp body:not(.welcome-page) .theme-swatches .swatch::before { content: ''; position: absolute; inset: -4px; }

html.mobp .shell { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--mobp-gr) 0 var(--mobp-gl); max-width: none; }
html.mobp .shell > .main-area { width: 100%; }
html.mobp .side, html.mobp .dev-tabs {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 12; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; width: auto; flex: none;
  margin: 0 calc(-1 * var(--mobp-gr)) 2px calc(-1 * var(--mobp-gl)); padding: 4px var(--mobp-gr) 6px var(--mobp-gl);border: 0; border-radius: 0; background: var(--bg); box-shadow: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
}
html.mobp .side.mobp-tabs-end, html.mobp .dev-tabs.mobp-tabs-end { -webkit-mask-image: none; mask-image: none; }
html.mobp .side::-webkit-scrollbar, html.mobp .dev-tabs::-webkit-scrollbar { display: none; }
html.mobp .side-item, html.mobp .dev-tab {
  position: relative; flex: none; height: 36px; min-height: 36px; margin: 0; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: var(--panel-2); color: var(--muted); font: 600 14px/1 var(--font-ui); white-space: nowrap; text-decoration: none;
}
html.mobp .side-item::before, html.mobp .dev-tab::before { content: ''; position: absolute; inset: -4px 0; }html.mobp .side-item.on, html.mobp .dev-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
html.mobp .side-dev { margin: 0; }
html.mobp .side .nav-count { margin: 0; padding: 0; background: none; color: inherit; font: 600 11px/1 var(--font-mono); }

html.mobp .mobp-info {
  position: relative; flex: none; width: 28px; height: 28px; min-height: 28px; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; cursor: pointer; box-shadow: none;
}
html.mobp .mobp-info::before { content: ''; position: absolute; inset: -8px; }
html.mobp .mobp-info svg { width: 18px; height: 18px; display: block; }
html.mobp .mobp-info[aria-expanded="true"] { color: var(--accent); }
html.mobp .mobp-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.mobp .mobp-shut { display: none !important; }

html.mobp body:not(.welcome-page) main:not(.main-area) { padding-left: var(--mobp-gl); padding-right: var(--mobp-gr); }
html.mobp body:not(.welcome-page) .card { margin: 0 0 10px; padding: 10px 14px 12px; border-radius: 16px; border-color: transparent; box-shadow: none; }
html.mobp body:not(.welcome-page) .card h2 { font-size: 17px; line-height: 1.25; }

html.mobp body:not(.welcome-page) :is(.input, select, textarea, input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="tel"], input:not([type])):not(.films-grid *) {
  font-size: 16px;
}
html.mobp body:not(.welcome-page) :is(.input, select, input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="tel"], input:not([type])):not(.films-grid *) {
  min-height: 44px; border-radius: 12px; background-color: var(--field);
}
html.mobp body:not(.welcome-page) :is(.input, input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="tel"], input:not([type])):not(select):not(.films-grid *):not(:invalid) {
  border: 0; box-shadow: inset 0 0 0 1px var(--field-ring);
}
html.mobp body:not(.welcome-page) :is(.input, input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="tel"], input:not([type])):not(select):not(.films-grid *):invalid {
  box-shadow: 0 0 0 2px var(--danger-soft);
}
html.mobp body:not(.welcome-page) select:not(.films-grid *) { box-shadow: none; }

html.mobp body:not(.welcome-page) input[type="checkbox"]:not(.films-grid *)::before { content: ''; position: absolute; inset: -10px; }
html.mobp body:not(.welcome-page) :is(.check input[type="checkbox"], .films-filter input[type="checkbox"], input[type="checkbox"].switch):not(.films-grid *)::before { inset: -10px -2px; }

html.mobp body:not(.welcome-page) .btn:not(.films-bulk *) { position: relative; min-height: 36px; border-radius: 999px; box-shadow: none; }
html.mobp body:not(.welcome-page) a.btn:not(.films-bulk *) { display: inline-flex; align-items: center; }
html.mobp body:not(.welcome-page) .btn:is(button, a):not(.films-bulk *) { padding-top: 0; padding-bottom: 0; }html.mobp body:not(.welcome-page) :is(#acct-signout-all, #acct-save).btn:not(.films-bulk *) { min-height: 36px; }html.mobp body:not(.welcome-page) .btn-primary:disabled:not(.films-bulk *) { background: var(--chip); color: var(--muted); opacity: 1; }html.mobp body:not(.welcome-page) .btn:not(.btn-primary):not(.btn-quiet):not(.btn-danger-strong):not(.films-bulk *):not(.terms-lang):not(.dpa-lang):not(.pv-lang) { border-color: transparent; background: var(--chip); }
html.mobp body:not(.welcome-page) .btn:not(.films-bulk *)::before { content: ''; position: absolute; inset: -4px 0; }
html.mobp body:not(.welcome-page) .icon-btn { width: 36px; height: 36px; min-height: 36px; }
html.mobp body:not(.welcome-page) .icon-btn:not(.films-bulk *)::before, html.mobp body:not(.welcome-page) .top .bell-btn::before { inset: -4px; }
html.mobp :is(.terms-switch, .dpa-switch, .pv-switch) {
  position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(var(--mobp-gr) + 44px); z-index: 5; margin: 0; padding: 2px; gap: 0; height: 32px; box-sizing: border-box;
  display: inline-flex; align-items: center; border-radius: 999px; background: var(--chip);
}
html.mobp body:not(.welcome-page) :is(.terms-lang, .dpa-lang, .pv-lang).btn {  height: 28px; min-height: 28px; min-width: 44px; padding: 0 12px; border: 0; background: transparent; box-shadow: none; font-size: 13px; color: var(--ink);
}
html.mobp body:not(.welcome-page) :is(.terms-lang, .dpa-lang, .pv-lang).btn::before { inset: -8px 0; }html.mobp body:not(.welcome-page) :is(.terms-lang[aria-pressed="true"], .dpa-lang[aria-pressed="true"], .pv-lang[aria-current="true"]) { background: var(--accent); color: var(--accent-ink); }

html.mobp .mobp-scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); touch-action: none; }
html.mobp .mobp-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 71; box-sizing: border-box; max-height: 85vh; max-height: 85dvh; margin: 0;
  display: flex; flex-direction: column; gap: 8px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); color: var(--ink); border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -8px 24px var(--scrim);
  transition: transform .2s ease;
}
html.mobp .mobp-sheet.mobp-drag { transition: none; }
html.mobp .mobp-grab { position: sticky; top: 0; z-index: 1; flex: none; width: 38px; height: 5px; margin: 7px auto 3px; border-radius: 999px; background: var(--line-strong); opacity: .8; }
html.mobp .mobp-grab::after { content: ''; position: absolute; left: -120px; right: -120px; top: -7px; bottom: -11px; }
html.mobp .mobp-grab + .mobp-sheet-item { border-top-color: transparent; }html.mobp .mobp-sheet-title { margin: 0; font: 700 17px/1.3 var(--font-ui); }
html.mobp .mobp-sheet-item {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; margin: 0; padding: 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--ink); font: 500 16px var(--font-ui); text-align: left; cursor: pointer; box-shadow: none;
}
html.mobp .mobp-sheet-item { -webkit-tap-highlight-color: transparent; }
html.mobp .mobp-sheet-item:active { background: var(--panel-2); }html.mobp .mobp-sheet-item.mobp-danger { color: var(--danger); }
html.mobp .mobp-sheet-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { html.mobp .mobp-sheet { transition: none; } }

@media (max-width: 700px), (max-height: 500px) and (max-width: 1000px) {  html.mobp body.welcome-page .up-stage { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}
