/* Phone hardware and every screen, drawn in CSS. Sizes are iPhone 17 Pro points (393x852). */
.phone {
  --frame: #1f1f22;
  --edge: #6b6a6f;
  position: absolute; left: 0; top: 0; width: 431px; height: 890px; padding: 19px; border-radius: 68px;
  transform-origin: 0 0; backface-visibility: hidden;
  background: #010101;
  box-shadow:
    inset 0 0 0 1.5px #000,
    inset 0 0 3px 3px rgba(255, 255, 255, .22),
    inset 0 0 0 7px var(--frame),
    0 40px 80px -20px rgba(0, 0, 0, .55);
}
/* titanium band: a lit rim that catches the light as the phone turns */
.phone::before {
  content: ""; position: absolute; inset: -1px; border-radius: 69px; padding: 2px; pointer-events: none;
  background: linear-gradient(calc(130deg + var(--spin, 0deg)), #d8d8dc 0%, var(--edge) 22%, #2a2a2d 50%, var(--edge) 78%, #e8e8ec 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.phone .btn-l, .phone .btn-r { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #4a4a4f, #1c1c1f); }
.phone .btn-l { left: -3px; top: 150px; height: 34px; box-shadow: 0 70px 0 0 #2c2c30, 0 140px 0 0 #2c2c30; }
.phone .btn-l::after { content: ""; position: absolute; left: 0; top: 66px; width: 4px; height: 62px; border-radius: 2px; background: inherit; box-shadow: 0 76px 0 0 #2c2c30; }
.phone .btn-r { right: -3px; top: 250px; height: 100px; }
.phone .glare { position: absolute; inset: 19px; border-radius: 50px; pointer-events: none; z-index: 30;
  background: linear-gradient(calc(115deg + var(--spin, 0deg)), rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }

.screen {
  position: relative; width: 393px; height: 852px; border-radius: 50px; overflow: hidden; isolation: isolate;
  background: #000; color: #000;
  font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
.island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; z-index: 40; }
.island::after { content: ""; position: absolute; right: 22px; top: 13px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a7a, #0d1222 60%); }
.blackout { position: absolute; inset: 0; z-index: 45; background: #000; opacity: 0; pointer-events: none; }
.home-ind { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #000; z-index: 40; }
.screen.light-ui .home-ind { background: #fff; }

/* status bar */
.sb { position: absolute; inset: 0 0 auto; height: 54px; z-index: 39; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 30px 0 52px; font: 600 17px/1 -apple-system, "SF Pro Text", "Inter", sans-serif; letter-spacing: -.02em; color: #000; }
.screen.light-ui .sb { color: #fff; }
/* the lock screen shows no time in the status bar: the big clock is the time */
.screen.lockui .sb .time { visibility: hidden; }
.sb .ic { display: flex; gap: 6px; align-items: center; }
.sb svg { fill: currentColor; display: block; }
.sb .bat { width: 27px; height: 13px; border-radius: 4px; border: 1px solid currentColor; opacity: .95; position: relative; padding: 1.5px; }
.sb .bat i { display: block; height: 100%; width: 72%; border-radius: 2px; background: currentColor; }
.sb .bat::after { content: ""; position: absolute; right: -3.5px; top: 4px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .5; }

/* each screen is its own layer, so one sliding over another is never cut through by an inner z-index */
.view { position: absolute; inset: 0; visibility: hidden; isolation: isolate; }
.view.on { visibility: visible; }

/* ---------- Pure feed */
.feed { background: #b9d4f1; }
.pattern { background: var(--pure-pattern) center / cover; }
.feed .pattern { position: absolute; inset: -40px; }
.feed .burst { position: absolute; left: 50%; top: 318px; width: 400px; height: 400px; margin: -200px 0 0 -200px; background: var(--pure-burst) center / contain no-repeat; }
.feed .lolly { position: absolute; left: 30px; top: 74px; width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.6; }
.feed .dots { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; }
.feed .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.feed .dots i:nth-child(2) { width: 9px; height: 9px; background: #fff; }
.cards { position: absolute; left: 116px; top: 168px; width: 190px; height: 272px; }
.pcard { position: absolute; inset: 0; transform-origin: 50% 90%; }
.pcard .edge { position: absolute; inset: 6px -9px -4px 10px; border-radius: 4px; transform: rotate(3deg);
  background: linear-gradient(160deg, #2f5440, #1d3a2b 40%, #42704f 70%, #1b2f22); filter: saturate(.9); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transform: rotate(-2.5deg);
  box-shadow: 0 10px 30px rgba(40, 20, 80, .25); }
.pcard .ok { position: absolute; right: -10px; top: 8px; width: 30px; height: 30px; }
.feed .new { position: absolute; left: 58px; top: 360px; width: 54px; height: 54px; border-radius: 50%; background: #0c0c0c; color: #fff;
  display: grid; place-items: center; transform: rotate(-12deg); font: 900 15px/1 "Arial Black", "Inter", sans-serif; letter-spacing: .02em; z-index: 3; }
.feed .bio { position: absolute; left: 0; right: 0; top: 488px; text-align: center; font: 400 41px/.98 "PT Serif", Georgia, serif;
  color: #141414; letter-spacing: -.01em; transform: rotate(-1.5deg); }
.feed .dist { position: absolute; left: 0; right: 0; top: 626px; text-align: center; font: 600 12px/1 -apple-system, "Inter", sans-serif; letter-spacing: .1em; color: #141414; }
.feed .acts { position: absolute; left: 0; right: 0; top: 652px; display: flex; justify-content: center; gap: 18px; }
.feed .acts b { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: 0 6px 18px rgba(60, 40, 120, .18); }
.feed .acts b:nth-child(3) { background: #8d8f9d; }
.feed .acts svg { width: 30px; height: 30px; }
.feed .more { position: absolute; left: 22px; top: 668px; display: grid; gap: 4px; }
.feed .more i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #222; }
.feed .tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: #fff;
  -webkit-mask: radial-gradient(10px 8px at 10px 0, transparent 88%, #000 100%) 0 0 / 20px 100% repeat-x;
  mask: radial-gradient(10px 8px at 10px 0, transparent 88%, #000 100%) 0 0 / 20px 100% repeat-x;
  display: flex; justify-content: space-around; align-items: center; padding: 0 22px 34px; }
.feed .tabbar svg { width: 34px; height: 34px; stroke: #2a2a2a; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feed .tabbar .ours { position: relative; }
/* the tab close-up: light on our tab, the rest of the screen dims (centre of the first tab item) */
.feed .spot { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 64px 776px, rgba(255,255,255,.0) 31px, rgba(255,255,255,.7) 33px, rgba(255,255,255,0) 38px),
    radial-gradient(circle at 64px 776px, transparent 40px, rgba(0,0,0,.5) 90px); }

/* ---------- the tweak's own panel */
.sheet { position: absolute; left: 0; right: 0; top: 396px; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; z-index: 10;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .12); padding: 0 18px; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #c7c7cc; margin: 6px auto 0; }
.sheet .title { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.sheet .title i { width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; }
.sheet .title i.live { background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.sheet .title span { font: 300 24px/1 -apple-system, "Inter", sans-serif; letter-spacing: .08em; color: #111; flex: 1; }
.sheet .title svg { width: 24px; height: 24px; stroke: #111; fill: none; stroke-width: 1.6; }
.sheet .avs { display: flex; gap: 10px; align-items: center; margin-top: 18px; overflow: hidden; height: 60px; }
.sheet .avs img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(.35) brightness(1.05); opacity: .85; }
.sheet .avs img:first-child { width: 56px; height: 56px; filter: none; opacity: 1; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px #d1d1d6; }
.sheet .status { font: 700 15px/1.2 -apple-system, "Inter", sans-serif; color: #3a3a3c; margin-top: 14px; height: 18px; }
.sheet .stats { display: flex; justify-content: space-around; margin-top: 12px; }
.sheet .stats div { display: grid; justify-items: center; gap: 6px; }
.sheet .stats b { font: 300 38px/1 -apple-system, "Inter", sans-serif; font-variant-numeric: tabular-nums; color: #111; }
.sheet .stats div + div b { color: #b4b4b9; }
.sheet .stats span { font: 600 11px/1 -apple-system, "Inter", sans-serif; letter-spacing: .14em; color: #6e6e73; }
.sheet .total { text-align: center; font: 400 13px/1 -apple-system, "Inter", sans-serif; color: #8e8e93; margin-top: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; background: #f2f2f7; border-radius: 14px; padding: 12px 12px 12px 16px; gap: 10px; }
.row b { font: 700 15px/1.25 -apple-system, "Inter", sans-serif; color: #111; }
.row small { display: block; font: 400 12.5px/1.3 -apple-system, "Inter", sans-serif; color: #6e6e73; margin-top: 3px; }
.pill { flex: none; background: #111; color: #fff; border-radius: 12px; padding: 9px 14px; font: 600 15px/1 -apple-system, "Inter", sans-serif; }
.sheet .row { margin-top: 12px; }
.sheet .filters { margin-top: 10px; height: 60px; overflow: hidden; display: block; }
.go { position: absolute; left: 18px; right: 18px; bottom: 50px; display: flex; gap: 10px; }
.go::before { content: ""; position: absolute; left: -18px; right: -18px; top: -26px; bottom: -50px; z-index: -1;
  background: linear-gradient(rgba(255,255,255,0), #fff 34%); }
.go b { flex: 1; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #111; color: #fff;
  font: 700 15px/1 -apple-system, "Inter", sans-serif; letter-spacing: .08em; position: relative; overflow: hidden; }
.go b.stop { flex: .62; background: #fff; color: #111; box-shadow: inset 0 0 0 2px #111; }
.go b .press { position: absolute; inset: 0; background: rgba(255,255,255,.3); opacity: 0; }

/* switches and the strictness slider, iOS 26 style */
.sw { flex: none; width: 64px; height: 28px; border-radius: 14px; background: #e9e9ea; position: relative; transition: background .25s; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 38px; height: 24px; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.sw.on { background: #34c759; }
.sw.on::after { transform: translateX(22px); }

/* ---------- full-height tweak settings (look filter) */
.tsheet { position: absolute; left: 0; right: 0; top: 58px; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px 0; z-index: 10; }
.tsheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #c7c7cc; margin: 0 auto 12px; }
.tsheet .row { margin-bottom: 10px; }
.tsheet .row.hl { box-shadow: 0 0 0 3px #ff0a68; }
.slider { display: grid; gap: 8px; }
.slider .track { position: relative; height: 4px; border-radius: 2px; background: #d1d1d6; margin: 10px 4px 2px; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #111; }
.slider .knob { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.slider .ends { display: flex; justify-content: space-between; font: 400 12px/1 -apple-system, "Inter", sans-serif; color: #8e8e93; }
.outline-btn { height: 46px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px #111;
  font: 700 15px/1 -apple-system, "Inter", sans-serif; margin-bottom: 10px; }

/* ---------- model check */
.check { background: #fff; }
.check .bar { position: absolute; top: 62px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.check .bar b { font: 700 17px/1 -apple-system, "Inter", sans-serif; }
.check .bar svg { width: 24px; height: 24px; stroke: #111; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.check .sub { position: absolute; top: 92px; left: 18px; right: 18px; font: 400 13px/1.35 -apple-system, "Inter", sans-serif; color: #6e6e73; }
.check .photo { position: absolute; left: 14px; right: 14px; top: 140px; height: 560px; border-radius: 26px; overflow: hidden; }
.check .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.check .segs { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.check .segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.check .segs i.done { background: #fff; }
.check .stamp { position: absolute; left: 22px; top: 40px; z-index: 2; border: 4px solid #34c759; color: #34c759; border-radius: 10px; padding: 6px 12px;
  font: 800 30px/1 -apple-system, "Inter", sans-serif; letter-spacing: .04em; transform: rotate(-14deg); opacity: 0; }
.check .btns { position: absolute; left: 0; right: 0; top: 724px; display: flex; justify-content: center; gap: 40px; }
.check .btns b { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 0 0 .5px rgba(0,0,0,.08); }
.check .btns svg { width: 30px; height: 30px; }

/* ---------- lock screen, iOS 27 */
.lock .wall { position: absolute; inset: -30px; background-size: cover; background-position: center; }
.lock .date { position: absolute; top: 76px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.92);
  font: 600 20px/1 -apple-system, "SF Pro Display", "Inter", sans-serif; letter-spacing: -.01em; }
/* the glass clock: translucent fill, bright rim on the upper edge, soft shadow under it */
.lock .clock { position: absolute; top: 92px; left: 0; right: 0; text-align: center;
  font: 700 132px/1 "SF Pro Rounded", -apple-system, "SF Pro Display", "Inter", sans-serif; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: rgba(255,255,255,.62);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.62) 46%, rgba(255,255,255,.82) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)) drop-shadow(0 6px 20px rgba(0,0,0,.18)); }
.lock .notes { position: absolute; left: 10px; right: 10px; bottom: 132px; display: flex; flex-direction: column; gap: 8px; }
.note { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 11px; align-items: center; padding: 13px 15px 13px 13px;
  border-radius: 26px; color: #000;
  /* no backdrop blur: inside a moving, scaled phone it is recomputed every frame and halved the frame rate; the wallpaper is soft anyway */
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.72));
  box-shadow:
    inset -1px -1px 0 -.5px rgba(255,255,255,1), inset 1px 1px 0 -.5px rgba(255,255,255,1),
    inset 3px 3px 10px -3px rgba(255,255,255,.7), inset -3px -3px 10px -3px rgba(255,255,255,.7),
    inset 0 0 0 .5px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.12); }
/* Liquid Glass rim: a specular edge, bright where the light hits and fading round the far side */
.note::before, .glass-btn::before, .home .dock::before, .app-i i::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.12) 38%, rgba(255,255,255,.04) 62%, rgba(255,255,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.note .ic { grid-row: span 2; position: relative; width: 38px; height: 38px; }
.note .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
.pure-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(#1c1c1e, #000);
  color: #fff; font: 400 12px/1 "PT Serif", Georgia, serif; font-style: normal; letter-spacing: -.02em; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); }
.note .av + .pure-ic { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 5px; font-size: 6px;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.note .who { font: 600 15px/1.2 -apple-system, "Inter", sans-serif; letter-spacing: -.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note .when { font: 400 13px/1 -apple-system, "Inter", sans-serif; color: rgba(0,0,0,.5); }
.note .txt { grid-column: 2 / 4; font: 400 15px/1.25 -apple-system, "Inter", sans-serif; letter-spacing: -.01em; }
.note.stacked::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 12px; border-radius: 0 0 18px 18px; z-index: -1;
  background: rgba(255,255,255,.55); }
.glass-btn { position: absolute; bottom: 52px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(40,40,48,.55);
  box-shadow: inset -2px -2px .5px -2.5px rgba(255,255,255,.5), inset 3px 3px .5px -3.5px rgba(255,255,255,.5),
    inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 10px rgba(255,255,255,.08); }
.glass-btn svg { width: 22px; height: 22px; fill: #fff; }
.glass-btn.l { left: 46px; } .glass-btn.r { right: 46px; }
/* always-on: the same lock screen, dimmed to the clock */
.lock .dim { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 1; }
.lock .date, .lock .clock { z-index: 2; }

/* ---------- home screen */
.home .wall { position: absolute; inset: -30px; background-size: cover; background-position: center; }
.home .grid { position: absolute; left: 26px; right: 26px; top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 0; justify-items: center; }
.app-i { display: grid; justify-items: center; gap: 6px; font: 500 12px/1 -apple-system, "Inter", sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.app-i i { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), inset 0 1.5px 1px rgba(255,255,255,.45), 0 4px 10px rgba(0,0,0,.12); }
.app-i i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%); }
.app-i svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.home .dock { position: absolute; left: 12px; right: 12px; bottom: 16px; height: 94px; border-radius: 36px; display: flex; justify-content: space-around; align-items: center;
  background: rgba(255,255,255,.34);
  box-shadow: inset 1px 1px 0 -.5px rgba(255,255,255,.9), inset -1px -1px 0 -.5px rgba(255,255,255,.9), inset 0 0 0 .5px rgba(255,255,255,.3); }
.home .dock .app-i span { display: none; }
.home .search { position: absolute; left: 50%; bottom: 124px; transform: translateX(-50%); padding: 7px 14px; border-radius: 16px; font: 600 13px/1 -apple-system, "Inter", sans-serif; color: #fff;
  background: rgba(255,255,255,.26); }

/* ---------- Android: Pixel-style hardware and system bars */
.phone.droid { --frame: #2d3a33; --edge: #56685d; width: 425px; height: 880px; padding: 16px; border-radius: 56px; }
.phone.droid::before { border-radius: 57px; }
.phone.droid .glare { inset: 16px; border-radius: 42px; }
.phone.droid .screen { border-radius: 42px; }
.phone.droid .island { width: 13px; height: 13px; top: 15px; margin-left: -6.5px; border-radius: 50%; }
.phone.droid .island::after { display: none; }
.phone.droid .btn-l { display: none; }
.phone.droid .btn-r { top: 180px; height: 70px; box-shadow: 0 100px 0 0 #2c2c30; height: 60px; }
.phone.droid .sb { padding: 0 26px 0 28px; height: 44px; font: 500 15px/1 "Roboto", "Inter", sans-serif; letter-spacing: 0; }
.phone.droid .home-ind { width: 108px; height: 4px; margin-left: -54px; bottom: 10px; }
