:root {
  color-scheme: dark;
  --theme-page: #0f0f10;
  --theme-page-alt: #0f0f12;
  --theme-surface: #1c1c1e;
  --theme-surface-soft: #1a1a1c;
  --theme-surface-raised: #2a2a31;
  --theme-border: #2c2c2e;
  --theme-border-strong: #42424c;
  --theme-text: #f5f5f7;
  --theme-text-strong: #ffffff;
  --theme-muted: #8e8e93;
  --theme-muted-strong: #85858e;
  --theme-accent: #ffffff;
  --theme-on-accent: #17171b;
  --theme-shadow: rgba(0, 0, 0, .4);
  --theme-overlay: rgba(21, 21, 24, .98);
  --theme-input: #1a1a1c;
  --theme-svg-fill: #f5f5f7;
  --white: #fff;
  --ink: #111;
  --muted: #86868b;
  --page: #f2f2f4;
  --glass: rgba(245, 245, 247, .84);
  --line: rgba(17, 17, 17, .08);
  --blue: #0a9fe8;
  --violet: #7468f5;
  --danger: #d70015;
  --green: #30d158;
  --shadow: 0 12px 34px rgba(20, 22, 32, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --theme-page: #f5f5f7;
  --theme-page-alt: #f2f2f4;
  --theme-surface: #ffffff;
  --theme-surface-soft: #f1f1f4;
  --theme-surface-raised: #e8e8ee;
  --theme-border: #d1d1d6;
  --theme-border-strong: #aeaeb2;
  --theme-text: #1c1c1e;
  --theme-text-strong: #111111;
  --theme-muted: #6e6e73;
  --theme-muted-strong: #55555b;
  --theme-accent: #1c1c1e;
  --theme-on-accent: #ffffff;
  --theme-shadow: rgba(20, 22, 32, .12);
  --theme-overlay: rgba(247, 247, 248, .98);
  --theme-input: #ffffff;
  --theme-svg-fill: #1c1c1e;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #e9e9ed; color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
body { min-height: 100dvh; }

#app {
  width: min(100%, 390px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 50px rgba(0, 0, 0, .06);
  overflow: hidden;
}
#app:has(.savings-host) { width: min(100%, 820px); }
#app:has(.chat-host) { width: min(100%, 920px); }
#app:has(.pet-host) { width: min(100%, 720px); }
#app:has(.social-host) { width: min(100%, 720px); }
#app:has(.job-host) { width: min(100%, 760px); }
#app:has(.travel-host) { width: min(100%, 980px); }
#app:has(.worldbook-host) { width: min(100%, 1180px); }
.page-wrap { width: min(100%, 390px); height: 100dvh; overflow: hidden; transition: transform .2s ease; will-change: transform; touch-action: pan-y; }

.screen { min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); }
.chat-host { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; background: #f5f6f8; }
.chat-host__frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #f5f6f8; }
#lirael-chat-parking {
  position:fixed;inset:0;margin:0 auto;width:min(100%,390px);height:100dvh;
  padding:0;border:0;overflow:hidden;z-index:50;
}
@media(min-width:700px){#lirael-chat-parking{width:100%;}}
.encounter-host { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; background: #f3f5f1; }
.encounter-host__frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #f3f5f1; }
.pet-host { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; background: #efe8df; }
.pet-host__frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #f6f1ea; }
.social-host { width: 100%; height: 100dvh; min-height: 0; overflow: hidden; background: #0b0d1c; }
.social-host__frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #0b0d1c; }
.job-host { width:100%; height:100dvh; min-height:0; overflow:hidden; background:#fff7f4; }
.job-host__frame { display:block; width:100%; height:100%; min-height:0; border:0; background:#fff7f4; }
.travel-host { width:100%; height:100dvh; min-height:0; overflow:hidden; background:#f7f4ee; }
.travel-host__frame { display:block; width:100%; height:100%; min-height:0; border:0; background:#f7f4ee; }
.worldbook-host { width:100%; height:100dvh; min-height:0; overflow:hidden; background:#fcfaf8; }
.worldbook-host__frame { display:block; width:100%; height:100%; min-height:0; border:0; background:#fcfaf8; }
.screen--gray { background: var(--page); }
.screen__body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; }
.safe-top { padding-top: max(14px, env(safe-area-inset-top)); }
.safe-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

.topbar {
  min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
}
.topbar__title { flex: 1; text-align: center; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn, .text-btn {
  border: 0; background: var(--glass); border-radius: 14px; min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.text-btn { padding: 0 15px; font-weight: 600; }
.text-btn--primary { background: var(--ink); color: var(--white); }
.text-btn--danger { color: var(--danger); }

.home {
  position: relative;
  min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 20px 0;
  overflow: hidden;
  background: #f6f6f2;
  color: #4e504a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.home::before {
  content: "11:21";
  position: absolute;
  z-index: 2;
  top: max(10px, env(safe-area-inset-top));
  left: 18px;
  color: #6f726a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.home::after {
  content: "●  Wi-Fi  ▰";
  position: absolute;
  z-index: 2;
  top: max(10px, env(safe-area-inset-top));
  right: 16px;
  color: #6f726a;
  font-size: 11px;
  line-height: 1;
  white-space: pre;
}
.home__scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.home__scroll::-webkit-scrollbar { display: none; }
.widget {
  position: relative;
  min-height: 184px;
  padding: 18px 22px;
  border: 1px solid #e7e7e1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .03);
}
.widget::before {
  content: "上海 · 今天";
  display: block;
  margin-bottom: 4px;
  color: #8a8d86;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.widget::after {
  content: "☁";
  position: absolute;
  top: 52px;
  right: 60px;
  width: 56px;
  height: 56px;
  border: 1px solid #e7e7e1;
  border-radius: 16px;
  background: #f1f1ec;
  color: #8a8d86;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}
.clock {
  width: fit-content;
  color: #4e504a;
  font-size: 0;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.clock::after { content: "22°"; font-size: 42px; }
.date { margin-top: -1px; color: #8a8d86; font-size: 15px; line-height: 1.05; }
.date::after { content: "\A多云 · 舒适"; white-space: pre; }
.greeting { margin: 7px 0 0; color: #4e504a; font-size: 17px; line-height: 1.35; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 10px;
  margin: 42px -1px 0;
}
.app-entry { min-width: 0; border: 0; background: none; padding: 0; cursor: pointer; color: #4e504a; }
.app-icon {
  width: 64px;
  height: 64px;
  margin: auto;
  border: 1px solid #e7e7e1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1f1ec;
  color: #8a8d86;
  font-size: 28px;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  filter: grayscale(1);
}
.app-icon--chat,
.app-icon--char,
.app-icon--settings,
.app-icon--phone,
.app-icon--savings { background: #f1f1ec; }
.app-icon--pet { background: #f6f1ea; }
.app-icon--social { background: #17182c; }
.app-icon--job { background: #fff7f4; }
.app-icon--travel { background: #fdfcf9; }
.app-icon--worldbook { background: #fcf9f7; }
.app-grid .app-icon--chat,
.app-grid .app-icon--char,
.app-grid .app-icon--settings,
.app-grid .app-icon--phone,
.app-grid .app-icon--savings,
  .app-grid .app-icon--pet,
  .app-grid .app-icon--social,
  .app-grid .app-icon--job,
  .app-grid .app-icon--travel,
  .app-grid .app-icon--worldbook {
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.app-grid .app-icon--chat > svg,
.app-grid .app-icon--char > svg,
.app-grid .app-icon--settings > svg,
.app-grid .app-icon--phone > svg,
.app-grid .app-icon--savings > svg,
  .app-grid .app-icon--pet > svg,
  .app-grid .app-icon--social > svg,
  .app-grid .app-icon--job > svg,
  .app-grid .app-icon--travel > svg,
  .app-grid .app-icon--worldbook > svg {
  position: absolute;
  top: -8px;
  left: -12px;
  display: block;
  max-width: none;
}
.app-label { margin-top: 8px; color: #4e504a; font-size: 13px; line-height: 1.2; }
.dock {
  min-height: 78px;
  margin: auto -4px max(18px, env(safe-area-inset-bottom));
  padding: 13px 54px;
  border: 1px solid #e7e7e1;
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .03);
}
.dock .app-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  font-size: 24px;
}
.dock .app-entry:nth-child(3) { order: 4; }
.dock .app-entry:nth-child(4) { order: 3; }
@media (max-width: 360px) {
  .home { padding-inline: 16px; }
  .app-grid { gap: 0 4px; }
  .app-icon { width: 58px; height: 58px; }
  .dock { padding-inline: 34px; }
}

.form { display: grid; gap: 8px; }
.form label { margin-top: 12px; font-size: 14px; font-weight: 700; }
.input {
  width: 100%; border: 1px solid var(--line); background: #f7f7f9; color: var(--ink);
  border-radius: 14px; padding: 14px; outline: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,159,232,.12); }
textarea.input { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions > * { flex: 1; }
.primary { border: 0; border-radius: 15px; padding: 15px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.api-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.api-action-row button { min-height: 46px; touch-action: manipulation; }
.api-action-row button:disabled { cursor: wait; opacity: .55; }
.api-model-select { appearance: auto; cursor: pointer; }
#apiStatus { min-height: 20px; margin: 4px 0 0; }
.secondary { border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #fff; font-weight: 650; cursor: pointer; }
.danger { color: var(--danger); }

.list { display: grid; gap: 1px; overflow: hidden; border-radius: 18px; }
.list-row {
  width: 100%; min-height: 76px; border: 0; background: #fff; display: flex; align-items: center;
  gap: 13px; padding: 12px 14px; text-align: left; cursor: pointer;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row__sub { margin-top: 4px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { border-radius: 999px; background: #e8f7ff; color: #087cb6; padding: 5px 9px; font-size: 12px; white-space: nowrap; }
.avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg,#e8e8ee,#cfcfd7); color: #686873; font-size: 23px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; border-radius: 32px; font-size: 34px; }
.empty { min-height: 45vh; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 32px; }

.chat-header { background: #fff; padding: max(14px, env(safe-area-inset-top)) 18px 16px; }
.chat-header[hidden] { display: none; }
.chat-identity { display: flex; align-items: center; gap: 13px; }
.chat-identity__main { flex: 1; }
.chat-identity__name { font-size: 21px; font-weight: 750; }
.online { color: var(--muted); font-size: 14px; margin-top: 4px; }
.online::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.plus { border: 0; background: none; font-size: 42px; font-weight: 250; line-height: 1; cursor: pointer; }
.search { height: 48px; margin-top: 13px; border-radius: 16px; background: #f6f6f9; display: flex; align-items: center; justify-content: center; gap: 8px; color: #929298; font-size: 17px; }
.chat-content { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: var(--page); contain: layout paint; }
.mine-active .chat-content { padding-top: max(18px, env(safe-area-inset-top)); }
.chat-panel { min-height: 100%; contain: layout style; }
.chat-panel--me { display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.tabbar { display: grid; grid-template-columns: repeat(4,1fr); min-height: 76px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); contain: layout paint; }
.tab { border: 0; background: none; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 12px; cursor: pointer; }
.tab__icon { font-size: 22px; }
.tab.active { color: var(--blue); }
.tab:active { background: rgba(10,159,232,.06); }
.quick-menu { position: fixed; z-index: 20; top: max(82px, calc(env(safe-area-inset-top) + 68px)); right: max(16px, calc((100vw - 480px)/2 + 16px)); width: 170px; padding: 7px; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); border: 1px solid var(--line); }
.quick-menu button { width: 100%; border: 0; background: none; text-align: left; padding: 13px; border-radius: 11px; cursor: pointer; }
.quick-menu button:hover { background: var(--page); }

.profile-card { background: #fff; padding: 24px 22px; display: flex; align-items: center; gap: 18px; }
.profile-card__main { flex: 1; min-width: 0; }
.profile-card__name { font-size: 25px; font-weight: 750; }
.mine-profile { background: #fff; padding: 24px 22px; display: flex; align-items: center; gap: 18px; }
.mine-signature { margin-top: 14px; }
.mine-functions { margin-top: 18px; }
.mine-spacer { flex: 1 1 auto; min-height: 18px; }

.glass-settings-screen { height: 100%; min-height: 0; overflow: hidden; background: #f0f1f3; }
.glass-settings-header { flex: 0 0 auto; min-height: 68px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 10px 20px; background: rgba(255,255,255,.92); box-shadow: 0 3px 16px rgba(29,31,36,.08); z-index: 3; }
.glass-settings-header h1 { margin: 0; text-align: center; font-size: clamp(22px,6vw,26px); color: #1c1c1e; }
.glass-settings-back { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(25,27,32,.08); font-size: 34px; line-height: 1; cursor: pointer; }
.glass-settings-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 24px 20px max(30px,calc(env(safe-area-inset-bottom) + 16px)); scrollbar-width: none; }
.glass-settings-scroll::-webkit-scrollbar { display: none; }
.glass-settings-avatars { display: flex; justify-content: center; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.glass-settings-person { display: grid; justify-items: center; gap: 8px; }
.glass-settings-person .avatar { width: clamp(92px,30vw,120px); aspect-ratio: 1; height: auto; border-radius: 50%; background: #e8e9eb; box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 8px 20px rgba(35,38,45,.13); font-size: 35px; }
.glass-settings-person--ai .avatar { background: #2c2c2e; color: #fff; }
.glass-settings-person strong { color: #1c1c1e; font-size: 18px; }
.glass-settings-board { position: relative; padding: 24px 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 36px; background: rgba(216,220,226,.72); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(37,40,47,.12); }
.glass-settings-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2,minmax(0,46%)); grid-template-rows: repeat(2,auto); justify-content: space-between; gap: 24px 8px; }
.glass-settings-grid.is-hidden { display: none; }
.glass-setting-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.87); backdrop-filter: blur(18px); box-shadow: 0 8px 18px rgba(37,40,47,.13),inset 0 1px 0 #fff; }
.glass-setting-card--dark { color: #fff; border-color: rgba(255,255,255,.08); background: #1c1c1e; box-shadow: 0 9px 20px rgba(15,16,19,.28),inset 0 1px 0 rgba(255,255,255,.11); }
.glass-setting-entry { width: 100%; min-height: 106px; flex: 1 1 0; display: grid; grid-template-columns: clamp(26px,8vw,32px) minmax(0,1fr) 13px; align-items: center; gap: 8px; padding: 14px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.glass-setting-entry__icon { text-align: center; font-size: clamp(23px,7vw,31px); line-height: 1; }
.glass-setting-entry__text { min-width: 0; display: grid; gap: 7px; }
.glass-setting-entry__text strong { font-size: clamp(13px,3.8vw,17px); line-height: 1.15; }
.glass-setting-entry__text small { color: #6e6e73; font-size: clamp(9px,2.6vw,12px); line-height: 1.3; overflow-wrap: anywhere; }
.glass-setting-card--dark .glass-setting-entry__text small { color: #aeaeb2; }
.glass-setting-entry__arrow { font-size: 24px; font-weight: 300; }
.glass-setting-card__divider { height: 1px; margin: 0 13px; background: #d1d1d6; }
.glass-setting-card--dark .glass-setting-card__divider { background: #3a3a3c; }
.glass-node-lines { position: absolute; z-index: 1; inset: 20px 50% 20px auto; width: 1px; background: #111; pointer-events: none; }
.glass-node-lines i { position: absolute; left: 50%; width: 14px; height: 14px; transform: translate(-50%,-50%); border: 2px solid #111; border-radius: 50%; background: #f0f1f3; }
.glass-node-lines i::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: clamp(76px,24vw,112px); height: 9px; transform: translate(-50%,-50%); background: radial-gradient(circle at left center,#111 0 4px,transparent 4.5px),radial-gradient(circle at right center,#111 0 4px,transparent 4.5px),linear-gradient(#111,#111) center/100% 1px no-repeat; }
.glass-node-lines i:nth-child(1) { top: 14%; }.glass-node-lines i:nth-child(2) { top: 38%; }.glass-node-lines i:nth-child(3) { top: 62%; }.glass-node-lines i:nth-child(4) { top: 86%; }
.glass-settings-tabs { width: min(100%,340px); min-height: 66px; margin: 24px auto 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; background: rgba(255,255,255,.88); box-shadow: 0 8px 20px rgba(31,34,40,.16); }
.glass-settings-tabs button { border: 0; border-radius: 28px; background: transparent; color: #1c1c1e; display: grid; place-content: center; gap: 3px; cursor: pointer; }
.glass-settings-tabs strong { font-size: 16px; }.glass-settings-tabs small { color: #6e6e73; font-size: 11px; }
.glass-settings-tabs button.active { color: #fff; background: #1c1c1e; }.glass-settings-tabs button.active small { color: #aeaeb2; }
.glass-settings-save { width: 100%; min-height: 64px; margin-top: 16px; border: 0; border-radius: 32px; background: #1c1c1e; color: #fff; box-shadow: 0 10px 22px rgba(23,24,28,.25); font-size: 18px; font-weight: 700; cursor: pointer; }

.messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble--user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 5px; }
.bubble--assistant { align-self: flex-start; background: #f1f1f4; border-bottom-left-radius: 5px; }
.bubble--error { align-self: center; max-width: 100%; background: #fff0f1; color: var(--danger); text-align: center; font-size: 13px; }
.composer { display: flex; gap: 8px; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); background: #f5f5f7; }
.composer textarea { flex: 1; min-height: 48px; max-height: 130px; resize: none; }
.composer button { width: 68px; border: 0; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 700; }
.status { text-align: center; color: var(--muted); font-size: 13px; padding: 5px; }

.check { width: 25px; height: 25px; accent-color: var(--blue); }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.34); }
.modal { width: min(100%, 420px); border-radius: 22px; background: #fff; padding: 22px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 8px; font-size: 21px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(17,17,17,.9); color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s ease; white-space: nowrap; max-width: 88vw; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card, .mine-profile { align-items: flex-start; }
  .glass-settings-scroll { padding-inline: 10px; }.glass-settings-avatars { gap: 12px; }.glass-settings-board { padding: 20px 10px; border-radius: 30px; }.glass-settings-grid { gap: 18px 8px; }.glass-setting-card { border-radius: 20px; }.glass-setting-entry { min-height: 96px; grid-template-columns: 24px minmax(0,1fr) 9px; gap: 5px; padding: 12px 7px; }.glass-setting-entry__text strong { font-size: 12px; }
}
@media (min-width: 700px) {
  body { padding: 0; overflow-x: hidden; }
  #app,
  #app:has(.savings-host),
  #app:has(.chat-host),
  #app:has(.pet-host),
  #app:has(.social-host),
  #app:has(.job-host),
  #app:has(.travel-host),
  #app:has(.worldbook-host) {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    border-radius: 0;
  }
  .page-wrap { width: 100%; height: 100dvh; }
  .screen { width: 100%; min-height: 100dvh; }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .screen__body { padding-inline: clamp(24px, 5vw, 56px); }
}

/* Figma: Lirael Chat App — Entire Screen Recapture */
.figma-matched-shell {
  --dark-page: #0f0f10;
  --dark-page-deep: #0b0b0d;
  --dark-card: #1c1c1e;
  --dark-card-soft: #1a1a1c;
  --dark-raised: #2a2a31;
  --dark-border: #2c2c2e;
  --dark-border-strong: #34343a;
  --dark-text: #f5f5f7;
  --dark-muted: #8e8e93;
  --dark-shadow: 0 12px 28px rgba(0, 0, 0, .4);
  background: #050506;
}

.figma-matched-shell #app { background: var(--dark-page); box-shadow: 0 0 56px rgba(0,0,0,.42); }
.figma-matched-shell .screen:not(.home) { background: var(--dark-page); color: var(--dark-text); }
.figma-matched-shell .screen--gray:not(.home) { background: var(--dark-page); }

.figma-matched-shell .topbar {
  min-height: 72px;
  padding: 12px 16px;
  gap: 10px;
  background: rgba(15,15,16,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.figma-matched-shell .topbar__title { color: #fff; font-size: 18px; font-weight: 600; }
.figma-matched-shell .icon-btn,
.figma-matched-shell .text-btn {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--dark-border-strong);
  border-radius: 22px;
  background: #1c1c1f;
  color: #fff;
}
.figma-matched-shell .text-btn { padding: 0 14px; border-radius: 999px; }
.figma-matched-shell .text-btn--primary { background: #fff; border-color: #fff; color: #111; }
.figma-matched-shell .text-btn--danger { color: #ff6b6b; }

.figma-matched-shell .screen__body {
  padding: 24px 20px;
  background: var(--dark-page);
  color: var(--dark-text);
}
.figma-matched-shell .hint { color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.figma-matched-shell .form { gap: 10px; }
.figma-matched-shell .form label { color: var(--dark-muted); font-size: 13px; font-weight: 500; }
.figma-matched-shell .input {
  min-height: 48px;
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: #fff;
  padding: 14px 16px;
}
.figma-matched-shell .input::placeholder { color: var(--dark-muted); opacity: 1; }
.figma-matched-shell .input:focus { border-color: #55555e; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.figma-matched-shell textarea.input { min-height: 120px; }
.figma-matched-shell .primary,
.figma-matched-shell .secondary {
  min-height: 52px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
}
.figma-matched-shell .primary { background: #fff; color: #111; }
.figma-matched-shell .secondary { border-color: var(--dark-border); background: var(--dark-card); color: #fff; }

.figma-matched-shell .list {
  gap: 0;
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  background: var(--dark-card);
  box-shadow: var(--dark-shadow);
}
.figma-matched-shell .list-row {
  min-height: 76px;
  padding: 12px 14px;
  background: var(--dark-card);
  color: var(--dark-text);
}
.figma-matched-shell .list-row + .list-row { border-top-color: var(--dark-border); }
.figma-matched-shell .list-row__title { color: var(--dark-text); font-size: 16px; font-weight: 600; }
.figma-matched-shell .list-row__sub { color: var(--dark-muted); }
.figma-matched-shell .badge { border: 1px solid var(--dark-border); background: #1c1c1e; color: #fff; }
.figma-matched-shell .avatar {
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  background: #2c2c2e;
  color: #fff;
}
.figma-matched-shell .avatar--lg { width: 96px; height: 96px; border-radius: 50%; }
.figma-matched-shell .empty { color: var(--dark-muted); line-height: 1.5; }

/* Chat shell */
.figma-matched-shell .chat-header {
  padding: max(18px, env(safe-area-inset-top)) 18px 16px;
  background: #111;
  border-bottom: 1px solid #1c1c1e;
}
.figma-matched-shell .chat-identity { gap: 12px; }
.figma-matched-shell .chat-identity .avatar { width: 54px; height: 54px; font-size: 22px; }
.figma-matched-shell .chat-identity__name { color: #fff; font-size: 20px; font-weight: 500; }
.figma-matched-shell .online { margin-top: 4px; color: var(--dark-muted); font-size: 13px; }
.figma-matched-shell .online::before { width: 8px; height: 8px; margin-right: 6px; background: #fff; }
.figma-matched-shell .plus {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--dark-border);
  border-radius: 27px;
  background: #1a1a1c;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  box-shadow: 0 8px 10px rgba(0,0,0,.25);
}
.figma-matched-shell .search {
  height: 48px;
  margin-top: 12px;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  background: #1a1a1c;
  color: var(--dark-muted);
  font-size: 16px;
}
.figma-matched-shell .search--svg {
  border: 0;
  background: transparent;
  overflow: hidden;
}
.figma-matched-shell .search--svg > svg {
  display: block;
  width: 354px;
  height: 48px;
  max-width: 100%;
}
.figma-matched-shell .chat-content { padding: 18px; background: var(--dark-page); }
.figma-matched-shell .chat-panel > .list { margin-top: 0; }
.figma-matched-shell .chat-panel > .empty { min-height: 380px; padding-inline: 32px; font-size: 16px; }

.figma-matched-shell .tabbar {
  min-height: 76px;
  height: 76px;
  gap: 4px;
  padding: 7px 10px env(safe-area-inset-bottom);
  border: 1px solid #303038;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(21,21,24,.98);
  box-shadow: 0 -8px 12px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.figma-matched-shell .tab {
  height: 62px;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 19px;
  color: #85858e;
  font-size: 11px;
  font-weight: 500;
}
.figma-matched-shell .tab__icon { font-size: 22px; line-height: 28px; filter: grayscale(1); }
.figma-matched-shell .tab.active {
  border-color: #42424c;
  background: #2a2a31;
  color: #fff;
  box-shadow: 0 5px 6px rgba(0,0,0,.35);
}

/* Anima/Figma message module. Scoped so contacts, mini programs and mine stay unchanged. */
.figma-matched-shell .anima-message {
  height: 100dvh;
  min-height: 844px;
  overflow: hidden;
  background: #0f0f10;
  color: #fff;
  font-family: "Inter-Medium", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.figma-matched-shell .anima-message__header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: max(18px,env(safe-area-inset-top)) 18px 16px;
  border-bottom: 1px solid #1c1c1e;
  background: #111;
}
.figma-matched-shell .anima-message__identity { display: flex; align-items: center; gap: 12px; }
.figma-matched-shell .anima-message__avatar,
.figma-matched-shell .anima-message__plus {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 27px;
  background: #1a1a1c;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.figma-matched-shell .anima-message__avatar .avatar {
  width: 54px;
  height: 54px;
  border: 0;
  background: #1a1a1c;
  font-size: 22px;
}
.figma-matched-shell .anima-message__user { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.figma-matched-shell .anima-message__user strong { overflow: hidden; max-width: 100%; color: #fff; font-size: 20px; font-weight: 500; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-message__user span { display: flex; align-items: center; gap: 6px; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 13px; line-height: 16px; }
.figma-matched-shell .anima-message__user i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.figma-matched-shell .anima-message__plus { font-size: 24px; font-weight: 500; line-height: 1; }
.figma-matched-shell .anima-message__avatar:active,
.figma-matched-shell .anima-message__plus:active { transform: scale(.96); background: #242426; }
.figma-matched-shell .anima-message__widget {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  background: #1a1a1c;
}
.figma-matched-shell .anima-message__widget > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.figma-matched-shell .anima-message__widget > i { width: 1px; height: 24px; background: #2c2c2e; }
.figma-matched-shell .anima-message__widget small { color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 11px; line-height: 13px; white-space: nowrap; }
.figma-matched-shell .anima-message__widget strong { color: #fff; font-size: 13px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.figma-matched-shell .anima-message__content { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: #0f0f10; contain: layout paint; }
.figma-matched-shell .anima-message__content .empty { min-height: 379.8px; padding-inline: 32px; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 16px; line-height: 24px; }
.figma-matched-shell .anima-message__nav { flex: 0 0 76px; }
.figma-matched-shell .anima-message__nav .tab > span:last-child { line-height: 13px; }
.figma-matched-shell .anima-message__bubble,
.figma-matched-shell .anima-message__people,
.figma-matched-shell .anima-message__grid,
.figma-matched-shell .anima-message__person { position: relative; display: block; width: 28px; height: 28px; }
.figma-matched-shell .anima-message__bubble { width: 24px; height: 19px; margin: 3px 2px 6px; border-radius: 8px; background: #f7f7f8; }
.figma-matched-shell .anima-message__bubble::after { content: ""; position: absolute; left: 3px; bottom: -5px; width: 8px; height: 8px; background: #f7f7f8; clip-path: polygon(0 0,100% 0,0 100%); }
.figma-matched-shell .anima-message__bubble i { position: absolute; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #17171b; }
.figma-matched-shell .anima-message__bubble i:first-child { left: 7px; }.figma-matched-shell .anima-message__bubble i:last-child { right: 7px; }
.figma-matched-shell .anima-message__people i { position: absolute; border: 1.7px solid #8b8b94; border-radius: 50%; }
.figma-matched-shell .anima-message__people i:first-child { top: 4px; left: 4px; width: 9px; height: 9px; }.figma-matched-shell .anima-message__people i:nth-child(2) { top: 6px; left: 16px; width: 7px; height: 7px; }
.figma-matched-shell .anima-message__people b { position: absolute; top: 15px; border: 1.7px solid #8b8b94; border-radius: 6px; }.figma-matched-shell .anima-message__people b:nth-of-type(1) { left: 2px; width: 14px; height: 9px; }.figma-matched-shell .anima-message__people b:nth-of-type(2) { left: 15px; width: 11px; height: 8px; }
.figma-matched-shell .anima-message__grid { display: grid; grid-template-columns: repeat(2,9px); grid-template-rows: repeat(2,9px); gap: 4px; padding: 3px; }
.figma-matched-shell .anima-message__grid i { border: 1.7px solid #8b8b94; border-radius: 3px; }
.figma-matched-shell .anima-message__person i { position: absolute; top: 2px; left: 8px; width: 12px; height: 12px; border: 1.7px solid #8b8b94; border-radius: 50%; }
.figma-matched-shell .anima-message__person b { position: absolute; top: 15px; left: 3px; width: 22px; height: 11px; border: 1.7px solid #8b8b94; border-radius: 7px; }

@media (max-height: 843px) {
  .figma-matched-shell .anima-message { min-height: 100dvh; }
  .figma-matched-shell .anima-message__content .empty { min-height: 45vh; }
}

/* Anima/Figma contacts module. Deliberately separate from the message header and widgets. */
.figma-matched-shell .anima-contacts {
  height: 100dvh;
  min-height: 844px;
  overflow: hidden;
  background: #0f0f12;
  color: #f5f5f7;
  font-family: "Inter-Medium", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.figma-matched-shell .anima-contacts__header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: max(18px,env(safe-area-inset-top)) 18px 16px;
  background: #0f0f12;
}
.figma-matched-shell .anima-contacts__identity { height: 54px; display: flex; align-items: center; gap: 13px; }
.figma-matched-shell .anima-contacts__avatar,
.figma-matched-shell .anima-contacts__plus {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #2c2c2e;
  border-radius: 27px;
  background: #1c1c1e;
  color: #f5f5f7;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  cursor: pointer;
}
.figma-matched-shell .anima-contacts__avatar .avatar { width: 52px; height: 52px; border: 0; background: #1c1c1e; font-size: 22px; }
.figma-matched-shell .anima-contacts__user { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.figma-matched-shell .anima-contacts__user strong { overflow: hidden; max-width: 100%; color: #f5f5f7; font-size: 22px; font-weight: 500; line-height: 27px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-contacts__user span { display: flex; align-items: center; gap: 6px; padding-top: 4px; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 13px; line-height: 16px; }
.figma-matched-shell .anima-contacts__user i { width: 9px; height: 9px; border: 1px solid #3a3a3c; border-radius: 50%; background: #1c1c1e; }
.figma-matched-shell .anima-contacts__plus { font-family: "Inter-Regular", Inter, sans-serif; font-size: 24px; font-weight: 400; line-height: 1; }
.figma-matched-shell .anima-contacts__avatar:active,
.figma-matched-shell .anima-contacts__plus:active { transform: scale(.96); background: #242426; }
.figma-matched-shell .anima-contacts__today,
.figma-matched-shell .anima-contacts__shortcuts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #2c2c2e;
  border-radius: 20px;
  background: #1c1c1e;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.figma-matched-shell .anima-contacts__widget-head { display: flex; align-items: center; justify-content: space-between; }
.figma-matched-shell .anima-contacts__widget-head strong,
.figma-matched-shell .anima-contacts__shortcuts > strong { color: #f5f5f7; font-size: 14px; font-weight: 500; line-height: 17px; }
.figma-matched-shell .anima-contacts__widget-head span { color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 12px; line-height: 15px; }
.figma-matched-shell .anima-contacts__recent { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.figma-matched-shell .anima-contacts__recent-avatar { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #2c2c2e; border-radius: 50%; background: #2a2a31; display: grid; place-items: center; color: #f5f5f7; font-size: 14px; font-weight: 600; }
.figma-matched-shell .anima-contacts__recent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.figma-matched-shell .anima-contacts__recent-info strong { overflow: hidden; color: #f5f5f7; font-size: 15px; font-weight: 500; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-contacts__recent-info small { overflow: hidden; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 13px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-contacts__status { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #2c2c2e; border-radius: 50%; background: #2a2a31; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.figma-matched-shell .anima-contacts__shortcuts { background: #1a1a1c; }
.figma-matched-shell .anima-contacts__shortcuts > div { display: flex; align-items: stretch; gap: 12px; }
.figma-matched-shell .anima-contacts__shortcuts button { flex: 1; min-width: 0; height: 72px; padding: 8px 4px; border: 1px solid #3a3a3d; border-radius: 18px; background: #3a3a3d; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-family: "Inter-Regular", Inter, sans-serif; font-size: 12px; cursor: pointer; }
.figma-matched-shell .anima-contacts__shortcuts button > span { width: 32px; height: 32px; display: block; flex: 0 0 32px; overflow: hidden; color: transparent; font-size: 0; background-repeat: no-repeat; background-position: center; background-size: 32px 32px; }
.figma-matched-shell .anima-contacts__shortcuts button:nth-child(1) > span { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' fill='%231A1A1C'/%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' stroke='%232C2C2E'/%3E%3Cpath d='M11.3328 16H20.6672M16 11.3328V20.6672' stroke='%23F5F5F7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.figma-matched-shell .anima-contacts__shortcuts button:nth-child(2) > span { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' fill='%231A1A1C'/%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' stroke='%232C2C2E'/%3E%3Cpath d='M10 12.6667V11.3333C10 10.9797 10.1405 10.6406 10.3905 10.3905C10.6406 10.1405 10.9797 10 11.3333 10H12.6667M19.3333 10H20.6667C21.0203 10 21.3594 10.1405 21.6095 10.3905C21.8595 10.6406 22 10.9797 22 11.3333V12.6667M22 19.3333V20.6667C22 21.0203 21.8595 21.3594 21.6095 21.6095C21.3594 21.8595 21.0203 22 20.6667 22H19.3333M12.6667 22H11.3333C10.9797 22 10.6406 21.8595 10.3905 21.6095C10.1405 21.3594 10 21.0203 10 20.6667V19.3333' stroke='%23F5F5F7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.figma-matched-shell .anima-contacts__shortcuts button:nth-child(3) > span { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' fill='%231A1A1C'/%3E%3Crect x='0.5' y='0.5' width='31' height='31' rx='15.5' stroke='%232C2C2E'/%3E%3Cg clip-path='url(%23clip0_19_45)'%3E%3Cpath d='M17.3332 9.3328H12.0004C11.6468 9.3328 11.3077 9.47328 11.0577 9.72335C10.8076 9.97342 10.6672 10.3126 10.6672 10.6662V21.3338C10.6672 21.6874 10.8076 22.0266 11.0577 22.2766C11.3077 22.5267 11.6468 22.6672 12.0004 22.6672H19.9996C20.3532 22.6672 20.6923 22.5267 20.9423 22.2766C21.1923 22.0266 21.3328 21.6874 21.3328 21.3338V13.3331M17.3332 9.3328C17.5442 9.33245 17.7532 9.37387 17.9481 9.45465C18.1431 9.53544 18.3201 9.65399 18.4691 9.8035L20.8608 12.1957C21.0107 12.3447 21.1296 12.5219 21.2106 12.7172C21.2916 12.9124 21.3331 13.1217 21.3328 13.3331M17.3332 9.3328V12.6664C17.3332 12.8432 17.4034 13.0128 17.5284 13.1378C17.6534 13.2629 17.823 13.3331 17.9998 13.3331L21.3328 13.3331M14.6668 13.9998H13.3336M18.6664 16.6667H13.3336M18.6664 19.3336H13.3336' stroke='%23F5F5F7' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_19_45'%3E%3Crect width='16' height='16' fill='white' transform='translate(8 8)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E"); }
.figma-matched-shell .anima-contacts__shortcuts button:active { transform: scale(.98); background: #444448; }
.figma-matched-shell .anima-contacts__content { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: #0f0f12; }
.figma-matched-shell .anima-contacts__list { overflow: hidden; border: 1px solid #2c2c2e; border-radius: 24px; background: #1c1c1e; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.figma-matched-shell .anima-contacts__list button { width: 100%; height: 76px; padding: 12px 14px; border: 0; background: #1c1c1e; color: #f5f5f7; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.figma-matched-shell .anima-contacts__list button + button { border-top: 1px solid #2c2c2e; }
.figma-matched-shell .anima-contacts__list button:active { background: #242426; }
.figma-matched-shell .anima-contacts__list b { color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 16px; font-weight: 400; }
.figma-matched-shell .anima-contacts__nav { flex: 0 0 76px; }
.figma-matched-shell .anima-contacts__nav .tab > span:last-child { line-height: 13px; }
.figma-matched-shell .anima-contacts__bubble,
.figma-matched-shell .anima-contacts__people,
.figma-matched-shell .anima-contacts__grid,
.figma-matched-shell .anima-contacts__person { position: relative; display: block; width: 28px; height: 28px; }
.figma-matched-shell .anima-contacts__bubble { width: 24px; height: 19px; margin: 3px 2px 6px; border: 1.7px solid #8b8b94; border-radius: 8px; }
.figma-matched-shell .anima-contacts__bubble::after { content: ""; position: absolute; left: 2px; bottom: -6px; width: 9px; height: 8px; border-left: 1.7px solid #8b8b94; transform: skew(-28deg); }
.figma-matched-shell .anima-contacts__bubble i { position: absolute; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #8b8b94; }.figma-matched-shell .anima-contacts__bubble i:first-child { left: 7px; }.figma-matched-shell .anima-contacts__bubble i:last-child { right: 7px; }
.figma-matched-shell .anima-contacts__people i { position: absolute; border-radius: 50%; background: #f7f7f8; }.figma-matched-shell .anima-contacts__people i:first-child { top: 4px; left: 4px; width: 9px; height: 9px; }.figma-matched-shell .anima-contacts__people i:nth-child(2) { top: 6px; left: 16px; width: 7px; height: 7px; }
.figma-matched-shell .anima-contacts__people b { position: absolute; top: 15px; border-radius: 6px; background: #f7f7f8; }.figma-matched-shell .anima-contacts__people b:nth-of-type(1) { left: 2px; width: 14px; height: 9px; }.figma-matched-shell .anima-contacts__people b:nth-of-type(2) { left: 15px; width: 11px; height: 8px; }
.figma-matched-shell .anima-contacts__grid { display: grid; grid-template-columns: repeat(2,9px); grid-template-rows: repeat(2,9px); gap: 4px; padding: 3px; }.figma-matched-shell .anima-contacts__grid i { border: 1.7px solid #8b8b94; border-radius: 3px; }
.figma-matched-shell .anima-contacts__person i { position: absolute; top: 2px; left: 8px; width: 12px; height: 12px; border: 1.7px solid #8b8b94; border-radius: 50%; }.figma-matched-shell .anima-contacts__person b { position: absolute; top: 15px; left: 3px; width: 22px; height: 11px; border: 1.7px solid #8b8b94; border-radius: 7px; }

@media (max-height: 843px) {
  .figma-matched-shell .anima-contacts { min-height: 100dvh; }
}

/* Anima/Figma mini-program module. Its header and widgets are intentionally standalone. */
.figma-matched-shell .anima-mini {
  height: 100dvh;
  min-height: 844px;
  overflow: hidden;
  background: #0f0f10;
  color: #f5f5f7;
  font-family: "Inter-Medium", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.figma-matched-shell .anima-mini__header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: max(18px,env(safe-area-inset-top)) 18px 16px;
  background: #0f0f10;
}
.figma-matched-shell .anima-mini__identity { height: 54px; display: flex; align-items: center; gap: 13px; }
.figma-matched-shell .anima-mini__avatar,
.figma-matched-shell .anima-mini__plus {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 27px;
  background: #1a1a1c;
  color: #f5f5f7;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  cursor: pointer;
}
.figma-matched-shell .anima-mini__avatar { border: 1px solid #2c2c2e; }
.figma-matched-shell .anima-mini__avatar .avatar { width: 52px; height: 52px; border: 0; background: #1a1a1c; font-size: 24px; font-weight: 300; }
.figma-matched-shell .anima-mini__user { flex: 1; min-width: 0; height: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.figma-matched-shell .anima-mini__user strong { overflow: hidden; max-width: 100%; color: #f5f5f7; font-size: 20px; font-weight: 500; line-height: 30px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-mini__user span { height: 20px; display: flex; align-items: center; gap: 6px; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 13px; line-height: 16px; }
.figma-matched-shell .anima-mini__user i { width: 8px; height: 8px; border-radius: 50%; background: #f5f5f7; }
.figma-matched-shell .anima-mini__plus { border: 1px solid #2c2c2e; font-family: "Inter-Light", Inter, sans-serif; font-size: 28px; font-weight: 300; line-height: 1; }
.figma-matched-shell .anima-mini__avatar:active,
.figma-matched-shell .anima-mini__plus:active { transform: scale(.96); background: #242426; }
.figma-matched-shell .anima-mini__widgets { height: 88px; display: flex; align-items: stretch; gap: 12px; }
.figma-matched-shell .anima-mini__widgets > button {
  flex: 1;
  min-width: 0;
  height: 88px;
  padding: 12px;
  border: 1px solid #2c2c2e;
  border-radius: 18px;
  background: #1a1a1c;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.figma-matched-shell .anima-mini__widgets > button:active { transform: scale(.98); background: #222225; }
.figma-matched-shell .anima-mini__widgets > button > span { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.figma-matched-shell .anima-mini__widgets strong { overflow: hidden; font-size: 13px; font-weight: 500; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-mini__widgets b { flex: 0 0 auto; padding: 2px 6px; border: 1px solid #3a3a40; border-radius: 999px; background: #2a2a31; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 11px; font-weight: 400; line-height: 13px; }
.figma-matched-shell .anima-mini__widgets small { width: 100%; overflow: hidden; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 12px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-mini__content { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: #0f0f10; }
.figma-matched-shell .anima-mini__empty { min-height: 100%; display: grid; place-items: center; color: #8e8e93; font-family: "Inter-Regular", Inter, sans-serif; font-size: 15px; line-height: 18px; }
.savings-host { height: 100dvh; min-height: 0; background: #0c0c0d; }
.savings-host__bar { flex: 0 0 auto; min-height: 60px; padding: 8px 14px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(12,12,13,.92); color: #fff; backdrop-filter: blur(20px); }
.savings-host__bar button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.savings-host__bar h1 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; }
.savings-host__frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: #0c0c0d; }
.figma-matched-shell .anima-mini__nav { flex: 0 0 76px; }
.figma-matched-shell .anima-mini__nav .tab > span:last-child { line-height: 13px; }
.figma-matched-shell .anima-mini__bubble,
.figma-matched-shell .anima-mini__people,
.figma-matched-shell .anima-mini__grid,
.figma-matched-shell .anima-mini__person { position: relative; display: block; width: 28px; height: 28px; }
.figma-matched-shell .anima-mini__bubble { width: 24px; height: 19px; margin: 3px 2px 6px; border: 1.7px solid #8b8b94; border-radius: 8px; }
.figma-matched-shell .anima-mini__bubble::after { content: ""; position: absolute; left: 2px; bottom: -6px; width: 9px; height: 8px; border-left: 1.7px solid #8b8b94; transform: skew(-28deg); }
.figma-matched-shell .anima-mini__bubble i { position: absolute; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #8b8b94; }.figma-matched-shell .anima-mini__bubble i:first-child { left: 7px; }.figma-matched-shell .anima-mini__bubble i:last-child { right: 7px; }
.figma-matched-shell .anima-mini__people i { position: absolute; border: 1.7px solid #8b8b94; border-radius: 50%; }.figma-matched-shell .anima-mini__people i:first-child { top: 4px; left: 4px; width: 9px; height: 9px; }.figma-matched-shell .anima-mini__people i:nth-child(2) { top: 6px; left: 16px; width: 7px; height: 7px; }
.figma-matched-shell .anima-mini__people b { position: absolute; top: 15px; border: 1.7px solid #8b8b94; border-radius: 6px; }.figma-matched-shell .anima-mini__people b:nth-of-type(1) { left: 2px; width: 14px; height: 9px; }.figma-matched-shell .anima-mini__people b:nth-of-type(2) { left: 15px; width: 11px; height: 8px; }
.figma-matched-shell .anima-mini__grid { display: grid; grid-template-columns: repeat(2,9px); grid-template-rows: repeat(2,9px); gap: 4px; padding: 3px; }.figma-matched-shell .anima-mini__grid i { border-radius: 3px; background: #f7f7f8; }
.figma-matched-shell .anima-mini__grid i:first-child,
.figma-matched-shell .anima-mini__grid i:last-child { position: relative; }.figma-matched-shell .anima-mini__grid i:first-child::after,.figma-matched-shell .anima-mini__grid i:last-child::after { content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #17171b; top: 3px; left: 3px; }
.figma-matched-shell .anima-mini__person i { position: absolute; top: 2px; left: 8px; width: 12px; height: 12px; border: 1.7px solid #8b8b94; border-radius: 50%; }.figma-matched-shell .anima-mini__person b { position: absolute; top: 15px; left: 3px; width: 22px; height: 11px; border: 1.7px solid #8b8b94; border-radius: 7px; }

@media (max-height: 843px) {
  .figma-matched-shell .anima-mini { min-height: 100dvh; }
}

/* Anima/Figma profile module. It intentionally owns its layout and has no shared chat header. */
.figma-matched-shell .anima-me {
  height: 100dvh;
  min-height: 844px;
  overflow: hidden;
  background: #0b0b0d;
  color: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.figma-matched-shell .anima-me__content { flex: 1; min-height: 0; overflow-y: auto; padding: max(18px,env(safe-area-inset-top)) 18px 18px; }
.figma-matched-shell .anima-me__profile,
.figma-matched-shell .anima-me__menu {
  border: 1px solid #2c2c2e;
  background: #1c1c1e;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.figma-matched-shell .anima-me__profile { display: flex; align-items: center; gap: 18px; padding: 24px 22px; border-radius: 28px; }
.figma-matched-shell .anima-me__avatar { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #2c2c2e; }
.figma-matched-shell .anima-me__avatar .avatar { width: 96px; height: 96px; border: 0; border-radius: 50%; background: #2c2c2e; color: #fff; font-size: 36px; }
.figma-matched-shell .anima-me__details { flex: 1; min-width: 0; }
.figma-matched-shell .anima-me__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.figma-matched-shell .anima-me__heading h1 { max-width: 100%; margin: 0; overflow: hidden; color: #fff; font-size: 28px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-me__heading button { padding: 10px 14px; border: 1px solid #3a3a3c; border-radius: 999px; background: #2c2c2e; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.figma-matched-shell .anima-me__heading button:active { transform: scale(.97); background: #363638; }
.figma-matched-shell .anima-me__signature { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid #2c2c2e; border-radius: 16px; overflow: hidden; background: #1a1a1c; color: #8e8e93; font-size: 13px; line-height: 1.5; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.figma-matched-shell .anima-me__signature:active { background: #242426; }
.figma-matched-shell .anima-me__menu { margin-top: 18px; overflow: hidden; border-radius: 28px; }
.figma-matched-shell .anima-me__menu > button { width: 100%; min-height: 76px; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.figma-matched-shell .anima-me__menu > button + button { border-top: 1px solid #2c2c2e; }
.figma-matched-shell .anima-me__menu > button:active { background: #242426; }
.figma-matched-shell .anima-me__menu svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.figma-matched-shell .anima-me__nav { flex: 0 0 76px; }
.figma-matched-shell .anima-me__nav .tab > span:last-child { line-height: 13px; }
.figma-matched-shell .anima-me__bubble,
.figma-matched-shell .anima-me__people,
.figma-matched-shell .anima-me__grid,
.figma-matched-shell .anima-me__person { position: relative; display: block; width: 28px; height: 28px; }
.figma-matched-shell .anima-me__bubble { width: 24px; height: 19px; margin: 3px 2px 6px; border: 1.7px solid #8b8b94; border-radius: 8px; }
.figma-matched-shell .anima-me__bubble::after { content: ""; position: absolute; left: 2px; bottom: -6px; width: 9px; height: 8px; border-left: 1.7px solid #8b8b94; transform: skew(-28deg); }
.figma-matched-shell .anima-me__bubble i { position: absolute; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #8b8b94; }.figma-matched-shell .anima-me__bubble i:first-child { left: 7px; }.figma-matched-shell .anima-me__bubble i:last-child { right: 7px; }
.figma-matched-shell .anima-me__people i { position: absolute; border: 1.7px solid #8b8b94; border-radius: 50%; }.figma-matched-shell .anima-me__people i:first-child { top: 4px; left: 4px; width: 9px; height: 9px; }.figma-matched-shell .anima-me__people i:nth-child(2) { top: 6px; left: 16px; width: 7px; height: 7px; }
.figma-matched-shell .anima-me__people b { position: absolute; top: 15px; border: 1.7px solid #8b8b94; border-radius: 6px; }.figma-matched-shell .anima-me__people b:nth-of-type(1) { left: 2px; width: 14px; height: 9px; }.figma-matched-shell .anima-me__people b:nth-of-type(2) { left: 15px; width: 11px; height: 8px; }
.figma-matched-shell .anima-me__grid { display: grid; grid-template-columns: repeat(2,9px); grid-template-rows: repeat(2,9px); gap: 4px; padding: 3px; }.figma-matched-shell .anima-me__grid i { border: 1.7px solid #8b8b94; border-radius: 3px; }
.figma-matched-shell .anima-me__person i { position: absolute; top: 2px; left: 8px; width: 12px; height: 12px; border-radius: 50%; background: #f7f7f8; }.figma-matched-shell .anima-me__person b { position: absolute; top: 15px; left: 3px; width: 22px; height: 11px; border-radius: 7px; background: #f7f7f8; }

@media (max-width: 389px) {
  .figma-matched-shell .anima-me { min-height: 100dvh; }
  .figma-matched-shell .anima-me__content { padding-right: 14px; padding-left: 14px; }
  .figma-matched-shell .anima-me__profile { gap: 14px; padding: 20px 16px; }
  .figma-matched-shell .anima-me__avatar,
  .figma-matched-shell .anima-me__avatar .avatar { width: 82px; height: 82px; }
  .figma-matched-shell .anima-me__avatar { flex-basis: 82px; }
}

.figma-matched-shell .quick-menu {
  top: max(82px, calc(env(safe-area-inset-top) + 68px));
  right: max(16px, calc((100vw - 390px)/2 + 16px));
  width: 170px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(20,21,24,.95);
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.figma-matched-shell .quick-menu button {
  min-height: 47px;
  padding: 12px;
  border: 1px solid #2a2a31;
  border-radius: 14px;
  background: #1c1c22;
  color: #f5f5f7;
  font-size: 16px;
  font-weight: 500;
}
.figma-matched-shell .quick-menu button + button { margin-top: 2px; }
.figma-matched-shell .quick-menu button:hover { background: #25252b; }

/* Mine tab */
.figma-matched-shell .mine-active .chat-content { padding: 18px; background: var(--dark-page-deep); }
.figma-matched-shell .mine-profile {
  padding: 24px 22px;
  gap: 18px;
  border: 1px solid var(--dark-border);
  border-radius: 28px;
  background: var(--dark-card);
  box-shadow: var(--dark-shadow);
}
.figma-matched-shell .mine-profile .profile-card__name { color: #fff; font-size: 28px; font-weight: 500; }
.figma-matched-shell .mine-profile .secondary { min-height: 0; height: auto; padding: 10px 14px; border-radius: 999px; font-size: 13px; }
.figma-matched-shell .mine-signature {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  background: #1a1a1c;
  line-height: 1.5;
  white-space: normal;
}
.figma-matched-shell .mine-functions { margin-top: 18px; border-radius: 28px; }

/* Anima/Figma personal-profile module. It intentionally remains independent. */
.figma-matched-shell .anima-profile { min-height: 844px; overflow-y: auto; background: #0f0f10; color: #fff; font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
.figma-matched-shell .anima-profile__status { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(12px,env(safe-area-inset-top)) 20px 8px; font-size: 15px; font-weight: 500; }
.figma-matched-shell .anima-profile__status > span { display: flex; align-items: center; gap: 6px; }
.figma-matched-shell .anima-profile__status i { width: 18px; height: 12px; background: linear-gradient(to right,transparent 0 6%,#fff 6% 17%,transparent 17% 32%,#fff 32% 43%,transparent 43% 58%,#fff 58% 69%,transparent 69% 84%,#fff 84% 100%); clip-path: polygon(0 75%,17% 75%,17% 50%,45% 50%,45% 25%,73% 25%,73% 0,100% 0,100% 100%,0 100%); }
.figma-matched-shell .anima-profile__status b { font-size: 18px; font-weight: 400; line-height: 12px; transform: rotate(180deg); }
.figma-matched-shell .anima-profile__status em { position: relative; width: 26px; height: 12px; border: 1px solid #fff; border-radius: 3px; }
.figma-matched-shell .anima-profile__status em::before { content: ""; position: absolute; inset: 1px 4px 1px 1px; border-radius: 1px; background: #fff; }
.figma-matched-shell .anima-profile__status em::after { content: ""; position: absolute; top: 3px; right: -4px; width: 2px; height: 6px; border-radius: 1px; background: #fff; }
.figma-matched-shell .anima-profile__content { display: flex; flex-direction: column; gap: 18px; padding: 8px 20px 24px; }
.figma-matched-shell .anima-profile__title { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.figma-matched-shell .anima-profile__title h1 { max-width: 100%; margin: 0; overflow: hidden; font-size: 18px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-profile__title button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #34343a; border-radius: 50%; background: #1c1c1f; color: #fff; cursor: pointer; }
.figma-matched-shell .anima-profile__title button:last-child { width: 40px; height: 40px; justify-self: end; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.07); }
.figma-matched-shell .anima-profile__title button:active { transform: scale(.96); background: rgba(255,255,255,.11); }
.figma-matched-shell .anima-profile__title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.figma-matched-shell .anima-profile__card,
.figma-matched-shell .anima-profile__features { border: 1px solid rgba(255,255,255,.1); border-radius: 28px; background: rgba(255,255,255,.07); box-shadow: 0 12px 28px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.figma-matched-shell .anima-profile__card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.figma-matched-shell .anima-profile__avatar { flex: 0 0 88px; width: 88px; height: 88px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.07); }
.figma-matched-shell .anima-profile__avatar .avatar { width: 86px; height: 86px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 34px; font-weight: 500; }
.figma-matched-shell .anima-profile__card > div:last-child { flex: 1; min-width: 0; }
.figma-matched-shell .anima-profile__card h2 { margin: 0 0 10px; overflow: hidden; font-size: 24px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-profile__card button { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.05); color: #d1d5db; font-size: 13px; line-height: 1.5; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.figma-matched-shell .anima-profile__features { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.figma-matched-shell .anima-profile__features button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.05); color: #fff; font-size: 15px; text-align: left; cursor: pointer; }
.figma-matched-shell .anima-profile__features button:active,
.figma-matched-shell .anima-profile__card button:active { background: rgba(255,255,255,.11); }
.figma-matched-shell .anima-profile__features svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width:389px) { .figma-matched-shell .anima-profile { min-height: 100dvh; }.figma-matched-shell .anima-profile__content { padding-right: 14px; padding-left: 14px; } }

/* Anima/Figma create-group module. It is isolated from every other chat page. */
.figma-matched-shell .anima-group { height: 100dvh; min-height: 844px; overflow: hidden; background: #0f0f10; color: #fff; font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
.figma-matched-shell .anima-group__status { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(12px,env(safe-area-inset-top)) 24px 8px; font-size: 15px; font-weight: 600; }
.figma-matched-shell .anima-group__status > span { display: flex; align-items: center; gap: 6px; }
.figma-matched-shell .anima-group__status > span > i { width: 18px; height: 14px; background: linear-gradient(to right,transparent 0 6%,#fff 6% 17%,transparent 17% 32%,#fff 32% 43%,transparent 43% 58%,#fff 58% 69%,transparent 69% 84%,#fff 84% 100%); clip-path: polygon(0 86%,17% 86%,17% 57%,45% 57%,45% 29%,73% 29%,73% 0,100% 0,100% 100%,0 100%); }
.figma-matched-shell .anima-group__status b { font-size: 18px; font-weight: 400; line-height: 12px; transform: rotate(180deg); }
.figma-matched-shell .anima-group__status em { position: relative; width: 27px; height: 12px; border-radius: 3px; background: #1c1c1e; }
.figma-matched-shell .anima-group__status em::before { content: ""; position: absolute; inset: 2px 4px 2px 2px; border-radius: 1px; background: #fff; }
.figma-matched-shell .anima-group__status em::after { content: ""; position: absolute; top: 3px; right: -3px; width: 2px; height: 6px; border-radius: 1px; background: #fff; }
.figma-matched-shell .anima-group__content { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding: 12px 20px max(20px,env(safe-area-inset-bottom)); }
.figma-matched-shell .anima-group__title { flex: 0 0 auto; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.figma-matched-shell .anima-group__title h1 { margin: 0; font-size: 16px; font-weight: 500; text-align: center; }
.figma-matched-shell .anima-group__title button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #34343a; border-radius: 50%; background: #1c1c1f; color: #fff; cursor: pointer; }
.figma-matched-shell .anima-group__title button:last-child { width: 40px; height: 40px; justify-self: end; border-color: #2c2c2e; background: #1c1c1e; }
.figma-matched-shell .anima-group__title button:active { transform: scale(.96); background: #28282c; }
.figma-matched-shell .anima-group__title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.figma-matched-shell .anima-group__card { flex: 0 0 auto; border: 1px solid #2c2c2e; border-radius: 28px; background: #1c1c1e; box-shadow: 0 12px 32px -12px rgba(0,0,0,.2); }
.figma-matched-shell .anima-group__details { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.figma-matched-shell .anima-group__icon { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #2c2c2e; border-radius: 50%; background: rgba(255,255,255,.05); }
.figma-matched-shell .anima-group__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.figma-matched-shell .anima-group__details label { display: flex; flex-direction: column; gap: 8px; color: #8e8e93; font-size: 12px; font-weight: 500; }
.figma-matched-shell .anima-group__details input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #2c2c2e; border-radius: 18px; outline: 0; background: #fff; color: #111; font-size: 15px; font-weight: 400; }
.figma-matched-shell .anima-group__details input::placeholder { color: #8e8e93; opacity: 1; }
.figma-matched-shell .anima-group__details input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.figma-matched-shell .anima-group__members { flex: 1 0 354px; min-height: 354px; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.figma-matched-shell .anima-group__members > header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.figma-matched-shell .anima-group__members h2 { margin: 0; font-size: 16px; font-weight: 600; }
.figma-matched-shell .anima-group__members > header > span { min-width: 29px; padding: 6px 10px; border: 1px solid #2c2c2e; border-radius: 999px; background: rgba(255,255,255,.05); color: #8e8e93; font-size: 12px; text-align: center; }
.figma-matched-shell .anima-group__member-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.figma-matched-shell .anima-group__member { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #2c2c2e; border-radius: 18px; background: rgba(255,255,255,.04); cursor: pointer; }
.figma-matched-shell .anima-group__member .avatar { flex: 0 0 42px; width: 42px; height: 42px; border: 0; }
.figma-matched-shell .anima-group__member > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.figma-matched-shell .anima-group__member strong,
.figma-matched-shell .anima-group__member small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-group__member strong { font-size: 14px; font-weight: 500; }.figma-matched-shell .anima-group__member small { color: #8e8e93; font-size: 12px; }
.figma-matched-shell .anima-group__member input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.figma-matched-shell .anima-group__member > i { flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #55555b; border-radius: 7px; }
.figma-matched-shell .anima-group__member input:checked + i { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 5px #2a2a31; }
.figma-matched-shell .anima-group__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #8e8e93; text-align: center; }
.figma-matched-shell .anima-group__empty > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #2c2c2e; border-radius: 50%; background: rgba(255,255,255,.05); }
.figma-matched-shell .anima-group__empty svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.figma-matched-shell .anima-group__empty p { max-width: 250px; margin: 0; font-size: 14px; line-height: 1.6; }
.figma-matched-shell .anima-group__actions { flex: 0 0 auto; display: flex; gap: 12px; }
.figma-matched-shell .anima-group__actions button { flex: 1; height: 52px; border: 1px solid #34343a; border-radius: 18px; background: #1c1c1f; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.figma-matched-shell .anima-group__actions button:last-child { border-color: #fff; background: #fff; color: #111; }
.figma-matched-shell .anima-group__actions button:active { transform: scale(.98); }
@media (max-width:389px) { .figma-matched-shell .anima-group { min-height: 100dvh; }.figma-matched-shell .anima-group__content { padding-right: 14px; padding-left: 14px; } }

/* Anima/Figma account-switching module. It remains independent from other chat pages. */
.figma-matched-shell .anima-accounts { min-height: 844px; overflow-y: auto; background: #0b0b0d; color: #fff; font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
.figma-matched-shell .anima-accounts__top { flex: 0 0 auto; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: max(12px,env(safe-area-inset-top)) 24px 8px; }
.figma-matched-shell .anima-accounts__top h1 { margin: 0; font-size: 18px; font-weight: 600; text-align: center; }
.figma-matched-shell .anima-accounts__top button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #34343a; border-radius: 50%; background: #1c1c1f; color: #fff; cursor: pointer; }
.figma-matched-shell .anima-accounts__top button:last-child { justify-self: end; border-color: #2a2a2e; background: #1c1c1e; }
.figma-matched-shell .anima-accounts__top button:active { transform: scale(.96); background: #28282c; }
.figma-matched-shell .anima-accounts__top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.figma-matched-shell .anima-accounts__top button:last-child svg { width: 16px; height: 16px; }
.figma-matched-shell .anima-accounts__content { min-height: 780px; padding: 8px 20px 24px; background: #0b0b0d; }
.figma-matched-shell .anima-accounts__panel { border: 1px solid #2a2a2e; border-radius: 28px; background: #141417; box-shadow: 0 12px 28px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.figma-matched-shell .anima-accounts__current { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.figma-matched-shell .anima-accounts__current > header { display: flex; align-items: center; justify-content: space-between; }
.figma-matched-shell .anima-accounts__current h2,
.figma-matched-shell .anima-accounts__created > h2 { margin: 0; color: #8e8e93; font-size: 14px; font-weight: 600; }
.figma-matched-shell .anima-accounts__current > header > span,
.figma-matched-shell .anima-accounts__item > button { padding: 6px 10px; border: 1px solid #2a2a2e; border-radius: 999px; background: #1c1c1e; color: #fff; font-size: 12px; font-weight: 500; }
.figma-matched-shell .anima-accounts__summary,
.figma-matched-shell .anima-accounts__item { display: flex; align-items: center; gap: 14px; }
.figma-matched-shell .anima-accounts__avatar { display: grid; flex: none; place-items: center; overflow: hidden; border: 1px solid #2a2a2e; border-radius: 50%; background: #1c1c1e; }
.figma-matched-shell .anima-accounts__avatar--large,
.figma-matched-shell .anima-accounts__avatar--large .avatar { width: 72px; height: 72px; }
.figma-matched-shell .anima-accounts__avatar--small,
.figma-matched-shell .anima-accounts__avatar--small .avatar { width: 56px; height: 56px; }
.figma-matched-shell .anima-accounts__avatar .avatar { border: 0; background: #1c1c1e; color: #fff; }
.figma-matched-shell .anima-accounts__details,
.figma-matched-shell .anima-accounts__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.figma-matched-shell .anima-accounts__details { gap: 6px; }.figma-matched-shell .anima-accounts__copy { gap: 4px; }
.figma-matched-shell .anima-accounts__details > span { color: #8e8e93; font-size: 13px; font-weight: 500; }
.figma-matched-shell .anima-accounts__details strong { font-size: 22px; font-weight: 600; }.figma-matched-shell .anima-accounts__copy strong { font-size: 16px; font-weight: 600; }
.figma-matched-shell .anima-accounts__details p,
.figma-matched-shell .anima-accounts__copy p { margin: 0; overflow: hidden; color: #8e8e93; font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.figma-matched-shell .anima-accounts__created { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.figma-matched-shell .anima-accounts__list { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.figma-matched-shell .anima-accounts__item { padding: 16px; border: 1px solid #2a2a2e; border-radius: 24px; background: #1c1c1e; }
.figma-matched-shell .anima-accounts__item > button { flex: none; cursor: pointer; }
.figma-matched-shell .anima-accounts__item > button[aria-current="true"] { color: #8e8e93; cursor: default; }
.figma-matched-shell .anima-accounts__item > button:active { transform: scale(.96); background: #28282c; }
@media (max-width:389px) { .figma-matched-shell .anima-accounts { min-height: 100dvh; }.figma-matched-shell .anima-accounts__top { padding-right: 18px; padding-left: 18px; }.figma-matched-shell .anima-accounts__content { padding-right: 14px; padding-left: 14px; } }

/* Group and settings pages */

/* Conversation */
.figma-matched-shell .messages { background: var(--dark-page); }
.figma-matched-shell .bubble { color: var(--dark-text); }
.figma-matched-shell .bubble--user { background: #fff; color: #111; }
.figma-matched-shell .bubble--assistant { background: var(--dark-card); border: 1px solid var(--dark-border); }
.figma-matched-shell .bubble--error { background: #32181c; color: #ff9ca7; }
.figma-matched-shell .composer { border-top: 1px solid var(--dark-border); background: #151518; }
.figma-matched-shell .composer button { border-radius: 14px; background: #fff; color: #111; }

/* Character settings retains its black/white glass composition while matching dark app chrome. */
.figma-matched-shell .glass-settings-screen { background: #0f0f10; }
.figma-matched-shell .glass-settings-header { background: rgba(15,15,16,.96); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: none; }
.figma-matched-shell .glass-settings-header h1 { color: #fff; font-size: 22px; }
.figma-matched-shell .glass-settings-back { border: 1px solid #34343a; border-radius: 22px; background: #1c1c1f; color: #fff; box-shadow: none; }
.figma-matched-shell .glass-settings-scroll { background: radial-gradient(circle at 50% 7%,#292a2f 0,#151518 31%,#0f0f10 70%); }

/* Theme colors only: layout and component geometry remain unchanged. */
html, body,
.figma-matched-shell #app,
.figma-matched-shell .screen,
.figma-matched-shell .screen--gray { background-color: var(--theme-page); color: var(--theme-text); }
.figma-matched-shell .topbar { background: var(--theme-overlay); border-color: var(--theme-border); color: var(--theme-text); }
.figma-matched-shell .icon-btn,
.figma-matched-shell .text-btn,
.figma-matched-shell .secondary,
.figma-matched-shell .input { background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }
.figma-matched-shell .primary,
.figma-matched-shell .text-btn--primary { background: var(--theme-accent); color: var(--theme-on-accent); }
.figma-matched-shell .hint,
.figma-matched-shell .list-row__sub { color: var(--theme-muted); }

.figma-matched-shell .anima-message,
.figma-matched-shell .anima-message__content,
.figma-matched-shell .anima-contacts,
.figma-matched-shell .anima-contacts__header,
.figma-matched-shell .anima-contacts__content,
.figma-matched-shell .anima-mini,
.figma-matched-shell .anima-mini__header,
.figma-matched-shell .anima-mini__content,
.figma-matched-shell .anima-me,
.figma-matched-shell .anima-profile,
.figma-matched-shell .anima-group,
.figma-matched-shell .anima-accounts { background: var(--theme-page); color: var(--theme-text); }
.figma-matched-shell .anima-message__header,
.figma-matched-shell .anima-message__widget,
.figma-matched-shell .anima-contacts__today,
.figma-matched-shell .anima-contacts__shortcuts,
.figma-matched-shell .anima-contacts__list,
.figma-matched-shell .anima-contacts__list button,
.figma-matched-shell .anima-mini__widgets > button,
.figma-matched-shell .anima-me__profile,
.figma-matched-shell .anima-me__menu,
.figma-matched-shell .anima-profile__card,
.figma-matched-shell .anima-profile__features,
.figma-matched-shell .anima-group__card,
.figma-matched-shell .anima-accounts__panel,
.figma-matched-shell .anima-accounts__item { background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }
.figma-matched-shell .anima-message__avatar,
.figma-matched-shell .anima-message__plus,
.figma-matched-shell .anima-contacts__avatar,
.figma-matched-shell .anima-contacts__plus,
.figma-matched-shell .anima-mini__avatar,
.figma-matched-shell .anima-mini__plus,
.figma-matched-shell .anima-me__heading button,
.figma-matched-shell .anima-profile__title button,
.figma-matched-shell .anima-group__title button,
.figma-matched-shell .anima-accounts__top button,
.figma-matched-shell .anima-accounts__avatar,
.figma-matched-shell .anima-accounts__item > button { background: var(--theme-surface-soft); border-color: var(--theme-border); color: var(--theme-text); }
.figma-matched-shell .anima-message__widget small,
.figma-matched-shell .anima-contacts small,
.figma-matched-shell .anima-mini small,
.figma-matched-shell .anima-profile p,
.figma-matched-shell .anima-group p,
.figma-matched-shell .anima-accounts p,
.figma-matched-shell .anima-accounts h2 { color: var(--theme-muted); }
.figma-matched-shell .chat-tabs,
.figma-matched-shell .anima-tabs { background: var(--theme-overlay); border-color: var(--theme-border); }
.figma-matched-shell svg { color: currentColor; }
.figma-matched-shell svg [fill="#F1F1EC"] { fill: var(--theme-surface-soft); }
.figma-matched-shell svg [fill="#1A1A1C"] { fill: var(--theme-surface-soft); }
.figma-matched-shell svg [fill="#2C2C2E"] { fill: var(--theme-border); }
.figma-matched-shell svg [fill="#8E8E93"] { fill: var(--theme-muted); }
.figma-matched-shell svg [stroke="#E7E7E1"] { stroke: var(--theme-border); }
.figma-matched-shell svg [stroke="#8A8D86"] { stroke: var(--theme-muted); }
.figma-matched-shell svg [stroke="#2C2C2E"] { stroke: var(--theme-border); }

.figma-matched-shell .home { background: var(--theme-page); color: var(--theme-text); }
.figma-matched-shell .home::before,
.figma-matched-shell .home::after,
.figma-matched-shell .widget::before,
.figma-matched-shell .date { color: var(--theme-muted); }
.figma-matched-shell .widget { background: var(--theme-surface); border-color: var(--theme-border); }
.figma-matched-shell .widget::after,
.figma-matched-shell .app-icon { background: var(--theme-surface-soft); border-color: var(--theme-border); color: var(--theme-muted); }
.figma-matched-shell .clock,
.figma-matched-shell .greeting,
.figma-matched-shell .app-entry,
.figma-matched-shell .app-label { color: var(--theme-text); }
.figma-matched-shell .dock { background: var(--theme-overlay); border-color: var(--theme-border); }

.theme-setting {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  color: var(--theme-text);
}
.theme-setting > div { display: grid; gap: 4px; }
.theme-setting strong { font-size: 15px; }
.theme-setting small { color: var(--theme-muted); font-size: 12px; }
.theme-toggle { position: relative; width: 52px; height: 30px; flex: 0 0 auto; cursor: pointer; }
.theme-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--theme-border-strong);
  border-radius: 999px;
  background: var(--theme-surface-raised);
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--theme-text);
  box-shadow: 0 2px 7px var(--theme-shadow);
  transition: transform .2s ease;
}
.theme-toggle input:checked + span { background: var(--theme-accent); border-color: var(--theme-accent); }
.theme-toggle input:checked + span::after { background: var(--theme-on-accent); transform: translateX(22px); }
.theme-toggle input:focus-visible + span { outline: 2px solid var(--theme-text); outline-offset: 2px; }
.figma-matched-shell .glass-settings-board { border-color: var(--theme-border); background: var(--theme-surface-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 12px 28px var(--theme-shadow); }
.figma-matched-shell .glass-setting-card { border-color: rgba(255,255,255,.78); }
.figma-matched-shell .glass-settings-tabs { background: var(--theme-overlay); }
.figma-matched-shell .glass-settings-save { background: var(--theme-accent); color: var(--theme-on-accent); }

.figma-matched-shell .modal-backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.figma-matched-shell .modal { border: 1px solid var(--theme-border); border-radius: 28px; background: var(--theme-surface); color: var(--theme-text); box-shadow: 0 18px 20px var(--theme-shadow); }
.figma-matched-shell .toast { background: var(--theme-overlay); color: var(--theme-text); }

@media (max-width: 360px) {
  .figma-matched-shell .screen__body { padding-inline: 16px; }
  .figma-matched-shell .chat-header { padding-inline: 16px; }
  .figma-matched-shell .mine-profile { padding-inline: 18px; }
}
.app-grid .app-entry{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.home-sort-done{position:fixed;right:20px;top:max(16px,env(safe-area-inset-top));z-index:100;padding:8px 19px;border:1px solid #d6d9d0;border-radius:20px;background:#fffef7;color:#576457;box-shadow:0 3px 12px #0001;font-weight:700}
.home-sort-done[hidden]{display:none}
.home-sorting .app-grid .app-icon{animation:home-jiggle .24s ease-in-out infinite alternate}
.home-sorting .app-grid .app-entry:nth-child(even) .app-icon{animation-direction:alternate-reverse}
.home-sorting .app-grid .home-sort-placeholder{opacity:.22}
.home-sort-ghost{position:fixed;z-index:99;pointer-events:none;transform:scale(1.12);filter:drop-shadow(0 9px 10px #0003);margin:0}
@keyframes home-jiggle{from{transform:rotate(-1.6deg)}to{transform:rotate(1.6deg)}}
@media(prefers-reduced-motion:reduce){.home-sorting .app-grid .app-icon{animation:none}}
.screen.home:has(.home-pages){height:100dvh;min-height:0;display:flex;flex-direction:column;padding:max(24px,env(safe-area-inset-top)) 0 0;background:radial-gradient(ellipse at 0 15%,#e1e9d9,transparent 65%),radial-gradient(ellipse at 100% 75%,#ede4d8,transparent 60%),#f4f4ed}
.home:has(.home-pages)::before,.home:has(.home-pages)::after{display:none;content:none}
.home-pages{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.home-pages::-webkit-scrollbar{display:none}
.home-page{flex:0 0 100%;min-width:0;box-sizing:border-box;padding:12px 22px;scroll-snap-align:start;overflow-y:auto;scrollbar-width:none}
.home-page .app-grid{margin:30px 0 0;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 8px}
.home-page .app-entry{display:flex;flex-direction:column;align-items:center;justify-content:center}
.mini-widgets{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ios-widget{position:relative;box-sizing:border-box;height:162px;padding:17px;border:1px solid #fff9;border-radius:25px;box-shadow:0 7px 20px #55614e0c;overflow:hidden;color:#465044;background:#ffffffe0}
.ios-widget small{display:block;font-size:10px;font-weight:600;letter-spacing:.06em}
.time-widget{background:linear-gradient(140deg,#687d68,#8d9d80);color:#fffdf2}
.time-widget strong{display:block;font:500 clamp(28px,9vw,40px)/1.5 system-ui;letter-spacing:-2px;margin-top:10px}
.time-widget span{font-size:11px;opacity:.85}.time-widget i{position:absolute;right:15px;bottom:10px;font-size:30px;font-style:normal;color:#e0e8bc}
.calendar-widget{padding:16px 12px}.calendar-widget small{color:#b37559;margin-bottom:12px}
.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px 1px;font:9px/1.5 system-ui;text-align:center}.mini-calendar b{font-size:8px;color:#929889}.mini-calendar .today{border-radius:50%;background:#798e71;color:white}
.note-widget{background:linear-gradient(#f6e7b8 0 35px,#fffdf3 35px);height:162px}.note-widget small{color:#927f50}.note-widget textarea{display:block;width:100%;height:80px;resize:none;border:0;outline:none;background:transparent;color:#605e4d;font:14px/1.6 inherit;margin-top:12px}.note-widget span{font-size:10px;color:#aaa08b}
.home-page-dots{display:flex;justify-content:center;gap:8px;padding:12px 0}.home-page-dots button{width:24px;height:24px;padding:8px;border:0;border-radius:50%;background:transparent}.home-page-dots button::before{content:'';display:block;width:7px;height:7px;border-radius:50%;background:#bec4b6}.home-page-dots button[aria-current=true]::before{background:#65795f}
.home:has(.home-pages)>.dock{flex-shrink:0;margin:0 16px max(12px,env(safe-area-inset-bottom));padding:14px 26px;background:#ffffffa8;border-color:#fffc;border-radius:28px}
@media(max-width:350px){.home-page{padding-inline:16px}.mini-widgets{gap:10px}.ios-widget{padding:13px;height:150px}.calendar-widget{padding:13px 8px}.home-page .app-grid{gap:20px 4px}}
/* Home-only liquid glass: retain opaque glyphs and transparent optical surfaces. */
.screen.home:has(.home-pages){background:radial-gradient(ellipse at 0 18%,#91cbbd 0,transparent 48%),radial-gradient(ellipse at 95% 42%,#b8b4d7 0,transparent 50%),radial-gradient(ellipse at 20% 95%,#ecd0b1 0,transparent 55%),linear-gradient(145deg,#dae9de,#edf0e9 50%,#c7d9d6)}
.home:has(.home-pages) .ios-widget,.home:has(.home-pages) .app-icon,.home:has(.home-pages)>.dock{background:linear-gradient(135deg,#ffffff85,#ffffff20 48%,#ffffff55);border:1px solid #ffffffb3;box-shadow:inset 0 1px 1px #ffffffed,inset 0 -1px 2px #ffffff91,inset 1px 0 1px #fff8,0 8px 22px #3f5d6420;backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);isolation:isolate}
.home:has(.home-pages) .ios-widget::before,.home:has(.home-pages) .app-icon::before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(155deg,#fff7,transparent 35%,transparent 72%,#fff4);pointer-events:none;z-index:-1}
.home:has(.home-pages) .ios-widget::after,.home:has(.home-pages) .app-icon::after{content:'';position:absolute;inset:2px;border-radius:inherit;border-top:1px solid #fff9;border-bottom:1px solid #fff6;pointer-events:none}
.home:has(.home-pages) .app-icon{position:relative;border-radius:20px;overflow:hidden;filter:none;color:#405a60;transition:box-shadow .18s ease,background-color .18s ease}
.home:has(.home-pages) .app-icon>svg{z-index:1;pointer-events:none}
.home:has(.home-pages) .app-icon>svg>g{filter:none}
.home:has(.home-pages) .app-icon>svg>g>rect[width='64'],.home:has(.home-pages) .app-icon>svg>g>rect[width='63']{display:none}
.home:has(.home-pages) .app-icon>svg [stroke='#8A8D86']{stroke:#45626a}
.home:has(.home-pages) .app-icon--social{background:linear-gradient(135deg,#4d567cb0,#666b9b75)}
.home:has(.home-pages) .app-icon--pet{background:linear-gradient(135deg,#fff8,#f8d6ce50)}
.home:has(.home-pages) .app-icon--job{background:linear-gradient(135deg,#fff9,#f9d5e657)}
.home:has(.home-pages) .app-label{color:#334c50;font-weight:500;text-shadow:0 1px 1px #ffffffc0}
.home:has(.home-pages) .time-widget{background:linear-gradient(135deg,#496f6f90,#8cb9ac50);color:#fff;text-shadow:0 1px 3px #29444350}
.home:has(.home-pages) .time-widget i{color:#f7ffde;text-shadow:0 0 12px #fff9}
.home:has(.home-pages) .calendar-widget small{color:#805744}.home:has(.home-pages) .mini-calendar{color:#344e53}.home:has(.home-pages) .mini-calendar b{color:#5b7070}
.home:has(.home-pages) .mini-calendar .today{background:#517b79;box-shadow:0 2px 4px #46676925,inset 0 1px #ffffff80;color:white}
.home:has(.home-pages) .note-widget{background:linear-gradient(135deg,#fff6df91,#ffffff38 60%,#e9d9b746)}
.home:has(.home-pages) .note-widget textarea{color:#354e52;caret-color:#365f62}.home:has(.home-pages) .note-widget span{color:#64766c}
.home:has(.home-pages)>.dock{background:linear-gradient(125deg,#ffffff80,#ffffff35 55%,#ffffff70);box-shadow:inset 0 1px 1px white,inset 0 -1px 1px #fff9,0 9px 25px #3b616522}
.home:has(.home-pages) .dock .app-icon{backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(140deg,#ffffff80,#ffffff18);border-radius:17px}
.home:has(.home-pages) .app-entry:active .app-icon{background-color:#ffffff55;box-shadow:inset 0 2px 5px #48696320,0 2px 7px #48696318}
.home:has(.home-pages) .home-page-dots{align-self:center;padding:0 7px;margin:10px 0;border:1px solid #fff8;border-radius:30px;background:#ffffff40}
@supports not (backdrop-filter:blur(1px)){.home:has(.home-pages) .ios-widget,.home:has(.home-pages) .app-icon,.home:has(.home-pages)>.dock{background-color:#eaf0eddd}}
/* Neutral glass home palette. */
.screen.home:has(.home-pages){background:#fff}
.home:has(.home-pages) .ios-widget{background:linear-gradient(135deg,#ffffffeb,#f1f1f1a6 65%,#fafafacc);color:#303030;border-color:#e4e4e4;box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #fff,0 7px 20px #0000000a;text-shadow:none}
.home:has(.home-pages) .time-widget{background:linear-gradient(140deg,#eee,#fafafa 65%,#e9e9e9);color:#292929;text-shadow:none}
.home:has(.home-pages) .time-widget i{color:#858585;text-shadow:0 1px 1px #fff}
.home:has(.home-pages) .calendar-widget small,.home:has(.home-pages) .note-widget small{color:#5d5d5d}
.home:has(.home-pages) .mini-calendar,.home:has(.home-pages) .note-widget textarea{color:#303030;caret-color:#303030}
.home:has(.home-pages) .mini-calendar b,.home:has(.home-pages) .note-widget span{color:#747474}
.home:has(.home-pages) .mini-calendar .today{background:#444;color:white;box-shadow:inset 0 1px #ffffff60,0 2px 4px #0001}
.home:has(.home-pages) .note-widget textarea::placeholder{color:#808080}
.home:has(.home-pages)>.dock{background:linear-gradient(125deg,#fafafae8,#f0f0f08c,#fff);border-color:#e5e5e5;box-shadow:inset 0 1px 1px #fff,0 9px 25px #0000000a}
.home:has(.home-pages) .home-page-dots{background:#f1f1f1;border-color:#e9e9e9}
.home:has(.home-pages) .home-page-dots button::before{background:#c2c2c2}
.home:has(.home-pages) .home-page-dots button[aria-current=true]::before{background:#555}
.home:has(.home-pages) .app-label{color:#444;text-shadow:none}
.home-page .app-grid{height:calc(100% - 10px);min-height:510px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:12px 10px;position:relative;align-items:center}
.home-page .app-grid>.ios-widget{height:100%;width:100%;min-width:0;touch-action:none;user-select:none;-webkit-user-select:none}
.home-page .app-grid>.app-entry{align-self:center;height:88px}
.home-page .app-grid>.home-sort-placeholder{opacity:.22}
.home-page .home-sort-ghost{display:flex;flex-direction:column;align-items:center;justify-content:center;transform:none!important;transition:none!important;pointer-events:none;z-index:100}
.home-page .ios-widget.home-sort-ghost{display:block}
.home-page .home-sort-ghost .app-icon{position:relative;flex-shrink:0;margin:0 auto}
.home-page .home-sort-ghost .app-icon>svg{position:absolute;top:-8px;left:-12px;max-width:none}
.home-cell-target{align-self:stretch;border:1px dashed #8889;border-radius:20px;background:#8881;pointer-events:none;z-index:0}
.home-cell-target[hidden]{display:none}
.home-page .app-grid>.app-entry,.home-page .app-grid>.ios-widget{z-index:1}
.home-sorting .ios-widget{outline:1px solid #9996;cursor:grab}
.home-page .ios-widget textarea{user-select:text;-webkit-user-select:text;touch-action:pan-y}
.home-sorting .ios-widget textarea{pointer-events:none}
.home-page{container-type:inline-size}
.home-page .app-grid{height:calc(150cqw + 6px);min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:12px;align-items:stretch}
.home-page .app-grid>.app-entry{height:100%;align-self:stretch;justify-content:center}
.home-page .app-grid>.ios-widget{padding:12px;border-radius:22px}
.home-page .app-grid .time-widget strong{margin-top:5px;line-height:1.3}
.home-page .app-grid .calendar-widget small{margin-bottom:7px}
.home-page .app-grid .mini-calendar{gap:3px 1px}
.home-page .app-grid .app-icon{width:calc(25cqw - 29px);height:calc(25cqw - 29px);flex-shrink:0}
.home-page .app-grid .app-icon>svg{width:137.5%;height:137.5%;top:-12.5%;left:-18.75%}
.home-page .app-grid .app-label{margin-top:4px;font-size:11px}
.home:has(.home-pages) .dock .app-entry{order:0}
.home:has(.home-pages) .dock .app-icon>svg{position:absolute;width:137.5%;height:137.5%;top:-12.5%;left:-18.75%;max-width:none}
.home-page .app-grid>.note-widget{padding:12px 16px;display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:22px minmax(0,1fr);column-gap:15px;background:linear-gradient(140deg,#fff,#f3f3f3)!important}
.note-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;padding-bottom:6px}
.home:has(.home-pages) .note-heading .note-edition{font:7px/1.2 monospace;letter-spacing:.12em;color:#888}
.note-duo{display:flex;align-items:center;position:relative;gap:8px;padding-right:12px;border-right:1px dashed #ccc}
.note-person{width:42px;min-width:0;text-align:center;z-index:1}.note-person b{display:block;font:9px/1.5 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px;color:#555}
.note-portrait{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:3px solid white;background:#e2e2e2;color:#555;box-shadow:0 2px 7px #0002;overflow:hidden;font-size:14px}
.note-portrait img{width:100%;height:100%;object-fit:cover}.note-char{transform:translateY(-10px)}.note-user{transform:translateY(12px)}
.note-link{position:absolute;left:25px;top:50%;transform:rotate(25deg);font-size:9px;color:#999!important;z-index:0}
.home-page .app-grid .note-widget textarea{height:100%;min-height:0;margin:0;padding:12px 0 0;box-sizing:border-box;line-height:24px;font-size:12px;background:repeating-linear-gradient(transparent 0 23px,#ddd7 23px 24px);background-position:0 12px}
.screen.home:has(.home-pages){padding-top:env(safe-area-inset-top);background-size:cover;background-position:center;background-repeat:no-repeat}
.ios-status{height:46px;flex-shrink:0;padding:12px 26px 6px;display:flex;align-items:center;justify-content:space-between;color:#242424;font:600 15px/1 system-ui}
.ios-status-right{display:flex;gap:7px;align-items:center}.ios-signal{font-size:12px;letter-spacing:-2px}.ios-network{font-size:10px;font-weight:500}
.ios-battery{position:relative;width:29px;height:15px;border:1px solid #5557;border-radius:5px;background:linear-gradient(90deg,#7775 var(--battery,0%),#fff7 var(--battery,0%));display:grid;place-items:center}.ios-battery:after{content:'';position:absolute;right:-3px;top:4px;width:2px;height:5px;background:#5558;border-radius:1px}.ios-battery span{font:700 10px/1 system-ui}
.home-page .app-grid .app-icon{width:min(60px,calc(25cqw - 24px));height:min(60px,calc(25cqw - 24px));border-radius:15px}
.home-page .app-grid .app-label{font-size:11px;line-height:14px;margin-top:5px}
.home:has(.home-pages)>.dock{height:86px;min-height:86px;padding:12px 18px;margin:8px 14px max(12px,env(safe-area-inset-bottom));border-radius:30px;gap:12px}
.home:has(.home-pages) .dock .app-icon{width:60px;height:60px;flex-basis:60px;border-radius:16px}
.home-page .app-grid>.imported-widget{padding:0;background:transparent!important;box-shadow:none;border:0;position:relative;overflow:hidden}
.imported-widget iframe{width:100%;height:100%;border:0;display:block;border-radius:22px}
.widget-drag-handle{position:absolute;top:0;right:5px;z-index:3;width:32px;height:22px;border:0;border-radius:12px;background:#ffffffa8;color:#7e8991;font-size:12px;touch-action:none}
.home-sorting .imported-widget iframe{pointer-events:none}
.home .has-wallpaper{background-size:cover}.home.has-wallpaper .ios-status{color:#202020;text-shadow:0 1px 3px #fff}
.appearance-sheet{width:min(360px,90vw);padding:22px;border:1px solid #fff;border-radius:25px;background:#f5f5f5f2;color:#333;box-shadow:0 20px 70px #0003}.appearance-sheet::backdrop{background:#0003;backdrop-filter:blur(8px)}
.appearance-sheet header{display:flex;align-items:center;justify-content:space-between}.appearance-sheet h2{margin:0;font-size:21px}.appearance-sheet button{border:0;border-radius:12px;padding:10px;color:#444;background:#e8e8e8}.appearance-sheet p{font-size:12px;line-height:1.7;color:#777}.wallpaper-import{display:block;background:#333;color:white;border-radius:14px;padding:15px;text-align:center;font-size:14px;margin:20px 0 12px;cursor:pointer}.wallpaper-reset{width:100%}
.ios-battery{width:27px;height:14px;border:1px solid #29292966;border-radius:4px;background:#b9b9b9;box-shadow:inset 0 0 0 1px #fff7;isolation:isolate}
.ios-battery:before{content:'';position:absolute;inset:1px;right:auto;width:var(--battery,0%);max-width:calc(100% - 2px);background:#292929;border-radius:2px;z-index:-1}
.ios-battery:after{right:-3px;top:4px;width:2px;height:5px;border-radius:0 2px 2px 0;background:#29292988}
.ios-battery span{color:#fff;font:700 10px/1 system-ui;letter-spacing:-.4px;text-shadow:0 0 2px #222}
.ios-network,.widget-drag-handle{display:none!important}
.ios-status-right{gap:8px;color:#000;align-items:center;padding-right:2px}
.ios-status-right .ios-signal{display:block;width:22px;height:16px;fill:currentColor;flex-shrink:0}
.ios-status-right .ios-wifi{display:block;width:21px;height:16px;fill:currentColor;overflow:visible;flex-shrink:0}
.ios-status-right .ios-battery{width:29px;height:16px;border:0;border-radius:5px;background:linear-gradient(to right,#000 0 var(--battery,0%),#808080 var(--battery,0%) 100%);box-shadow:none;isolation:isolate;flex-shrink:0}
.ios-status-right .ios-battery:before{display:none}
.ios-status-right .ios-battery:after{right:-3px;top:5px;width:2px;height:6px;background:#808080;border-radius:0 3px 3px 0}
.ios-status-right .ios-battery span{color:#fff;font:500 13px/1 Arial,system-ui,sans-serif;letter-spacing:-.6px;text-shadow:none;transform:translateY(.1px)}
/* Clear glass: let the wallpaper carry the colour, keep foreground ink crisp. */
.home:has(.home-pages){--clear-glass:linear-gradient(135deg,#ffffff32 0%,#ffffff0a 44%,#ffffff18 75%,#ffffff2e);--glass-edge:#ffffffa6;--glass-shadow:inset 0 1px 1px #ffffffd9,inset 1px 0 1px #ffffff70,inset 0 -1px 1px #ffffff70,0 4px 13px #20303912}
.home:has(.home-pages) .app-icon,.home:has(.home-pages) .ios-widget,.home:has(.home-pages)>.dock{background:var(--clear-glass);border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow);backdrop-filter:blur(9px) saturate(135%);-webkit-backdrop-filter:blur(9px) saturate(135%)}
.home:has(.home-pages) .app-icon::before,.home:has(.home-pages) .ios-widget::before{background:linear-gradient(150deg,#ffffff4d,transparent 26%,transparent 73%,#ffffff26);opacity:.8}
.home:has(.home-pages) .app-icon::after,.home:has(.home-pages) .ios-widget::after{border-top-color:#ffffffb3;border-bottom-color:#ffffff66;inset:1px}
.home:has(.home-pages) .app-icon--social{background:linear-gradient(135deg,#8a88ae40,#9b99bd0d)}
.home:has(.home-pages) .app-icon--pet,.home:has(.home-pages) .app-icon--job{background:var(--clear-glass)}
.home:has(.home-pages) .dock .app-icon{background:linear-gradient(145deg,#ffffff25,#ffffff08);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 0 1px 1px #fff9,0 2px 7px #00000008}
.home:has(.home-pages) .home-page .app-grid>.imported-widget{background:var(--clear-glass)!important;border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow);backdrop-filter:blur(9px) saturate(135%);-webkit-backdrop-filter:blur(9px) saturate(135%)}
.home:has(.home-pages) .home-page .app-grid>.note-widget{background:var(--clear-glass)!important;border-color:var(--glass-edge);box-shadow:var(--glass-shadow)}
.home:has(.home-pages) .app-label{text-shadow:0 1px 2px #fff9}
@supports not (backdrop-filter:blur(1px)){.home:has(.home-pages) .app-icon,.home:has(.home-pages) .ios-widget,.home:has(.home-pages)>.dock{background-color:#ffffff70}}
/* White iOS-style foreground with quiet, low-contrast glass rims. */
.home:has(.home-pages){font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,'PingFang SC','Microsoft YaHei',sans-serif;--glass-edge:#ffffff26;--glass-shadow:inset 0 1px 1px #ffffff25,inset 0 -1px 1px #ffffff0c,0 3px 12px #00000009;color:#fff}
.home:has(.home-pages) .app-icon,.home:has(.home-pages) .ios-widget,.home:has(.home-pages)>.dock{color:#fff;border-color:var(--glass-edge);box-shadow:var(--glass-shadow);background:linear-gradient(135deg,#ffffff15,#ffffff06 55%,#ffffff10)}
.home:has(.home-pages) .app-icon::before,.home:has(.home-pages) .ios-widget::before{opacity:.25}
.home:has(.home-pages) .app-icon::after,.home:has(.home-pages) .ios-widget::after{border-color:#ffffff16}
.home:has(.home-pages) .app-icon>svg [stroke]:not([stroke='none']){stroke:#fff}
.home:has(.home-pages) .app-icon>svg path[fill]:not([fill='none']){fill:#ffffff26}
.home:has(.home-pages) .app-icon>svg circle[fill]:not([fill='none']){fill:#fff}
.home:has(.home-pages) .app-label{font-family:inherit;font-weight:400;color:#fff;text-shadow:none;-webkit-font-smoothing:antialiased}
.home:has(.home-pages) .dock .app-icon{color:#fff;border-color:#ffffff25;box-shadow:var(--glass-shadow);background:#ffffff0a}
.home:has(.home-pages) .home-page .app-grid>.imported-widget,.home:has(.home-pages) .home-page .app-grid>.note-widget{border-color:#ffffff26;box-shadow:var(--glass-shadow);background:linear-gradient(135deg,#ffffff15,#ffffff06 55%,#ffffff10)!important}
.home:has(.home-pages) .note-heading{border-color:#ffffff26}
.home:has(.home-pages) .note-heading small,.home:has(.home-pages) .note-heading .note-edition,.home:has(.home-pages) .note-person b,.home:has(.home-pages) .note-link,.home:has(.home-pages) .note-widget textarea{color:#fff!important;font-family:inherit;text-shadow:none;caret-color:#fff}
.home:has(.home-pages) .note-widget textarea::placeholder{color:#ffffffb3}
.home:has(.home-pages) .note-widget textarea{background-image:repeating-linear-gradient(transparent 0 23px,#ffffff20 23px 24px)}
.home:has(.home-pages) .note-duo{border-color:#ffffff36}.home:has(.home-pages) .note-portrait{border-color:#ffffff50;color:#fff;background:#ffffff16;box-shadow:none}
.home:has(.home-pages) .ios-status,.home.has-wallpaper .ios-status{color:#fff;font-family:inherit;text-shadow:none;filter:none}
.home:has(.home-pages) .ios-status-right{color:#fff;text-shadow:none;filter:none}
.home:has(.home-pages) .ios-status-right .ios-battery{background:linear-gradient(to right,#fff 0 var(--battery,0%),#ffffff45 var(--battery,0%) 100%);border:0;box-shadow:none;filter:none}
.home:has(.home-pages) .ios-status-right .ios-battery:after{background:#ffffff80}
.home:has(.home-pages) .ios-status-right .ios-battery span{color:#3c424a;font-family:inherit;font-weight:600;text-shadow:none;filter:none}
/* Thin optical skin: smaller blur and minimal tint preserve wallpaper detail. */
.home:has(.home-pages){--glass-edge:#ffffff18;--glass-shadow:inset 0 .5px .5px #ffffff32,inset 0 -.5px .5px #ffffff12,0 2px 7px #00000005;--clear-glass:linear-gradient(135deg,#ffffff0d,#ffffff02 48%,#ffffff06)}
.home:has(.home-pages) .app-icon,.home:has(.home-pages) .ios-widget,.home:has(.home-pages)>.dock{background:var(--clear-glass);border-color:var(--glass-edge);box-shadow:var(--glass-shadow);backdrop-filter:blur(4px) saturate(115%);-webkit-backdrop-filter:blur(4px) saturate(115%)}
.home:has(.home-pages) .home-page .app-grid>.imported-widget,.home:has(.home-pages) .home-page .app-grid>.note-widget{background:var(--clear-glass)!important;border-color:var(--glass-edge);box-shadow:var(--glass-shadow);backdrop-filter:blur(4px) saturate(115%);-webkit-backdrop-filter:blur(4px) saturate(115%)}
.home:has(.home-pages) .app-icon::before,.home:has(.home-pages) .ios-widget::before{opacity:.12;background:linear-gradient(155deg,#fff8,transparent 18%,transparent 86%,#fff3)}
.home:has(.home-pages) .app-icon::after,.home:has(.home-pages) .ios-widget::after{border-top-color:#ffffff12;border-bottom-color:#ffffff08}
.home:has(.home-pages) .dock .app-icon{background:#ffffff03;border-color:#ffffff16;box-shadow:var(--glass-shadow)}
.home:has(.home-pages) .app-icon--social,.home:has(.home-pages) .app-icon--pet,.home:has(.home-pages) .app-icon--job{background:var(--clear-glass)}
.home:has(.home-pages) .note-heading,.home:has(.home-pages) .note-duo{border-color:#ffffff1c}
/* Unblurred glass: sharp wallpaper, narrow specular edges and readable ink. */
.home:has(.home-pages){--clear-glass:linear-gradient(135deg,#ffffff0b,transparent 38%,#00000005 72%,#ffffff06);--glass-edge:#ffffff28;--glass-shadow:inset 0 .5px 0 #ffffff40,inset 0 -.5px 0 #00000014; font-weight:600;letter-spacing:.01em}
.home:has(.home-pages) .app-icon,.home:has(.home-pages) .ios-widget,.home:has(.home-pages)>.dock,.home:has(.home-pages) .home-page .app-grid>.imported-widget,.home:has(.home-pages) .home-page .app-grid>.note-widget{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--clear-glass)!important;border-color:var(--glass-edge);box-shadow:var(--glass-shadow)}
.home:has(.home-pages) .app-icon::before,.home:has(.home-pages) .ios-widget::before{background:linear-gradient(145deg,#ffffff40,transparent 14%,transparent 88%,#ffffff18);opacity:.18}
.home:has(.home-pages) .app-label{font-weight:600;letter-spacing:.02em;text-shadow:0 1px 1px #0008}
.home:has(.home-pages) .app-icon>svg{filter:drop-shadow(0 .6px .6px #0007)}
.home:has(.home-pages) .note-heading small,.home:has(.home-pages) .note-heading .note-edition,.home:has(.home-pages) .note-person b,.home:has(.home-pages) .note-widget textarea{font-weight:600;text-shadow:0 .5px 1px #0008}
.home:has(.home-pages) .note-widget textarea::placeholder{color:#fff;text-shadow:0 .5px 1px #0008}
.home:has(.home-pages) .ios-status{font-weight:600;letter-spacing:0;text-shadow:none}
.home:has(.home-pages) .ios-status-right{gap:8px}
.home:has(.home-pages) .ios-status-right .ios-signal{width:22px;height:17px}
.home:has(.home-pages) .ios-status-right .ios-wifi{width:20px;height:16px}
.home:has(.home-pages) .ios-status-right .ios-battery{width:28px;height:15px;border-radius:5px;background:linear-gradient(to right,#fff 0 var(--battery,0%),#808080 var(--battery,0%) 100%)}
.home:has(.home-pages) .ios-status-right .ios-battery:after{background:#808080;top:5px;height:5px}
.home:has(.home-pages) .ios-status-right .ios-battery span{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:-.55px;color:#000}
/* Reference status typography: compact bold time and large centred battery digits. */
.home:has(.home-pages) .ios-status time{display:block;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Helvetica Neue',Arial,sans-serif;font-size:16px;font-weight:750;line-height:1;letter-spacing:.05px;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';-webkit-font-smoothing:antialiased;text-shadow:none}
.home:has(.home-pages) .ios-status-right .ios-battery{width:28px;height:15.5px;border-radius:4.9px;overflow:visible;background:linear-gradient(90deg,#fff 0 var(--battery,0%),#808080 var(--battery,0%) 100%);border:0;box-shadow:none;display:flex;align-items:center;justify-content:center}
.home:has(.home-pages) .ios-status-right .ios-battery:after{right:-2.7px;top:5.2px;width:1.7px;height:5.1px;border-radius:0 2.6px 2.6px 0;background:#808080}
.home:has(.home-pages) .ios-status-right .ios-battery span{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Helvetica Neue',Arial,sans-serif;font-size:13px;font-weight:750;line-height:15.5px;letter-spacing:-.65px;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';color:#000;text-shadow:none;transform:none;-webkit-font-smoothing:antialiased}
.home:has(.home-pages) .ios-status-right .ios-battery[data-three-digits=true] span{font-size:11.5px;letter-spacing:-.7px}
@font-face{font-family:'User PingFang Heavy';src:url('./fonts/pingfang-heavy.woff2') format('woff2'),url('./fonts/pingfang-heavy.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
.home:has(.home-pages),.home:has(.home-pages) button,.home:has(.home-pages) input,.home:has(.home-pages) textarea,.home:has(.home-pages) .app-label,.home:has(.home-pages) .ios-status,.home:has(.home-pages) .ios-status time,.home:has(.home-pages) .ios-status-right .ios-battery span,.home:has(.home-pages) .note-heading small,.home:has(.home-pages) .note-heading .note-edition,.home:has(.home-pages) .note-person b,.home:has(.home-pages) .note-widget textarea{font-family:'User PingFang Heavy',-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-synthesis:none}
/* Outline battery matching the reference's lower, number-free variant. */
.home:has(.home-pages) .ios-status-right .ios-battery{width:28px;height:15px;box-sizing:border-box;border:1.2px solid #888;border-radius:5px;background:transparent;box-shadow:none;padding:1.5px;display:block;position:relative}
.home:has(.home-pages) .ios-status-right .ios-battery:before{display:none}
.home:has(.home-pages) .ios-status-right .ios-battery:after{right:-3px;top:3.8px;width:1.8px;height:5px;background:#888;border-radius:0 2.5px 2.5px 0}
.home:has(.home-pages) .ios-status-right .ios-battery span{display:block;width:var(--battery,0%);max-width:100%;height:100%;background:#fff;border-radius:3px;font-size:0!important;line-height:0;letter-spacing:0;color:transparent;transform:none;transition:width .25s ease}
.home:has(.home-pages) .ios-status-right .ios-battery:not([data-available=true]) span{width:0}
@media(prefers-reduced-motion:reduce){.home:has(.home-pages) .ios-status-right .ios-battery span{transition:none}}
/* Adaptive transparent glass: foreground contrast follows wallpaper luminance. */
.home[data-glass-tone]:has(.home-pages){--home-ink:#fdfdfd;--glass-surface:linear-gradient(135deg,#ffffff16,transparent 48%,#0000000b);--glass-stroke:#ffffff4d;--glass-soft-shadow:inset 0 1px 0 #ffffff4d,inset 0 -1px 0 #0000001a,0 3px 9px #0000000a;--home-ink-shadow:0 1px 1px #0004}
.home[data-glass-tone=light]:has(.home-pages){--home-ink:#30343b;--glass-surface:linear-gradient(135deg,#ffffff40,#ffffff0c 48%,#00000006);--glass-stroke:#ffffff85;--glass-soft-shadow:inset 0 1px 0 #ffffffbd,inset 0 -1px 0 #0000001f,0 3px 9px #0000000a;--home-ink-shadow:none}
.home[data-glass-tone]:has(.home-pages) .app-icon,.home[data-glass-tone]:has(.home-pages) .ios-widget,.home[data-glass-tone]:has(.home-pages)>.dock,.home[data-glass-tone]:has(.home-pages) .home-page .app-grid>.imported-widget,.home[data-glass-tone]:has(.home-pages) .home-page .app-grid>.note-widget{color:var(--home-ink);background:var(--glass-surface)!important;border:1px solid var(--glass-stroke);box-shadow:var(--glass-soft-shadow);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.home[data-glass-tone]:has(.home-pages) .app-icon>svg{filter:none}
.home[data-glass-tone]:has(.home-pages) .app-icon>svg [stroke]:not([stroke='none']){stroke:var(--home-ink);stroke-width:2.2}
.home[data-glass-tone]:has(.home-pages) .app-icon>svg path[fill]:not([fill='none']){fill:transparent}
.home[data-glass-tone]:has(.home-pages) .app-icon>svg circle[fill]:not([fill='none']){fill:var(--home-ink)}
.home[data-glass-tone]:has(.home-pages) .app-label,.home[data-glass-tone]:has(.home-pages) .ios-status,.home[data-glass-tone]:has(.home-pages) .ios-status-right{color:var(--home-ink);text-shadow:var(--home-ink-shadow)}
.home[data-glass-tone]:has(.home-pages) .ios-status,.home[data-glass-tone]:has(.home-pages) .ios-status-right{text-shadow:none}
.home[data-glass-tone]:has(.home-pages) .ios-status-right .ios-battery span{background:var(--home-ink)}
.home[data-glass-tone]:has(.home-pages) .note-heading small,.home[data-glass-tone]:has(.home-pages) .note-heading .note-edition,.home[data-glass-tone]:has(.home-pages) .note-person b,.home[data-glass-tone]:has(.home-pages) .note-link,.home[data-glass-tone]:has(.home-pages) .note-widget textarea{color:var(--home-ink)!important;text-shadow:var(--home-ink-shadow);caret-color:var(--home-ink)}
.home[data-glass-tone]:has(.home-pages) .note-widget textarea::placeholder{color:var(--home-ink);opacity:.7;text-shadow:none}
.home[data-glass-tone]:has(.home-pages) .note-portrait{color:var(--home-ink);border-color:var(--glass-stroke)}
.home[data-glass-tone=light]:has(.home-pages) .note-heading,.home[data-glass-tone=light]:has(.home-pages) .note-duo{border-color:#30343b26}
.home-page .app-grid{grid-template-rows:repeat(7,minmax(0,1fr));height:calc(175cqw + 9px)}
.home-sorting .imported-widget iframe{pointer-events:auto}
.home-sorting .ios-widget textarea{pointer-events:auto}
.home-page .ios-widget{touch-action:none;-webkit-touch-callout:none}
.home-page .home-sort-ghost iframe{pointer-events:none!important}
.widget-interaction-overlay{position:absolute;inset:0;z-index:4;touch-action:none;background:transparent}
.widget-interaction-overlay[hidden]{display:none}
.home-sort-ghost .widget-interaction-overlay{pointer-events:none}
.home[data-glass-tone]:has(.home-pages),.home[data-glass-tone]:has(.home-pages) button,.home[data-glass-tone]:has(.home-pages) input,.home[data-glass-tone]:has(.home-pages) textarea,.home[data-glass-tone]:has(.home-pages) .app-label,.home[data-glass-tone]:has(.home-pages) .ios-status,.home[data-glass-tone]:has(.home-pages) .ios-status time{font-family:'User PingFang Heavy',-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-style:normal;font-synthesis:none}
.home[data-glass-tone]:has(.home-pages) .ios-status time{font-size:16px;font-weight:750;line-height:1;letter-spacing:.05px;transform:none;text-shadow:none;font-variant-numeric:tabular-nums}
@media(display-mode:fullscreen),(display-mode:standalone){html,body{overscroll-behavior:none}.page-wrap{min-height:100dvh}}
/* Extend desktop paint into system safe areas; inset foreground content only. */
html:has(.home-pages),body:has(.home-pages){background-color:var(--desktop-edge-color,#fff);background-image:var(--desktop-wallpaper,none);background-size:cover;background-position:center;background-repeat:no-repeat;min-height:100dvh}
.figma-matched-shell #app:has(.home-pages){background:transparent;margin-top:0;padding-top:0;box-shadow:none}
.screen.home:has(.home-pages){padding-top:var(--desktop-safe-top,env(safe-area-inset-top,0px));background-color:var(--desktop-edge-color,#fff)}
@media(display-mode:standalone),(display-mode:fullscreen){
  html:has(.home-pages),body:has(.home-pages){width:100%;height:100dvh;margin:0;padding:0;overflow:hidden}
  .figma-matched-shell #app:has(.home-pages){width:100%;max-width:none;height:100dvh;min-height:100dvh;margin:0;transform:none;will-change:auto}
}
.home-page{padding-top:8px}
