/* DRS Phone — iOS-style look (loaded after style.css). Everything here is our own CSS; no Apple or third-party assets. */

:root {
    --screen: #000;
    --window: #1c1c1e;
    --row: #2c2c2e;
    --row-hover: #3a3a3c;
    --line: #38383a;
    --white: #fff;
    --text: #ebebf5;
    --muted: #8e8e93;
    --accent: #0a84ff;
    --accent-strong: #0071e3;
    --accent-soft: rgba(10, 132, 255, .18);
    --danger: #ff453a;
    --danger-soft: rgba(255, 69, 58, .16);
    --success: #30d158;
    --success-soft: rgba(48, 209, 88, .16);
    --warning: #ffd60a;
    --glass: rgba(40, 40, 46, .55);
    --glass-light: rgba(255, 255, 255, .18);
}
* { font-family: "Inter", -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

/* ------------------------------------------------------------ frame: titanium edge and side buttons */
.frame {
    position: relative;
    width: 322px; height: 664px; padding: 10px; border-radius: 58px;
    background: #050506;
    box-shadow:
        0 0 0 2px #5b5b60, 0 0 0 3.5px #2a2a2e, 0 0 0 5px #8a8a90, 0 0 0 6px #3b3b40,
        0 50px 100px -24px rgba(0, 0, 0, .9);
}
.side-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6e6e74, #3a3a3f); }
.side-btn.b1 { left: -9px; top: 118px; height: 28px; }
.side-btn.b2 { left: -9px; top: 170px; height: 52px; }
.side-btn.b3 { left: -9px; top: 232px; height: 52px; }
.side-btn.b4 { right: -9px; top: 190px; height: 84px; }
.screen { border-radius: 48px; background: #000; }
.dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 70; transition: opacity .2s; }

/* ------------------------------------------------------------ Dynamic Island */
.island {
    position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 65;
    width: 98px; height: 29px; border-radius: 20px; background: #000;
    display: flex; align-items: center; justify-content: space-between; padding: 0 10px; overflow: hidden;
    transition: width .45s cubic-bezier(.3, 1.4, .5, 1), height .45s cubic-bezier(.3, 1.4, .5, 1), border-radius .45s, padding .3s;
    cursor: default; color: #fff;
}
.island > * { opacity: 0; transition: opacity .2s .15s; }
.island.compact { width: 196px; cursor: pointer; }
.island.compact > *, .island.expanded > * { opacity: 1; }
.island.expanded { width: 290px; height: 74px; border-radius: 30px; padding: 0 16px; justify-content: flex-start; gap: 12px; cursor: pointer; }
.island .is-l, .island .is-r { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.island .is-call { color: #30d158; }
.island .is-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #30d158; color: #000; }
.island .is-cover { width: 22px; height: 22px; border-radius: 6px; background: #333 center / cover; }
.island .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.island .bars i { width: 3px; border-radius: 2px; background: #ff375f; animation: bar 0.9s ease-in-out infinite; }
.island .bars i:nth-child(2) { animation-delay: .15s; } .island .bars i:nth-child(3) { animation-delay: .3s; } .island .bars i:nth-child(4) { animation-delay: .45s; }
.island .bars.paused i { animation: none; height: 3px; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.island .is-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.island .is-txt { min-width: 0; flex: 1; }
.island .is-txt .t { font-size: 13.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.island .is-txt .s { font-size: 12.5px; color: #bdbdc2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }

/* ------------------------------------------------------------ status bar */
.status { height: 50px; padding: 17px 30px 0 34px; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.status .clock { width: 72px; text-align: center; }
.status .icons { pointer-events: auto; gap: 5px; font-size: 15.5px; color: #fff; padding: 0; height: 18px; }
.status .icons svg { height: 1em; }
.screen.light-status .status { color: #000; }
.screen.light-status .status .icons { color: #000; }

/* ------------------------------------------------------------ wallpapers (ours, drawn in CSS) */
.w7 { background: radial-gradient(60% 45% at 25% 30%, #ff9f0a 0%, transparent 70%), radial-gradient(55% 45% at 80% 55%, #ff375f 0%, transparent 70%), radial-gradient(70% 50% at 40% 90%, #bf5af2 0%, transparent 70%), #1a0b1e; }
.w8 { background: radial-gradient(70% 50% at 20% 20%, #64d2ff 0%, transparent 65%), radial-gradient(60% 50% at 85% 60%, #0a84ff 0%, transparent 70%), radial-gradient(70% 40% at 30% 95%, #30d158 0%, transparent 70%), #04131f; }
.w9 { background: linear-gradient(165deg, #1c1c1e 0%, #2c2c2e 45%, #0a0a0a 100%); }
.w10 { background: radial-gradient(80% 60% at 50% 0%, #5e5ce6 0%, transparent 60%), radial-gradient(90% 60% at 50% 100%, #ff2d55 0%, transparent 60%), #120a24; }
.w11 { background: linear-gradient(180deg, #ffcc00 0%, #ff9500 35%, #ff2d55 70%, #5e5ce6 100%); }
.w12 { background: radial-gradient(50% 35% at 70% 25%, rgba(255,255,255,.35) 0%, transparent 70%), linear-gradient(200deg, #0f5132, #134e4a 40%, #0c1f3f); }
.wallpaper::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }

/* ------------------------------------------------------------ lock screen */
.lock { padding-top: 64px; justify-content: space-between; }
.lock-top { display: flex; flex-direction: column; align-items: center; transition: transform .1s; }
.lock-date { order: 1; font-size: 18px; font-weight: 600; opacity: .92; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.lock-date::first-letter { text-transform: uppercase; }
.lock-time { order: 2; font-size: 94px; font-weight: 700; letter-spacing: -4px; line-height: .95; margin-top: 2px; opacity: .96; text-shadow: 0 2px 24px rgba(0,0,0,.2); font-variant-numeric: tabular-nums; }
.lock-notes { margin-top: auto; margin-bottom: 14px; }
.lock-notes .peek-card { background: rgba(245, 245, 250, .22); backdrop-filter: blur(24px) saturate(1.6); border-radius: 22px; box-shadow: none; }
.lock-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 44px 38px; }
.lk-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(40, 40, 46, .45); backdrop-filter: blur(20px); display: grid; place-items: center; color: #fff; font-size: 22px; }
.lk-btn.on { background: #fff; color: #000; }
.lock .lock-hint { position: static; font-size: 13.5px; opacity: .75; animation: none; }
.lock.dragging { transition: none; }
.lock.leaving { transition: transform .3s cubic-bezier(.4, 0, 1, 1), opacity .3s; transform: translateY(-100%); opacity: 0; }

/* ------------------------------------------------------------ home */
.home { padding: 60px 20px 0; }
.page { gap: 20px 10px; padding: 4px 20px 0; grid-auto-rows: 78px; }
.app-icon { font-size: 11.5px; font-weight: 500; gap: 5px; letter-spacing: -.1px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.app-icon .ic { width: 60px; height: 60px; border-radius: 14px; font-size: 30px; position: relative; overflow: hidden; box-shadow: 0 4px 12px -4px rgba(0,0,0,.45); }
.app-icon .ic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%, rgba(0,0,0,.08)); pointer-events: none; }
.app-icon:active .ic { transform: scale(.9); filter: brightness(.8); }
.app-icon .badge { top: -6px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #ff3b30; font-size: 12.5px; }
.dock { left: 10px; right: 10px; bottom: 20px; padding: 14px 10px; border-radius: 34px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(30px) saturate(1.8); }
.dots { bottom: 170px; }
.dots button { width: 7px; height: 7px; }
.search-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 128px; padding: 6px 13px; border-radius: 14px; background: rgba(255,255,255,.2); backdrop-filter: blur(20px); color: #fff; font-size: 12.5px; font-weight: 600; display: flex; gap: 5px; align-items: center; }
.home .dots { bottom: 160px; }
.home .search-pill { bottom: 124px; }

/* widgets (2x2) */
.widget { grid-column: span 2; grid-row: span 2; border-radius: 22px; overflow: hidden; position: relative; color: #fff; text-align: left; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.wg-clock { background: #fff; display: grid; place-items: center; }
.wg-clock svg { width: 88%; height: 88%; }
.wg-weather { background: linear-gradient(180deg, #2f7ee8, #5aa7f5); padding: 12px 14px; display: flex; flex-direction: column; }
.wg-weather.night { background: linear-gradient(180deg, #0c1a3a, #25407a); }
.wg-weather .z { font-size: 13px; font-weight: 700; }
.wg-weather .tp { font-size: 40px; font-weight: 400; line-height: 1.05; letter-spacing: -1px; }
.wg-weather .ic { font-size: 18px; margin-top: auto; }
.wg-weather .d { font-size: 12px; font-weight: 600; }
.widget-label { grid-column: span 2; }

/* ------------------------------------------------------------ apps: iOS dark mode */
.app { padding-top: 50px; background: var(--app-bg); animation: app-open .32s cubic-bezier(.2, .9, .2, 1); }
@keyframes app-open { from { opacity: 0; transform: scale(.86); border-radius: 40px; } to { opacity: 1; transform: none; } }
.bar { padding: 4px 16px 8px; }
.bar h1 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.bar h2 { font-size: 17px; font-weight: 600; }
.bar .back { color: var(--accent); font-size: 17px; font-weight: 400; gap: 0; }
.bar .back svg { font-size: 26px; margin-left: -8px; }
.bar .act { color: var(--accent); font-size: 17px; font-weight: 400; }
.list { border-radius: 12px; background: var(--window); }
.row { padding: 11px 16px; border-bottom: 0; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.row:hover { background: var(--hover); }
.row .t { font-size: 16px; font-weight: 400; }
.row.missed .t { color: #ff453a; }
.section { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0; color: var(--muted); margin: 22px 16px 7px; }
.btn { border-radius: 12px; font-weight: 600; font-size: 16px; }
.btn.ghost { background: var(--window); color: var(--accent); }
input, textarea, select { background: var(--window); border: 0; border-radius: 10px; font-size: 16px; }
input.search, .search { background: var(--fill); border-radius: 10px; padding: 8px 12px; }
.tabs { background: var(--fill); border-radius: 9px; padding: 2px; }
.tabs button { border-radius: 7px; font-size: 13px; padding: 6px 0; }
.tabs button.on { background: #636366; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #39393d; }
.switch::after { width: 27px; height: 27px; top: 2px; left: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch.on { background: #30d158; }
.switch.on::after { transform: translateX(20px); }
.bubble.me { background: #0a84ff; }
.bubble.them { background: #26252a; }
.composer textarea { background: var(--window); border: .5px solid #3a3a3c; }
.composer .send { background: #0a84ff; }
.key { background: #333335; }
.key b { font-weight: 400; font-size: 30px; }
.key.dialbtn { background: #30d158; }
.toast { background: rgba(58, 58, 60, .95); border-radius: 16px; }
.homebar { width: 134px; height: 5px; bottom: 8px; background: #fff; }
.app .homebar, .screen.in-app .homebar { background: #fff; }

/* banners inside the phone and when it is closed */
.peek-card, .banner { background: rgba(38, 38, 42, .82); backdrop-filter: blur(30px) saturate(1.8); border-radius: 22px; }
.peek-card .ic, .banner .ic { border-radius: 9px; }

/* ------------------------------------------------------------ Control Center */
.cc { position: absolute; inset: 0; z-index: 60; padding: 58px 22px 30px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(30px) saturate(1.4); animation: cc-in .25s ease-out; }
@keyframes cc-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 58px; gap: 14px; }
.cc-tile { border-radius: 20px; background: rgba(60, 60, 66, .55); color: #fff; display: grid; place-items: center; font-size: 24px; position: relative; overflow: hidden; }
.cc-tile.big { grid-column: span 2; grid-row: span 2; border-radius: 26px; }
.cc-tile.tall { grid-row: span 2; border-radius: 22px; }
.cc-conn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; place-items: center; }
.cc-conn button { width: 50px; height: 50px; border-radius: 50%; background: rgba(120, 120, 128, .45); display: grid; place-items: center; font-size: 22px; color: #fff; }
.cc-conn button.on { background: #ff9f0a; }
.cc-conn button.on.green { background: #30d158; }
.cc-conn button.on.blue { background: #0a84ff; }
.cc-conn button.on.white { background: #fff; color: #000; }
.cc-music { padding: 14px; display: flex; flex-direction: column; align-items: stretch; justify-items: initial; }
.cc-music .t { font-size: 13px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-music .s { font-size: 11.5px; color: #c7c7cc; }
.cc-music .ctl { margin-top: auto; display: flex; justify-content: center; gap: 22px; font-size: 26px; }
.cc-slider { position: relative; cursor: pointer; place-items: end center; }
.cc-slider .fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; pointer-events: none; }
.cc-slider svg { position: relative; z-index: 1; margin-bottom: 14px; color: #8e8e93; mix-blend-mode: difference; pointer-events: none; }
.cc-tile.small.on { background: #fff; color: #000; }

/* ------------------------------------------------------------ search */
.spot { position: absolute; inset: 0; z-index: 58; padding: 60px 16px 30px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(34px) saturate(1.4); display: flex; flex-direction: column; gap: 12px; animation: cc-in .2s ease-out; }
.spot input { background: rgba(120, 120, 128, .3); color: #fff; }
.spot .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.spot .list { background: rgba(40, 40, 46, .6); }

/* ------------------------------------------------------------ call screen */
.call { background: linear-gradient(180deg, rgba(30, 30, 34, .6), rgba(0, 0, 0, .85)); backdrop-filter: blur(40px) saturate(1.3); padding-top: 110px; }
.call .who { font-size: 32px; font-weight: 500; }
.call .min-btn { position: absolute; top: 58px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: rgba(120,120,128,.35); color: #fff; font-size: 16px; display: grid; place-items: center; }

/* ------------------------------------------------------------ settings wallpaper picker (12 now) */
.walls { grid-template-columns: repeat(4, 1fr); }

/* fit 2 widget rows + 3 icon rows above the search pill */
.page { gap: 14px 10px; grid-auto-rows: 72px; }
.home .search-pill { bottom: 124px; padding: 5px 12px; }
.home .dots { bottom: 112px; }
.island.expanded, .island.compact { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 30px -10px rgba(0, 0, 0, .8); }

/* image app icons (html/img/apps): the picture fills the box, no gradient or gloss on top */
.ic.img, .is-ic.img { background: #000 !important; overflow: hidden; position: relative; }
.ic.img img, .is-ic.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.app-icon .ic.img::after { display: none; }

/* ------------------------------------------------------------------ App Store (Today / Apps / Games / Search) */
.c-appstore { background: linear-gradient(160deg, #38bdf8, #2563eb); }
.app.appstore .body { padding-top: 2px; }
.st-title .bar-row { height: 10px; }
.st-title .date { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 0 12px; letter-spacing: 0; }
.st-title .h1row { display: flex; align-items: center; justify-content: space-between; padding-right: 12px; }
.st-title .me { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #a1a1a8, #6c6c73); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.st-ic { display: grid; place-items: center; color: #fff; flex-shrink: 0; position: relative; overflow: hidden; box-shadow: 0 0 0 .5px rgba(255,255,255,.12); }

/* GET / OPEN pill and the install ring */
.st-get { min-width: 60px; padding: 4px 12px; border-radius: 999px; background: rgba(118,118,128,.24); color: #0a84ff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }
.st-get.light { background: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(10px); }
.st-ring { width: 60px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.st-ring svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 3; }
.st-ring circle.fill { stroke: #0a84ff; stroke-linecap: round; stroke-dasharray: 94.3; stroke-dashoffset: 94.3; animation: st-fill 2.4s ease-in-out forwards; }
@keyframes st-fill { to { stroke-dashoffset: 0; } }

/* rows: icon, name, subtitle, GET — separator under the text only */
.st-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; position: relative; }
.st-row + .st-row::before { content: ''; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--line); }
.st-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.st-row .main { flex: 1; min-width: 0; }
.st-row .t { font-size: 13.5px; color: var(--label); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-row .s { font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 1px; }

/* sections with a horizontal pager of 3-row columns */
.st-sec { margin-top: 20px; padding-top: 12px; border-top: .5px solid var(--line); }
.st-sec .h { display: flex; flex-direction: column; margin-bottom: 6px; }
.st-sec .h b, .st-block .h b { font-size: 17px; font-weight: 700; color: var(--label); letter-spacing: -.01em; }
.st-sec .h small { font-size: 12px; color: var(--muted); }
.st-pager { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; margin: 0 -12px; padding: 0 12px; }
.st-pager::-webkit-scrollbar { height: 0; }
.st-col { flex: 0 0 88%; min-width: 0; scroll-snap-align: start; }

/* Today story cards */
.st-story { position: relative; height: 330px; border-radius: 16px; overflow: hidden; margin-bottom: 18px; cursor: pointer; box-shadow: 0 12px 30px -16px rgba(0,0,0,.9); color: #fff; }
.st-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); pointer-events: none; }
.st-story .glyph { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-8deg) scale(1.5); filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.st-story .top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; }
.st-story .k { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: .8; letter-spacing: .02em; }
.st-story .n { font-size: 25px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-top: 2px; }
.st-story .foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: rgba(30, 30, 34, .35); backdrop-filter: blur(20px) saturate(1.6); }
.st-story .foot .main { flex: 1; min-width: 0; }
.st-story .foot .t { font-size: 12.5px; font-weight: 600; }
.st-story .foot .s { font-size: 10.5px; opacity: .75; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-story.list { height: auto; background: var(--window); cursor: default; padding: 14px 14px 6px; }
.st-story.list::after { display: none; }
.st-story.list .top { position: static; margin-bottom: 8px; }
.st-story.list .k { color: var(--muted); opacity: 1; }
.st-story.list .n { font-size: 21px; }

/* search */
.st-disc button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 0; color: #0a84ff; font-size: 15px; border-bottom: .5px solid var(--line); text-align: left; }
.st-disc button svg { color: var(--muted); font-size: 14px; }
.st-results .st-row + .st-row::before { display: none; }
.st-shots { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; }
.st-shots::-webkit-scrollbar { height: 0; }
.st-shots.mini { margin-bottom: 16px; overflow: hidden; cursor: pointer; }
.st-shot { flex: 0 0 118px; height: 236px; border-radius: 14px; position: relative; overflow: hidden; padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; box-shadow: 0 0 0 .5px rgba(255,255,255,.1); }
.st-shots.mini .st-shot { flex: 1 1 0; height: 170px; }
.st-shot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.st-shot > * { position: relative; }
.st-shot .sb { width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin-bottom: 6px; }
.st-shot .ln { height: 6px; border-radius: 3px; background: rgba(255,255,255,.75); }
.st-shot .ln.w1 { width: 70%; } .st-shot .ln.w2 { width: 45%; opacity: .6; } .st-shot .ln.w3 { width: 60%; opacity: .6; }
.st-shot .card { width: 100%; height: 56px; border-radius: 9px; background: rgba(255,255,255,.22); }
.st-shot .card.small { height: 34px; }
.st-shot.s1 .card { height: 80px; } .st-shot.s2 .card { height: 40px; }

/* detail page */
.st-head { display: flex; gap: 14px; align-items: flex-start; margin: 2px 0 14px; }
.st-head .main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 96px; }
.st-head .n { font-size: 19px; font-weight: 700; color: var(--label); letter-spacing: -.01em; line-height: 1.15; }
.st-head .c { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-head-btn { margin-top: auto; }
.st-head-btn .st-get { background: #0a84ff; color: #fff; min-width: 70px; }
.st-head-btn .st-ring { justify-content: start; }
.st-base { font-size: 11.5px; color: var(--muted); }
.st-info { display: flex; overflow-x: auto; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); padding: 9px 0; margin: 0 -12px; }
.st-info::-webkit-scrollbar { height: 0; }
.st-info > div { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; padding: 0 6px; }
.st-info > div + div { border-left: .5px solid var(--line); }
.st-info span { font-size: 9px; font-weight: 600; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.st-info b { font-size: 17px; font-weight: 700; color: #aeaeb2; line-height: 1.3; }
.st-info b.ico { font-size: 17px; display: grid; place-items: center; height: 22px; }
.st-info em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-info .stars i { font-style: normal; color: #48484a; font-size: 10px; }
.st-info .stars i.on { color: #aeaeb2; }
.st-block { margin-top: 16px; }
.st-block .h { margin-bottom: 6px; }
.st-ver { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.upd { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 10px; gap: 4px; }
.upd .ic { width: 64px; height: 64px; border-radius: 15px; position: relative; overflow: hidden; margin-bottom: 10px; }
.upd .v { font-size: 15px; font-weight: 600; color: var(--label); }
.upd .s { font-size: 12.5px; color: var(--muted); }
.st-about { font-size: 13px; color: var(--text); line-height: 1.45; }

/* ==================================================================== iOS 17 pass
   Sizes are iOS points scaled to this screen (~0.77): body 17pt → 13.5px, large title 34pt → 26px, icon 60pt → 48px. */
:root {
    --window: #1c1c1e;
    --row: #2c2c2e;
    --line: rgba(84, 84, 88, .6);
    --muted: rgba(235, 235, 245, .6);
    --muted2: rgba(235, 235, 245, .3);
    --fill: rgba(118, 118, 128, .24);
    --tint: #0a84ff;
    --fs: 13.5px;
}
* { letter-spacing: -.01em; }
body { font-size: var(--fs); }
svg.chev { width: .8em; height: .8em; }

/* ------------------------------------------------------------ home: slimmer icons and dock */
.home { padding: 56px 16px 0; }
.page { gap: 12px 6px; padding: 6px 16px 0; grid-auto-rows: 66px; }
.app-icon { font-size: 10.5px; font-weight: 500; gap: 4px; letter-spacing: 0; }
.app-icon .ic { width: 50px; height: 50px; border-radius: 11.5px; font-size: 25px; box-shadow: 0 2px 8px -3px rgba(0,0,0,.45); }
.app-icon .badge { top: -5px; right: 4px; min-width: 19px; height: 19px; border-radius: 10px; font-size: 11px; padding: 0 5px; }
.widget { border-radius: 19px; }
.dock { left: 9px; right: 9px; bottom: 14px; padding: 11px 8px; border-radius: 28px; background: rgba(255, 255, 255, .18); }
.home .search-pill { bottom: 100px; padding: 4px 11px; font-size: 11px; border-radius: 12px; }
.home .dots { bottom: 128px; }
.dots button { width: 6px; height: 6px; }

/* ------------------------------------------------------------ app shell */
.app { padding-top: 46px; }
.body { padding: 0 12px 26px; }
.body.flush { padding: 0 0 26px; }
.body.tabbed { padding-bottom: 70px; }

/* navigation bar */
.bar { min-height: 36px; padding: 2px 8px 4px; gap: 4px; }
.bar h2 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.bar .back { font-size: 13.5px; min-width: 64px; color: var(--tint); display: flex; align-items: center; gap: 0; }
.bar .back svg { font-size: 22px; margin: 0 -2px 0 -6px; }
.bar .back.plain { padding-left: 6px; }
.bar .act { font-size: 13.5px; min-width: 64px; color: var(--tint); display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; }
.bar .act.icon { font-size: 19px; }
.bar .act.strong { font-weight: 600; }
.bar.big { display: block; min-height: 0; padding: 0 0 6px; }
.bar.big .bar-row { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 8px 0 12px; }
.bar.big h1 { font-size: 26px; font-weight: 700; letter-spacing: .01em; padding: 0 12px; line-height: 1.15; color: var(--label); }
.bar.sheet { padding-top: 6px; }
.app.notes { --tint: #ffd60a; }

/* search field */
.sfield { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 8px; border-radius: 9px; background: var(--fill); color: var(--muted); margin: 2px 0 12px; font-size: 14px; }
.sfield svg { flex-shrink: 0; }
.sfield input, .sfield input:focus { background: none; border: 0; padding: 0; height: 100%; font-size: 13.5px; color: var(--label); }
.sfield input::placeholder { color: var(--muted); }
input.search, .search { height: 29px; padding: 0 10px; border-radius: 9px; background: var(--fill); font-size: 13.5px; }

/* grouped lists (inset) and plain lists */
.list { border-radius: 10px; background: var(--window); }
.list.gap { margin-top: 22px; }
.row { padding: 8px 12px; min-height: 38px; gap: 10px; font-size: var(--fs); }
.row + .row::before { left: 12px; height: .5px; background: var(--line); }
.row:hover { background: var(--hover); }
.row .t { font-size: 13.5px; font-weight: 400; color: var(--label); }
.row .t.b { font-weight: 600; }
.row .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.row .s svg { font-size: 11px; vertical-align: -1px; }
.row .side { font-size: 11px; }
.row .val { margin-left: auto; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.row > svg.chev { color: var(--muted2); font-size: 15px; margin-left: 4px; flex-shrink: 0; }
.row .val + svg.chev { margin-left: 4px; }
.row.nav .t, .row.check .t { flex: 1; }
.row .link { color: var(--tint); }
.row .danger { color: #ff453a; }
.row .tick { margin-left: auto; color: var(--tint); font-size: 17px; }
.row.missed .t { color: #ff453a; }
.row .lbl { font-size: 11.5px; color: var(--label); }
.list.set .row + .row::before { left: 44px; }
.set-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.set-ic b { font-size: 10px; font-weight: 700; }
.list.set .row .t { flex: 1; }
.row.me { padding: 10px 12px; }
.row.me .t { font-size: 16px; font-weight: 500; }
.plain { display: flex; flex-direction: column; margin: 0 -12px; }
.plain .row { border-radius: 0; padding-left: 16px; }
.plain .row + .row::before { left: 16px; }
.plain .alpha { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px 3px; border-bottom: .5px solid var(--line); }
.plain .alpha + .row::before { display: none; }
.plain .row .fav { color: var(--muted2); font-size: 12px; }
.plain .row .main { text-align: left; min-width: 0; }
.row .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.row .info { color: var(--tint); font-size: 19px; display: grid; place-items: center; }
.section { font-size: 11px; text-transform: uppercase; color: var(--muted); margin: 20px 12px 5px; letter-spacing: 0; }
.foot { font-size: 11px; color: var(--muted); margin: 6px 12px 0; line-height: 1.35; }
.empty { font-size: 13px; padding: 60px 10px; color: var(--muted); }
.avatar { width: 34px; height: 34px; font-size: 13px; font-weight: 600; }
.avatar:not(.img) { background: linear-gradient(180deg, #a1a1a8, #6c6c73) !important; }
.avatar.mid { width: 44px; height: 44px; font-size: 17px; }
.avatar.big { width: 76px; height: 76px; font-size: 30px; font-weight: 500; }
.avatar.img { background-size: cover !important; background-position: center !important; }

/* forms, buttons, switches, segmented control */
input, textarea, select { font-size: 13.5px; border-radius: 9px; padding: 8px 10px; }
.list.form .row { padding: 0 12px; min-height: 38px; }
.list.form input { background: none; border: 0; border-radius: 0; padding: 10px 0; }
.list.form .lbl { width: 76px; flex-shrink: 0; font-size: 13.5px; }
.btn { padding: 10px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.btn.ghost { background: var(--window); color: var(--tint); }
.btn.danger { background: var(--window); color: #ff453a; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: rgba(120, 120, 128, .32); margin-left: auto; }
.switch::after { width: 20px; height: 20px; top: 2px; left: 2px; }
.switch.on { background: #30d158; }
.switch.on::after { transform: translateX(16px); }
.tabs { margin: 0 12px 10px; padding: 2px; border-radius: 8px; background: var(--fill); }
.tabs button { padding: 4px 0; font-size: 12px; font-weight: 500; border-radius: 6px; }
.tabs button.on { background: #636366; color: #fff; font-weight: 600; }
.seg { display: flex; padding: 2px; border-radius: 8px; background: var(--fill); }
.seg button { padding: 3px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--label); }
.seg button.on { background: #636366; font-weight: 600; }
input[type=range] { height: 4px; background: rgba(120, 120, 128, .36); }
input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.slider-row { gap: 10px; color: var(--muted); }
.slider-row input { flex: 1; }
.slider-row small { font-size: 11px; } .slider-row big { font-size: 18px; }

/* bottom tab bar (Phone) and toolbar (Notes) */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 4px 22px; background: var(--bar-bg); backdrop-filter: blur(24px) saturate(1.6); border-top: .5px solid var(--line); z-index: 5; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 500; color: #8e8e93; letter-spacing: 0; }
.tabbar button svg { font-size: 21px; }
.tabbar button.on { color: var(--tint); }
.toolbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 24px; background: var(--bar-bg); backdrop-filter: blur(24px); border-top: .5px solid var(--line); z-index: 5; }
.toolbar .c { font-size: 10.5px; color: var(--label); }
.toolbar button { color: var(--tint); font-size: 20px; width: 24px; display: grid; place-items: center; }

/* ------------------------------------------------------------ phone: keypad */
.keypad { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 34px 0 78px; }
.keypad .dial { font-size: 30px; font-weight: 400; min-height: 40px; letter-spacing: .02em; margin: 0; max-width: 90%; }
.dial-add { color: var(--tint); font-size: 13px; min-height: 18px; margin: 2px 0 14px; }
.dial-add.off, .key.off { visibility: hidden; }
.keys { grid-template-columns: repeat(3, 58px); gap: 11px 22px; }
.key { width: 58px; height: 58px; background: #333335; }
.key b { font-size: 26px; font-weight: 400; }
.key small { font-size: 7.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--label); margin-top: 1px; min-height: 9px; }
.key:active { background: #737373; }
.key-row { grid-template-columns: repeat(3, 58px); gap: 22px; margin-top: 11px; }
.key.dialbtn { background: #30d158; font-size: 26px; }
.key.del { background: none; font-size: 22px; color: var(--label); }
.keypad .services { margin-top: auto; gap: 5px; padding: 0 10px; }
.keypad .services button { padding: 4px 9px; border-radius: 12px; background: var(--window); font-size: 10.5px; color: var(--muted); }
.keypad .services b { color: var(--label); font-weight: 600; }

/* ------------------------------------------------------------ contacts */
.my-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 4px 12px; margin-bottom: 4px; border-bottom: .5px solid var(--line); text-align: left; }
.my-card .t { font-size: 16px; font-weight: 600; color: var(--label); }
.my-card .s { font-size: 11.5px; color: var(--muted); }
.profile { gap: 6px; padding: 4px 0 14px; }
.profile .n { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.quick { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.quick button { padding: 8px 0 7px; border-radius: 10px; background: var(--window); color: var(--tint); font-size: 10.5px; font-weight: 500; gap: 3px; }
.quick button svg { font-size: 18px; }
.field-row .main { display: flex; flex-direction: column; gap: 1px; }
.field-row .t { font-size: 14px; }

/* ------------------------------------------------------------ messages */
.threads .row { padding: 8px 12px 8px 4px; align-items: flex-start; gap: 8px; }
.threads .row + .row::before { left: 58px; }
.threads .udot { width: 9px; height: 9px; border-radius: 50%; margin-top: 15px; flex-shrink: 0; }
.threads .row.unread .udot { background: var(--tint); }
.threads .avatar { width: 40px; height: 40px; font-size: 15px; }
.threads .top { display: flex; align-items: baseline; gap: 6px; }
.threads .top .t { flex: 1; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.threads .top .when { display: flex; align-items: center; gap: 3px; }
.threads .top .when svg { color: var(--muted2); font-size: 11px; }
.threads .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.bar.thread-bar { align-items: flex-start; padding: 0 8px 6px; border-bottom: .5px solid var(--line); background: var(--bar-bg); }
.thread-bar .back { min-width: 64px; padding-top: 10px; }
.thread-bar .back .count { background: var(--tint); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.thread-bar .th-who { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.thread-bar .th-who .avatar { width: 34px; height: 34px; font-size: 13px; }
.thread-bar .th-who span { font-size: 10.5px; color: var(--label); display: flex; align-items: center; gap: 2px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.thread-bar .th-who span svg { color: var(--muted2); font-size: 9px; }
.thread-bar .act { padding-top: 10px; }
.thread { padding: 8px 12px 8px; gap: 2px; }
.stamp { font-size: 10px; margin: 12px 0 6px; color: var(--muted); }
.stamp b { font-weight: 600; }
.bubble { max-width: 75%; padding: 6px 11px; border-radius: 16px; font-size: 13.5px; line-height: 1.3; position: relative; }
.bubble.me { background: #0a84ff; border-bottom-right-radius: 16px; }
.bubble.them { background: var(--bubble-them); border-bottom-left-radius: 16px; }
.bubble.tail { margin-bottom: 6px; }
.bubble.me.tail { border-bottom-right-radius: 4px; }
.bubble.them.tail { border-bottom-left-radius: 4px; }
.bubble.pic { padding: 0; background: none; overflow: hidden; }
.bubble.pic img { margin: 0; border-radius: 16px; }
.bubble img { border-radius: 12px; }
.delivered { align-self: flex-end; font-size: 10px; color: var(--muted); margin: -3px 2px 0 0; font-weight: 500; }
.composer { gap: 7px; padding: 6px 10px 26px; border-top: 0; background: var(--app-bg); align-items: flex-end; }
.composer .round.attach { width: 30px; height: 30px; background: var(--fill); color: #aeaeb2; font-size: 17px; }
.composer .pill { flex: 1; display: flex; align-items: flex-end; min-height: 30px; border-radius: 16px; border: 1px solid #3a3a3c; padding: 2px 2px 2px 11px; }
.composer .pill textarea { flex: 1; background: none; border: 0; padding: 4px 0; font-size: 13.5px; max-height: 80px; border-radius: 0; }
.composer .pill textarea::placeholder { color: var(--muted2); }
.composer .send { width: 25px; height: 25px; border-radius: 50%; background: #3a3a3c; color: #000; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; transition: background .15s; }
.composer .send.on { background: var(--tint); color: #fff; }
.to-row { display: flex; align-items: center; gap: 6px; padding: 4px 14px 8px; border-bottom: .5px solid var(--line); margin-bottom: 8px; color: var(--muted); font-size: 13.5px; }
.to-row input, .to-row input:focus { background: none; border: 0; padding: 4px 0; }

/* ------------------------------------------------------------ photos */
.photos { gap: 1.5px; }
.photos button { border-radius: 0; }
.count-foot { text-align: center; font-size: 12px; font-weight: 600; color: var(--label); padding: 14px 0; }

/* ------------------------------------------------------------ bank (Wallet-style card) */
.card { border-radius: 14px; padding: 14px 16px; aspect-ratio: 1.586; display: flex; flex-direction: column; background: linear-gradient(135deg, #2c2c2e, #0a84ff 140%); box-shadow: 0 10px 24px -12px rgba(0,0,0,.9); margin: 4px 0 6px; }
.card .lbl { font-size: 11px; opacity: .7; font-weight: 500; }
.card .amt { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.card .who { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; opacity: .9; }

/* ------------------------------------------------------------ notes */
.note-edit { display: flex; flex-direction: column; padding-bottom: 70px; }
.note-date { text-align: center; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.note-title, .note-title:focus { background: none; border: 0; font-size: 20px; font-weight: 700; padding: 2px 0; }
.note-body, .note-body:focus { background: none; border: 0; font-size: 13.5px; line-height: 1.45; padding: 4px 0; min-height: 360px; }
.row .s .when { color: var(--label); margin-right: 4px; }

/* ------------------------------------------------------------ calculator */
.app.calculator { padding-top: 0; }
.calc { padding: 0 14px 30px; }
.calc .out { font-size: 60px; font-weight: 300; letter-spacing: -.02em; padding: 0 8px 8px; line-height: 1.1; }
.calc .pad { gap: 10px; }
.calc .pad button { background: #333333; font-size: 26px; font-weight: 400; transition: filter .15s; }
.calc .pad button:active { filter: brightness(1.6); }
.calc .pad button.fn { background: #a5a5a5; color: #000; font-size: 22px; font-weight: 500; }
.calc .pad button.op { background: #ff9f0a; color: #fff; font-size: 32px; }
.calc .pad button.op.on { background: #fff; color: #ff9f0a; }
.calc .pad button.zero { padding-left: 24px; }

/* ------------------------------------------------------------ settings */
.walls { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0; }
.walls button { border-radius: 12px; border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.walls button.on { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--tint); }

/* ------------------------------------------------------------ call screen */
.call { padding: 70px 22px 44px; justify-content: flex-start; background: linear-gradient(180deg, rgba(40, 40, 46, .75), rgba(10, 10, 12, .92)); }
.call .call-top { text-align: center; display: flex; flex-direction: column; align-items: center; }
.call .what { font-size: 13px; color: var(--muted); margin: 0; order: 1; }
.call .who { font-size: 28px; font-weight: 400; letter-spacing: -.01em; margin: 2px 0 0; order: 0; }
.call .num { font-size: 12px; color: var(--muted); order: 2; margin-top: 2px; }
.call > .avatar.big { margin: 36px 0 0; width: 96px; height: 96px; font-size: 38px; }
.call-btns { margin-top: auto; display: flex; justify-content: center; width: 100%; }
.call-btns.two { justify-content: space-between; padding: 0 12px; }
.call-btns button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; }
.call-btns .round { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; color: #fff; }
.call-btns .accept .round { background: #30d158; animation: none; }
.call-btns .decline .round { background: #ff3b30; }
.call-btns .decline .round svg { transform: rotate(135deg); }
.call.ended .what { color: #ff453a; }

/* ------------------------------------------------------------ banners / toasts */
.banner { top: 42px; left: 7px; right: 7px; padding: 9px 11px; border-radius: 18px; }
.banner .ic, .peek-card .ic { width: 30px; height: 30px; border-radius: 7px; font-size: 16px; }
.banner .t, .peek-card .t { font-size: 12.5px; font-weight: 600; }
.banner .s, .peek-card .s { font-size: 12px; }
.toast { font-size: 12px; padding: 7px 14px; border-radius: 14px; bottom: 40px; }

/* ------------------------------------------------------------ side buttons + volume / silent HUD */
.side-btn { cursor: pointer; transition: transform .08s, filter .15s; }
.side-btn::before { content: ''; position: absolute; inset: -4px -6px; }
.side-btn:hover { filter: brightness(1.35); }
.side-btn.b1, .side-btn.b2, .side-btn.b3 { transform-origin: right; }
.side-btn.b1:active, .side-btn.b2:active, .side-btn.b3:active { transform: translateX(2px); }
.side-btn.b4:active { transform: translateX(-2px); }
.side-btn.b1.silent { background: linear-gradient(90deg, #ff9f0a, #b86e00); }
.hud-vol { position: absolute; left: 10px; top: 150px; width: 34px; height: 120px; border-radius: 17px; background: rgba(40, 40, 46, .6); backdrop-filter: blur(24px) saturate(1.6); overflow: hidden; z-index: 66; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: translateX(-60px); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.hud-vol.on { opacity: 1; transform: none; }
.hud-vol .fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; transition: height .15s; }
.hud-vol svg { position: relative; z-index: 1; margin-bottom: 9px; font-size: 15px; color: #8e8e93; mix-blend-mode: difference; }
.hud-top { position: absolute; top: 46px; left: 50%; transform: translate(-50%, -20px); z-index: 66; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 18px; background: rgba(40, 40, 46, .75); backdrop-filter: blur(24px) saturate(1.6); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .3s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.hud-top.on { opacity: 1; transform: translate(-50%, 0); }
.hud-top .i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #3a3a3c; font-size: 13px; }
.hud-top.silent .i { background: #ff453a; }
.hud-top small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------ Control Center (iOS 17 layout, slim) */
.cc { padding: 52px 20px 30px; background: rgba(0, 0, 0, .28); backdrop-filter: blur(34px) saturate(1.6) brightness(.8); }
.cc-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 54px; gap: 12px; }
.cc-tile { border-radius: 18px; background: rgba(90, 90, 96, .38); font-size: 21px; }
.cc-tile.big { border-radius: 22px; }
.cc-tile.tall { border-radius: 18px; }
.cc-tile.wide { grid-column: span 2; border-radius: 27px; display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 10px; text-align: left; justify-items: initial; }
.cc-tile.small { border-radius: 50%; width: 54px; height: 54px; justify-self: center; font-size: 22px; }
.cc-conn { gap: 8px; padding: 12px; }
.cc-conn button { width: 42px; height: 42px; font-size: 19px; background: rgba(120, 120, 128, .42); }
.cc-conn button.on.orange { background: #ff9f0a; }
.cc-conn button.on.indigo { background: #5e5ce6; }
.cc-conn button.on.white { background: #fff; color: #000; }
.cc-music { padding: 11px 12px; }
.cc-music .mu-top { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.cc-music .art { width: 34px; height: 34px; border-radius: 7px; background: rgba(120, 120, 128, .45) center / cover; display: grid; place-items: center; font-size: 16px; color: rgba(255,255,255,.7); flex-shrink: 0; }
.cc-music .txt { min-width: 0; }
.cc-music .t { font-size: 11.5px; font-weight: 600; -webkit-line-clamp: 2; line-height: 1.2; }
.cc-music .s { font-size: 10px; margin-top: 1px; }
.cc-music .ctl { font-size: 24px; }
.cc-tile.wide .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; background: rgba(120, 120, 128, .45); }
.cc-tile.wide .lbl { display: flex; flex-direction: column; min-width: 0; }
.cc-tile.wide b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile.wide small { font-size: 10px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-share .ico { background: #0a84ff; }
.cc-focus.on { background: rgba(255, 255, 255, .92); color: #000; }
.cc-focus.on .ico { background: #5e5ce6; color: #fff; }
.cc-slider svg { margin-bottom: 11px; font-size: 19px; }
.cc-slider .fill { border-radius: 0; }

/* ------------------------------------------------------------ sheets: share contact and incoming contact */
.sheet-wrap { position: absolute; inset: 0; z-index: 62; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; animation: fade .2s; }
.sheet-wrap.center { align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(14px); }
@keyframes fade { from { opacity: 0; } }
.sh-panel { width: 100%; background: var(--window); border-radius: 22px 22px 40px 40px; padding: 8px 14px 30px; animation: sheet-up .32s cubic-bezier(.2, .9, .2, 1); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sh-panel::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: #48484a; margin: 0 auto 8px; }
.sh-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 12px; }
.sh-head b { font-size: 13.5px; font-weight: 600; }
.sh-head button { justify-self: end; color: var(--tint); font-size: 13.5px; font-weight: 600; }
.sh-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--row); }
.sh-card .t { font-size: 14px; font-weight: 600; color: var(--label); }
.sh-card .s { font-size: 11.5px; color: var(--muted); }
.sh-sec { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin: 16px 2px 8px; }
.sh-sec svg { color: #0a84ff; font-size: 14px; }
.sh-near { display: flex; gap: 6px; overflow-x: auto; min-height: 92px; }
.sh-near::-webkit-scrollbar { height: 0; }
.sh-person { width: 74px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; }
.sh-person:hover { background: var(--row); }
.sh-person .avatar { width: 50px; height: 50px; font-size: 18px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; }
.sh-person.sending .avatar { box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 4px #0a84ff; animation: pulse 1.2s infinite; }
.sh-person.sent .avatar { box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 4px #30d158; }
.sh-person .n { font-size: 11px; color: var(--label); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sh-person .d { font-size: 10px; color: var(--muted); }
.sh-person.sent .d { color: #30d158; }
.sh-none { font-size: 12px; color: var(--muted); padding: 22px 6px; text-align: center; width: 100%; line-height: 1.4; }
.nd-card { width: 250px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sheet-wrap.center .sh-panel { width: auto; border-radius: 26px; padding: 22px 18px 16px; background: rgba(44, 44, 46, .92); animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
.sheet-wrap.center .sh-panel::before { display: none; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.nd-card .n { font-size: 19px; font-weight: 600; color: #fff; margin-top: 10px; }
.nd-card .num { font-size: 13px; color: var(--muted); margin-top: 2px; }
.nd-card .w { font-size: 12px; color: var(--muted); margin: 12px 0 14px; }
.nd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.nd-btns .btn { padding: 9px; }
.nd-btns .btn.ghost { background: #3a3a3c; color: #fff; }

/* ------------------------------------------------------------ Settings (iPhone layout) */
.set-ic.appi { position: relative; overflow: hidden; }
.set-ic.img { background: #000 !important; }
.set-ic.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.set-ic.appi svg { font-size: 13px; }
.set-ic.big { width: 64px; height: 64px; border-radius: 15px; font-size: 38px; margin-bottom: 10px; }
.list.gap.flush-top { margin-top: 0; }
.row .val svg { font-size: 12px; vertical-align: -1px; margin-left: 2px; }
.row .val.link { color: var(--tint); }
.row .tick + .t { margin-left: 0; }
.app-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px 2px; }
.app-head .set-ic { width: 46px; height: 46px; border-radius: 11px; font-size: 24px; }
.app-head b { display: block; font-size: 16px; font-weight: 600; color: var(--label); }
.app-head small { font-size: 11.5px; color: var(--muted); }
.profile .num { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.stor { padding: 12px; border-radius: 10px; background: var(--window); }
.stor .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.stor .h b { font-size: 13.5px; color: var(--label); font-weight: 600; }
.stor .h span { font-size: 11.5px; color: var(--muted); }
.stor .bar { display: flex; gap: 1.5px; height: 14px; border-radius: 4px; overflow: hidden; background: #3a3a3c; padding: 0; min-height: 0; }
.stor .bar i { display: block; height: 100%; }
.stor .leg { display: flex; gap: 12px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.stor .leg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.appear { display: flex; padding: 12px; }
.appear .ap { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--label); }
.appear .mock { width: 54px; height: 100px; border-radius: 10px; border: 2px solid #3a3a3c; background: linear-gradient(180deg, #1c1c1e 30%, #000); }
.appear .tick { margin: 0; font-size: 16px; }
.wp-pair { display: flex; justify-content: center; gap: 14px; margin: 4px 0 6px; }
.wp-prev { width: 104px; height: 208px; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); display: flex; justify-content: center; padding-top: 22px; }
.wp-prev b { position: relative; z-index: 1; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.wp-prev.home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px 6px; align-content: start; padding: 22px 10px; }
.wp-prev.home i { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.35); }
/* status bar extras */
.st-vpn { font-size: 9px; font-weight: 700; padding: 0 3px; border: 1px solid currentColor; border-radius: 3px; line-height: 1.3; }
#st-batt.low .lvl { fill: #ffd60a; }
/* accessibility */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
body.hi-contrast { --muted: rgba(235, 235, 245, .85); --line: rgba(160, 160, 170, .8); }
body.hi-contrast .list, body.hi-contrast .sfield { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
body.bold-text #phone { font-weight: 600; }
body.bold-text .row .t, body.bold-text .bubble, body.bold-text .app-icon span { font-weight: 600; }

/* ------------------------------------------------------------ Control Center iOS 18: vertical pages */
.cc { padding: 0; display: flex; flex-direction: column; }
.cc-top { display: flex; justify-content: space-between; padding: 50px 22px 8px; }
.cc-top button { width: 30px; height: 30px; border-radius: 50%; background: rgba(90, 90, 96, .45); color: #fff; display: grid; place-items: center; font-size: 17px; }
.cc-top button.on { width: auto; padding: 0 12px; border-radius: 15px; font-size: 12px; font-weight: 600; background: #fff; color: #000; }
.cc-pages { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; min-height: 0; }
.cc-pages::-webkit-scrollbar { width: 0; }
.cc-page { height: 100%; scroll-snap-align: start; padding: 4px 26px 24px 16px; overflow: hidden; }
.cc-tile.wide.cc-focus { padding: 0 6px; gap: 6px; }
.cc-tile.wide.cc-focus .ico { width: 27px; height: 27px; font-size: 15px; }
.cc-tile.wide.cc-focus b, .cc-tile.home b { font-size: 10.5px; letter-spacing: -.02em; }
.cc-dots { position: absolute; right: 7px; top: 50%; transform: translateY(-40%); display: flex; flex-direction: column; gap: 8px; }
.cc-dots button { font-size: 10px; color: rgba(255,255,255,.35); display: grid; place-items: center; }
.cc-dots button.on { color: #fff; }
.cc-head { font-size: 15px; font-weight: 700; color: #fff; margin: 4px 2px 12px; }
.cc-grid { gap: 11px; grid-auto-rows: 52px; }
.cc-tile.small { width: 52px; height: 52px; }
.cc-tile.small.on.red { background: #fff; color: #ff3b30; }
.cc-conn .cc-btn span { display: none; }
.cc-conn button.on.green { background: #30d158; }
.cc-conn button.on.blue { background: #0a84ff; }
.cc-conn.expanded { grid-column: span 4; grid-template-columns: repeat(3, 1fr); }
.cc-sm-wrap { position: relative; display: grid; place-items: center; }
.cc-rm { position: absolute; top: -4px; left: 0; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #8e8e93; color: #000; display: grid; place-items: center; font-size: 12px; }
.cc-add { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cc-add button { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 12px; background: rgba(90, 90, 96, .38); color: #fff; font-size: 11px; font-weight: 500; text-align: left; }
.cc-add button svg { font-size: 15px; flex-shrink: 0; }
.cc-add small { grid-column: span 2; font-size: 11px; color: rgba(255,255,255,.6); text-align: center; }
/* media page */
.cc-media { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 26px; height: auto; margin-top: 4px; align-items: stretch; justify-items: initial; }
.cc-media .mu-top { display: flex; gap: 12px; align-items: center; }
.cc-media .art.big { width: 64px; height: 64px; border-radius: 12px; font-size: 28px; background: rgba(120,120,128,.45) center / cover; display: grid; place-items: center; color: rgba(255,255,255,.7); flex-shrink: 0; }
.cc-media .txt { min-width: 0; }
.cc-media .t { font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-media .s { font-size: 11.5px; color: rgba(255,255,255,.6); }
.cc-media .ctl { display: flex; justify-content: space-around; align-items: center; font-size: 30px; color: #fff; }
.cc-media .ctl button:not(:nth-child(2)) { font-size: 20px; color: rgba(255,255,255,.75); }
.cc-media .vol { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 15px; }
.cc-media .vol input { flex: 1; }
.cc-media .out { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cc-media .out button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(120,120,128,.3); color: #fff; font-size: 11.5px; font-weight: 500; }
.cc-media .out button.on { background: #fff; color: #000; }
.cc-media .hint { font-size: 11.5px; color: rgba(255,255,255,.6); text-align: center; }
/* home page */
.cc-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tile.home { height: 58px; border-radius: 18px; display: flex; align-items: center; gap: 6px; padding: 0 8px; text-align: left; justify-items: initial; }
.cc-tile.home .ico { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(120,120,128,.45); flex-shrink: 0; }
.cc-tile.home .lbl { display: flex; flex-direction: column; min-width: 0; }
.cc-tile.home b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile.home small { font-size: 10px; opacity: .65; }
.cc-tile.home.on { background: rgba(255,255,255,.92); color: #000; }
.cc-tile.home.on .ico { background: #ff9f0a; color: #fff; }
/* connectivity page */
.cc-conn-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; padding: 16px 10px; border-radius: 26px; height: auto; align-items: start; justify-items: initial; margin-bottom: 11px; }
.cc-conn-big .cc-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 20px; color: #fff; }
.cc-conn-big .cc-btn svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(120,120,128,.42); box-sizing: border-box; }
.cc-conn-big .cc-btn.on.orange svg { background: #ff9f0a; }
.cc-conn-big .cc-btn.on.green svg { background: #30d158; }
.cc-conn-big .cc-btn.on.blue svg { background: #0a84ff; }
.cc-conn-big .cc-btn span { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.85); white-space: nowrap; }
.cc-tile.wide.full { width: 100%; height: 52px; margin-bottom: 11px; }
.cc-tile.wide.on-vpn .ico { background: #0a84ff; }

/* ==================================================================== Clock (World / Alarms / Stopwatch / Timer) */
.app.clock { --tint: #ff9f0a; }
.act.orange, .bar .act.orange { color: #ff9f0a; }
.bar .bar-row .act.left { justify-content: flex-start; min-width: 0; padding: 0; }
.clock-tabs button.on { color: #ff9f0a; }
.plain.world .row, .plain.alarms .row { padding: 10px 16px; align-items: center; }
.plain.world .s { font-size: 11px; color: var(--muted); margin: 0 0 1px; }
.plain.world .t { font-size: 18px; font-weight: 400; }
.plain.world .big, .plain.alarms .big { font-size: 40px; font-weight: 200; letter-spacing: -.02em; color: var(--label); line-height: 1.05; font-variant-numeric: tabular-nums; }
.plain.alarms .main { flex: 1; text-align: left; }
.plain.alarms .s { font-size: 12px; color: var(--label); }
.plain.alarms .row.off .big, .plain.alarms .row.off .s { color: var(--muted); }
.plain.alarms .switch { margin-left: 8px; }
.al-del { width: 20px; height: 20px; border-radius: 50%; background: #ff3b30; color: #fff; display: grid; place-items: center; font-size: 11px; margin-right: 6px; flex-shrink: 0; }
.sw, .tm { display: flex; flex-direction: column; }
.sw-big { font-size: 54px; font-weight: 200; color: var(--label); text-align: center; margin: 60px 0 36px; letter-spacing: -.02em; }
.round-btns { display: flex; justify-content: space-between; padding: 0 8px; margin-bottom: 18px; }
.rb { width: 70px; height: 70px; border-radius: 50%; font-size: 13.5px; font-weight: 500; position: relative; }
.rb::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid #000; pointer-events: none; }
.rb.grey { background: #333336; color: #fff; }
.rb.green { background: rgba(48, 209, 88, .22); color: #30d158; }
.rb.red { background: rgba(255, 69, 58, .22); color: #ff453a; }
.rb.orange { background: rgba(255, 159, 10, .22); color: #ff9f0a; }
.rb:disabled { opacity: .5; cursor: default; }
.plain.laps { border-top: .5px solid var(--line); }
.plain.laps .row { min-height: 34px; }
.plain.laps .val { color: var(--label); font-size: 13.5px; }
.plain.laps .row.best .t, .plain.laps .row.best .val { color: #30d158; }
.plain.laps .row.worst .t, .plain.laps .row.worst .val { color: #ff453a; }
.tm-ring { position: relative; width: 230px; height: 230px; margin: 24px auto 22px; }
.tm-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-ring > svg circle { fill: none; stroke: #2c2c2e; stroke-width: 3.5; }
.tm-ring > svg circle.p { stroke: #ff9f0a; stroke-linecap: round; stroke-dasharray: 289; transition: stroke-dashoffset .2s linear; }
.tm-ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tm-ring .big { font-size: 46px; font-weight: 200; color: var(--label); }
.tm-ring .end { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.wheels { position: relative; display: flex; justify-content: center; gap: 4px; height: 150px; margin: 24px 0 24px; }
.wh-col { position: relative; display: flex; align-items: center; }
.wh { height: 150px; width: 58px; overflow-y: auto; scroll-snap-type: y mandatory; position: relative; z-index: 1; -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wh::-webkit-scrollbar { width: 0; }
.wh-pad { height: 60px; }
.wh-i { height: 30px; line-height: 30px; text-align: right; padding-right: 6px; font-size: 20px; color: rgba(235,235,245,.35); scroll-snap-align: center; font-variant-numeric: tabular-nums; }
.wh-i.on { color: var(--label); }
.wh-l { position: absolute; left: 60px; font-size: 14px; font-weight: 600; color: var(--label); z-index: 1; pointer-events: none; }
.wh-col.lbl { margin-right: 26px; }
.wh-band { position: absolute; left: 12px; right: 12px; top: 60px; height: 30px; border-radius: 8px; background: rgba(118, 118, 128, .24); }

/* ==================================================================== Weather */
.wx2 { position: absolute; inset: 0; padding-top: 46px; display: flex; flex-direction: column; color: #fff; }
.wx2 .bar { min-height: 26px; }
.wx2 .body { padding-bottom: 30px; }
.wx-top { text-align: center; margin: 4px 0 18px; text-shadow: 0 1px 8px rgba(0,0,0,.12); }
.wx-top .loc { font-size: 10.5px; font-weight: 600; text-transform: uppercase; opacity: .8; }
.wx-top .zone { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.wx-top .temp { font-size: 76px; font-weight: 200; line-height: 1; margin-left: 18px; }
.wx-top .cond { font-size: 15px; font-weight: 500; opacity: .9; }
.wx-top .hl { font-size: 15px; font-weight: 500; }
.wx-card { background: rgba(0, 0, 0, .12); backdrop-filter: blur(20px); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; border: .5px solid rgba(255,255,255,.12); }
.wx-card .note { font-size: 12px; padding-bottom: 8px; border-bottom: .5px solid rgba(255,255,255,.25); line-height: 1.35; }
.wx-card .cap { font-size: 10.5px; font-weight: 600; text-transform: uppercase; opacity: .65; display: flex; align-items: center; gap: 5px; padding-bottom: 6px; border-bottom: .5px solid rgba(255,255,255,.25); }
.wx-hours { display: flex; gap: 14px; overflow-x: auto; padding-top: 10px; }
.wx-hours::-webkit-scrollbar { height: 0; }
.wx-hours div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; min-width: 30px; }
.wx-hours b { font-size: 15px; font-weight: 500; }
svg.wxi { width: 24px; height: 24px; overflow: visible; }
.wx-day { display: grid; grid-template-columns: 44px 28px 30px 1fr 30px; align-items: center; gap: 6px; padding: 7px 0; font-size: 14px; font-weight: 500; border-bottom: .5px solid rgba(255,255,255,.2); }
.wx-day:last-child { border-bottom: 0; }
.wx-day .lo { opacity: .6; text-align: right; }
.wx-day .rng { position: relative; height: 4px; border-radius: 2px; background: rgba(0,0,0,.18); }
.wx-day .rng i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #64d2ff, #ffd60a, #ff9f0a); }
.wx-day .rng b { position: absolute; top: -2px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(0,0,0,.25); }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx-tile { background: rgba(0, 0, 0, .12); backdrop-filter: blur(20px); border-radius: 14px; padding: 10px 12px; aspect-ratio: 1.25; display: flex; flex-direction: column; border: .5px solid rgba(255,255,255,.12); }
.wx-tile .h { font-size: 10px; font-weight: 600; text-transform: uppercase; opacity: .65; display: flex; align-items: center; gap: 4px; }
.wx-tile .v { font-size: 26px; font-weight: 400; margin-top: 6px; }
.wx-tile .v small { font-size: 12px; }
.wx-tile .s { margin-top: auto; font-size: 11px; opacity: .85; }

/* ==================================================================== Maps */
.app.maps { padding-top: 0; }
.maps2 { position: absolute; inset: 0; display: flex; flex-direction: column; }
.map { position: relative; height: 48%; flex-shrink: 0; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 37px, #4a4b50 37px 40px),
    repeating-linear-gradient(0deg, transparent 0 45px, #4a4b50 45px 48px),
    repeating-linear-gradient(35deg, transparent 0 150px, #5a5b61 150px 155px),
    radial-gradient(circle at 30% 70%, #23402b 0 42px, transparent 43px),
    radial-gradient(circle at 85% 20%, #1c3150 0 60px, transparent 61px),
    #2b2c30;
  background-size: 40px 48px, 40px 48px, 400px 400px, 260px 260px, 300px 300px, auto; }
.me-dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); z-index: 2; }
.me-dot i { position: absolute; inset: -14px; border-radius: 50%; background: rgba(10, 132, 255, .25); animation: me-pulse 2s infinite; z-index: -1; }
@keyframes me-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; z-index: 1; }
.pin i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.map-btns { position: absolute; right: 10px; top: 52px; display: flex; flex-direction: column; border-radius: 9px; background: rgba(40,40,44,.9); overflow: hidden; }
.map-btns button { width: 34px; height: 34px; display: grid; place-items: center; color: #0a84ff; font-size: 15px; }
.mp-sheet { flex: 1; min-height: 0; overflow-y: auto; margin-top: -14px; position: relative; z-index: 3; border-radius: 14px 14px 0 0; background: #1c1c1e; padding: 6px 12px 30px; box-shadow: 0 -6px 18px rgba(0,0,0,.4); }
.mp-sheet::-webkit-scrollbar { width: 0; }
.mp-sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #48484a; margin: 0 auto 8px; }
.mp-sheet .sfield { background: rgba(118,118,128,.24); margin-bottom: 8px; }
.mp-sheet .list { background: #2c2c2e; }
.mp-sec { font-size: 13px; font-weight: 600; color: #fff; margin: 12px 2px 6px; }
.mp-favs { display: flex; gap: 14px; }
.mp-fav { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; }
.mp-fav span { width: 50px; height: 50px; border-radius: 50%; background: #2c2c2e; display: grid; place-items: center; font-size: 22px; color: #0a84ff; }
.mp-fav.set span { background: #0a84ff; color: #fff; }
.mp-fav b { font-size: 11.5px; font-weight: 500; color: #fff; }
.mp-fav small { font-size: 10px; color: var(--muted); }
.mp-here { margin-top: 10px; }
.dot-ic, .cat-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.dot-ic { background: #0a84ff; }
.pill { padding: 4px 11px; border-radius: 14px; background: rgba(10,132,255,.2); color: #0a84ff; font-size: 12px; font-weight: 600; }
.mp-sheet.place { padding-top: 6px; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 4px 2px 12px; }
.pl-head b { display: block; font-size: 20px; font-weight: 700; color: #fff; }
.pl-head small { font-size: 12px; color: var(--muted); }
.pl-head .x { width: 28px; height: 28px; border-radius: 50%; background: #3a3a3c; color: #aeaeb2; font-size: 12px; }
.pl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-btns .btn.ghost { background: #2c2c2e; color: #0a84ff; }

/* ==================================================================== Crypto (Stocks style) */
.cx-title .bar-row { height: 10px; }
.cx-title .date { font-size: 20px; font-weight: 700; color: var(--muted); padding: 0 12px; line-height: 1; }
.cx-port { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.cx-port div { background: var(--window); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cx-port span { font-size: 11px; color: var(--muted); }
.cx-port b { font-size: 16px; font-weight: 600; color: var(--label); }
.cx-list .row { cursor: pointer; padding: 10px 16px; gap: 10px; }
.cx-list .t { font-size: 16px; font-weight: 700; }
.cx-list .s { font-size: 11.5px; }
.cx-spark { width: 62px; height: 30px; flex-shrink: 0; }
.cx-list .px { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 76px; }
.cx-list .px b { font-size: 14px; font-weight: 600; color: var(--label); }
.cx-pill { min-width: 70px; padding: 3px 6px; border-radius: 6px; color: #fff; font-size: 12.5px; font-weight: 600; text-align: right; }
.cx-coin .cx-head b { font-size: 22px; font-weight: 800; color: var(--label); margin-right: 6px; }
.cx-coin .cx-head span { font-size: 13px; color: var(--muted); }
.cx-price { font-size: 30px; font-weight: 600; color: var(--label); letter-spacing: -.01em; margin-top: 4px; }
.cx-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.cx-change { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.cx-change span { color: var(--muted); font-weight: 400; }
.cx-seg { margin-bottom: 8px; }
.cx-seg button { flex: 1; }
.cx-chart { position: relative; height: 150px; margin: 0 -12px 12px; padding: 0 12px; }
.cx-chart-svg { width: 100%; height: 100%; }
.cx-chart .hi, .cx-chart .lo { position: absolute; right: 14px; font-size: 10px; color: var(--muted); }
.cx-chart .hi { top: 0; } .cx-chart .lo { bottom: 0; }
.cx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; border-top: .5px solid var(--line); padding-top: 6px; margin-bottom: 16px; }
.cx-stats div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: .5px solid var(--line); font-size: 12px; }
.cx-stats span { color: var(--muted); }
.cx-stats b { color: var(--label); font-weight: 500; }
.cx-side { margin-bottom: 10px; }
.cx-side button { flex: 1; }
.cx-quick { display: flex; gap: 6px; margin-top: 8px; }
.cx-quick button { flex: 1; padding: 6px 0; border-radius: 9px; background: var(--window); color: var(--tint); font-size: 12px; font-weight: 600; }

/* ==================================================================== Photos viewer + favourites */
.photos button { position: relative; }
.photos .fav { position: absolute; left: 4px; bottom: 3px; color: #fff; font-size: 11px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.gal-seg { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 40px 24px; background: linear-gradient(transparent, rgba(0,0,0,.85) 40%); z-index: 5; }
.gal-seg .seg { background: rgba(60,60,64,.85); backdrop-filter: blur(20px); }
.gal-seg .seg button { flex: 1; }
.viewer { padding-top: 46px; background: #000; }
.vw-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 8px 6px; }
.vw-top .back { display: flex; align-items: center; color: #0a84ff; font-size: 13.5px; }
.vw-top .back svg { font-size: 22px; margin-left: -6px; }
.vw-link { justify-self: end; color: #0a84ff; font-size: 12.5px; }
.vw-bar { display: flex; justify-content: space-between; padding: 10px 26px 26px; }
.vw-bar button { color: #0a84ff; font-size: 21px; }
.vw-bar button.on { color: #ff375f; }
.vw-bar button.del { color: #0a84ff; }

/* crypto logos (CoinGecko images) */
.cx-logo { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--row); object-fit: cover; }
.cx-logo.none { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.cx-logo.big { width: 36px; height: 36px; }
.cx-list .row { padding-left: 14px; }
.cx-coin .cx-head { display: flex; align-items: center; gap: 10px; }
.cx-coin .cx-head div { flex: 1; min-width: 0; }
.cx-coin .cx-head em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--window); padding: 3px 8px; border-radius: 8px; }
.cx-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.cx-stats div { flex-direction: column; gap: 1px; }
.cx-stats b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* software update: red badge and the "update available" page */
.rbadge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; margin-left: auto; }
.row .val + .rbadge { margin-left: 6px; }
.upd-new { display: flex; gap: 12px; align-items: center; padding: 14px 4px 10px; }
.upd-new .ic { width: 52px; height: 52px; border-radius: 12px; position: relative; overflow: hidden; flex-shrink: 0; }
.upd-new b { display: block; font-size: 15px; font-weight: 600; color: var(--label); }
.upd-new small { display: block; font-size: 11.5px; color: var(--muted); }
.upd-notes { font-size: 13px; color: var(--text); line-height: 1.45; white-space: pre-wrap; padding: 4px 4px 12px; border-bottom: .5px solid var(--line); margin-bottom: 12px; }
.upd-dev { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 159, 10, .14); color: #ff9f0a; font-size: 12.5px; line-height: 1.4; margin-bottom: 12px; }
.upd-dev svg { flex-shrink: 0; font-size: 16px; margin-top: 1px; }

/* ==================================================================== Wallet (bank app) */
.wstack { position: relative; margin: 4px 0 6px; }
.wslot { position: absolute; left: 0; right: 0; display: block; transition: transform .2s; }
.wslot:hover { transform: translateY(-4px); }
.wcard { position: relative; aspect-ratio: 1.586; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; color: #fff; text-align: left; overflow: hidden; box-shadow: 0 -2px 10px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.14); }
.wcard::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 55%); pointer-events: none; }
.wcard .top { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 1; }
.wcard .top b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wcard .top span { font-size: 11px; opacity: .75; font-weight: 600; text-transform: uppercase; }
.wcard .chip { position: absolute; left: 16px; top: 46%; width: 34px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #e9d18a, #b08d3c 55%, #e3c877); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.wcard .nfc { position: absolute; left: 58px; top: 47%; width: 16px; height: 22px; border: 2.5px solid rgba(255,255,255,.75); border-left: 0; border-radius: 0 12px 12px 0; opacity: .8; }
.wcard .bot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.wcard .bot small { display: block; font-size: 10px; opacity: .7; font-weight: 600; text-transform: uppercase; }
.wcard .bot b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.wcard .bot > span { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.wc-bank { background: linear-gradient(135deg, #1a2a6c 0%, #2f5fd0 55%, #6aa3ff 100%); }
.wc-cash { background: linear-gradient(145deg, #1c1c1e, #000); }
.wc-cash .top b::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #30d158; margin-right: 6px; vertical-align: 1px; }
.wbig { margin: 2px 0 14px; }
.wacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.wacts button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border-radius: 12px; background: var(--window); color: var(--tint); font-size: 11px; font-weight: 500; }
.wacts button svg { font-size: 18px; }
.wtx .row { gap: 10px; }
.tx-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; background: #3a3a3c; color: #fff; }
.tx-ic.in { background: rgba(48,209,88,.22); color: #30d158; }
.wtx .amt { font-size: 13.5px; font-weight: 600; color: var(--label); white-space: nowrap; }
.wtx .amt.in { color: #30d158; }
.wamt { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 26px 0 14px; }
.wamt input, .wamt input:focus { width: 170px; background: none; border: 0; padding: 0; text-align: right; font-size: 54px; font-weight: 600; color: var(--label); }
.wamt input::placeholder { color: rgba(235,235,245,.3); }
.wamt input::-webkit-outer-spin-button, .wamt input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wamt span { font-size: 30px; font-weight: 600; color: var(--muted); }
.wchips { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.wchips button { padding: 6px 11px; border-radius: 14px; background: var(--window); color: var(--tint); font-size: 12px; font-weight: 600; }

/* ==================================================================== Services */
.svc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 21px; flex-shrink: 0; background: var(--c); }
.svc-ic.big { width: 50px; height: 50px; font-size: 26px; background: #fff; color: var(--c); }
.svc-ic.huge { width: 84px; height: 84px; font-size: 44px; }
.svc-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.svc-st i { width: 7px; height: 7px; border-radius: 50%; background: #636366; }
.svc-st.on i { background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,.22); }
.svc-hero { border-radius: 18px; padding: 14px; background: linear-gradient(145deg, #ff453a, #b3261e); color: #fff; margin-top: 2px; box-shadow: 0 12px 26px -14px rgba(255, 59, 48, .8); }
.svc-hero .top { display: flex; gap: 12px; align-items: center; }
.svc-hero b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.svc-hero small { display: block; font-size: 12px; opacity: .85; margin-bottom: 3px; }
.svc-hero .svc-st { color: rgba(255,255,255,.9); }
.svc-hero .svc-st.on i { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.svc-hero .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 14px; }
.svc-hero .btns button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 0; border-radius: 12px; background: #fff; color: #ff3b30; font-size: 13px; font-weight: 700; }
.svc-hero .btns button.ghost { background: rgba(255,255,255,.2); color: #fff; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 16px; background: var(--window); text-align: left; }
.svc-card .svc-ic { margin-bottom: 8px; }
.svc-card b { font-size: 14px; font-weight: 600; color: var(--label); }
.svc-card small { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.svc-head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 16px; }
.svc-head b { font-size: 22px; font-weight: 700; color: var(--label); margin-top: 8px; }
.svc-head small { font-size: 13px; color: var(--muted); }

/* ==================================================================== Home screen polish */
.page { gap: 14px 6px; grid-auto-rows: 68px; }
.wg-cell { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wg-cell .widget { grid-column: auto; grid-row: auto; flex: 1; width: 100%; min-height: 0; border-radius: 20px; }
.wg-lbl { text-align: center; font-size: 10.5px; font-weight: 500; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.wg-weather { padding: 11px 12px; }
.wg-weather .z { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; }
.wg-weather .z i { font-size: 8px; display: grid; }
.wg-weather .tp { font-size: 38px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.wg-weather .ic { margin-top: auto; font-size: 0; }
.wg-weather .ic svg.wxi { width: 18px; height: 18px; }
.wg-weather .d { font-size: 11px; font-weight: 600; }
.wg-weather .hl { font-size: 11px; font-weight: 600; }
.home .dots { display: none; }
.search-pill.dots-mode { gap: 6px; padding: 8px 11px; }
.search-pill i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.search-pill i.on { background: #fff; }
/* edit mode */
@keyframes jig { 0% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } 100% { transform: rotate(-1.8deg); } }
.home.jiggle .app-icon .ic, .home.jiggle .widget { animation: jig .3s linear infinite; }
.home.jiggle .page > :nth-child(odd) .ic, .home.jiggle .dock .app-icon:nth-child(odd) .ic { animation-delay: -.15s; }
.ic-del { position: absolute; top: -5px; left: 4px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; background: rgba(70, 70, 76, .92); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.jiggle-done { position: absolute; top: 44px; right: 14px; z-index: 6; padding: 4px 13px; border-radius: 14px; background: rgba(255,255,255,.28); backdrop-filter: blur(20px); color: #fff; font-size: 12.5px; font-weight: 600; }
.home.jiggle .search-pill { opacity: 0; pointer-events: none; }
/* an app grows out of its icon */
.app { transform-origin: var(--ox, 50%) var(--oy, 50%); animation: app-zoom .38s cubic-bezier(.2, .9, .2, 1); }
@keyframes app-zoom { from { opacity: 0; transform: scale(.12); border-radius: 40px; } 45% { opacity: 1; } to { opacity: 1; transform: none; border-radius: 0; } }

/* ==================================================================== iOS alert */
.alert-wrap { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.4); animation: fade .15s; }
.alert { width: 216px; border-radius: 14px; background: var(--alert-bg); backdrop-filter: blur(30px) saturate(1.6); text-align: center; overflow: hidden; animation: pop .25s cubic-bezier(.3, 1.4, .5, 1); }
.alert b { display: block; font-size: 14px; font-weight: 600; color: var(--label); padding: 16px 16px 3px; }
.alert p { font-size: 11.5px; color: var(--muted); padding: 0 16px 14px; line-height: 1.35; }
.alert-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid rgba(84,84,88,.65); }
.alert-btns button { padding: 10px 4px; color: #0a84ff; font-size: 14px; }
.alert-btns button + button { border-left: .5px solid rgba(84,84,88,.65); }
.alert-btns button.destructive { color: #ff453a; font-weight: 600; }

/* image icons: round the picture itself too — while an icon is pressed (scale + brightness) or wobbling,
   Chromium can drop the parent's rounded clip for a moment and the square corners of the jpg showed */
.ic.img img, .is-ic.img img, .set-ic.img img { border-radius: inherit; }
.ic.img, .is-ic.img, .set-ic.img { isolation: isolate; }

/* ==================================================================== Video calls */
.c-video { background: linear-gradient(160deg, #5be374, #1db83e); }
.quick { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.ft-new { display: flex; gap: 8px; margin: 2px 0 4px; }
.ft-new input { flex: 1; }
.ft-new .ft-go { width: auto; padding: 0 14px; background: #30d158; gap: 6px; }
.ft-row-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(48,209,88,.18); color: #30d158; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.call.video { padding: 0; background: #000; justify-content: flex-start; }
.ft-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ft-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #2c2c2e, #000 75%); color: rgba(235,235,245,.7); font-size: 13px; text-align: center; padding: 0 30px; }
.ft-cover .avatar.big { width: 96px; height: 96px; font-size: 36px; }
.ft-top { position: absolute; top: 44px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); z-index: 2; }
.ft-top b { font-size: 17px; font-weight: 600; }
.ft-top span { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.ft-self { position: absolute; right: 12px; top: 92px; width: 84px; height: 150px; border-radius: 14px; overflow: hidden; background: #1c1c1e; box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); z-index: 2; display: grid; place-items: center; color: rgba(235,235,245,.5); font-size: 22px; }
.ft-self canvas { width: 100%; height: 100%; display: block; }
.ft-bar { position: absolute; left: 14px; right: 14px; bottom: 28px; display: flex; justify-content: space-around; align-items: center; padding: 12px 10px; border-radius: 28px; background: rgba(40,40,46,.55); backdrop-filter: blur(24px) saturate(1.6); z-index: 2; }
.ft-bar button { width: 52px; height: 52px; border-radius: 50%; background: rgba(120,120,128,.4); color: #fff; display: grid; place-items: center; font-size: 22px; }
.ft-bar button.on { background: #fff; color: #000; }
.ft-bar button.end { background: #ff3b30; }
.ft-bar button.end svg { transform: rotate(135deg); }
.ft-remote.off { opacity: 0; }

/* ==================================================================== Lock screen notifications */
.lock-notes { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; padding: 0 12px; margin-bottom: 12px; }
.lock-notes::-webkit-scrollbar { width: 0; }
.lk-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 20px; background: rgba(245, 245, 250, .22); backdrop-filter: blur(24px) saturate(1.6); color: #fff; cursor: pointer; transition: transform .2s, opacity .18s; touch-action: pan-y; position: relative; z-index: 1; }
.lk-card .ic { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; position: relative; overflow: hidden; }
.lk-main { flex: 1; min-width: 0; }
.lk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lk-top b { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lk-top span { font-size: 11px; opacity: .7; white-space: nowrap; flex-shrink: 0; }
.lk-txt { font-size: 12.5px; line-height: 1.3; opacity: .95; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 1px; }
.lk-sub { font-size: 11px; opacity: .65; margin-top: 3px; }
.lk-group { position: relative; margin-bottom: 8px; cursor: pointer; }
.lk-group .lk-l1, .lk-group .lk-l2 { position: absolute; height: 16px; border-radius: 0 0 18px 18px; background: rgba(245, 245, 250, .15); backdrop-filter: blur(20px); }
.lk-group .lk-l1 { left: 10px; right: 10px; bottom: -7px; }
.lk-group .lk-l2 { left: 20px; right: 20px; bottom: -13px; background: rgba(245, 245, 250, .09); }
.lk-group.open { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; cursor: default; }
.lk-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; color: #fff; font-size: 17px; font-weight: 700; }
.lk-head button { padding: 3px 10px; border-radius: 12px; background: rgba(245, 245, 250, .22); color: #fff; font-size: 11px; font-weight: 600; }
.lk-more { align-self: center; padding: 5px 12px; border-radius: 14px; background: rgba(245, 245, 250, .22); backdrop-filter: blur(20px); color: #fff; font-size: 11.5px; font-weight: 600; }

/* ==================================================================== closer to the reference: lock screen, home, battery, switcher */
/* lock screen: big time, date under it, no hint text, round buttons in the corners */
.lock { padding-top: 70px; }
.lock-time { order: 1; font-size: 86px; font-weight: 700; letter-spacing: -3px; line-height: .95; margin: 0; }
.lock-date { order: 2; font-size: 17px; font-weight: 500; margin-top: 4px; }
.lock .lock-hint { visibility: hidden; }
.lock-bottom { padding: 0 26px 30px; }
.lk-btn { width: 44px; height: 44px; font-size: 20px; background: rgba(0, 0, 0, .32); }
/* notifications: light material, dark text, bigger */
.lk-card { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 14px; border-radius: 22px; background: rgba(242, 242, 247, .62); backdrop-filter: blur(28px) saturate(1.8); color: #111; }
.lk-row { display: flex; gap: 11px; align-items: flex-start; }
.lk-card .ic { width: 36px; height: 36px; border-radius: 9px; }
.lk-top b { font-size: 14px; color: #111; }
.lk-top span { font-size: 12px; color: rgba(60, 60, 67, .75); opacity: 1; }
.lk-txt { font-size: 13.5px; color: #1c1c1e; opacity: 1; }
.lk-sub { color: rgba(60, 60, 67, .7); opacity: 1; }
.lk-acts { display: flex; justify-content: center; gap: 8px; margin: 10px -14px -12px; padding: 9px 10px 10px; background: rgba(0, 0, 0, .05); border-top: .5px solid rgba(0, 0, 0, .08); border-radius: 0 0 22px 22px; }
.lk-acts button { padding: 6px 16px; border-radius: 10px; background: rgba(255, 255, 255, .7); color: #111; font-size: 12.5px; font-weight: 600; }
.lk-group .lk-l1, .lk-group .lk-l2 { background: rgba(242, 242, 247, .42); }
.lk-group .lk-l2 { background: rgba(242, 242, 247, .25); }
.lk-head button, .lk-more { background: rgba(242, 242, 247, .5); color: #111; }
/* home: a full grid of 6 rows, page dots in the pill */
.page { gap: 4px 6px; grid-auto-rows: 68px; padding-top: 10px; }
.home .search-pill { bottom: 102px; background: rgba(255, 255, 255, .22); }
.search-pill.dots-mode { padding: 7px 10px; gap: 6px; }
/* battery with the level written in it */
.batt { position: relative; display: inline-grid; place-items: center; width: 24px; height: 12.5px; border-radius: 4px; background: #fff; color: #000; margin-left: 2px; }
.batt b { font-size: 8.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.batt::after { content: ''; position: absolute; right: -3px; top: 4px; width: 1.5px; height: 4.5px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.batt.low { background: #ffd60a; }
.screen.light-status .batt { background: #000; color: #fff; }
.screen.light-status .batt::after { background: rgba(0, 0, 0, .4); }
/* app switcher */
.switcher { position: absolute; inset: 0; z-index: 64; display: flex; flex-direction: column; justify-content: center; background: rgba(0, 0, 0, .35); backdrop-filter: blur(22px) saturate(1.3); animation: fade .2s; }
.sw-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 48px; align-items: flex-end; }
.sw-row::-webkit-scrollbar { height: 0; }
.sw-item { position: relative; flex: 0 0 206px; scroll-snap-align: center; transition: transform .2s, opacity .2s; }
.sw-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 4px; color: #fff; }
.sw-head .ic { width: 26px; height: 26px; border-radius: 7px; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.sw-head b { font-size: 14px; font-weight: 600; }
.sw-x { position: absolute; top: -2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: rgba(120, 120, 128, .55); color: #fff; font-size: 11px; display: grid; place-items: center; }
.sw-card { position: relative; width: 206px; height: 440px; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); cursor: pointer; touch-action: none; }
.sw-shot { position: absolute !important; left: 0; top: 0; width: 302px; height: 644px; transform: scale(.682); transform-origin: top left; animation: none !important; pointer-events: none; }
.sw-all { align-self: center; margin-top: 26px; padding: 9px 24px; border-radius: 20px; background: rgba(120, 120, 128, .45); backdrop-filter: blur(20px); color: #fff; font-size: 14px; font-weight: 500; }
.sw-empty { text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ==================================================================== Light / dark appearance
   Theme variables: dark values on :root; light values inside apps (and sheets/alerts) when the screen has .light.
   Apps that are dark by design get .force-dark and keep the dark values. */
:root {
    --label: #fff; --app-bg: #000; --hover: #2c2c2e; --bar-bg: rgba(22, 22, 24, .88);
    --bubble-them: #26262a; --alert-bg: rgba(44, 44, 46, .94);
}
.screen.light .app:not(.force-dark), .screen.light .sheet-wrap:not(.center) .sh-panel, .screen.light .alert {
    --label: #000; --app-bg: #f2f2f7; --hover: #e5e5ea; --bar-bg: rgba(249, 249, 249, .94);
    --bubble-them: #e9e9eb; --alert-bg: rgba(242, 242, 247, .97);
    --screen: #f2f2f7; --window: #fff; --row: #f2f2f7; --row-hover: #e5e5ea;
    --line: rgba(60, 60, 67, .29); --white: #000; --text: #1c1c1e;
    --muted: rgba(60, 60, 67, .6); --muted2: rgba(60, 60, 67, .3); --fill: rgba(118, 118, 128, .12);
    --tint: #007aff; --accent: #007aff;
}
.screen.light .app:not(.force-dark) { color: #000; }
.screen.light .app:not(.force-dark) .tabs button.on, .screen.light .app:not(.force-dark) .seg button.on { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.screen.light .app:not(.force-dark) .key { background: #e5e5ea; }
.screen.light .app:not(.force-dark) .key:active { background: #bcbcc0; }
.screen.light .app:not(.force-dark) .key.dialbtn { background: #34c759; color: #fff; }
.screen.light .app:not(.force-dark) .key.del { background: none; }
.screen.light .app:not(.force-dark) .composer .pill { border-color: #c6c6c8; background: #fff; }
.screen.light .app:not(.force-dark) .composer .send { background: #c7c7cc; color: #fff; }
.screen.light .app:not(.force-dark) .composer .send.on { background: var(--tint); }
.screen.light .app:not(.force-dark) .bubble.them { color: #000; }
.screen.light .app:not(.force-dark) .rb.grey { background: #e5e5ea; color: #000; }
.screen.light .app:not(.force-dark) .rb::after { border-color: var(--app-bg); }
.screen.light .app:not(.force-dark) .switch:not(.on) { background: rgba(120, 120, 128, .16); }
.screen.light .app:not(.force-dark) .avatar:not(.img) { color: #fff; }
.screen.light .app:not(.force-dark) .cx-pill, .screen.light .app:not(.force-dark) .rbadge { color: #fff; }
.screen.light .app:not(.force-dark) .ft-row-btn { background: rgba(52, 199, 89, .15); }
.screen.light .alert-btns { border-top-color: rgba(60, 60, 67, .29); }
.screen.light .alert-btns button + button { border-left-color: rgba(60, 60, 67, .29); }
/* status bar over a light app: dark text; a call on top keeps it light */
.screen.light-status .status { color: #000; }
.screen.light-status.call-on .status, .screen.light-status.call-on .status .icons { color: #fff; }
.screen.light-status.call-on .batt { background: #fff; color: #000; }
/* Settings > Display: the two appearance pictures */
.appear { display: flex; justify-content: center; gap: 44px; padding: 14px 12px 12px; }
.appear .ap { cursor: pointer; }
.appear .mock.light { background: linear-gradient(180deg, #fff 30%, #f2f2f7); border-color: #d1d1d6; }
.appear .ap .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted2); display: grid; place-items: center; font-size: 14px; color: transparent; }
.appear .ap.on .tick { background: var(--tint); border-color: var(--tint); color: #fff; }
/* light mode: plain lists sit on white (iOS), grouped screens on grey; the home bar turns dark over light apps */
.screen.light .app:not(.force-dark):is(.contacts, .messages, .phone, .video, .appstore, .crypto, .clock, .gallery, .mail, .birdy, .instapic, .pages, .market, .spark, .music).view-main,
.screen.light .app.messages.view-thread, .screen.light .app.messages.view-new, .screen.light .app.mail:not(.force-dark) { --app-bg: #fff; }
.screen.light-status:not(.call-on) .homebar { background: #000; }
.list.appear { flex-direction: row; }

/* Spotify login: waiting, error and the redirect URI in use */
.sp-wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
.sp-wait .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(30, 215, 96, .3); border-top-color: #1ed760; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 69, 58, .14); color: #ff453a; font-size: 12.5px; line-height: 1.4; text-align: center; }
.sp-uri { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--window); display: flex; flex-direction: column; gap: 3px; }
.sp-uri b { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.sp-uri span { font-size: 11px; color: var(--label, #fff); word-break: break-all; user-select: text; font-family: ui-monospace, Consolas, monospace; }
.sp-uri small { font-size: 10.5px; color: var(--muted); line-height: 1.35; }

/* ==================================================================== Camera (iOS layout) */
.app.camera { padding-top: 0; background: #000; }
.cam { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; padding-top: 46px; }
.cam-top { height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.cam-ic { width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.cam-ic.on { color: #ffd60a; }
.cam-pill { padding: 3px 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 700; color: #ffd60a; }
.cam-view { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #111; overflow: hidden; }
.cam-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-grid { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.22) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.22) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
              linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.22) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.22) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.cam-flash { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 2; }
.cam-flash.go { animation: shut .28s ease-out; }
@keyframes shut { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.cam-modes { display: flex; justify-content: center; gap: 22px; padding: 12px 0 6px; }
.cam-modes button { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.cam-modes button.on { color: #ffd60a; }
.cam-bottom { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 24px; }
.cam-thumb { width: 44px; height: 44px; border-radius: 8px; background: #222 center / cover no-repeat; border: 1.5px solid rgba(255, 255, 255, .85); transition: opacity .2s; }
.cam-thumb.saving { opacity: .55; }
.cam-shutter { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.cam-shutter i { width: 52px; height: 52px; border-radius: 50%; background: #fff; transition: transform .1s; }
.cam-shutter:active i { transform: scale(.86); }
.cam-flip { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 20px; color: #fff; }

/* ==================================================================== Performance
   FiveM's browser recomputes a live blur (backdrop-filter) on every change, so things that are always on screen
   use a slightly more solid colour instead. Blur stays only on overlays shown one at a time (Control Center,
   search, sheets, alerts, switcher). Each part of the phone is its own layer, so a change only repaints that part. */
.screen.in-app .wallpaper { filter: none; }
.wallpaper { transition: none; }
.tabbar, .toolbar, .bar.thread-bar, .dock, .search-pill, .lk-card, .lk-group .lk-l1, .lk-group .lk-l2, .lk-more, .lk-head button, .lk-btn,
.wx-card, .wx-tile, .st-story .foot, .st-get.light, .ft-bar, .gal-seg .seg, .jiggle-done, .banner, .peek-card, .lock-notes .peek-card,
.hud-vol, .hud-top, .sw-all, .cc-tile, .cc-top button, .map-btns, .island, .lk-group, .widget {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root { --bar-bg: rgba(22, 22, 24, .97); }
.screen.light .app:not(.force-dark) { --bar-bg: rgba(249, 249, 249, .98); }
.dock { background: rgba(255, 255, 255, .22); }
.search-pill { background: rgba(255, 255, 255, .24); }
.lk-card { background: rgba(242, 242, 247, .86); }
.lk-group .lk-l1 { background: rgba(242, 242, 247, .55); }
.lk-group .lk-l2 { background: rgba(242, 242, 247, .32); }
.lk-btn { background: rgba(20, 20, 24, .55); }
.banner, .peek-card { background: rgba(38, 38, 42, .96); }
.wx-card, .wx-tile { background: rgba(0, 0, 0, .16); }
.st-story .foot { background: rgba(28, 28, 32, .62); }
.ft-bar { background: rgba(28, 28, 32, .78); }
.hud-vol, .hud-top { background: rgba(40, 40, 46, .88); }
.screen { isolation: isolate; }
.app, .home, .lock, .call { contain: layout paint style; }

/* ==================================================================== website demo (?demo): phone centred and scaled to the page */
body.demo { overflow: hidden; }
body.demo #phone { position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%) scale(var(--demo-scale, 1)); transform-origin: center; animation: none; }
body.demo .lock .lock-hint { visibility: visible; font-size: 12px; opacity: .8; }
body.demo .peek { display: none; }
