/* Moonlight Viewer — iOS 5 design language.
   Slices come from the teehan+lax iOS 5 PSDs (public/assets/ui); translucent bars and gloss
   are rebuilt in CSS from the PSD composites and the jailbreakme.com/star stylesheets. */

/* Apple SF Pro / SF Mono / New York, subset by scripts/build-fonts.mjs; Arimo is the metric-safe fallback. */
@font-face { font-family: "SF Pro Text"; src: url("/fonts/sf-pro-text-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Text"; src: url("/fonts/sf-pro-text-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "SF Pro Text"; src: url("/fonts/sf-pro-text-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Text"; src: url("/fonts/sf-pro-text-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/sf-pro-display-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/sf-pro-display-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/sf-pro-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/sf-pro-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Rounded"; src: url("/fonts/sf-pro-rounded-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Mono"; src: url("/fonts/sf-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Mono"; src: url("/fonts/sf-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "New York"; src: url("/fonts/new-york-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "New York"; src: url("/fonts/new-york-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "New York"; src: url("/fonts/new-york-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font: "SF Pro Text", -apple-system, "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --font-light: "SF Pro Display", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", "SF Pro Display", -apple-system, Arimo, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: "New York", "Iowan Old Style", Georgia, serif;
  --status-h: 20px;
  --bar-h: 44px;
  --icon: 57px;
  --icon-radius: 10px;
  --ease-ios: cubic-bezier(.25, .1, .25, 1);
  --blue-select: linear-gradient(#058cf5, #015fe6);
  --linen: url("/assets/ui/linen.png");
  --linen-dark: url("/assets/ui/linen-dark.png");
  color-scheme: dark;
}
@media (min-width: 768px) {
  :root { --icon: clamp(72px, 7.2vmin, 96px); --icon-radius: clamp(12px, 1.2vmin, 16px); }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body {
  font-family: var(--font);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-focusable:focus-visible { position: fixed; z-index: 99; left: 50%; top: 30px; width: auto; height: auto; clip: auto; transform: translateX(-50%);
  padding: 8px 14px; background: #000; border: 2px solid #fff; border-radius: 8px; }
:focus-visible { outline: 2px solid #59a6ff; outline-offset: 2px; }

/* ---------- Device + wallpaper ---------- */
.device { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #000; user-select: none; -webkit-user-select: none; }
.wallpaper {
  position: absolute; inset: 0; background: #050a18 center / cover no-repeat;
  /* Full resolution by default; app.js swaps in the 1280px file only when the screen can't use more. */
  background-image: url("/assets/wallpapers/night-sky.webp");
}
.screen { position: absolute; inset: 0; overflow: hidden; overflow: clip; }

/* ---------- Status bar ---------- */
.statusbar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: var(--status-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 6px;
  font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.6);
  background: rgba(0,0,0,.55); border-bottom: 1px solid rgba(0,0,0,.45);
  transition: background .3s;
}
.device[data-screen="app"] .statusbar { background: #000; }
.sb-left, .sb-right { display: flex; align-items: center; gap: 5px; }
.sb-right { justify-content: flex-end; }
.sb-left img { width: 17px; height: auto; }
.sb-right img { width: 23px; height: auto; }
.sb-center { display: flex; align-items: center; gap: 6px; }
.sb-lock { width: 11px; height: auto; display: none; }
.device[data-screen="lock"] .sb-lock { display: block; }
.device[data-screen="lock"] .sb-time { display: none; }

/* ---------- Glossy translucent bars (lock screen, jailbreakme style) ---------- */
.glossbar {
  position: absolute; left: 0; right: 0;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.12) 50%, rgba(255,255,255,0) 50%, rgba(255,255,255,0)),
    rgba(0,0,0,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(255,255,255,.08);
}

/* ---------- Lock screen ---------- */
.lock-top { top: var(--status-h); height: 96px; text-align: center; border-bottom: 1px solid rgba(0,0,0,.55); z-index: 2; }
.lock-time {
  display: block; margin-top: 4px; font-family: var(--font-light); font-weight: 300; font-size: 62px; line-height: 64px;
  letter-spacing: -1px; color: #f2f2f2; text-shadow: 0 -2px 0 rgba(0,0,0,.6);
}
.lock-date { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.7); }
.lock-bottom { bottom: 0; height: 96px; display: flex; align-items: center; justify-content: center; border-top: 1px solid rgba(0,0,0,.55); z-index: 2; }
.lock-top, .lock-bottom { transition: transform .4s var(--ease-ios); }
.lock.unlocking .lock-top { transform: translateY(calc(-100% - var(--status-h))); }
.lock.unlocking .lock-bottom { transform: translateY(100%); }
.lock.unlocking .lock-middle { opacity: 0; }

.lock-middle {
  position: absolute; top: calc(var(--status-h) + 96px); bottom: 96px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; padding: 16px; transition: opacity .3s;
}

/* jailbreakme "bubble" — here it carries tonight's moon */
.bubble {
  position: relative; width: min(300px, 100%); padding: 14px 14px 16px; text-align: center;
  background: rgba(55,55,55,.82); border: 3px solid rgba(190,196,208,.94); border-radius: 11px;
  box-shadow: 0 4px 6px rgba(0,0,0,.45); text-shadow: 0 -1px 0 #000; overflow: hidden;
  font-size: 15px; line-height: 1.3; text-decoration: none; color: #fff; display: block;
}
.bubble::before { /* the curved top shine */
  content: ""; position: absolute; left: -20%; right: -20%; top: -1px; height: 26px;
  background: rgba(255,255,255,.28); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none;
}
.bubble-moon { display: block; width: 120px; height: 120px; margin: -8px auto -6px; }
.bubble h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.bubble p { margin: 0 0 2px; color: #eee; }
.bubble .bubble-link { display: block; margin-top: 10px; font-weight: 700; }
.bubble:hover .bubble-link, .bubble:focus-visible .bubble-link { text-decoration: underline; }

/* Slide to unlock */
.slider-well {
  position: relative; width: 281px; height: 53px; border-radius: 13px;
  border: 1px solid rgba(30,30,30,.9);
  background: linear-gradient(#2a2a2a, #111 60%, #0c0c0c);
  box-shadow: inset 0 0 0 1px rgba(100,100,100,.85), 0 1px 0 rgba(255,255,255,.12);
  touch-action: none;
}
.slider-thumb {
  position: absolute; z-index: 1; left: 3px; top: 3px; width: 69px; height: 45px; border-radius: 10px;
  background: url("/assets/ui/slider-thumb@2x.png") center / 100% 100% no-repeat;
  box-shadow: 0 1px 3px rgba(0,0,0,.5); cursor: grab; touch-action: none;
}
.slider-thumb:active { cursor: grabbing; }
.slider-thumb.springing { transition: transform .35s var(--ease-ios); }
.slider-text {
  position: absolute; left: 80px; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .2px; pointer-events: none; white-space: nowrap;
  color: transparent;
  /* A moving highlight band over a solid grey layer, so the letters are always painted
     (the band alone left them transparent once it slid past). */
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 44%, rgba(255,255,255,.95) 49%, rgba(255,255,255,.95) 51%, rgba(255,255,255,0) 56%) 92.5% 0 / 300% 100% no-repeat,
    linear-gradient(#5d5d5d, #5d5d5d);
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer 2.8s linear infinite;
}
/* Band centre travels from just left of the text to just right of it, then a short rest. */
@keyframes shimmer {
  0% { background-position: 92.5% 0, 0 0; }
  78%, 100% { background-position: 7.5% 0, 0 0; }
}

.lock-moonkey { /* takes the place of the iPad camera grabber */
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 6px;
  display: none; place-items: center;
  background: linear-gradient(#3a3a3a, #0c0c0c); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 1px 2px #000;
}
.lock-moonkey svg { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .lock-top { height: 110px; }
  .lock-time { font-size: 72px; line-height: 78px; margin-top: 2px; }
  .lock-middle { top: calc(var(--status-h) + 110px); bottom: 110px; }
  .lock-bottom { height: 110px; }
  .slider-well { width: 258px; }
  .slider-text { font-size: 20px; }
  .lock-moonkey { display: grid; }
  .bubble { width: 340px; font-size: 16px; }
  .bubble-moon { width: 160px; height: 160px; margin: -12px auto -10px; }
}
@media (max-height: 520px) and (max-width: 1000px) { /* phone landscape */
  .lock-top { height: 56px; } .lock-time { font-size: 34px; line-height: 38px; } .lock-date { font-size: 12px; }
  .lock-middle { top: calc(var(--status-h) + 56px); bottom: 70px; }
  .lock-bottom { height: 70px; }
  .bubble-moon { display: none; }
}

/* ---------- Springboard ---------- */
.home { display: flex; flex-direction: column; padding-top: var(--status-h); }
.pages {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pages::-webkit-scrollbar { display: none; }
.pages.dragging { scroll-snap-type: none; cursor: grabbing; }
.page {
  flex: 0 0 100%; scroll-snap-align: start; display: grid;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(var(--icon) + 34px);
  align-content: start; row-gap: 14px; padding: 14px 10px 0;
}
.app-icon {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: #fff;
  -webkit-touch-callout: none;
}
.icon {
  position: relative; width: var(--icon); height: var(--icon); border-radius: var(--icon-radius); overflow: hidden;
  box-shadow: 0 2px 3px rgba(0,0,0,.55);
  transition: transform .45s var(--ease-ios), opacity .45s, filter .15s;
}
.icon svg { display: block; width: 100%; height: 100%; }
.icon.gloss::after { /* the iOS 5 icon shine */
  content: ""; position: absolute; left: -12%; right: -12%; top: 0; height: 52%;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.14));
  border-radius: 0 0 50% 50% / 0 0 26% 26%; pointer-events: none;
}
.app-icon:active .icon { filter: brightness(.55); }
.app-label {
  max-width: calc(var(--icon) + 20px); font-size: 11px; font-weight: 700; line-height: 13px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000, 0 0 1px #000;
}
.page-dots { display: flex; justify-content: center; align-items: center; gap: 9px; height: 20px; margin-bottom: 4px; }
.page-dots button { width: 14px; height: 20px; display: grid; place-items: center; }
.page-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.page-dots button[aria-current="true"]::before { background: #fff; }

.dock { position: relative; height: calc(var(--icon) + 34px); display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 8px; }
.dock::before { /* iOS 5 glass shelf: a trapezoid seen in perspective */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 40px;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(120% 140% at 30% -40%, rgba(255,255,255,.28), rgba(255,255,255,0) 60%),
    linear-gradient(rgba(220,228,240,.42), rgba(150,160,175,.22) 70%, rgba(110,120,135,.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.dock::after { /* front edge of the shelf */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(rgba(200,206,215,.65), rgba(90,96,105,.6)); border-top: 1px solid rgba(255,255,255,.7);
}
.dock .app-icon { position: relative; z-index: 1; }
.dock .icon { -webkit-box-reflect: below 3px linear-gradient(transparent 62%, rgba(255,255,255,.28)); }
.dock .app-label { display: none; }
@media (min-width: 768px) {
  .page { grid-template-columns: repeat(4, 1fr); padding: 6vh 7vw 0; row-gap: 4.2vh; grid-auto-rows: calc(var(--icon) + 30px); }
  .app-label { font-size: 12px; line-height: 14px; }
  .dock { gap: clamp(40px, 6vw, 90px); padding-top: 14px; height: calc(var(--icon) + 46px); }
  .dock::before { left: 3%; right: 3%; height: 54px; }
  .dock::after { left: 3%; right: 3%; }
  .dock .app-label { display: block; position: relative; z-index: 1; }
  .dock .icon { -webkit-box-reflect: none; }
}
@media (min-width: 768px) and (orientation: landscape) {
  .page { grid-template-columns: repeat(5, 1fr); padding: 4.5vh 9vw 0; row-gap: 3vh; }
}
@media (max-height: 520px) and (max-width: 1000px) {
  .page { grid-template-columns: repeat(6, 1fr); row-gap: 4px; }
  .dock { height: calc(var(--icon) + 14px); }
}

/* Springboard entrance after unlock */
.home.entering .page .icon { animation: icon-in .5s var(--ease-ios) both; }
.home.entering .dock { animation: dock-in .45s var(--ease-ios) both; }
@keyframes icon-in { from { transform: scale(1.7); opacity: 0; } }
@keyframes dock-in { from { transform: translateY(100%); } }

/* ---------- App container + transitions ---------- */
.app {
  background: #000; z-index: 10; padding-top: var(--status-h);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}
.app.opening { animation: app-open .42s var(--ease-ios) both; }
.app.closing { animation: app-close .38s var(--ease-ios) both; }
@keyframes app-open { from { transform: scale(.08); opacity: 0; } 40% { opacity: 1; } }
@keyframes app-close { to { transform: scale(.08); opacity: 0; } }
/* Springboard zooms past the camera while an app is open (keyframes + timed cleanup, so it always settles) */
.home.behind .page, .home.behind .dock { transform: scale(1.25); opacity: 0; }
.home.zoom-out .page, .home.zoom-out .dock { animation: board-out .42s var(--ease-ios) both; }
.home.zoom-in .page, .home.zoom-in .dock { animation: board-out .42s var(--ease-ios) reverse both; }
@keyframes board-out { from { transform: none; opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* ---------- Navigation bars ---------- */
.navbar {
  position: relative; z-index: 5; flex: 0 0 var(--bar-h); height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 0 6px;
  background: linear-gradient(#b0bccd, #8b9cb5 50%, #7d8fab 50%, #6d84a2);
  border-top: 1px solid #cdd5df; border-bottom: 1px solid #2d3642;
}
.navbar .title[tabindex="-1"]:focus { outline: none; }
.navbar h1, .navbar .title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar .nav-left { justify-self: start; display: flex; gap: 6px; }
.navbar .nav-right { justify-self: end; display: flex; gap: 6px; }
.navbar.black {
  background: linear-gradient(rgba(70,70,70,.85), rgba(25,25,25,.85) 50%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.85));
  border-top-color: rgba(255,255,255,.15); border-bottom-color: #000;
}
.navbar.black.translucent { position: absolute; left: 0; right: 0; top: var(--status-h);
  background: linear-gradient(rgba(60,60,60,.7), rgba(20,20,20,.7) 50%, rgba(0,0,0,.7) 50%); }

/* Bar buttons */
.barbtn {
  position: relative; height: 30px; min-width: 44px; padding: 0 10px; border-radius: 5px;
  font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.5); white-space: nowrap;
  background: linear-gradient(#8a9ab3, #5f7598 50%, #4f6a8f 50%, #4a6489);
  border: 1px solid #2f3e55; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none;
}
.barbtn:active { background: linear-gradient(#5f7598, #42597e); }
.barbtn.blue { background: linear-gradient(#7aa5f2, #3c78e6 50%, #2a68dc 50%, #2463d6); border-color: #1d3f84; }
.navbar.black .barbtn { background: linear-gradient(#4a4a4a, #202020 50%, #0e0e0e 50%, #0a0a0a); border-color: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 0 rgba(255,255,255,.12); }
.navbar.black .barbtn.blue { background: linear-gradient(#7aa5f2, #3c78e6 50%, #2a68dc 50%, #2463d6); border-color: #0c1d40; }
.barbtn svg { width: 18px; height: 18px; }
.barbtn.icon-only { padding: 0 8px; }
/* Back-arrow button: outer layer is the border, ::before is the fill */
.barbtn.back {
  border: 0; padding: 0 10px 0 16px; box-shadow: none; background: #2f3e55;
  clip-path: polygon(0 50%, 13px 0, 100% 0, 100% 100%, 13px 100%);
  border-radius: 0 5px 5px 0;
}
.barbtn.back::before {
  content: ""; position: absolute; inset: 1px 1px 1px 1.4px; z-index: -1; border-radius: 0 4px 4px 0;
  clip-path: polygon(0 50%, 12.4px 0, 100% 0, 100% 100%, 12.4px 100%);
  background: linear-gradient(#8a9ab3, #5f7598 50%, #4f6a8f 50%, #4a6489);
}
.barbtn.back { isolation: isolate; }
.navbar.black .barbtn.back { background: #000; }
.navbar.black .barbtn.back::before { background: linear-gradient(#4a4a4a, #202020 50%, #0e0e0e 50%, #0a0a0a); }
.barbtn.back:active::before { filter: brightness(.75); }

/* Toolbars */
.toolbar {
  flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px;
  background: linear-gradient(rgba(70,70,70,.85), rgba(25,25,25,.85) 50%, rgba(0,0,0,.85) 50%);
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ---------- Grouped tables ---------- */
.pinstripe { background: #c5ccd4 repeating-linear-gradient(90deg, #c5ccd4 0 5px, #cbd2d8 5px 7px); color: #000; }
.linen-bg { background: #6b6f76 var(--linen) center / 768px auto; }
.linen-dark-bg { background: #2b2c30 var(--linen-dark) center / 768px auto; }
.group-title { margin: 20px 20px 7px; font-size: 17px; font-weight: 700; color: #4c566c; text-shadow: 0 1px 0 #fff; }
.group-foot { margin: 7px 20px 0; font-size: 14px; color: #4c566c; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.group {
  margin: 0 10px; background: #fff; border: 1px solid #aab2bd; border-radius: 9px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.7); color: #000; list-style: none; padding: 0;
}
.group > li, .group > .row { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-top: 1px solid #e0e0e0; font-size: 17px; font-weight: 700; }
.group > li:first-child, .group > .row:first-child { border-top: 0; }
.group .detail { margin-left: auto; font-weight: 400; color: #385487; }
.group a.row, .group button.row { text-decoration: none; color: inherit; width: 100%; text-align: left; }
.group .row.chevron::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid #808080; border-width: 3px 3px 0 0; transform: rotate(45deg); flex: none; }
.group .row.chevron .detail { margin-left: auto; margin-right: 6px; }
.group .row.chevron .detail + ::after { margin-left: 0; }
.group .row:active, .group .row[aria-selected="true"] { background: var(--blue-select); color: #fff; }
.group .row:active .detail, .group .row[aria-selected="true"] .detail { color: #fff; }
@media (min-width: 768px) { .group { margin: 0 44px; } .group-title, .group-foot { margin-left: 54px; margin-right: 54px; } }

/* iOS 5 switch */
.switch { position: relative; width: 94px; height: 27px; flex: none; margin-left: auto; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; border: 1px solid #a8a8a8;
  background: linear-gradient(#e7e7e7, #fdfdfd); box-shadow: inset 0 2px 3px rgba(0,0,0,.25);
}
.switch .track::before, .switch .track::after { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 16px; font-weight: 700; transition: transform .2s; }
.switch .track::before { content: "ON"; left: 0; width: 70px; padding-left: 16px; color: #fff; background: linear-gradient(#0e5bd6, #3b8af5); text-shadow: 0 -1px 0 rgba(0,0,0,.35); transform: translateX(-70px); }
.switch .track::after { content: "OFF"; right: 0; width: 70px; justify-content: flex-end; padding-right: 14px; color: #7f7f7f; }
.switch .knob { position: absolute; z-index: 1; top: 0; left: 0; width: 27px; height: 27px; border-radius: 50%; border: 1px solid #a1a1a1;
  background: linear-gradient(#cecece, #fbfbfb); box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .2s; }
.switch input:checked ~ .track::before { transform: none; }
.switch input:checked ~ .track::after { transform: translateX(70px); }
.switch input:checked ~ .knob { transform: translateX(67px); }
.switch input:focus-visible ~ .track { outline: 2px solid #59a6ff; outline-offset: 2px; }

/* ---------- Alert ---------- */
.alert {
  position: relative; width: min(284px, calc(100% - 30px)); padding: 16px 12px 12px; text-align: center; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.85);
  background: linear-gradient(rgba(36,52,92,.92), rgba(14,24,54,.94));
  box-shadow: 0 4px 12px rgba(0,0,0,.65); overflow: hidden; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}
.alert::before { content: ""; position: absolute; left: -25%; right: -25%; top: -2px; height: 34px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: rgba(255,255,255,.18); pointer-events: none; }
.alert h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; }
.alert p { margin: 0 0 14px; font-size: 16px; line-height: 1.3; }
.alert .alert-btn {
  display: block; width: 100%; height: 43px; border-radius: 6px; font-size: 18px; font-weight: 700; text-decoration: none; line-height: 41px;
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.12));
  border: 1px solid rgba(0,0,0,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ---------- Placeholder apps ---------- */
.placeholder-body { flex: 1; display: grid; place-items: center; padding: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .slider-text { background: none; color: #a0a0a0; }
}
