:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", sans-serif;
  color: #000; background: #e2e4e9; font-synthesis: none;
  --system: #f2f2f7; --secondary: #8e8e93; --separator: #c6c6c8;
}
* { box-sizing: border-box; }
[v-cloak] { visibility: hidden; }
body { margin: 0; display: block; }
button, input, select { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #007aff; outline-offset: -2px; }
.ui-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.phone-shell { position: relative; width: 100%; overflow: hidden; background: var(--system); }
.app-screen { display: flex; flex-direction: column; height: 100%; background: var(--system); }
.status-bar { position: relative; flex: 0 0 calc(54px + var(--safe-top)); display: flex; align-items: center; justify-content: space-between; padding: var(--safe-top) 27px 0; background: transparent; font-size:calc(15px * var(--font-scale,1)); font-weight: 600; }
.island { position: absolute; top: calc(10px + var(--safe-top)); left: 50%; transform: translateX(-50%); width: 104px; height: 28px; border-radius: 20px; background: #080808; }
.status-icons { display: flex; align-items: center; gap: 5px; }
.status-icons .ui-icon { width: 17px; height: 17px; }
.status-icons .ui-icon:last-child { width: 25px; height: 20px; }
.app-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; flex: 0 0 52px; padding: 0 16px; background: transparent; border: 0; }
.app-nav h1 { text-align: center; font-size:calc(17px * var(--font-scale,1)); font-weight: 600; margin: 0; }
.round-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e5e5ea; }
.round-back .ui-icon { width: 21px; height: 21px; }
.scroll-page { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 24px; scrollbar-width: none; background: transparent; }
.scroll-page::-webkit-scrollbar { display: none; }
.settings-page { padding-top: 9px; }
.large-title { margin: 0 0 24px; font-size:calc(34px * var(--font-scale,1)); line-height: 41px; font-weight: 700; letter-spacing: .3px; }
.large-title button { padding: 0; min-height: 44px; background: transparent; font: inherit; text-align: left; }
.apple-account { width: 100%; display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 16px; background: white; text-align: left; margin: 0 0 32px; }
.account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: #a3a3a8; color: #fff; }
.account-avatar .ui-icon { width: 43px; height: 43px; stroke-width: 1.5; }
.cell-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.cell-copy strong { font-size:calc(17px * var(--font-scale,1)); font-weight: 400; overflow-wrap: anywhere; }
.apple-account .cell-copy strong { font-size:calc(20px * var(--font-scale,1)); font-weight: 500; }
.cell-copy small { font-size:calc(12px * var(--font-scale,1)); color: var(--secondary); line-height: 1.35; }
.apple-account .cell-copy small { color: #333; }
.settings-section { overflow: hidden; border-radius: 22px; background: #fff; margin: 0 0 32px; }
.settings-cell { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 16px; background: #fff; text-align: left; }
.settings-section > .settings-cell:not(:last-child)::after, .settings-section > .form-cell:not(:last-child)::after { content: ""; position: absolute; bottom: 0; left: 57px; right: 0; height: .5px; background: var(--separator); }
.setting-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 6px; color: #fff; }
.setting-icon .ui-icon { width: 21px; height: 21px; }
.blue { background: #007aff; } .gray { background: #8e8e93; } .green { background: #34c759; }
.orange { background: #ff9500; } .pink { background: #ff2d55; }
.cell-title { font-size:calc(17px * var(--font-scale,1)); line-height: 22px; flex: 1; }
.cell-value { min-width: 0; max-width: 35%; color: var(--secondary); font-size:calc(16px * var(--font-scale,1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { width: 12px; height: 18px; margin-left: auto; color: #c4c4c6; stroke-width: 2.4; }
.cell-value + .chevron { margin-left: 0; }
.ios-switch { flex-shrink: 0; position: relative; width: 51px; height: 31px; margin-left: auto; border-radius: 20px; background: #e9e9eb; }
.ios-switch i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; background: #fff; border-radius: 50%; }
.ios-switch.on { background: #34c759; } .ios-switch.on i { left: 22px; }
.profile-header { display: flex; flex-direction: column; align-items: center; padding: 9px 0 33px; text-align: center; }
.profile-header .account-avatar { width: 92px; height: 92px; }
.profile-header .account-avatar .ui-icon { width: 66px; height: 66px; }
.profile-header h2 { font-size:calc(26px * var(--font-scale,1)); font-weight: 700; line-height: 32px; margin: 14px 0 5px; overflow-wrap: anywhere; max-width: 100%; }
.profile-header p { margin: 0; font-size:calc(15px * var(--font-scale,1)); color: var(--secondary); overflow-wrap: anywhere; max-width: 100%; }
.device-cell { min-height: 72px; }
.device-thumbnail { display: grid; place-items: center; width: 29px; flex-shrink: 0; color: #53535a; }
.device-thumbnail .ui-icon { width: 24px; height: 39px; stroke-width: 1.4; }
.device-cell .cell-copy small { font-size:calc(13px * var(--font-scale,1)); }
.section-header { margin: 0 16px 8px; font-size:calc(13px * var(--font-scale,1)); color: #6d6d72; }
.section-note { margin: 12px 16px 24px; color: #6d6d72; font-size:calc(13px * var(--font-scale,1)); line-height: 1.5; overflow-wrap: anywhere; }
.account-note { text-align: center; color: var(--secondary); }
.form-cell { position: relative; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 12px 16px; }
.form-cell::after { left: 16px !important; }
.form-cell span { flex-shrink: 0; font-size:calc(16px * var(--font-scale,1)); }
.form-cell input, .form-cell select { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; text-align: right; font-size:calc(16px * var(--font-scale,1)); color: #333; padding: 4px 0; }
.form-cell input::placeholder { color: var(--secondary); font-size:calc(14px * var(--font-scale,1)); }
.text-action { color: #007aff; font-size:calc(17px * var(--font-scale,1)); }
.error { color: #c42b24; }
.form-cell.multiline { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.multiline textarea { width: 100%; min-height: 76px; border: 0; background: transparent; color: #333; font: inherit; font-size:calc(16px * var(--font-scale,1)); line-height: 1.6; resize: vertical; padding: 0; }
.multiline textarea::placeholder { color: var(--secondary); }
.multiline textarea:focus-visible { outline: 2px solid #007aff; outline-offset: 2px; }
.destructive { color: #ff3b30; font-size:calc(17px * var(--font-scale,1)); }
.spinner { margin-left: auto; width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: #8e8e93; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail-header { text-align: center; padding: 24px 8px; }
.detail-header .setting-icon { margin: auto; }
.detail-header h2 { font-size:calc(22px * var(--font-scale,1)); }
.detail-header p { font-size:calc(15px * var(--font-scale,1)); line-height: 1.7; color: var(--secondary); }
.home { background: radial-gradient(circle at 90% 3%,#f5e4d9 0,transparent 26%),radial-gradient(circle at 12% 68%,#bcd4d6 0,transparent 30%),linear-gradient(150deg,#9fb9d5,#cad5e5 49%,#e7c3b4); }
.home-content { flex: 1; min-height: 0; overflow: auto; padding: 28px 20px; }
.liquid-card { border: 1px solid #ffffff85; background: #ffffff38; box-shadow: inset 0 1px #fff8,0 12px 28px #45536c24; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.time-widget { width: 100%; padding: 18px; border-radius: 27px; color: #fff; text-align: center; text-shadow: 0 2px 8px #26364a66; }
.time-widget span,.time-widget small { display: block; font-size:calc(13px * var(--font-scale,1)); font-weight: 600; }
.time-widget strong { display: block; font-size:calc(58px * var(--font-scale,1)); font-weight: 500; letter-spacing: -3px; }
.dock { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 0 13px calc(11px + var(--safe-bottom)); padding: 10px 8px; border: 1px solid #ffffff80; border-radius: 29px; background: #ffffff37; box-shadow: inset 0 1px #fff9,0 8px 25px #46536d34; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }
.dock button { display: grid; justify-items: center; gap: 5px; color: #fff; background: transparent; }
.dock small { font-size:calc(11px * var(--font-scale,1)); }
.dock-app-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 14px; color: white; overflow: hidden; margin: 0; padding: 0; transform: none; background: transparent; border: 0; box-shadow: none; }
.dock-app-icon img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; margin: 0; padding: 0; transform: none; border-radius: inherit; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dock small { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-preview { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.avatar-edit { padding: 0; }
.avatar-edit-link { margin-top: 10px; background: transparent; color: #007aff; font-size:calc(14px * var(--font-scale,1)); }
.file-picker { position: relative; overflow: hidden; cursor: pointer; }
.file-picker input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.media-preview { width: 130px; height: 130px; margin: 16px auto 32px; overflow: hidden; display: grid; place-items: center; border-radius: 26px; background: #e5e5ea; color: #8e8e93; }
.media-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-preview .ui-icon { width: 48px; height: 48px; }
.round-preview { border-radius: 50%; }
.wallpaper-preview { width: 150px; height: 270px; border-radius: 16px; }
.desktop-item,.dock button { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.desktop-done { float: right; border-radius: 18px; padding: 7px 14px; background: #fff9; }
.contacts-screen { background: #fff; }
.contacts-page { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.contacts-scroll { flex: 1; overflow: auto; padding: 0 28px 20px 20px; }
.contact-cell { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; width: 100%; padding: 9px 0; background: transparent; text-align: left; }
.contact-cell::after { content: ''; position: absolute; left: 54px; right: 0; bottom: 0; height: .5px; background: #dedee3; }
.contact-face { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #e6e6eb; color: #777; overflow: hidden; }
.contact-face img { width: 100%; height: 100%; object-fit: cover; }
.my-card { padding: 16px 0 20px; }
.my-card .contact-face { width: 52px; height: 52px; }
.contact-name { flex: 1; font-size:calc(17px * var(--font-scale,1)); overflow-wrap: anywhere; }
.contact-cell>small { color: #8e8e93; max-width: 70px; overflow-wrap: anywhere; }
.contact-letter { margin: 15px 0 0; padding-bottom: 6px; font-size:calc(14px * var(--font-scale,1)); color: #8e8e93; border-bottom: .5px solid #ddd; }
.contact-index { position: absolute; right: 3px; top: 15%; bottom: 90px; display: flex; flex-direction: column; justify-content: center; }
.contact-index button { font-size:calc(10px * var(--font-scale,1)); color: #007aff; background: transparent; padding: 1px 3px; min-height: 12px; }
.phone-tabs { display: flex; gap: 10px; padding: 9px 14px; flex-shrink: 0; }
.phone-tabs>div { display: flex; flex: 1; background: #f3f3f6; border-radius: 35px; padding: 4px; }
.phone-tabs button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; padding: 7px; border-radius: 26px; font-size:calc(10px * var(--font-scale,1)); background: transparent; flex: 1; }
.phone-tabs>button { flex: 0 0 54px; background: #f3f3f6; }
.phone-tabs .active { color: #007aff; background: #e5e9ef; }
.contact-import { margin: 0 20px 10px; border: .5px solid #eee; flex-shrink: 0; }
.person-screen { position: relative; isolation: isolate; background: #d5c3c5; }
.poster-background { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center; filter: blur(24px) saturate(.5); }
.person-screen::before { content: ''; position: absolute; inset: 0; background: #ffffffa8; z-index: -1; }
.person-screen.poster-dark { color: white; background: #34333c; }
.person-screen.poster-dark::before { background: #0009; }
.person-screen.poster-dark .status-bar,.person-screen.poster-dark .app-nav { color: white; }
.poster-dark .poster-card { background: #2229; }
.poster-dark .poster-action { color: #80bbff; }
.poster-dark .round-back,.poster-dark .poster-edit { background: #ffffff30; }
.poster-dark .home-indicator { background: white; }
.poster-dark .contact-actions .ui-icon { background: #ffffff25; }
.person-screen .status-bar,.person-screen .app-nav { color: #171717; }
.poster-edit { background: #ffffff70; border-radius: 16px; padding: 7px 8px; white-space: nowrap; }
.person-heading { padding: 30px 0 18px; text-align: center; }
.person-heading small { font-size:calc(13px * var(--font-scale,1)); opacity: .7; }
.person-heading h2 { margin: 9px 0 16px; font-size:calc(38px * var(--font-scale,1)); overflow-wrap: anywhere; }
.contact-actions { display: flex; justify-content: space-around; margin-bottom: 28px; }
.contact-actions button { display: flex; flex-direction: column; align-items: center; gap: 8px; background: transparent; font-size:calc(11px * var(--font-scale,1)); }
.contact-actions .ui-icon { box-sizing: content-box; padding: 14px; border: .5px solid #fff; border-radius: 50%; background: #ffffff70; }
.poster-card { border-radius: 20px; background: #ffffff70; backdrop-filter: blur(14px); padding: 0 16px; margin-bottom: 22px; overflow: hidden; }
.poster-card .contact-cell::after { display: none; }
.poster-field { padding: 14px 0; margin: 0; }
.poster-field+.poster-field,.poster-action+.poster-action { border-top: .5px solid #9993; }
.poster-field small { opacity: .65; font-size:calc(12px * var(--font-scale,1)); }
.poster-field p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size:calc(15px * var(--font-scale,1)); }
.poster-action { display: block; text-align: left; width: 100%; padding: 16px 0; background: transparent; color: #007aff; font-size:calc(16px * var(--font-scale,1)); }
.dialpad { text-align: center; padding: 25px 10px; }
.dialpad output { display: block; font-size:calc(28px * var(--font-scale,1)); margin-bottom: 20px; overflow-wrap: anywhere; }
.dialpad>div { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.dialpad button { border-radius: 40px; background: #f0f0f4; padding: 14px; font-size:calc(23px * var(--font-scale,1)); }
.dialpad p { font-size:calc(12px * var(--font-scale,1)); color: #8e8e93; }
.time-widget.liquid-card { border: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.desktop-apps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px 8px; margin-top: 35px; }
.desktop-item { position: relative; text-align: center; }
.desktop-item>button:first-child { display: grid; gap: 6px; justify-items: center; width: 100%; background: transparent; color: #fff; }
.desktop-item img { width: 54px; height: 54px; border-radius: 14px; }
.desktop-item small { font-size:calc(11px * var(--font-scale,1)); }
.delete-app { position: absolute; top: -7px; left: 5px; width: 23px; height: 23px; border-radius: 50%; background: #eee; color: #333; font-size:calc(19px * var(--font-scale,1)); line-height: 20px; }
.generated-preview { width: 100%; border-radius: 12px; }
.track-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: transparent; text-align: left; }
.track-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-delete,.uninstall-store { color: #ff3b30; background: transparent; font-size:calc(13px * var(--font-scale,1)); }
.audio-controls { width: calc(100% - 32px); height: 50px; flex-shrink: 0; margin: 0 16px 8px; }
.music-player { padding: 12px 0; overflow-wrap: anywhere; }
.store-screen { background: #fff; }
.store-page { flex: 1; min-height: 0; display: flex; flex-direction: column; background: white; }
.store-scroll { flex: 1; overflow-y: auto; padding: 8px 18px 30px; }
.today-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.today-header h2 { margin: 0; font-size:calc(36px * var(--font-scale,1)); font-weight: 750; letter-spacing: -1px; }
.today-header h2 button { font: inherit; background: transparent; padding: 0; }
.store-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0f0f5; color: #007aff; overflow: hidden; }
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.editorial-hero { position: relative; height: 465px; overflow: hidden; border-radius: 27px; background: #3a555d; color: #fff; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 20px 18px; background: linear-gradient(transparent 32%,rgba(0,0,0,.65)); }
.hero-copy>p { margin: 0 0 8px; font-size:calc(12px * var(--font-scale,1)); font-weight: 600; opacity: .85; }
.hero-copy h3 { margin: 0 0 24px; font-size:calc(34px * var(--font-scale,1)); line-height: 1.16; font-weight: 750; letter-spacing: -.8px; }
.store-app-row { display: flex; align-items: center; gap: 10px; }
.store-app-row>img { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.store-app-row>div { flex: 1; min-width: 0; }
.store-app-row strong { display: block; font-size:calc(15px * var(--font-scale,1)); font-weight: 600; }
.store-app-row small { display: block; font-size:calc(11px * var(--font-scale,1)); opacity: .7; margin-top: 3px; }
.get-app { flex-shrink: 0; min-width: 62px; border-radius: 20px; padding: 7px 15px; font-size:calc(14px * var(--font-scale,1)); font-weight: 700; color: #007aff; background: #f0f0f4; }
.hero-copy .get-app { background: #ffffff40; color: white; }
.editorial-heading { margin: 34px 0 18px; }
.editorial-heading p { margin: 0 0 5px; font-size:calc(12px * var(--font-scale,1)); color: #8e8e93; font-weight: 600; }
.editorial-heading h3 { margin: 0; font-size:calc(27px * var(--font-scale,1)); letter-spacing: -.8px; }
.store-feature { padding: 25px 20px; border-radius: 25px; background: #f1f5ef; }
.store-feature>span { font-size:calc(12px * var(--font-scale,1)); color: #657361; }
.store-feature h3 { font-size:calc(28px * var(--font-scale,1)); margin: 9px 0 25px; }
.store-tabs { display: flex; flex: 0 0 57px; justify-content: space-around; padding: 8px 5px 4px; background: #fff; border-top: .5px solid #eee; }
.store-tabs button { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; flex: 1; background: transparent; color: #8e8e93; font-size:calc(10px * var(--font-scale,1)); }
.store-tabs .selected { color: #007aff; }
.store-search { width: 100%; border: 0; border-radius: 12px; background: #f2f2f7; padding: 12px; font-size:calc(16px * var(--font-scale,1)); margin-bottom: 22px; }
.store-result { padding: 18px 0; }
.uninstall-store { margin-top: 20px; padding: 10px 0; }
.search-empty { margin: 24px 0; }
.wechat-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wechat-page h2 { margin: 10px 20px; }
.wechat-page .store-tabs { margin-top: auto; }
.empty-state { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; color: var(--secondary); }
.empty-state .ui-icon { width: 38px; height: 38px; }
.empty-state p { font-size:calc(15px * var(--font-scale,1)); }
.messages-page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 18px 16px; }
.message-row { max-width: 85%; align-self: flex-start; }
.message-row.me { align-self: flex-end; }
.bubble { margin: 0; padding: 11px 14px; border-radius: 19px; background: white; font-size:calc(16px * var(--font-scale,1)); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.me .bubble { color: white; background: #007aff; }
.message-row time { display: block; padding-top: 4px; color: var(--secondary); font-size:calc(10px * var(--font-scale,1)); }
.me time { text-align: right; }
.reply-status { font-size:calc(13px * var(--font-scale,1)); color: var(--secondary); }
.composer { margin: 0 14px 8px; padding: 7px; display: flex; gap: 8px; align-items: center; border: 1px solid #d4d4d8; border-radius: 24px; background: white; }
.composer input { width: 100%; min-width: 0; padding: 4px 9px; border: 0; font-size:calc(16px * var(--font-scale,1)); background: transparent; }
.composer button { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; color: white; background: #007aff; font-size:calc(22px * var(--font-scale,1)); }
.toast { position: absolute; left: 20px; right: 20px; bottom: 80px; z-index: 10; padding: 12px 16px; border-radius: 12px; color: white; background: #303033; text-align: center; font-size:calc(14px * var(--font-scale,1)); }

@media(max-width: 350px) { .scroll-page { padding-left: 16px; padding-right: 16px; } .settings-cell { gap: 9px; padding-left: 12px; padding-right: 12px; } .cell-title { font-size:calc(16px * var(--font-scale,1)); } .apple-account { gap: 10px; padding: 12px; } }
@media(prefers-reduced-motion: reduce) { .spinner { animation: none; } }
