:root {
  --ink: #16161c;
  --muted: #707078;
  --paper: #f7f7f8;
  --line: rgba(24, 24, 30, 0.1);
  --accent: #ef6b4d;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif; }
button { font: inherit; }
body { min-height: 100svh; overflow-x: hidden; }

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 44px;
}

.phone-shell { justify-self: center; filter: drop-shadow(0 38px 45px rgba(52, 44, 38, .28)); }
.phone { width: min(382px, calc(100vw - 28px)); aspect-ratio: 382 / 790; background: #141416; border-radius: 58px; padding: 9px; position: relative; box-shadow: inset 0 0 0 1px #58585d, inset 0 0 0 3px #202024, 0 2px 1px #777; }
.screen { width: 100%; height: 100%; border-radius: 49px; overflow: hidden; position: relative; background: #f6f6f7; isolation: isolate; }
.wallpaper { position: absolute; inset: 0; background-color: #edf0f3; background-image: url("./pic/home.jpg"); background-position: center; background-size: 100% auto; background-repeat: no-repeat; }
.wallpaper::after { content: none; }
.status-bar { height: 54px; padding: 11px 21px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; position: absolute; z-index: 90; inset: 0 0 auto; color: white; font-size: 14px; font-weight: 650; letter-spacing: -.2px; transition: color .25s; pointer-events: none; }
.status-bar.dark { color: #111; }
#status-time { padding: 5px 0 0 5px; font-variant-numeric: tabular-nums; }
.island { width: 104px; height: 31px; border: 0; border-radius: 20px; background: #050506; cursor: pointer; pointer-events: auto; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.04); }
.status-icons { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 6px; }
.signal { width: 17px; height: 11px; display: flex; align-items: flex-end; gap: 1.5px; }
.signal i { display: block; width: 3px; border-radius: 2px; background: currentColor; }
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 11px; }
.wifi { width: 16px; height: 12px; position: relative; overflow: hidden; }
.wifi::before, .wifi::after, .wifi i { content: ""; position: absolute; left: 50%; border: 2px solid currentColor; border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateX(-50%); }
.wifi::before { width: 17px; height: 17px; top: 1px; }
.wifi::after { width: 11px; height: 11px; top: 5px; }
.wifi i { width: 3px; height: 3px; top: 9px; background: currentColor; border: 0; }
.battery { width: 23px; height: 11px; border: 1.3px solid currentColor; border-radius: 3px; padding: 1.5px; position: relative; opacity: .95; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery i { display: block; width: 74%; height: 100%; background: currentColor; border-radius: 1px; }

.screens { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; }
.edge-swiping { will-change: translate; }
.view { position: absolute; inset: 0; overflow: hidden; animation: appIn .42s var(--ease) both; }
.view.closing { animation: appOut .24s ease both; }
.lock-view { color: #792719; background: #e9c4a6; animation: appIn .28s var(--ease) both; touch-action: none; }
.lock-photo { position: absolute; inset: -2px; background: #e9c4a6 url("./pic/pic1.jpg") center / cover no-repeat; }
.lock-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,244,227,.08), transparent 26%, transparent 68%, rgba(75,25,14,.12)); }
.lock-clock { position: absolute; z-index: 2; top: 76px; left: 0; right: 0; text-align: center; text-shadow: 0 1px 13px rgba(255,248,230,.8); }
.lock-date { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.1px; }
.lock-time { display: block; margin-top: 0; font-size: 86px; line-height: .96; font-weight: 510; letter-spacing: -5px; font-variant-numeric: tabular-nums; }
.lock-player { position: absolute; z-index: 4; top: 235px; left: 16px; right: 16px; height: 224px; padding: 16px 16px 12px; color: white; background: rgba(45,35,28,.72); -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); border-radius: 27px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2), 0 9px 30px rgba(66,30,18,.18); }
.player-heading { display: grid; grid-template-columns: 58px minmax(0,1fr) 35px; align-items: center; gap: 12px; }
.player-heading img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 9px rgba(0,0,0,.25); }
.player-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 22px; font-weight: 650; letter-spacing: -.2px; }
.player-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.68); font-size: 12px; line-height: 17px; font-weight: 500; }
.player-levels { height: 26px; display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.player-levels i { width: 3px; border-radius: 3px; background: rgba(255,255,255,.85); animation: playerLevel .8s ease-in-out infinite alternate; }
.player-levels i:nth-child(1) { height: 10px; }
.player-levels i:nth-child(2) { height: 21px; animation-delay: -.45s; }
.player-levels i:nth-child(3) { height: 15px; animation-delay: -.2s; }
.player-levels i:nth-child(4) { height: 23px; animation-delay: -.6s; }
.player-levels.paused i { animation-play-state: paused; }
.player-progress { margin-top: 16px; }
.progress-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,.23); overflow: hidden; }
.progress-track i { display: block; width: 3.55%; height: 100%; border-radius: inherit; background: rgba(255,255,255,.94); }
.progress-times { display: flex; justify-content: space-between; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 11px; font-variant-numeric: tabular-nums; }
.player-controls { height: 69px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; }
.player-controls button { width: 46px; height: 46px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: white; display: grid; place-items: center; position: relative; font-size: 27px; line-height: 1; font-weight: 650; cursor: pointer; }
.player-controls button:active { background: rgba(255,255,255,.14); transform: scale(.92); }
.player-controls button small { position: absolute; inset: 17px 0 auto; font-size: 9px; font-weight: 750; }
.player-controls .player-toggle { width: 54px; height: 54px; background: white; color: #2c2723; font-size: 25px; letter-spacing: -5px; padding-right: 5px; }
.lock-missed-call { position: absolute; z-index: 4; top: 472px; left: 16px; right: 16px; min-height: 82px; padding: 11px 13px 12px; border: 0; border-radius: 20px; color: #1b1b1d; background: rgba(248,248,250,.82); -webkit-backdrop-filter: blur(26px) saturate(145%); backdrop-filter: blur(26px) saturate(145%); box-shadow: 0 8px 24px rgba(61,34,24,.14), inset 0 0 0 .5px rgba(255,255,255,.78); display: flex; flex-direction: column; text-align: left; cursor: pointer; }
.lock-missed-call:active { background: rgba(255,255,255,.92); transform: scale(.985); }
.lock-notification-heading { height: 20px; display: flex; align-items: center; gap: 6px; color: #6d6d72; font-size: 11px; }
.lock-notification-heading img { width: 18px; height: 18px; border-radius: 5px; }
.lock-notification-heading strong { font-weight: 550; }
.lock-notification-heading time { margin-left: auto; }
.lock-notification-name { margin-top: 5px; font-size: 14px; line-height: 17px; font-weight: 650; }
.lock-notification-detail { margin-top: 1px; color: #54545a; font-size: 12px; line-height: 16px; }
.lock-actions { position: absolute; z-index: 3; left: 31px; right: 31px; bottom: 43px; display: flex; justify-content: space-between; }
.lock-tool { width: 48px; height: 48px; border: 0; border-radius: 50%; color: #542317; background: rgba(255,240,218,.58); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 2px 14px rgba(89,36,25,.13); display: grid; place-items: center; cursor: pointer; }
.lock-tool:active { transform: scale(.91); background: rgba(255,247,233,.78); }
.flashlight-tool i { width: 13px; height: 24px; border-radius: 3px 3px 5px 5px; background: currentColor; position: relative; }
.flashlight-tool i::before { content: ""; position: absolute; left: -3px; top: -5px; width: 19px; height: 8px; border-radius: 3px; background: currentColor; }
.camera-tool i { width: 25px; height: 18px; border-radius: 5px; background: currentColor; position: relative; }
.camera-tool i::before { content: ""; position: absolute; width: 9px; height: 9px; left: 8px; top: 4px; border-radius: 50%; background: rgba(255,240,218,.7); box-shadow: inset 0 0 0 2px currentColor; }
.camera-tool i::after { content: ""; position: absolute; left: 7px; top: -4px; width: 11px; height: 6px; border-radius: 3px 3px 0 0; background: currentColor; }
.unlock-hint { position: absolute; z-index: 4; bottom: 15px; left: 50%; transform: translateX(-50%); width: 180px; padding: 1px 8px; border: 0; background: transparent; color: #68271c; text-shadow: 0 1px 9px rgba(255,245,225,.92); cursor: pointer; animation: unlockPulse 2.2s ease-in-out infinite; }
.unlock-hint span { font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: .06em; }

.passcode-view { color: white; }
.passcode-view .lock-photo { inset: -24px; filter: blur(18px) brightness(.53) saturate(.85); transform: scale(1.08); }
.passcode-overlay { position: absolute; inset: 0; background: rgba(63,21,14,.23); backdrop-filter: blur(1px); }
.passcode-panel { position: absolute; z-index: 3; inset: 78px 24px 36px; display: flex; flex-direction: column; align-items: center; }
.passcode-title { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.passcode-dots { height: 32px; display: flex; align-items: center; gap: 17px; margin: 2px 0 24px; }
.passcode-dots i { width: 12px; height: 12px; border: 1.6px solid rgba(255,255,255,.92); border-radius: 50%; transition: background .12s, transform .12s; }
.passcode-dots i.filled { background: white; transform: scale(1.04); }
.keypad { width: 276px; max-width: 100%; margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px 20px; align-items: center; justify-items: center; }
.number-key { width: 69px; height: 69px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: white; backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-shadow: 0 1px 5px rgba(0,0,0,.22); transition: transform .1s, background .1s; }
.number-key:active { transform: scale(.91); background: rgba(255,255,255,.44); }
.number-key strong { font-size: 29px; line-height: 29px; font-weight: 430; }
.number-key small { min-height: 11px; font-size: 9px; line-height: 11px; font-weight: 700; letter-spacing: .18em; padding-left: .18em; }
.keypad-action { width: 70px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: white; font-size: 14px; font-weight: 580; text-shadow: 0 1px 7px rgba(0,0,0,.28); cursor: pointer; }
.passcode-panel.wrong { animation: wrongPasscode .42s ease; }
.passcode-view.unlocking { animation: unlockScreen .42s var(--ease) forwards; }
.home-view { color: #111; padding: 67px 15px 14px; display: flex; flex-direction: column; }
.weather-block { flex: 0 0 auto; }
.weather-widget { height: 124px; padding: 12px 14px 10px; border-radius: 25px; display: grid; grid-template-columns: .95fr 1.42fr; gap: 12px; color: white; background: linear-gradient(140deg, rgba(25,28,58,.96), rgba(27,34,72,.9)); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16), 0 7px 22px rgba(22,26,55,.16); }
.weather-main { display: flex; flex-direction: column; }
.weather-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.weather-main strong { font-size: 45px; line-height: 46px; font-weight: 310; letter-spacing: -3px; }
.weather-main small { margin-top: auto; max-width: 115px; font-size: 10px; line-height: 13px; color: rgba(255,255,255,.76); }
.weather-days { display: grid; align-content: center; gap: 4px; }
.weather-days > span { display: grid; grid-template-columns: 30px 15px 1fr; align-items: center; gap: 5px; font-size: 9.5px; }
.weather-days b { font-weight: 580; }
.weather-days em { font-style: normal; text-align: right; color: rgba(255,255,255,.82); }
.weather-days i { width: 14px; height: 14px; position: relative; display: block; }
.weather-days .sunny { border-radius: 50%; background: #ffd43b; box-shadow: 0 0 8px rgba(255,212,59,.5); transform: scale(.64); }
.weather-days .night::before { content: ""; position: absolute; width: 11px; height: 11px; left: 1px; top: 0; border-radius: 50%; background: #f4f1d8; }
.weather-days .night::after { content: ""; position: absolute; width: 9px; height: 9px; left: 5px; top: -1px; border-radius: 50%; background: #222746; }
.weather-days .cloudy::before { content: ""; position: absolute; width: 14px; height: 7px; left: 0; bottom: 2px; border-radius: 8px; background: #f3f5fa; }
.weather-days .cloudy::after { content: ""; position: absolute; width: 9px; height: 9px; left: 3px; top: 2px; border-radius: 50%; background: #f3f5fa; }
.widget-caption { display: block; height: 17px; padding-top: 3px; text-align: center; color: #111; font-size: 10px; font-weight: 500; text-shadow: 0 1px 2px rgba(255,255,255,.88); }
.home-layout { flex: 0 0 auto; height: 314px; margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, 1fr); grid-template-areas: "date date notes settings" "date date honor photos" "qqmusic safari month month" "clock weather month month"; column-gap: 9px; row-gap: 8px; }
.calendar-widget { padding: 14px 14px; border-radius: 27px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #111; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.66), 0 7px 22px rgba(62,45,33,.1); }
.date-widget { grid-area: date; }
.calendar-widget span { color: #f3433c; font-size: 12px; line-height: 16px; font-weight: 700; }
.calendar-widget strong { display: block; margin-top: 1px; font-size: 54px; line-height: 58px; font-weight: 350; letter-spacing: -3px; }
.calendar-widget p { margin: 38px 0 0; color: #8f8f94; font-size: 11px; line-height: 16px; white-space: nowrap; }
.home-item { min-width: 0; display: grid; place-items: start center; }
.home-notes { grid-area: notes; }
.home-settings { grid-area: settings; }
.home-honor { grid-area: honor; }
.home-photos { grid-area: photos; }
.home-qqmusic { grid-area: qqmusic; }
.home-safari { grid-area: safari; }
.home-clock { grid-area: clock; }
.home-weather { grid-area: weather; }
.home-layout .app-button { gap: 3px; font-size: 10.5px; line-height: 12px; }
.home-layout .app-icon { width: 54px; height: 54px; border-radius: 12px; }
.home-layout .app-button > span:last-child { width: 74px; }
.month-widget { grid-area: month; padding: 13px 12px 11px; border-radius: 27px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #111; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.66), 0 7px 22px rgba(62,45,33,.1); }
.month-widget > strong { display: block; margin-bottom: 7px; color: #f3433c; font-size: 12px; line-height: 15px; }
.month-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.month-weekdays { margin-bottom: 4px; color: #79797f; font-size: 7px; line-height: 10px; }
.month-days { row-gap: 3px; align-items: center; font-size: 8px; line-height: 12px; font-variant-numeric: tabular-nums; }
.month-days i, .month-days b { height: 12px; display: grid; place-items: center; font-style: normal; font-weight: 550; }
.month-days .today { border-radius: 50%; background: #ff3b30; color: white; }
.app-button { min-width: 0; padding: 0; border: 0; background: transparent; color: #111; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; line-height: 15px; font-weight: 500; letter-spacing: -.25px; cursor: pointer; text-shadow: 0 1px 2px rgba(255,255,255,.9); position: relative; -webkit-tap-highlight-color: transparent; }
.app-button > span:last-child { width: 70px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.app-button:active .app-icon { transform: scale(.9); }
.app-icon { width: 60px; height: 60px; border-radius: 13.5px; display: grid; place-items: center; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.24); transition: transform .15s; overflow: hidden; background: transparent; }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.icon-settings img { transform: scale(1.08); }
.badge { position: absolute; z-index: 4; top: -7px; right: 2px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 12px; background: #ff3b30; color: white; font-size: 12px; line-height: 1; font-weight: 600; text-shadow: none; border: 2px solid white; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.home-search { width: 76px; height: 27px; margin: auto auto 10px; padding: 0 10px; border: 0; border-radius: 15px; background: rgba(210,213,216,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: rgba(34,34,34,.63); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 600; opacity: 1; }
.home-search i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.home-search i::after { content: ""; position: absolute; width: 4px; height: 1.5px; right: -3px; bottom: -1px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.dock { min-height: 85px; padding: 11px 12px 14px; border-radius: 29px; background: rgba(220,223,226,.68); -webkit-backdrop-filter: blur(28px) saturate(145%); backdrop-filter: blur(28px) saturate(145%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.55), 0 6px 24px rgba(48,56,64,.1); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 14px; }
.dock .app-button span:last-child { display: none; }
.dock .app-button { gap: 0; }

.incoming-call-banner { position: absolute; z-index: 96; top: 51px; left: 8px; right: 8px; min-height: 84px; padding: 12px 12px 12px 13px; border-radius: 24px; color: white; background: rgba(37,37,40,.93); -webkit-backdrop-filter: blur(28px) saturate(145%); backdrop-filter: blur(28px) saturate(145%); box-shadow: 0 12px 35px rgba(0,0,0,.3), inset 0 0 0 .5px rgba(255,255,255,.15); display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; animation: incomingCallIn .45s var(--ease) both; }
.incoming-call-banner.leaving { pointer-events: none; animation: incomingCallOut .22s ease both; }
.incoming-caller-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg,#9aa0a7,#636970); display: grid; place-items: center; color: white; font-size: 21px; font-weight: 520; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.26); }
.incoming-caller-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.incoming-caller-copy small { color: rgba(255,255,255,.62); font-size: 11px; line-height: 15px; }
.incoming-caller-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; line-height: 23px; font-weight: 600; }
.incoming-call-actions { display: flex; align-items: center; gap: 9px; }
.incoming-call-action { width: 43px; height: 43px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); transition: transform .14s ease, filter .14s ease; }
.incoming-call-action:active { transform: scale(.9); filter: brightness(.86); }
.incoming-call-action.decline { background: #ff3b30; }
.incoming-call-action.answer { background: #34c759; }
.incoming-call-action img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
.incoming-call-action.decline img { width: 22px; height: 22px; }

.active-call-screen { position: absolute; z-index: 80; inset: 0; padding: 76px 30px 33px; overflow: hidden; color: white; background: radial-gradient(circle at 22% 8%, rgba(109,118,128,.38), transparent 34%), radial-gradient(circle at 80% 44%, rgba(60,67,75,.34), transparent 38%), linear-gradient(165deg,#32383e 0%,#171a1e 48%,#090a0c 100%); display: flex; flex-direction: column; align-items: center; animation: fadeIn .28s ease both; }
.active-call-screen.ending { pointer-events: none; animation: callScreenOut .24s ease both; }
.active-call-contact { text-align: center; }
.active-call-contact h2 { margin: 0; font-size: 31px; line-height: 38px; font-weight: 470; letter-spacing: -.5px; }
.active-call-contact p { margin: 5px 0 0; color: rgba(255,255,255,.68); font-size: 13px; font-variant-numeric: tabular-nums; }
.active-call-avatar { flex: 0 0 auto; width: 94px; height: 94px; margin-top: 18px; border-radius: 50%; background: linear-gradient(145deg,#a6abb1,#686f77); display: grid; place-items: center; font-size: 38px; font-weight: 500; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3), 0 10px 28px rgba(0,0,0,.23); }
.active-call-caption { min-height: 70px; width: calc(100% + 18px); margin: 18px -9px 10px; padding: 12px 15px; border-radius: 18px; color: white; background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; line-height: 23px; font-weight: 500; opacity: 0; transform: translateY(8px); }
.active-call-caption.show { animation: callCaptionIn .36s ease both; }
.active-call-controls { width: 100%; margin-top: auto; display: grid; grid-template-columns: repeat(3,1fr); row-gap: 16px; }
.active-call-control { min-width: 0; padding: 0; border: 0; background: transparent; color: white; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.active-call-control > span { width: 61px; height: 61px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; transition: background .18s ease, transform .14s ease; }
.active-call-control:active > span { transform: scale(.92); }
.active-call-control.selected > span { background: white; }
.active-call-control img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.active-call-control.selected img { filter: none; }
.active-call-control small { font-size: 11px; line-height: 14px; font-weight: 420; color: rgba(255,255,255,.92); }
.active-call-end { flex: 0 0 auto; width: 66px; height: 66px; margin: 25px auto 0; padding: 0; border: 0; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; cursor: pointer; transition: transform .14s ease, filter .14s ease; }
.active-call-end:active { transform: scale(.91); filter: brightness(.87); }
.active-call-end img { width: 30px; height: 30px; filter: brightness(0) invert(1); transform: rotate(135deg); }

.ios-message-notification { position: absolute; z-index: 97; top: 54px; left: 9px; right: 9px; min-height: 111px; padding: 11px 13px 13px; border: 0; border-radius: 22px; background: rgba(248,248,250,.94); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); box-shadow: 0 12px 35px rgba(0,0,0,.24), inset 0 0 0 .5px rgba(255,255,255,.82); color: #111; text-align: left; display: flex; flex-direction: column; cursor: pointer; animation: incomingCallIn .42s var(--ease) both; }
.ios-message-notification.leaving { pointer-events: none; animation: incomingCallOut .22s ease both; }
.ios-message-heading { height: 21px; display: flex; align-items: center; gap: 6px; color: #6e6e73; font-size: 11px; }
.ios-message-heading img { width: 18px; height: 18px; border-radius: 5px; }
.ios-message-heading strong { font-weight: 520; }
.ios-message-heading time { margin-left: auto; }
.ios-message-sender { margin-top: 5px; font-size: 14px; line-height: 18px; font-weight: 650; }
.ios-message-text { margin-top: 2px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 18px; font-weight: 420; }

.app-view { background: #f5f5f7; color: #111; padding-top: 54px; }
.wechat-view { background: #ededed; display: flex; flex-direction: column; }
.wechat-header { position: relative; flex: 0 0 58px; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; background: #ededed; border-bottom: .5px solid rgba(0,0,0,.12); }
.wechat-header h2 { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: 18px; font-weight: 650; line-height: 1; }
.wechat-header-actions { display: flex; align-items: center; gap: 20px; }
.wechat-header-actions button { width: 25px; height: 25px; border: 0; padding: 0; background: transparent; color: #171717; cursor: default; }
.wechat-header-actions button i { display: block; width: 25px; height: 25px; }
.wechat-device { flex: 0 0 54px; padding: 0 20px; display: flex; align-items: center; gap: 17px; background: #f1f1f1; border-bottom: .5px solid rgba(0,0,0,.1); color: #777; font-size: 14px; }
.device-icon { flex: 0 0 auto; width: 27px; height: 27px; }
.wechat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: white; scrollbar-width: none; }
.wechat-list::-webkit-scrollbar { display: none; }
.wechat-row { width: 100%; min-height: 68px; padding: 8px 16px 8px 13px; border: 0; background: white; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; position: relative; cursor: pointer; }
.wechat-row::after { content: ""; position: absolute; left: 73px; right: 0; bottom: 0; height: .5px; background: rgba(0,0,0,.1); }
.wechat-row:active { background: #dedede; }
.wechat-avatar-placeholder { width: 48px; height: 48px; border-radius: 5px; background: #eeeeee; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.04); }
.wechat-avatar-placeholder.group { background: #e9e9e9; }
.wechat-list-avatar { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.wechat-row-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wechat-contact-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; line-height: 22px; font-weight: 430; color: #171717; }
.wechat-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #a2a2a2; }
.wechat-time { align-self: start; padding-top: 6px; font-size: 11px; color: #b2b2b2; }
.wechat-tabs { flex: 0 0 71px; padding: 5px 6px 18px; border-top: .5px solid rgba(0,0,0,.16); background: rgba(248,248,248,.97); display: grid; grid-template-columns: repeat(4, 1fr); }
.wechat-tab { border: 0; padding: 0; background: transparent; color: #151515; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; font-size: 10px; line-height: 13px; cursor: default; }
.wechat-tab.active { color: #07c160; }
.wechat-tab[aria-disabled="true"] { pointer-events: none; }
.tab-icon { display: block; width: 27px; height: 25px; color: currentColor; }
.wechat-conversation { background: #ededed; color: #111; }
.wechat-chat-header { position: absolute; z-index: 5; inset: 0 0 auto; height: 109px; padding: 54px 15px 0; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; background: rgba(237,237,237,.97); border-bottom: .5px solid rgba(0,0,0,.12); }
.wechat-chat-header h2 { min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 17px; line-height: 22px; font-weight: 630; }
.wechat-chat-header button { height: 48px; padding: 0; border: 0; background: transparent; color: #111; cursor: pointer; }
.wechat-chat-back { display: flex; align-items: center; justify-content: flex-start; }
.wechat-chat-more { display: flex; align-items: center; justify-content: flex-end; }
.wechat-chat-back i, .wechat-chat-more i { width: 28px; height: 28px; }
.wechat-chat-scroll { position: absolute; z-index: 1; inset: 109px 0 77px; padding: 15px 12px 22px; overflow-y: auto; background: #ededed; scroll-behavior: smooth; scrollbar-width: none; transition: bottom .28s var(--ease); }
.wechat-chat-scroll::-webkit-scrollbar { display: none; }
.wechat-empty-chat { margin: 40px 0 0; text-align: center; color: #9b9b9b; font-size: 12px; }
.wechat-chat-time { display: table; max-width: 88%; margin: 12px auto 14px; padding: 3px 7px; border-radius: 5px; background: rgba(208,208,208,.78); color: #727272; font-size: 10px; line-height: 14px; font-weight: 500; text-align: center; }
.wechat-system-message { max-width: 88%; margin: 5px auto 14px; color: #9a9a9a; font-size: 11px; line-height: 16px; text-align: center; }
.wechat-message { max-width: 86%; margin: 0 0 9px; display: flex; align-items: flex-start; gap: 9px; }
.wechat-message.out { margin-left: auto; flex-direction: row-reverse; }
.wechat-message-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #e5e5e5; box-shadow: 0 .5px 1px rgba(0,0,0,.12); }
.wechat-message-avatar.empty { display: block; }
.wechat-chat-bubble, .wechat-call-card { position: relative; max-width: 220px; min-height: 40px; padding: 9px 11px; border-radius: 5px; background: white; font-size: 15px; line-height: 22px; box-shadow: 0 .5px 1px rgba(0,0,0,.08); word-break: break-word; }
.wechat-message.out .wechat-chat-bubble, .wechat-message.out .wechat-call-card { background: #95ec69; }
.wechat-chat-bubble::before, .wechat-call-card::before { content: ""; position: absolute; left: -6px; top: 13px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.wechat-message.out .wechat-chat-bubble::before, .wechat-message.out .wechat-call-card::before { left: auto; right: -6px; }
.wechat-call-card { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.wechat-call-card > i { flex: 0 0 auto; width: 21px; height: 21px; }
.wechat-location-card { position: relative; width: 208px; min-height: 70px; padding: 12px; border-radius: 5px; background: white; box-shadow: 0 .5px 1px rgba(0,0,0,.08); display: flex; align-items: center; gap: 11px; }
.wechat-location-card::before { content: ""; position: absolute; left: -6px; top: 13px; width: 12px; height: 12px; border-radius: 1px; background: inherit; transform: rotate(45deg); }
.wechat-location-card > i { flex: 0 0 auto; width: 35px; height: 35px; color: #07c160; }
.wechat-location-card span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wechat-location-card strong { font-size: 14px; line-height: 18px; font-weight: 500; }
.wechat-location-card small { color: #999; font-size: 10px; }
.wechat-image-message { width: 145px; padding: 0; border: 0; overflow: hidden; border-radius: 5px; box-shadow: 0 .5px 2px rgba(0,0,0,.16); background: #ddd; cursor: zoom-in; }
.wechat-image-message img { display: block; width: 100%; max-height: 238px; object-fit: cover; }
.wechat-image-message:active { opacity: .82; }
.wechat-image-preview { position: absolute; z-index: 80; inset: 0; padding: 64px 0 34px; background: #000; display: grid; place-items: center; animation: fadeIn .2s ease both; }
.wechat-image-preview.closing { pointer-events: none; animation: fadeOut .18s ease both; }
.wechat-image-preview > img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.wechat-preview-back { position: absolute; z-index: 2; top: 55px; left: 10px; min-width: 78px; height: 45px; padding: 0 10px 0 2px; border: 0; border-radius: 8px; background: transparent; color: white; display: flex; align-items: center; gap: 0; font-size: 16px; cursor: pointer; }
.wechat-preview-back i { width: 28px; height: 28px; }
.wechat-preview-back:active { background: rgba(255,255,255,.14); }
.wechat-sticker-card { width: 92px; min-height: 74px; border-radius: 10px; padding: 8px; background: rgba(255,255,255,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.09); }
.wechat-sticker-card b { font-size: 31px; line-height: 34px; }
.wechat-sticker-card span { font-size: 11px; font-weight: 650; }
.wechat-photo-card { width: 148px; height: 187px; border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; padding: 11px; color: white; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.8); background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)), linear-gradient(140deg, #e9c44d, #d64f35 48%, #183d62); box-shadow: 0 2px 4px rgba(0,0,0,.16); }
.wechat-redpacket { width: 205px; overflow: hidden; border-radius: 6px; color: white; background: #f39b3d; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.wechat-redpacket > div { min-height: 70px; padding: 12px 11px; display: flex; align-items: center; gap: 10px; }
.wechat-redpacket i { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.84); border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-style: normal; }
.wechat-redpacket span { display: flex; flex-direction: column; gap: 4px; }
.wechat-redpacket strong { font-size: 15px; font-weight: 520; }
.wechat-redpacket small { font-size: 10px; color: rgba(255,255,255,.82); }
.wechat-redpacket footer { height: 22px; padding: 4px 9px; background: white; color: #aaa; font-size: 8px; }
.wechat-compose { position: absolute; z-index: 7; left: 0; right: 0; bottom: 21px; height: 56px; padding: 8px 8px; display: grid; grid-template-columns: 32px minmax(0,1fr) 32px 32px; gap: 7px; align-items: center; background: rgba(247,247,247,.98); border-top: .5px solid rgba(0,0,0,.16); transition: bottom .28s var(--ease); }
.wechat-compose button { padding: 0; border: 0; background: transparent; color: #171717; cursor: pointer; }
.wechat-text-field { height: 38px; border-radius: 6px !important; background: white !important; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.wechat-voice-button, .wechat-emoji-button, .wechat-plus-button { width: 32px; height: 32px; display: grid; place-items: center; }
.wechat-voice-button i, .wechat-emoji-button i, .wechat-plus-button i { display: block; width: 29px; height: 29px; }
.wechat-keyboard { position: absolute; z-index: 8; left: 0; right: 0; bottom: 21px; height: 244px; padding: 0 5px 8px; background: #d2d5da; box-shadow: 0 -1px 7px rgba(0,0,0,.13); transform: translateY(calc(100% + 22px)); transition: transform .28s var(--ease); }
.keyboard-open .wechat-keyboard { transform: translateY(0); }
.keyboard-open .wechat-compose { bottom: 265px; }
.keyboard-open .wechat-chat-scroll { bottom: 321px; }
.keyboard-suggestions { height: 34px; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; text-align: center; color: #3d3f42; font-size: 13px; }
.keyboard-suggestions span + span { border-left: 1px solid rgba(82,85,90,.2); }
.keyboard-row { height: 41px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.keyboard-row button, .keyboard-bottom-row button { min-width: 28px; height: 34px; padding: 0 4px; border: 0; border-radius: 5px; background: white; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.28); font-size: 14px; line-height: 34px; cursor: default; }
.keyboard-row.row-2 { padding: 0 12px; }
.keyboard-row.row-3 { justify-content: space-between; }
.keyboard-row.row-3 .keyboard-special { min-width: 38px; background: #aeb3ba; }
.keyboard-bottom-row { height: 43px; display: flex; align-items: center; gap: 5px; }
.keyboard-bottom-row button { min-width: 39px; background: #aeb3ba; font-size: 11px; }
.keyboard-bottom-row .keyboard-space { flex: 1; background: white; }
.keyboard-bottom-row .keyboard-hide { display: grid; place-items: center; }
.keyboard-bottom-row .keyboard-hide i { width: 20px; height: 20px; }
.qqmusic-view { padding: 59px 17px 24px; color: #111; background: linear-gradient(180deg, #edf1f5 0%, #eef1f4 70%, #f3dce5 88%, #edb7c9 100%); display: flex; flex-direction: column; }
.qq-turntable { flex: 0 0 auto; width: 100%; aspect-ratio: 1.08; border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: 0 13px 24px rgba(77,85,94,.15), inset 0 0 0 .5px rgba(255,255,255,.9); position: relative; overflow: hidden; }
.qq-record { position: absolute; width: 78%; aspect-ratio: 1; left: 8%; top: 9%; border-radius: 50%; background: repeating-radial-gradient(circle at center, rgba(255,255,255,.12) 0 1px, rgba(105,118,126,.05) 2px 4px), conic-gradient(from 20deg, #e7eeee, #d5dde0, #f1d7d9, #d8e7ee, #e9e0e2, #cbd5d8, #e7eeee); box-shadow: 0 0 0 8px rgba(225,230,232,.64), 0 8px 17px rgba(73,84,91,.13); animation: qqSpin 18s linear infinite; }
.qq-record.paused { animation-play-state: paused; }
.qq-record::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(circle, transparent 0 57%, rgba(255,255,255,.28) 58% 59%, transparent 60%), repeating-radial-gradient(circle, transparent 0 3px, rgba(99,111,120,.055) 4px 5px); }
.qq-record img { position: absolute; z-index: 1; width: 55%; height: 55%; left: 22.5%; top: 22.5%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(218,176,184,.9); }
.qq-tonearm { position: absolute; z-index: 3; top: -7px; right: 10px; width: 49px; height: 79%; filter: drop-shadow(2px 4px 4px rgba(52,57,61,.2)); }
.qq-tonearm::before { content: ""; position: absolute; top: 16px; left: 19px; width: 8px; height: 72%; border-radius: 6px; background: linear-gradient(90deg,#90979a,#fafafa 42%,#8c9396); transform: rotate(-2deg); transform-origin: top; }
.qq-tonearm::after { content: ""; position: absolute; top: 28px; left: 3px; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle, #f2f3f3 0 35%, #c7cbcd 37% 40%, #f9f9f9 42% 100%); box-shadow: 0 3px 7px rgba(48,53,56,.2); }
.qq-tonearm i { position: absolute; left: 17px; bottom: -3px; width: 26px; height: 12px; border-radius: 9px 3px 3px 9px; background: linear-gradient(#f8f8f8,#c9cdcf); transform: rotate(37deg); }
.qq-tonearm b { position: absolute; top: 2px; left: 12px; width: 26px; height: 15px; border-radius: 3px; background: linear-gradient(90deg,#8a8f91,#dedede,#7f8588); }
.qq-mark { position: absolute; right: 16px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: white; color: #05ce74; display: grid; place-items: center; font-size: 18px; font-weight: 850; font-style: italic; box-shadow: 0 2px 8px rgba(65,74,80,.08); }
.qq-song-info { flex: 0 0 auto; padding-top: 14px; min-width: 0; }
.qq-title-row { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qq-title-row h2 { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 29px; line-height: 36px; font-weight: 650; letter-spacing: -.8px; }
.qq-heart { flex: 0 0 auto; min-width: 55px; padding: 0; border: 0; background: transparent; color: #9a9da1; position: relative; cursor: pointer; }
.qq-heart span { display: block; font-size: 38px; line-height: 36px; }
.qq-heart small { position: absolute; top: 2px; right: -2px; padding: 1px 2px; background: #eef1f4; color: inherit; font-size: 9px; font-weight: 750; }
.qq-heart.favorite { color: #ff4d58; }
.qq-artist-row { display: flex; align-items: center; gap: 5px; min-width: 0; height: 26px; overflow: hidden; white-space: nowrap; color: #65676a; }
.qq-artist-row p { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.qq-artist-row button, .qq-artist-row span { flex: 0 0 auto; height: 21px; padding: 1px 6px; border: 0; border-radius: 11px; background: rgba(211,216,219,.74); color: #55585b; font-size: 9px; line-height: 19px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.qq-artist-row button { width: 22px; padding: 0; font-size: 18px; line-height: 20px; cursor: pointer; }
.qq-lyric { margin: 14px 0 0; font-size: 17px; line-height: 24px; }
.qq-player-panel { margin-top: auto; }
.qq-social-actions { height: 55px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.qq-social-actions button { height: 48px; padding: 0; border: 0; background: transparent; color: #777b80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: relative; cursor: pointer; }
.qq-social-actions button > span { height: 25px; font-size: 25px; line-height: 25px; font-weight: 350; }
.qq-social-actions button small { min-height: 12px; font-size: 9px; font-weight: 650; }
.qq-progress { padding: 8px 1px 0; }
.qq-progress-track { height: 12px; display: flex; align-items: center; position: relative; }
.qq-progress-track::before { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: rgba(71,72,75,.34); }
.qq-progress-track i { position: relative; z-index: 1; display: block; width: 4.05%; height: 3px; background: #111; }
.qq-progress-track i::before { content: ""; position: absolute; left: -1px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: #111; }
.qq-progress-track i::after { content: ""; position: absolute; right: -4px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #111; }
.qq-progress-time { display: flex; justify-content: space-between; margin-top: 2px; color: #73767b; font-size: 11px; font-variant-numeric: tabular-nums; }
.qq-transport { height: 83px; display: grid; grid-template-columns: .78fr 1fr 1.35fr 1fr .78fr; align-items: center; }
.qq-transport button { width: 45px; height: 45px; margin: 0 auto; padding: 0; border: 0; background: transparent; color: #111; font-size: 20px; line-height: 1; cursor: pointer; }
.qq-transport .qq-play-toggle { width: 72px; height: 72px; border-radius: 50%; background: #050505; color: white; font-size: 27px; font-weight: 700; }
.qq-transport button:active, .qq-social-actions button:active, .qq-heart:active, .qq-artist-row button:active { transform: scale(.91); }
.app-header { min-height: 57px; padding: 8px 17px 10px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(248,248,249,.88); backdrop-filter: blur(20px); position: relative; z-index: 3; }
.app-header h2 { margin: 0; font-size: 30px; letter-spacing: -.7px; }
.app-header.compact { align-items: center; min-height: 50px; padding-top: 3px; }
.app-header.compact h2 { font-size: 17px; letter-spacing: 0; }
.back { border: 0; background: transparent; color: #1684ff; padding: 8px 8px 8px 0; cursor: pointer; min-width: 62px; text-align: left; font-size: 16px; }
.header-action { border: 0; background: transparent; color: #1684ff; padding: 8px 0 8px 8px; cursor: pointer; font-size: 18px; }
.list { height: calc(100% - 58px); overflow: auto; padding-bottom: 40px; scrollbar-width: none; }
.list::-webkit-scrollbar, .chat::-webkit-scrollbar { display: none; }
.list-row { width: 100%; border: 0; background: #fff; padding: 10px 15px; min-height: 71px; display: grid; grid-template-columns: 49px 1fr auto; gap: 11px; align-items: center; text-align: left; cursor: pointer; position: relative; }
.list-row::after { content: ""; position: absolute; height: 1px; background: var(--line); bottom: 0; left: 75px; right: 0; }
.list-row:active { background: #e9e9eb; }
.avatar { width: 49px; height: 49px; border-radius: 7px; color: white; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.row-copy { min-width: 0; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row-name { font-size: 16px; font-weight: 550; }
.row-time { color: #a0a0a5; font-size: 12px; white-space: nowrap; }
.row-preview { color: #929298; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 5px; }
.unread { width: 19px; height: 19px; display: grid; place-items: center; color: white; background: #f2413b; border-radius: 50%; font-size: 11px; }

.chat-view { background: #ededee; }
.chat { height: calc(100% - 111px); overflow: auto; padding: 18px 12px 78px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.time-label { text-align: center; color: #a0a0a5; font-size: 11px; margin: 6px 0 0; }
.bubble-row { display: flex; max-width: 85%; gap: 8px; align-items: flex-start; }
.bubble-row.out { align-self: flex-end; flex-direction: row-reverse; }
.mini-avatar { width: 35px; height: 35px; border-radius: 5px; color: white; display: grid; place-items: center; flex: 0 0 auto; font-size: 13px; }
.bubble { position: relative; background: white; border-radius: 6px; padding: 10px 12px; font-size: 15px; line-height: 1.45; box-shadow: 0 .5px 1px rgba(0,0,0,.08); }
.out .bubble { background: #95ec69; }
.bubble.voice { min-width: 124px; }
.bubble.voice::before { content: "◖ )))"; margin-right: 18px; font-size: 12px; }
.photo-message { width: 175px; min-height: 220px; border-radius: 7px; padding: 16px; display: flex; align-items: flex-end; color: white; line-height: 1.45; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.72)), radial-gradient(circle at 70% 35%, #d68c62, transparent 22%), linear-gradient(145deg, #1b2832, #6f4a3e); box-shadow: 0 5px 14px rgba(0,0,0,.2); font-size: 12px; }
.chat-input { position: absolute; bottom: 21px; left: 0; right: 0; height: 56px; background: rgba(247,247,248,.94); backdrop-filter: blur(15px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.fake-input { height: 37px; border-radius: 7px; background: white; flex: 1; border: 1px solid #dedee1; }
.round-button { width: 29px; height: 29px; padding: 0; border: 1.5px solid #555; background: transparent; border-radius: 50%; display: grid; place-items: center; }

.call-section-title { padding: 15px 17px 8px; color: #777; font-size: 13px; }
.iphone-phone-view { padding-top: 54px; background: #f2f2f7; display: flex; flex-direction: column; }
.iphone-phone-header { flex: 0 0 100px; padding: 1px 12px 9px; background: rgba(249,249,251,.96); border-bottom: .5px solid rgba(60,60,67,.2); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.iphone-phone-titlebar { height: 43px; display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; align-items: center; }
.iphone-phone-titlebar h2 { margin: 0; text-align: center; font-size: 17px; line-height: 22px; font-weight: 650; letter-spacing: -.25px; }
.iphone-phone-titlebar button { min-width: 0; padding: 8px 0; border: 0; background: transparent; color: #007aff; text-align: right; font-size: 15px; line-height: 20px; cursor: default; }
.iphone-phone-filter { width: 190px; height: 31px; margin: 7px auto 0; padding: 2px; border-radius: 8px; background: #e3e3e8; display: grid; grid-template-columns: repeat(2,1fr); }
.iphone-phone-filter button { padding: 0; border: 0; border-radius: 6px; background: transparent; color: #111; font-size: 12px; line-height: 25px; font-weight: 550; cursor: default; }
.iphone-phone-filter button.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.04); }
.iphone-call-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 8px; background: #fff; scrollbar-width: none; }
.iphone-call-list::-webkit-scrollbar { display: none; }
.iphone-phone-tabs { flex: 0 0 74px; padding: 6px 3px 18px; border-top: .5px solid rgba(60,60,67,.27); background: rgba(249,249,251,.96); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); display: grid; grid-template-columns: repeat(5,1fr); }
.iphone-phone-tab { min-width: 0; padding: 0; border: 0; background: transparent; color: #6f6f75; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; cursor: default; }
.iphone-phone-tab.active { color: #007aff; }
.iphone-phone-tab i { display: block; width: 25px; height: 25px; color: currentColor; }
.iphone-phone-tab span { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 8px; line-height: 12px; font-weight: 500; }
.call-row { min-height: 62px; padding: 8px 16px 8px 34px; background: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.call-row::before { content: "☎"; color: #a2a2a8; position: absolute; left: 15px; font-size: 10px; transform: rotate(-25deg); }
.call-record { min-width: 0; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: default; }
.call-record.callback { cursor: pointer; }
.call-record.callback:active { opacity: .52; }
.call-name { font-size: 16px; font-weight: 540; }
.call-name.missed { color: #e6372e; }
.call-meta { margin-top: 3px; font-size: 12px; color: #999; }
.info { color: #007aff; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; width: 22px; height: 22px; padding: 0; font-family: Georgia, serif; font-size: 13px; font-style: italic; cursor: pointer; }

.photos-view { padding-top: 54px; background: #fff; color: #111; display: flex; flex-direction: column; }
.photos-header { flex: 0 0 61px; padding: 9px 15px 7px; display: flex; align-items: flex-end; justify-content: space-between; background: rgba(255,255,255,.96); }
.photos-header h1 { margin: 0; font-size: 31px; line-height: 38px; font-weight: 720; letter-spacing: -.8px; }
.photos-header button { min-width: 50px; padding: 7px 0 4px; border: 0; background: transparent; color: #007aff; text-align: right; font-size: 15px; line-height: 20px; cursor: default; }
.photos-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: #fff; scrollbar-width: none; }
.photos-scroll::-webkit-scrollbar, .photo-filmstrip::-webkit-scrollbar { display: none; }
.photo-month-section { padding-bottom: 15px; }
.photo-month-section > header { height: 39px; padding: 7px 11px 5px 14px; display: flex; align-items: baseline; justify-content: space-between; }
.photo-month-section h2 { margin: 0; font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -.35px; }
.photo-month-section header span { color: #8e8e93; font-size: 12px; }
.photo-grid { padding: 0 2px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; }
.photo-tile { aspect-ratio: 1; border: 0; padding: 0; background: #e5e5ea; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease, opacity .18s ease; }
.photo-tile:active img { transform: scale(.94); opacity: .82; }
.photos-range-tabs { flex: 0 0 42px; width: 245px; margin: 0 auto; padding: 6px 5px 7px; display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: rgba(255,255,255,.94); }
.photos-range-tabs button { padding: 0; border: 0; border-radius: 17px; background: transparent; color: #6e6e73; font-size: 11px; line-height: 29px; font-weight: 600; cursor: default; }
.photos-range-tabs button.active { background: #e7e7ec; color: #111; }
.photos-bottom-tabs { flex: 0 0 73px; padding: 6px 6px 18px; border-top: .5px solid rgba(60,60,67,.2); background: rgba(249,249,251,.96); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); display: grid; grid-template-columns: repeat(4,1fr); }
.photos-bottom-tab { min-width: 0; padding: 0; border: 0; background: transparent; color: #7b7b80; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: default; }
.photos-bottom-tab.active { color: #007aff; }
.photos-bottom-tab i { width: 25px; height: 25px; color: currentColor; }
.photos-bottom-tab span { font-size: 9px; line-height: 12px; font-weight: 500; }
.photo-detail { position: absolute; z-index: 80; inset: 0; padding-top: 54px; background: #050506; color: white; animation: fadeIn .24s ease both; display: flex; flex-direction: column; }
.photo-detail.closing { pointer-events: none; animation: fadeOut .18s ease both; }
.photo-viewer-header { flex: 0 0 50px; padding: 0 12px; display: grid; grid-template-columns: 45px minmax(0,1fr) 45px; align-items: center; background: rgba(5,5,6,.93); }
.photo-viewer-header > div { min-width: 0; text-align: center; display: flex; flex-direction: column; }
.photo-viewer-header strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 18px; font-weight: 650; }
.photo-viewer-header small { color: rgba(255,255,255,.62); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; }
.photo-viewer-header button { width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: #0a84ff; display: grid; place-items: center; cursor: pointer; }
.photo-viewer-header button i { width: 28px; height: 28px; }
.photo-viewer-more { justify-self: end; }
.photo-detail-content { flex: 1 1 auto; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; background: #050506; }
.photo-detail-content > img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 1; transform: scale(1); transition: opacity .18s ease, transform .18s ease; }
.photo-detail-content > img.changing { opacity: .42; transform: scale(.985); }
.photo-step { position: absolute; z-index: 2; top: 0; bottom: 0; width: 24%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.photo-step.previous { left: 0; }
.photo-step.next { right: 0; }
.photo-step:disabled { pointer-events: none; }
.photo-filmstrip { flex: 0 0 54px; padding: 6px calc(50% - 22px); overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; gap: 3px; scroll-snap-type: x proximity; scrollbar-width: none; }
.photo-filmstrip button { flex: 0 0 auto; width: 34px; height: 42px; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: #27272a; opacity: .48; transform: scale(.88); transition: opacity .18s ease, transform .18s ease; scroll-snap-align: center; cursor: pointer; }
.photo-filmstrip button.active { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px white; }
.photo-filmstrip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-viewer-toolbar { flex: 0 0 67px; padding: 7px 22px 20px; border-top: .5px solid rgba(255,255,255,.13); display: grid; grid-template-columns: repeat(4,1fr); background: rgba(15,15,17,.96); }
.photo-viewer-toolbar button { width: 40px; height: 40px; margin: 0 auto; padding: 0; border: 0; background: transparent; color: #0a84ff; display: grid; place-items: center; cursor: default; }
.photo-viewer-toolbar i { width: 25px; height: 25px; color: currentColor; }

.notes-list { padding: 15px 12px 40px; }
.notes-group { background: white; border-radius: 11px; overflow: hidden; }
.note-row { display: block; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.note-row:last-child { border-bottom: 0; }
.note-title { font-size: 16px; font-weight: 650; }
.note-preview { font-size: 12px; color: #96969c; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-paper { height: calc(100% - 55px); overflow: auto; background: #fff; padding: 24px 22px 70px; }
.note-paper time { color: #999; font-size: 11px; display: block; text-align: center; }
.note-paper h3 { font-size: 24px; margin: 15px 0 20px; }
.note-paper p { white-space: pre-wrap; font-size: 16px; line-height: 1.8; margin: 0; }
.note-paper .note-emphasis { margin-top: 22px; }
.note-drawing { margin: 18px -6px 0; overflow: hidden; background: white; }
.note-drawing img { display: block; width: 100%; height: auto; }

.empty-app { height: calc(100% - 58px); display: grid; place-items: center; text-align: center; padding: 40px; color: #888; }
.empty-symbol { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; margin: 0 auto 18px; background: #e6e6e9; color: #98989d; font-size: 36px; }
.toast { position: absolute; z-index: 110; top: 59px; left: 12px; right: 12px; border-radius: 17px; padding: 12px 14px; background: rgba(246,246,248,.9); backdrop-filter: blur(24px); box-shadow: 0 12px 30px rgba(0,0,0,.2); color: #151519; font-size: 12px; transform: translateY(-120px); opacity: 0; transition: .4s var(--ease); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { display: block; font-size: 13px; margin-bottom: 3px; }
.home-indicator-wrap { position: absolute; z-index: 100; height: 21px; bottom: 0; left: 0; right: 0; display: grid; place-items: start center; pointer-events: none; }
.home-indicator { width: 134px; height: 5px; border: 0; border-radius: 5px; background: white; mix-blend-mode: difference; padding: 0; cursor: pointer; pointer-events: auto; }
.side-button { position: absolute; width: 3px; background: #303034; border-radius: 2px 0 0 2px; left: -3px; }
.volume-up { height: 47px; top: 145px; }
.volume-down { height: 47px; top: 207px; }
.power { left: auto; right: -3px; top: 174px; height: 74px; border-radius: 0 2px 2px 0; }

@keyframes appIn { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes appOut { to { opacity: 0; transform: scale(.8) translateY(30px); border-radius: 34px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes unlockPulse { 50% { transform: translate(-50%, -4px); opacity: .68; } }
@keyframes playerLevel { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes qqSpin { to { transform: rotate(360deg); } }
@keyframes wrongPasscode { 20%, 60% { transform: translateX(-11px); } 40%, 80% { transform: translateX(11px); } }
@keyframes unlockScreen { to { transform: scale(1.08); } }
@keyframes incomingCallIn { from { opacity: 0; transform: translateY(-115%); } to { opacity: 1; transform: translateY(0); } }
@keyframes incomingCallOut { to { opacity: 0; transform: translateY(-120%); } }
@keyframes callCaptionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes callScreenOut { to { opacity: 0; transform: scale(.97); } }

@media (max-width: 760px), (max-height: 600px) and (pointer: coarse) {
  html, body { width: 100%; height: 100%; overflow: hidden; background: #111; }
  body { background: #111; }
  .stage { display: block; min-height: 100svh; padding: 0; background: #111; }
  .phone-shell { width: 100%; height: 100%; filter: none; }
  .phone { width: 100vw; height: 100svh; height: 100dvh; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .side-button { display: none; }
  .passcode-panel { bottom: max(34px, env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .home-view { padding-left: 11px; padding-right: 11px; }
  .weather-widget { padding-left: 12px; padding-right: 12px; }
  .home-dashboard { gap: 8px; }
  .calendar-widget { padding-left: 13px; padding-right: 13px; }
  .calendar-widget p { font-size: 10px; }
  .app-icon { width: 54px; height: 54px; border-radius: 12px; }
  .app-grid { row-gap: 19px; }
  .dock { gap: 8px; }
  .lock-player { left: 11px; right: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
