html, body { overscroll-behavior: none; }
/* Behind the iOS status bar: a soft shade over full-screen pages, or the open app's own colour. */
.status-strip { position: fixed; z-index: 1100; left: 0; right: 0; top: 0; height: env(safe-area-inset-top, 0px); pointer-events: none; background: linear-gradient(#1d1b2052, #1d1b2000); transition: background-color .25s; }
.status-strip.solid { background: var(--strip-color, #101014); }
.status-strip.solid.light { background: linear-gradient(#1d1b2040, #1d1b2040), var(--strip-color); }
:root { color-scheme: light; font-family: "Arial", "Helvetica Neue", sans-serif; background: #eaeaea; color: #39363e; --safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px); }
* { box-sizing: border-box; -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
body { margin: 0; width: 100%; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #eaeaea; }
button { font: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.screen { width: 100vw; height: 100svh; height:100dvh; display: grid; place-items: center; overflow: hidden; background: #fff; }
.console { position: relative; width: 960px; height: 540px; flex-shrink: 0; overflow: visible; transform: scale(var(--screen-scale, 1)); background: #fff; }
.definitions { position: absolute; width: 0; height: 0; }
.channel-viewport { position: absolute; left: 0; top: 40px; width: 960px; height: 349px; overflow: hidden; }
.channel-viewport::before, .channel-viewport::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 4; pointer-events: none; }
.channel-viewport::before { left: 0; background: linear-gradient(to right,#fff 15%,#fff0); }
.channel-viewport::after { right: 0; background: linear-gradient(to left,#fff 15%,#fff0); }
.channel-track { display: flex; width: max-content; gap: 10px; margin-left: 80px; padding-top: 4px; transition: transform 580ms cubic-bezier(.22,.7,.12,1); }
.channel-page { display: grid; width: 798px; grid-template-columns: repeat(4, 192px); grid-template-rows: repeat(3, 105px); gap: 9px 10px; }
.channel { position: relative; appearance: none; width: 192px; height: 105px; padding: 0; border: 0; background: none; outline: none; transform-origin: center; transition: transform 210ms cubic-bezier(.2,.8,.3,1.4), filter 180ms; }
.channel svg { width: 100%; height: 100%; overflow: visible; display: block; }
.channel .tile-outline { stroke: #aaaead; stroke-width: 1.45; }
.channel:hover, .channel:focus-visible { z-index: 3; transform: scale(1.035); filter: drop-shadow(0 0 3px #74caff); }
.channel:hover .tile-outline, .channel:focus-visible .tile-outline { stroke: #60bfea; stroke-width: 3; }
.channel:active { transform: scale(.985); }
.channel.occupied:hover > svg, .channel.occupied:focus-visible > svg { animation: breathe 2400ms ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.009,.995); } }
.footer { position: absolute; top: 391px; left: calc(-1 * var(--footer-extra, 0px)); width: calc(960px + 2 * var(--footer-extra, 0px)); height: 149px; }
h1 { position: absolute; top: 397px; left: 250px; width: 460px; margin: 0; text-align: center; font-size: 32px; line-height: 43px; font-weight: 400; letter-spacing: .3px; color: #446174; text-shadow: 0 1px 1px #fff; }
time { position: absolute; top: 456px; left: 280px; width: 400px; text-align: center; font-size: 40px; font-weight: 600; line-height: 48px; color: #808080; letter-spacing: .2px; text-shadow: 0 1px #e1dfe8; }
.corner-button { position: absolute; top: 407px; width: 94px; height: 94px; background: transparent; border: 0; padding: 0; transition: transform 200ms cubic-bezier(.2,.8,.3,1.5), filter 180ms; }
.corner-button svg { width: 100%; height: 100%; display: block; }
.brand { left: 40px; cursor: default; }
.settings { right: 40px; }
.settings:hover,.settings:focus-visible { transform: scale(1.07); filter: drop-shadow(0 0 4px #9ed7ff); outline: none; }
.settings:active { transform: scale(.96); }
.sd-button { position: absolute; left: 177px; top: 448px; width: 43px; height: 55px; border: 0; padding: 0; background: transparent; transition: transform 200ms; }
.sd-button img { width: 100%; height: 100%; display: block; }
.sd-button:hover,.sd-button:focus-visible { transform: translateY(-3px); outline: none; filter: drop-shadow(0 0 3px #8ed5ff); }
.page-arrow { position: absolute; top: 178px; width: 42px; height: 57px; border: 0; padding: 0; background: transparent; z-index: 4; transition: transform 200ms; }
.page-arrow { filter: drop-shadow(1px 2px 1px #77777750); }
.page-arrow svg { width: 100%; height: 100%; }
.next { right: 26px; }.previous { left: 22px; }.previous svg { transform: scaleX(-1); }
.next:hover,.next:focus-visible { transform: translateX(4px) scale(1.1); outline: none; }.previous:hover,.previous:focus-visible { transform: translateX(-4px) scale(1.1); outline: none; }
.page-arrow:active { scale: .95; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { width: min(480px, 90vw); max-height: 88svh; overflow-y: auto; padding: 28px; border: 2px solid #a1cfda; border-radius: 10px; background: linear-gradient(#fff,#f2fbfc); color: #536169; box-shadow: inset 0 1px white, 0 8px 40px #42586233; }
dialog[open] { animation: panel-in 260ms cubic-bezier(.2,.8,.25,1.2); }
dialog::backdrop { background: #24394040; backdrop-filter: blur(5px); }
dialog h2 { font: 28px "Trebuchet MS",Arial,sans-serif; color: #26b4d0; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 3px dotted #d8dfe0; }
dialog p { line-height: 1.6; color: #647d84; }
dialog label { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 18px 0; color: #647d84; }
dialog input { accent-color: #28bbdc; width: 18px; height: 18px; }
.back-button { display: block; min-width: 130px; margin: 26px auto 0; padding: 10px 30px; border: 1px solid #c2dacb; border-radius: 30px; color: #526169; background: linear-gradient(#f8fffb,#e6f7ed); box-shadow: inset 0 1px 2px #fff,0 2px 3px #73919a28; }
@keyframes panel-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
@media(prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

.channel.occupied .tile-outline { stroke: var(--channel-outline); }
.channel.occupied:hover .tile-outline, .channel.occupied:focus-visible .tile-outline { stroke: #c1a0ff; }
.pixflix-wordmark { fill: white; font-family: Arial, sans-serif; font-size: 27px; font-weight: 600; letter-spacing: -1px; }
.cinema-play { transform-box: fill-box; transform-origin: center; transition: transform 550ms cubic-bezier(.2,.8,.3,1.15); }
.occupied:is(:hover,:focus-visible) .cinema-play { animation: play-breathe 2400ms ease-in-out infinite; }
.cinema-sheen { opacity: 0; transform: translateX(-240px) rotate(18deg); transform-origin: 0 0; }
@keyframes play-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }
body.launching .cinema-play, body.launching .cinema-sheen { animation: none !important; transition: none; }
.app-launch { position: fixed; z-index: 1000; pointer-events: auto; transform-origin: 0 0; }
.app-launch svg { width: 100%; height: 100%; display: block; overflow: visible; }
.app-surface { position: fixed; z-index: 5; overflow: hidden; pointer-events: none; background: #101014; opacity: 0; transition: opacity 280ms ease, filter 700ms ease; }
.app-surface.ready.preview-visible, .app-surface.ready.expanding { opacity: 1; }
.app-surface iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.app-surface iframe { filter: blur(var(--preview-blur, 5px)); }
.app-launch-cover { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.app-launch-cover svg { display: block; width: 100%; height: 100%; }
.app-surface.expanding { z-index: 1000; }
.app-surface.interactive { pointer-events: auto; }
.app-surface[hidden] { display: none; }
.channel[aria-busy="true"] { animation: breathe 1800ms ease-in-out infinite; }
body.launching .channel:hover svg { animation: none; }
dialog label.url-setting { display: block; }
dialog input[type="url"] { display: block; width: 100%; height: auto; margin-top: 10px; padding: 12px 14px; border: 1px solid #abcad1; border-radius: 6px; font: inherit; }
.account-dialog { max-height: 88svh; overflow-y: auto; }
.account-form label { display: block; }
.account-form input { display: block; width: 100%; height: auto; margin-top: 8px; padding: 12px 14px; border: 1px solid #abcad1; border-radius: 6px; font: inherit; }
.account-button { margin: 8px 8px 0 0; padding: 10px 22px; border: 1px solid #92c9d4; border-radius: 7px; background: linear-gradient(#fff 0%,#f4fcff 48%,#e6f4f6 100%); color: #526169; box-shadow: inset 0 1px 2px #fff,0 2px 3px #73919a28; transition: border-color 160ms,box-shadow 160ms,transform 160ms; }
.account-button:hover, .back-button:hover { border-color: #28bbdc; box-shadow: inset 0 1px 2px #fff,0 0 5px #65d5ed66; }
.account-button:active, .back-button:active { transform: translateY(1px); }
dialog :is(button,input,select,a):focus-visible { outline: 2px solid #28bbdc; outline-offset: 3px; }
dialog input:not([type="checkbox"]):not([type="range"]), dialog select { font: 16px Arial,sans-serif; color: #526169; background: linear-gradient(#f5fafb,#fff 38%); box-shadow: inset 0 1px 3px #6d858e18; }
dialog select { padding: 9px 12px; border: 1px solid #abcad1; border-radius: 6px; }
dialog input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; margin: 0; padding: 0; vertical-align: middle; }
.account-button:disabled { opacity: .5; cursor: wait; }
.account-error { font-size: 14px; color: #884454; min-height: 18px; }
#account-area { border-top: 3px dotted #d8dfe0; margin-top: 28px; padding-top: 8px; }
#account-area h3, .account-dialog h3 { font: 21px "Trebuchet MS",Arial,sans-serif; color: #26b4d0; }
#account-area label { font-size: 14px; }
.account-list { max-height: 140px; overflow-y: auto; border-bottom: 3px dotted #d8dfe0; }

@media (max-width: 600px) {
  .console { width: 100vw; height: 100svh; height:100dvh; transform: none; }
  .channel-viewport { top: var(--mobile-grid-top); width: 100vw; height: calc(3 * var(--mobile-card-height) + 32px); }
  .channel-track { margin-left: 0; padding-top: 4px; gap: 28px; }
  .channel-page { width: 100vw; grid-template-columns: var(--mobile-card-width); grid-template-rows: repeat(3,var(--mobile-card-height)); justify-content: center; gap: 12px; }
  .channel { width: var(--mobile-card-width); height: var(--mobile-card-height); }
  .channel-viewport::before, .channel-viewport::after { width: 36px; }
  .footer { top: auto; bottom: 0; left: 0; width: 100vw; height:calc(132px + var(--safe-bottom)); }
  h1 { top: auto; bottom:calc(86px + var(--safe-bottom)); left: 60px; width: calc(100% - 120px); font-size: clamp(20px,5.8vw,27px); line-height: 34px; white-space: nowrap; }
  time { top: auto; bottom:calc(27px + var(--safe-bottom)); left: calc(50% - 85px); width: 170px; font-size: 24px; line-height: 32px; }
  .corner-button { top: auto; bottom:calc(25px + var(--safe-bottom)); width: 55px; height: 55px; }
  .brand { left: 12px; }.settings { right: 12px; }
  .sd-button { top: auto; bottom:calc(29px + var(--safe-bottom)); left: 74px; width: 24px; height: 32px; }
  .page-arrow { top: calc(var(--mobile-grid-top) + 1.5 * var(--mobile-card-height) - 8px); width: 28px; height: 44px; }
  .next { right: 5px; }.previous { left: 5px; }
  .account-dialog, #panel { padding: 22px; }
}

/* Soft CRT texture sits underneath the controls, with no moving page geometry. */
.screen { position:relative; }
.screen { touch-action:none; }
body:not(.launching) > dialog { touch-action:pan-y; }
.screen::before { content:''; position:absolute; inset:-24px 0; pointer-events:none; background:repeating-linear-gradient(to bottom,#81909608 0 1px,transparent 1px 4px); animation:menu-scanlines 12s linear infinite; }
.console { background:transparent; }
@keyframes menu-scanlines { to { transform:translateY(-24px); } }
.channel:not(.occupied)::before { content:'PixHub'; position:absolute; inset:0; display:grid; place-items:center; z-index:1; pointer-events:none; font:600 28px 'Arial Rounded MT Bold','Trebuchet MS',sans-serif; letter-spacing:-1.5px; color:#7c8585; opacity:.075; }
.channel:not(.occupied)::after { content:''; position:absolute; inset:3% 2%; border-radius:9px / 7px; z-index:2; pointer-events:none; background-image:var(--channel-noise); background-size:100% 800%; opacity:.16; mix-blend-mode:multiply; animation:channel-static .35s steps(7,end) infinite; }
.channel:nth-child(3n)::after { animation-delay:-.12s; }.channel:nth-child(3n+1)::after { animation-delay:-.23s; }
@keyframes channel-static { to { background-position:0 100%; } }
.channel-page[inert] .channel::after, body.menu-inactive .channel::after, body.menu-inactive .screen::before, body.launching .channel::after, body.launching .screen::before { animation-play-state:paused; }
.channel:not(.occupied) .tile-outline { stroke:#a9aeac; stroke-width:1.7; }
.console > h1.sr-only { top:0;left:0;width:1px;height:1px;font-size:1px;line-height:1px; }
#clock { position:absolute;top:399px;left:330px;width:300px;height:47px;color:#878b88; }
#clock svg { width:100%;height:100%;display:block; }
#clock text { fill:currentColor;font:600 17px 'Arial Rounded MT Bold','Trebuchet MS',sans-serif; }
#date { font-family:'Arial Rounded MT Bold','Trebuchet MS',Arial,sans-serif;font-size:35px;font-weight:600;letter-spacing:.3px; }
.brand.settings { left:40px;right:auto;cursor:pointer; }
.notifications { right:40px; }
.corner-button:is(:hover,:focus-visible) { transform:scale(1.06);filter:drop-shadow(0 0 4px #9ed7ff);outline:none; }
.corner-button:active { transform:scale(.96); }
.menu-brand { fill:#909794;font:600 22px 'Arial Rounded MT Bold','Trebuchet MS',sans-serif;letter-spacing:-1.3px; }
.corner-tooltip { position:absolute;left:50%;bottom:calc(100% - 8px);transform:translateX(-50%);width:max-content;max-width:200px;padding:5px 14px;border:1px solid #bfc9ca;border-radius:22px;background:linear-gradient(#fff,#f2f5f4);box-shadow:0 2px 3px #6c818238;color:#626b69;font:17px 'Trebuchet MS',sans-serif;opacity:0;pointer-events:none;transition:opacity .15s; }
.brand .corner-tooltip { left:0;transform:none; }
.notifications .corner-tooltip { left:auto;right:0;transform:none; }
.corner-button:is(:hover,:focus-visible) .corner-tooltip { opacity:1; }
.notification-count { position:absolute;right:0;top:0;min-width:25px;height:25px;padding:0 6px;border:2px solid white;border-radius:20px;background:#28a9cb;color:white;font:bold 14px/21px Arial,sans-serif;box-shadow:0 1px 3px #557b8f44; }
@media(max-width:600px) {
  #clock { top:auto;bottom:calc(85px + var(--safe-bottom));left:calc(50% - 95px);width:190px;height:34px; }
  #date { font-size:24px; }
  .brand.settings { left:12px;right:auto; }.notifications { right:12px; }
  .menu-brand { font-size:23px; }
  .corner-tooltip { font-size:14px; }
  .notification-count { height:21px;min-width:21px;font-size:12px;line-height:17px; }
}

.account-requests { margin-top: 24px; padding-top: 8px; border-top: 1px solid #cbe3e9; }
.account-request-row { padding: 12px 0; border-bottom: 1px solid #cbe3e9; overflow-wrap: anywhere; }
.account-request-row p { margin: 4px 0; }

.push-controls { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.push-controls label { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.push-controls button { min-height:44px; }
.push-controls [hidden] { display:none; }

.push-controls { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.push-controls label { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.push-controls button { min-height:44px; }
.push-controls [hidden] { display:none; }
