/* iOS replica (iPhone + iPad). Original styling approximating iOS 18/26 system apps. */
.dev-iphone .screen, .dev-ipad .screen { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #000; font-size: 17px; }
.dev-iphone .ic, .dev-ipad .ic { stroke-width: 2; }

.ios-s { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f2f2f7; padding-top: var(--sb); }
.ios-s .nav { height: 44px; flex: none; display: flex; align-items: center; padding: 0 10px; position: relative; }
.ios-s .nl, .ios-s .nr { display: flex; align-items: center; gap: 16px; min-width: 64px; z-index: 1; }
.ios-s .nr { justify-content: flex-end; margin-left: auto; }
.ios-s .nt { position: absolute; left: 70px; right: 70px; text-align: center; font-weight: 600; font-size: 17px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbtn { color: #007aff; display: inline-flex; align-items: center; cursor: pointer; font-size: 17px; white-space: nowrap; }
.nbtn svg { width: 22px; height: 22px; }
.nbtn.back { margin-left: -4px; } .nbtn.back svg { width: 26px; height: 26px; stroke-width: 2.6; }
.nbtn.bold { font-weight: 600; } .nbtn.dis { color: #007aff; opacity: .45; } .nbtn.red { color: #ff3b30; }
.ios-s .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 16px; scrollbar-width: none; }
.ios-s .scroll::-webkit-scrollbar { display: none; }
.ios-s .pad { height: 40px; }
.ios-s h1.lt { font-size: 34px; font-weight: 700; margin: 2px 0 10px; letter-spacing: .3px; }
.grp { margin: 0 0 24px; }
.gh { font-size: 13px; color: #6d6d72; text-transform: uppercase; margin: 0 16px 7px; letter-spacing: .02em; }
.gf { font-size: 13px; color: #6d6d72; margin: 7px 16px 0; line-height: 1.35; }
.gl { background: #fff; border-radius: 12px; overflow: hidden; }
.row { display: flex; align-items: center; min-height: 44px; padding: 0 16px; position: relative; cursor: pointer; gap: 12px; }
.row.hasi { padding-left: 12px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: #c6c6c8; }
.row.hasi + .row.hasi::before { left: 54px; }
.row:active { background: #e5e5ea; }
.ri { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.ri svg { width: 19px; height: 19px; }
.ri.plain { background: none !important; }
.ri.plain svg { width: 24px; height: 24px; }
.rav { width: 56px; height: 56px; border-radius: 50%; background: #c7c7cc; color: #fff; font-size: 22px; display: grid; place-items: center; flex: none; margin: 8px 0; }
.rm { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px 0; }
.rl { line-height: 1.25; } .rs { font-size: 13px; color: #8e8e93; line-height: 1.3; margin-top: 1px; }
.rv { color: #8e8e93; margin-left: auto; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.rc svg { width: 14px; height: 14px; color: #c4c4c7; stroke-width: 2.8; }
.rtr { display: flex; gap: 8px; color: #8e8e93; margin-left: auto; } .rtr svg { width: 16px; height: 16px; }
.rinfo { color: #007aff; margin-left: 10px; } .rinfo svg { width: 22px; height: 22px; }
.row.red .rl { color: #ff3b30; } .row.blue .rl { color: #007aff; } .row.center { justify-content: center; } .row.center .rm { flex: none; }
.row.dim { opacity: .5; }
.sw { width: 51px; height: 31px; border-radius: 16px; background: #e9e9ea; position: relative; flex: none; transition: background .2s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.row.on .sw { background: #34c759; } .row.on .sw i { transform: translateX(20px); }
.ck { color: #007aff; width: 22px; height: 22px; flex: none; visibility: hidden; } .ck svg { width: 22px; height: 22px; stroke-width: 2.6; }
.row.on .ck, .ck.on { visibility: visible; }
.row.field { min-height: 44px; }
.fl { width: 112px; flex: none; }
.ios-s .fi, .spot .fi { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; flex: 1; min-width: 0; padding: 10px 0; }
.ios-s .fi::placeholder, .spot .fi::placeholder { color: #c7c7cc; }
.srch { display: flex; align-items: center; gap: 6px; background: rgba(118, 118, 128, .12); border-radius: 10px; height: 36px; padding: 0 8px; margin: 0 0 16px; color: #8e8e93; }
.srch svg { width: 17px; height: 17px; } .srch .fi { padding: 0 !important; }
.seg { display: flex; background: rgba(118, 118, 128, .12); border-radius: 9px; padding: 2px; margin: 0 0 18px; }
.seg div { flex: 1; text-align: center; padding: 6px 0; font-size: 14px; border-radius: 7px; cursor: pointer; }
.seg div.on { background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); font-weight: 600; }
.gl.ta { padding: 12px 16px; margin-bottom: 18px; }
.gl.ta textarea { width: 100%; min-height: 120px; border: 0; outline: 0; background: transparent; font: inherit; resize: none; }
.sigl { color: #8e8e93; margin-top: 6px; }
.txt { color: #6d6d72; font-size: 15px; line-height: 1.4; margin: 6px 4px 20px; } .txt.center { text-align: center; } .txt .big { font-size: 22px; font-weight: 600; color: #000; margin-bottom: 6px; }
.sbar { height: 20px; border-radius: 5px; background: #e9e9ea; display: flex; overflow: hidden; margin: 6px 0 8px; } .sbar i { display: block; height: 100%; }

/* toolbar + tab bar */
.toolbar, .ios-s .tabbar { flex: none; background: rgba(249, 249, 249, .96); border-top: .5px solid #c6c6c8; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 30px; min-height: 84px; }
.tbi { color: #007aff; cursor: pointer; display: grid; place-items: center; width: 44px; height: 34px; } .tbi svg { width: 26px; height: 26px; } .tbi.r2 { margin-left: auto; margin-right: 18px; }
.tbi:not(:has(svg)) { width: auto; font-size: 17px; }
.tbtxt { font-size: 11px; color: #000; text-align: center; flex: 1; }
.ios-s .tabbar { justify-content: space-around; padding: 6px 4px 28px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #8e8e93; cursor: pointer; flex: 1; } .tab svg { width: 26px; height: 26px; } .tab.on { color: #007aff; }

/* layers */
.layer.dialog { background: rgba(0, 0, 0, .4); display: grid; place-items: center; }
.layer.actions { background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; padding: 8px 8px 30px; }
.layer.sheet { background: rgba(0, 0, 0, .3); }
.layer.sheet > .sheetbox { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--sb) - 4px); border-radius: 12px 12px 0 0; overflow: hidden; background: #f2f2f7; box-shadow: 0 -2px 20px rgba(0, 0, 0, .25); }
.layer.sheet .ios-s { padding-top: 6px; }
.dev-ipad .layer.sheet > .sheetbox { left: 50%; width: 560px; margin-left: -280px; top: 90px; bottom: 90px; border-radius: 14px; }
.alert { width: 270px; background: rgba(248, 248, 248, .96); border-radius: 14px; text-align: center; overflow: hidden; }
.atx { padding: 18px 16px 16px; } .ait { font-weight: 600; font-size: 17px; line-height: 1.25; } .aim { font-size: 13px; margin-top: 4px; line-height: 1.3; }
.abs { display: flex; flex-direction: column; } .abs.h { flex-direction: row; }
.ibtn { padding: 12px; color: #007aff; border-top: .5px solid #c6c6c8; cursor: pointer; font-size: 17px; flex: 1; text-align: center; }
.abs.h .ibtn + .ibtn { border-left: .5px solid #c6c6c8; }
.ibtn.bold { font-weight: 600; } .ibtn.red { color: #ff3b30; }
.asx { width: 100%; } .asg { background: rgba(248, 248, 248, .96); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.asm { font-size: 13px; color: #8e8e93; text-align: center; padding: 14px 16px; line-height: 1.35; }
.asg .ibtn { padding: 16px; font-size: 20px; }

/* home screen */
.ios-home { position: absolute; inset: 0; background: linear-gradient(165deg, #4d6fd1 0%, #8f68d2 42%, #f0a060 100%); padding: calc(var(--sb) + 8px) 18px 0; }
.wid { margin-top: 4px; } .widget { background: rgba(255, 255, 255, .28); backdrop-filter: blur(16px); border-radius: 22px; color: #fff; padding: 14px 16px; display: inline-block; min-width: 46%; cursor: pointer; } .widget b { display: block; font-size: 15px; } .widget small { font-size: 28px; font-weight: 300; }
.hgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; margin-top: 22px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.aicon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.aicon svg { width: 34px; height: 34px; stroke-width: 1.7; }
.alab { color: #fff; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.calg { display: flex; flex-direction: column; align-items: center; line-height: 1; } .calg i { font-style: normal; font-size: 9.5px; color: #e5322d; font-weight: 700; } .calg b { font-size: 31px; color: #111; font-weight: 300; margin-top: 1px; }
.hdots { position: absolute; left: 0; right: 0; bottom: 172px; display: flex; justify-content: center; gap: 8px; } .hdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); } .hdots i.on { background: #fff; }
.hsearch { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); background: rgba(255, 255, 255, .3); backdrop-filter: blur(12px); color: #fff; font-size: 13px; padding: 6px 22px; border-radius: 20px; display: flex; align-items: center; gap: 6px; cursor: pointer; } .hsearch svg { width: 13px; height: 13px; }
.dock { position: absolute; bottom: 22px; left: 14px; right: 14px; background: rgba(255, 255, 255, .28); backdrop-filter: blur(22px); border-radius: 32px; display: flex; justify-content: space-around; padding: 12px 8px; }
.dev-ipad .hgrid { grid-template-columns: repeat(6, 1fr); gap: 40px 14px; padding: 0 40px; } .dev-ipad .aicon { width: 80px; height: 80px; border-radius: 18px; } .dev-ipad .aicon svg { width: 44px; height: 44px; } .dev-ipad .alab { font-size: 13px; }
.dev-ipad .dock { left: 90px; right: 90px; } .dev-ipad .hdots { bottom: 150px; } .dev-ipad .hsearch { bottom: 120px; }
.spot .spotbar { display: flex; align-items: center; gap: 10px; padding: 0 12px 8px; flex: none; } .spot .srch { flex: 1; margin: 0; } .spot .gh.pad { margin: 10px 16px; height: auto; }
.spot .hgrid.sug .aicon { box-shadow: none; } .spot .alab { color: #000; text-shadow: none; }
.cc-wrap { position: absolute; inset: 0; background: rgba(40, 40, 50, .55); backdrop-filter: blur(18px); padding: calc(var(--sb) + 10px) 16px 0; }
.cc-wrap .scrim { z-index: 0; } .cc { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.ccg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: rgba(255, 255, 255, .18); border-radius: 26px; padding: 16px; justify-items: center; }
.ccb { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .28); color: #fff; display: grid; place-items: center; cursor: pointer; } .ccb svg { width: 28px; height: 28px; } .ccb.on { background: #007aff; } .ccb.on[data-label="Airplane Mode"] { background: #ff9f0a; } .ccb.on[data-label="Flashlight"] { background: #fff; color: #333; }
.ccrow { display: grid; grid-template-columns: 70px 70px 1fr; gap: 12px; } .ccw { background: rgba(255, 255, 255, .18); border-radius: 22px; height: 150px; padding: 10px; color: #fff; font-size: 11px; display: flex; flex-direction: column; } .ccw .sl { flex: 1; margin-top: 8px; border-radius: 14px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; } .ccw .sl b { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; }
.ccg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ccg2 .ccb { width: 100%; height: 68px; border-radius: 22px; }
.scrim { position: absolute; inset: 0; }

/* mail / calendar / contacts / store */
.mlist { background: #fff; margin: 0 -16px; }
.mrow { display: flex; padding: 10px 16px 10px 30px; position: relative; cursor: pointer; } .mrow + .mrow::before { content: ""; position: absolute; top: 0; left: 30px; right: 0; height: .5px; background: #c6c6c8; }
.mrow .dot { position: absolute; left: 10px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: #007aff; }
.mm { flex: 1; min-width: 0; } .mfr { display: flex; justify-content: space-between; font-weight: 600; } .mfr em { font-style: normal; font-weight: 400; color: #8e8e93; font-size: 15px; }
.msj { display: block; font-size: 15px; } .mpv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: #8e8e93; }
.mbody { background: #fff; margin: 0 -16px; padding: 14px 16px 30px; min-height: 420px; } .mbody h2 { font-size: 20px; margin: 0 0 10px; } .mbody p { margin: 10px 0; font-size: 16px; }
.mfrom { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: .5px solid #c6c6c8; } .mfrom div { flex: 1; } .mfrom small { display: block; color: #8e8e93; font-size: 13px; } .mfrom em { font-style: normal; color: #8e8e93; font-size: 13px; }
.mav { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: none; } .mav.lg { width: 92px; height: 92px; font-size: 32px; }
.chead { text-align: center; padding: 10px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; } .chead h2 { margin: 6px 0 0; font-size: 26px; font-weight: 500; } .chead small { color: #8e8e93; }
.mgrid { margin: 0 -4px 14px; } .mgrid .dh, .mgrid .dd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; } .mgrid .dh { font-size: 12px; color: #8e8e93; padding-bottom: 6px; border-bottom: .5px solid #c6c6c8; }
.mgrid .dd { row-gap: 4px; margin-top: 6px; } .mgrid .dd span { height: 46px; display: flex; flex-direction: column; align-items: center; font-size: 17px; } .mgrid .dd b { font-weight: 400; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; } .mgrid .dd .today b { background: #ff3b30; color: #fff; } .mgrid .dd i { width: 5px; height: 5px; border-radius: 50%; background: #8e8e93; margin-top: 2px; }
.ios-s.as .asapp { display: flex; gap: 14px; padding: 10px 0 14px; } .asbig .aicon { width: 92px; height: 92px; border-radius: 21px; } .asbig .aicon svg { width: 52px; height: 52px; }
.asinf { display: flex; flex-direction: column; justify-content: center; } .asinf b { font-size: 20px; } .asinf small { color: #8e8e93; }
.getbtn { background: #007aff; color: #fff; font-weight: 700; padding: 6px 24px; border-radius: 16px; margin-top: 10px; align-self: flex-start; cursor: pointer; }
.asstats { display: flex; justify-content: space-around; border-top: .5px solid #c6c6c8; border-bottom: .5px solid #c6c6c8; padding: 10px 0; text-align: center; } .asstats small { display: block; font-size: 11px; color: #8e8e93; } .asstats b { font-size: 17px; }
.asdate { font-size: 13px; color: #8e8e93; font-weight: 600; margin-bottom: 8px; } .featcard { height: 300px; border-radius: 20px; background: linear-gradient(160deg, #ffb36b, #ff5e7e); color: #fff; padding: 20px; cursor: pointer; } .featcard small { display: block; font-weight: 700; opacity: .85; } .featcard b { font-size: 30px; line-height: 1.1; display: block; margin-top: 6px; }

/* iPad split view (Settings) */
.split { position: absolute; inset: 0; display: flex; padding-top: var(--sb); background: #f2f2f7; }
.split .side { width: 300px; flex: none; border-right: .5px solid #c6c6c8; background: #f2f2f7; position: relative; overflow: hidden; }
.split .detail { flex: 1; position: relative; min-width: 0; background: #f2f2f7; }
.split .ios-s { padding-top: 0; }
.split .side .ios-s, .split .detail .ios-s { position: absolute; inset: 0; }
.split .side .row.sel { background: #007aff; } .split .side .row.sel .rl, .split .side .row.sel .rv { color: #fff; } .split .side .row.sel::before, .split .side .row.sel + .row::before { opacity: 0; }
.split .detail .nbtn.back.nobk { display: none; }
.split .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #c7c7cc; font-size: 20px; }
.split .side .ios-s .nav { display: none; }

/* ===== iOS 15-17 handsets: notch iPhone (13/14 style) and Home-button iPad (9th gen style) ===== */
.ios-legacy.dev-iphone .phone { border-radius: 54px; background: #1b2232; box-shadow: 0 0 0 3px #c7ccd8, 0 0 0 5px #8a90a0, 0 30px 60px rgba(15, 23, 42, .35); }
.ios-legacy.dev-iphone .screen { border-radius: 44px; --sb: 47px; }
.ios-legacy.dev-iphone .island { display: none; }
.ios-legacy.dev-iphone .notch { display: block; position: absolute; top: 0; left: 50%; width: 160px; height: 31px; margin-left: -80px; background: #000; border-radius: 0 0 20px 20px; z-index: 61; }
.ios-legacy.dev-iphone .statusbar { padding: 0 34px 0 30px; font-size: 15px; }
.ios-legacy.dev-ipad .phone { border-radius: 34px; background: #14161b; box-shadow: 0 0 0 4px #c9ccd3, 0 0 0 6px #9a9ea9, 0 30px 60px rgba(15, 23, 42, .35); }
.ios-legacy.dev-ipad .phone::before { content: ""; position: absolute; top: 28px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #2c313b; }
.ios-legacy.dev-ipad .screen { border-radius: 3px; --sb: 22px; }
.ios-legacy.dev-ipad .statusbar { font-size: 12px; padding: 0 22px; }
