.settings-title {
  display: inline-block;
  margin: 0 0 0 18px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.15px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.settings-profile-card,
.settings-group {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.settings-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  overflow: hidden;
  position: relative;
}
.settings-avatar-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  flex: 0 0 auto;
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.settings-avatar.has-image img {
  display: block;
}
.settings-avatar.has-image .settings-avatar-placeholder {
  display: none;
}
.settings-profile-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-profile-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-profile-sub {
  font-size: 12px;
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.25;
  white-space: normal;
}
.settings-row {
  min-height: 50px;
  padding: 7px 14px 7px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
}
.settings-row + .settings-row::before {
  content: "";
  position: absolute;
  left: 53px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.2);
}
.settings-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #fff;
}
.settings-icon .fa-svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}
.settings-row-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.18px;
}
.settings-chevron {
  width: 9px;
  height: 15px;
  margin-left: auto;
  flex: 0 0 9px;
  color: #c7c7cc;
  display: block;
  fill: currentColor;
}
.settings-language-row {
  overflow: hidden;
}
.settings-language-row .settings-row-label {
  flex: 1;
  min-width: 0;
}
.settings-language-value {
  margin-left: auto;
  color: #8e8e93;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
}
.settings-language-row .settings-chevron {
  margin-left: 0;
}
.settings-language-select {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}
.icon-language {
  background: #007aff;
}
.settings-profile-card {
  margin-top: 10px;
  min-height: 86px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.apple-account-page {
  display: none;
  min-height: 100dvh;
  margin: -20px calc(var(--page-pad) * -1);
  background: #f2f2f7;
  color: #111;
  overflow-y: auto;
  padding: 16px 18px 36px;
}
.apple-account-page.is-auth {
  background: #fff;
}
.apple-account-page.is-auth .apple-account-nav {
  background: rgba(255, 255, 255, 0.92);
}
.launcher.is-apple-account .home-page,
.launcher.is-apple-account .dock-wrap,
.launcher.is-apple-account .settings-page {
  display: none;
}
.launcher.is-apple-account .apple-account-page {
  display: block;
}
.apple-account-nav {
  height: 40px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  position: sticky;
  top: -16px;
  z-index: 12;
  background: rgba(242, 242, 247, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.apple-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.apple-back svg {
  width: 9px;
  height: 16px;
  fill: currentColor;
}
.apple-nav-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
.apple-account-view {
  display: none;
}
.apple-account-view.is-active {
  display: block;
}
.apple-signin-hero {
  text-align: center;
  padding: 25px 10px 18px;
}
.apple-orbit {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 6px dotted #70aef3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a84ff;
  background: #fff;
}
.apple-orbit svg {
  width: 28px;
  height: 38px;
  fill: currentColor;
}
.apple-signin-title {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.08;
}
.apple-signin-copy {
  max-width: 310px;
  margin: 10px auto 0;
  color: #3c3c43;
  font-size: 15px;
  line-height: 1.38;
}
.apple-account-group {
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
}
.apple-form-card {
  margin-top: 12px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: grid;
  gap: 10px;
}
.apple-field {
  min-height: 52px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 16px;
  background: #f2f2f7;
  border-radius: 12px;
}
.apple-field + .apple-field::before {
  display: none;
}
.apple-field input,
.apple-field select {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 16px;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.apple-field input::placeholder {
  color: #8e8e93;
  opacity: 1;
}
.apple-field select {
  appearance: none;
  -webkit-appearance: none;
}
.apple-primary-button {
  width: 100%;
  height: 50px;
  border-radius: var(--o3o-long-button-radius);
  margin-top: 14px;
  background: #007aff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.apple-link-button {
  display: block;
  width: 100%;
  margin: 15px auto 0;
  color: #007aff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.apple-secondary-button {
  width: 100%;
  height: 50px;
  border-radius: var(--o3o-long-button-radius);
  margin-top: 10px;
  background: #fff;
  color: #007aff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.apple-form-error {
  min-height: 18px;
  margin-top: 9px;
  color: #ff3b30;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.apple-register-head {
  text-align: center;
  padding: 20px 4px 8px;
}
.apple-register-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.apple-register-head p {
  margin: 8px auto 0;
  max-width: 320px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.38;
}
.apple-phone-line {
  gap: 8px;
}
.apple-dial-code {
  width: 46px !important;
  flex: 0 0 46px !important;
  color: #6e6e73;
  font-size: 15px !important;
  text-align: left;
}
.apple-verify-button {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: #e9f3ff;
  color: #007aff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}
.apple-code-hint {
  min-height: 18px;
  margin: 7px 8px 0;
  color: #6e6e73;
  font-size: 12px;
  text-align: center;
}
.apple-profile-header {
  text-align: center;
  padding: 18px 0 22px;
}
.apple-profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #e6e6e6;
  overflow: hidden;
  position: relative;
}
.apple-profile-avatar .apple-profile-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.apple-profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.apple-profile-avatar.has-image img {
  display: block;
}
.apple-profile-avatar.has-image .apple-profile-placeholder {
  display: none;
}
.apple-profile-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.8px;
}
.apple-profile-id {
  margin-top: 5px;
  color: #8e8e93;
  font-size: 14px;
}
.apple-account-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.apple-account-row {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
}
.apple-account-row + .apple-account-row::before {
  content: "";
  position: absolute;
  left: 54px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.18);
}
.apple-account-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #8e8e93;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}
.apple-account-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.apple-account-label {
  font-size: 16px;
  flex: 1;
}
.apple-account-value {
  font-size: 13px;
  color: #8e8e93;
  max-width: 44%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apple-account-row .settings-chevron {
  margin-left: 3px;
}
.apple-switch-account,
.apple-signout {
  width: 100%;
  height: 50px;
  border-radius: var(--o3o-long-button-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.apple-switch-account {
  margin-top: 18px;
  background: #0a84ff;
  color: #fff;
}
.apple-signout {
  margin-top: 10px;
  background: #fff;
  color: #ff3b30;
}
.apple-account-switch-layer {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  z-index: 130;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.apple-account-switch-layer.is-open {
  display: flex;
  opacity: 1;
}
.apple-account-switch-sheet {
  width: min(100vw, 430px);
  background: #f2f2f7;
  border-radius: 24px 24px 0 0;
  padding: 8px 14px 0;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.82, 0.25, 1);
  box-shadow: 0 -1px 0 rgba(60, 60, 67, 0.08);
  display: flex;
  flex-direction: column;
}
.apple-account-switch-layer.is-open .apple-account-switch-sheet {
  transform: translateY(0);
}
.apple-account-switch-head {
  height: 44px;
  display: grid;
  place-items: center;
}
.apple-account-switch-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.22px;
}
.apple-account-switch-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  max-height: 48dvh;
  overflow-y: auto;
}
.apple-account-switch-empty {
  padding: 24px 16px;
  text-align: center;
  color: #8e8e93;
  font-size: 14px;
  line-height: 19px;
}
.apple-account-choice {
  min-height: 66px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
}
.apple-account-choice + .apple-account-choice::before {
  content: "";
  position: absolute;
  left: 64px;
  right: 39px;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.16);
}
.apple-account-choice.is-current {
  background: rgba(118, 118, 128, 0.12);
}
.apple-account-choice.is-current::before,
.apple-account-choice.is-current + .apple-account-choice::before {
  display: none;
}
.apple-account-choice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e6e6e6;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.apple-account-choice-avatar svg,
.apple-account-choice-avatar img {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
}
.apple-account-choice-avatar img {
  display: none;
}
.apple-account-choice-avatar.has-image img {
  display: block;
}
.apple-account-choice-avatar.has-image svg {
  display: none;
}
.apple-account-choice-copy {
  min-width: 0;
}
.apple-account-choice-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apple-account-choice-phone {
  margin-top: 2px;
  color: #8e8e93;
  font-size: 13px;
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apple-account-choice-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8e8e93;
  cursor: pointer;
  justify-self: end;
  background: transparent;
}
.apple-account-choice-remove svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.apple-account-switch-footer {
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.apple-account-register-new {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.apple-account-confirm-layer {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.26);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.apple-account-confirm-layer.is-open {
  display: flex;
  opacity: 1;
}
.apple-account-confirm {
  width: 270px;
  background: rgba(248, 248, 248, 0.94);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
  transform: scale(0.96);
  transition: transform 0.18s ease;
}
.apple-account-confirm-layer.is-open .apple-account-confirm {
  transform: scale(1);
}
.apple-account-confirm-copy {
  padding: 19px 18px 17px;
}
.apple-account-confirm-title {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  color: #111;
}
.apple-account-confirm-text {
  margin-top: 5px;
  font-size: 13px;
  line-height: 18px;
  color: #3c3c43;
}
.apple-account-confirm-actions {
  height: 45px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.28);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.apple-account-confirm-actions button {
  font-size: 17px;
  font-weight: 400;
  background: transparent;
  cursor: pointer;
}
.apple-account-confirm-actions button + button {
  border-left: 0.5px solid rgba(60, 60, 67, 0.28);
}
.apple-account-confirm-cancel {
  color: #007aff;
}
.apple-account-confirm-remove {
  color: #ff3b30;
  font-weight: 600 !important;
}
.apple-account-icon.aa-icloud {
  background: #fff;
  color: #0a84ff;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.16);
}
.apple-account-icon.aa-family {
  background: #eaf6ff;
  color: #0a84ff;
  box-shadow: inset 0 0 0 0.5px rgba(10, 132, 255, 0.14);
}
.apple-account-icon.aa-find {
  background: #34c759;
  color: #fff;
}
.apple-account-icon.aa-media {
  background: #0a84ff;
  color: #fff;
}
.apple-personal-sheet-layer {
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.apple-personal-sheet-layer.is-open {
  display: flex;
  opacity: 1;
}
.apple-personal-sheet {
  width: min(100vw, 430px);
  height: auto;
  max-height: calc(100dvh - 18px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f2f2f7;
  border-radius: 24px 24px 0 0;
  padding: 8px 14px 0;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.82, 0.25, 1);
  box-shadow: 0 -1px 0 rgba(60, 60, 67, 0.08);
  display: flex;
  flex-direction: column;
}
.apple-personal-sheet-layer.is-open .apple-personal-sheet {
  transform: translateY(0);
}
.apple-sheet-grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7cc;
  margin: 2px auto 7px;
}
.apple-sheet-head {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  flex: 0 0 44px;
}
.apple-sheet-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.22px;
}
.apple-sheet-done {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #007aff;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apple-sheet-footer {
  margin-top: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  flex: 0 0 auto;
}
.apple-sheet-avatar-wrap {
  width: 108px;
  height: 108px;
  margin: 10px auto 16px;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.apple-sheet-avatar {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: #e6e6e6;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.apple-sheet-avatar .apple-sheet-avatar-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.apple-sheet-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.apple-sheet-avatar.has-image img {
  display: block;
}
.apple-sheet-avatar.has-image .apple-sheet-avatar-placeholder {
  display: none;
}
.apple-sheet-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #0a84ff;
  color: #fff;
  border: 3px solid #f2f2f7;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.apple-sheet-camera svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.apple-personal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}
.apple-personal-group {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.apple-personal-field {
  min-height: 52px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  position: relative;
}
.apple-personal-field + .apple-personal-field::before {
  content: "";
  position: absolute;
  left: 96px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.18);
}
.apple-personal-label {
  font-size: 16px;
  color: #111;
  line-height: 20px;
}
.apple-personal-field input,
.apple-personal-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 16px;
  line-height: 21px;
  padding: 14px 0;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.apple-personal-field input {
  text-align: right;
}
.apple-personal-field textarea {
  resize: none;
  min-height: 176px;
  text-align: left;
}
.apple-personal-field.is-multiline {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 11px;
}
.apple-personal-field.is-multiline .apple-personal-label {
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 2px;
}
.apple-personal-field.is-multiline::before {
  left: 14px;
}
.apple-personal-field input::placeholder,
.apple-personal-field textarea::placeholder {
  color: #c7c7cc;
  opacity: 1;
}
.apple-personal-error {
  min-height: 0;
  padding: 0 7px;
  color: #ff3b30;
  font-size: 12px;
  line-height: 16px;
}
.apple-personal-error:empty {
  display: none;
}
.apple-personal-avatar-input {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.api-config-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.api-config-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.api-drawer-panel {
  width: min(100%, 430px);
  height: auto;
  max-height: min(72dvh, 620px);
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #111;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
  box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.15);
  touch-action: pan-y;
}
.api-config-drawer.is-open .api-drawer-panel {
  transform: translateY(0);
}
.api-drawer-grabber,
.api-sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7cc;
  margin: 7px auto 2px;
  flex: 0 0 auto;
  touch-action: none;
}
.api-drawer-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(242, 242, 247, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  flex: 0 0 auto;
}
.api-drawer-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.api-content {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px 5px;
}
.api-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.api-field,
.api-action {
  min-height: 44px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.api-field + .api-field::before,
.api-action + .api-action::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.2);
}
.api-label {
  width: 94px;
  flex: 0 0 94px;
  font-size: 16px;
}
.api-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 16px;
  text-align: right;
  padding: 7px 0;
}
.api-key-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.api-key-wrap .api-input {
  width: 100%;
}
.api-action {
  border: 0;
  width: 100%;
  background: #fff;
  color: #007aff;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.api-action:disabled {
  color: #aeaeb2;
}
.api-action .api-action-note {
  margin-left: auto;
  color: #8e8e93;
  font-size: 13px;
  max-width: 52%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-model-button {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 16px;
  text-align: right;
  padding: 7px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.api-model-button.is-empty {
  color: #8e8e93;
}
.api-status {
  min-height: 18px;
  margin: 0 10px 7px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.35;
}
.api-status:empty {
  display: none;
}
.api-status.is-ok {
  color: #248a3d;
}
.api-status.is-error {
  color: #d70015;
}
.api-footnote {
  display: none !important;
}
.api-drawer-footer {
  flex: 0 0 auto;
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
  background: rgba(242, 242, 247, 0.94);
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.api-bottom-save {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--o3o-long-button-radius);
  background: #007aff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.api-bottom-save:disabled {
  opacity: 0.45;
}
.api-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.api-sheet-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.api-sheet-panel {
  width: min(100%, 430px);
  max-height: 76dvh;
  background: #f2f2f7;
  border-radius: 18px 18px 0 0;
  padding: 0 12px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
  overflow: auto;
}
.api-sheet-layer.is-open .api-sheet-panel {
  transform: translateY(0);
}
.api-sheet-handle {
  margin-top: 8px;
  margin-bottom: 8px;
}
.api-sheet-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 5px 0 12px;
}
.api-sheet-copy {
  text-align: center;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.45;
  padding: 4px 15px 14px;
}
.api-sheet-copy.is-ok {
  color: #248a3d;
}
.api-sheet-copy.is-error {
  color: #d70015;
}
.api-sheet-input-wrap {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin: 2px 0 12px;
}
.api-sheet-input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 13px;
  font: inherit;
  font-size: 16px;
  color: #111;
}
.api-sheet-primary {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--o3o-long-button-radius);
  background: #007aff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.api-search {
  height: 38px;
  border-radius: 10px;
  background: #e3e3e8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  margin: 0 0 10px;
}
.api-search svg {
  width: 15px;
  height: 15px;
  fill: #8e8e93;
}
.api-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
}
.api-model-list,
.api-preset-list {
  background: #fff;
  border-radius: 10px;
  overflow: auto;
  max-height: calc(76dvh - 118px);
}
.api-model-option,
.api-preset-load {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #fff;
  padding: 10px 13px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  position: relative;
  overflow-wrap: anywhere;
}
.api-model-option + .api-model-option::before,
.api-preset-row + .api-preset-row::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.18);
}
.api-model-option.is-selected {
  color: #007aff;
  font-weight: 600;
}
.api-model-empty,
.api-preset-empty {
  padding: 26px 14px;
  text-align: center;
  color: #8e8e93;
  font-size: 14px;
}
.api-preset-row {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  min-height: 50px;
}
.api-preset-load {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.api-preset-delete {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ff3b30;
  flex: 0 0 46px;
}
.api-preset-delete svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.api-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease;
}
.api-confirm-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.api-confirm-box {
  width: min(270px, calc(100vw - 44px));
  background: rgba(248, 248, 248, 0.96);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.16);
}
.api-confirm-body {
  padding: 19px 18px 17px;
}
.api-confirm-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.api-confirm-message {
  font-size: 13px;
  color: #3c3c43;
  margin-top: 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.api-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid rgba(60, 60, 67, 0.28);
}
.api-confirm-actions button {
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: #007aff;
}
.api-confirm-actions button + button {
  border-left: 0.5px solid rgba(60, 60, 67, 0.28);
}
.api-confirm-actions .is-danger {
  color: #ff3b30;
  font-weight: 600;
}
@media (max-width: 380px) {
  .api-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .api-label {
    width: 86px;
    flex-basis: 86px;
  }
  .api-card {
    border-radius: 9px;
  }
  .api-drawer-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 380px) {
  :root {
    --page-pad: 15px;
    --section-gap: 20px;
  }
  .profile-widget {
    border-radius: 16px;
  }
  .profile-info {
    border-radius: 14px 14px 0 0;
    padding: 61px 16px 12px;
  }
  .profile-avatar {
    width: 102px;
    height: 102px;
  }
  .profile-name {
    font-size: 17px;
  }
  .profile-handle {
    font-size: 10px;
  }
  .profile-bio {
    font-size: 11px;
    margin-top: 10px;
  }
  .profile-location {
    font-size: 11px;
    margin-top: 9px;
  }
  .content-row {
    column-gap: 12px;
  }
  .app-grid {
    column-gap: 10px;
    row-gap: 10px;
  }
  .music-card {
    padding: 10px;
    border-radius: 16px;
  }
  .album {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
  }
  .music-icon {
    font-size: 20px;
  }
  .settings-page {
    padding-left: 15px;
    padding-right: 15px;
  }
  .settings-title {
    margin-left: 21px;
    font-size: 32px;
  }
  .settings-profile-card {
    margin-top: 10px;
  }
  .apple-account-page {
    padding-left: 15px;
    padding-right: 15px;
  }
  .apple-signin-hero {
    padding-top: 20px;
  }
  .apple-signin-title {
    font-size: 29px;
  }
  .ios-message-banner {
    width: calc(100vw - 14px);
    border-radius: 20px;
  }
}
.api-temp-wrap {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.api-temp-value {
  width: 34px;
  text-align: right;
  color: #3c3c43;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.font-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.font-drawer-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.font-drawer-panel {
  width: min(100%, 430px);
  height: min(84dvh, 740px);
  max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #111;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.14);
  touch-action: pan-y;
}
.font-drawer-layer.is-open .font-drawer-panel {
  transform: translateY(0);
}
.font-drawer-grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7cc;
  margin: 7px auto 2px;
  flex: 0 0 auto;
  touch-action: none;
}
.font-drawer-title {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.24px;
  flex: 0 0 46px;
}
.font-drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px calc(20px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.font-drawer-content::-webkit-scrollbar {
  display: none;
}
.font-group {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0 14px;
}
.font-preview-panel {
  min-height: 154px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
}
.font-preview-cn {
  max-width: 100%;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.font-preview-en {
  margin-top: 9px;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.font-control-row,
.font-source-row {
  min-height: 52px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.font-control-row + .font-control-row::before,
.font-source-row + .font-source-row::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.16);
}
.font-control-label,
.font-source-label {
  width: 76px;
  flex: 0 0 76px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.15px;
}
.font-control-range {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.font-control-value {
  width: 42px;
  flex: 0 0 42px;
  text-align: right;
  color: #8e8e93;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.font-list {
  display: flex;
  flex-direction: column;
  padding: 4px;
}
.font-list-row {
  width: 100%;
  min-height: 58px;
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: #111;
  font: inherit;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.font-list-row + .font-list-row::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 39px;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.16);
}
.font-list-row.is-selected {
  background: rgba(118, 118, 128, 0.12);
}
.font-list-row.is-selected::before,
.font-list-row.is-selected + .font-list-row::before {
  display: none;
}
.font-list-copy {
  min-width: 0;
}
.font-list-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-list-meta {
  display: block;
  margin-top: 3px;
  color: #8e8e93;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-list-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8e8e93;
  cursor: pointer;
  justify-self: end;
  background: transparent;
}
.font-list-remove svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}
.font-list-spacer {
  width: 28px;
  height: 28px;
  display: block;
}
.font-source-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 15px;
  text-align: right;
  padding: 7px 0;
}
.font-source-input::placeholder {
  color: #c7c7cc;
}
.font-source-file {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.font-file-button {
  max-width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0a84ff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.font-file-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 17px;
}
.font-file-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-apply-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--o3o-long-button-radius);
  background: #0a84ff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.font-apply-button:active {
  opacity: 0.78;
}
.font-status {
  min-height: 17px;
  margin: -5px 3px 9px;
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}
.font-status.is-error {
  color: #ff3b30;
}
.font-hidden-file {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.font-drawer-layer,
.font-drawer-layer * {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    sans-serif !important;
}
.theme-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.theme-drawer-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.theme-drawer-panel {
  width: min(100%, 430px);
  height: min(78dvh, 690px);
  max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #111;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.14);
  touch-action: pan-y;
}
.theme-drawer-layer.is-open .theme-drawer-panel {
  transform: translateY(0);
}
.theme-drawer-grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7cc;
  margin: 7px auto 2px;
  flex: 0 0 auto;
  touch-action: none;
}
.theme-drawer-title {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.24px;
  flex: 0 0 46px;
}
.theme-drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px calc(20px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.theme-drawer-content::-webkit-scrollbar {
  display: none;
}
.theme-wallpaper-block {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  padding: 10px 12px 12px;
  margin: 8px 0 14px;
}
.theme-wallpaper-head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.theme-item-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.18px;
  min-width: 0;
}
.theme-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.theme-action {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: grid !important;
  place-items: center !important;
  color: #007aff !important;
  cursor: pointer;
  line-height: 1 !important;
}
.theme-action.reset {
  color: #ff3b30 !important;
}
.theme-action .theme-action-icon,
.theme-action > svg {
  display: block;
  width: 21px !important;
  height: 21px !important;
  fill: currentColor !important;
  stroke: none !important;
  pointer-events: none;
}
.theme-action:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.32);
  outline-offset: 1px;
}
.theme-wallpaper-preview {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  background: #d1d1d6 center/cover no-repeat;
  overflow: hidden;
  position: relative;
}
.theme-wallpaper-preview::after {
  content: "Home Screen";
  position: absolute;
  left: 10px;
  bottom: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.theme-mode-row {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 8px 0 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111;
}
.theme-mode-select {
  min-width: 132px;
  max-width: 60%;
  height: 34px;
  border: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
}
.theme-mode-select:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.32);
  outline-offset: 1px;
}
.theme-icon-list {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  padding: 0 12px;
}
.theme-icon-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  position: relative;
}
.theme-icon-row + .theme-icon-row::before {
  content: "";
  position: absolute;
  left: 61px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.18);
}
.theme-icon-preview {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.theme-icon-row-copy {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-file-input {
  position: fixed;
  left: -200px;
  top: -200px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.settings-account-group {
  margin-top: 10px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.settings-account-group .settings-profile-card-combined {
  margin-top: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.settings-account-group > .settings-row {
  background: transparent;
}
.settings-account-group > .settings-row + .settings-row::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.18);
}
.settings-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
input[type="range"],
.ui-slim-range {
  width: 100%;
  min-width: 0;
  flex: 1;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  touch-action: pan-x;
}
html[data-user-typography="on"] body,
html[data-user-typography="on"] body * {
  font-family: var(--user-font-family) !important;
}
html[data-user-typography="on"] {
  -webkit-text-size-adjust: var(--user-font-scale, 100%);
  text-size-adjust: var(--user-font-scale, 100%);
}
.api-search svg.lucide-search {
  width: 15px;
  height: 15px;
  fill: none !important;
  stroke: #8e8e93 !important;
  stroke-width: 2 !important;
}

/* Apple account-scoped profile + gate security */
.apple-personal-field.is-multiline.compact textarea {
  min-height: 72px;
}

#applePersonalSetting {
  min-height: 112px;
}


.data-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1270;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.data-drawer-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.data-drawer-panel {
  width: min(100%, 430px);
  height: auto;
  max-height: min(68dvh, 570px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111;
  background: #f2f2f7;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  touch-action: pan-y;
}
.data-drawer-layer.is-open .data-drawer-panel {
  transform: translateY(0);
}
.data-drawer-grabber {
  width: 36px;
  height: 5px;
  flex: 0 0 auto;
  margin: 7px auto 2px;
  border-radius: 999px;
  background: #c7c7cc;
  touch-action: none;
}
.data-drawer-title {
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.24px;
}
.data-drawer-content {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 3px 14px calc(12px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.data-drawer-content::-webkit-scrollbar {
  display: none;
}
.data-cache-card,
.data-action-group {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
}
.data-cache-card {
  padding: 12px 13px 13px;
}
.data-cache-heading {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 650;
}
.data-cache-overview {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}
.data-cache-chart {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d1d1d6;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.16);
  transition: background 0.24s ease;
}
.data-cache-chart-center {
  width: 66px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}
.data-cache-chart-center strong {
  max-width: 58px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-cache-chart-center span {
  margin-top: 2px;
  color: #8e8e93;
  font-size: 10px;
}
.data-cache-legend {
  min-width: 0;
}
.data-cache-legend-row {
  min-height: 23px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: #3a3a3c;
  font-size: 11px;
}
.data-cache-legend-row strong {
  color: #8e8e93;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.data-cache-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.data-cache-loading {
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.4;
}
.data-action-group {
  margin-top: 10px;
}
.data-action-row {
  position: relative;
  width: 100%;
  height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 10px;
  gap: 12px;
  align-items: center;
  padding: 0 15px !important;
  border: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.data-action-row + .data-action-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 59px;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.22);
}
.data-action-row.is-danger {
  color: #ff3b30;
}
.data-action-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
}
.data-action-icon.is-export {
  background: #007aff;
}
.data-action-icon.is-import {
  background: #34c759;
}
.data-action-icon.is-clear {
  background: #ff3b30;
}
.data-action-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.data-action-chevron {
  width: 7px;
  height: 12px;
  fill: #c7c7cc;
}
.data-footnote {
  display: none !important;
}
.data-hidden-file {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.data-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1420;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.data-modal-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.data-modal-box {
  width: min(270px, calc(100vw - 44px));
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(248, 248, 248, 0.94);
  color: #111;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.24);
  transform: scale(0.94);
  transition: transform 0.18s ease;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
.data-modal-layer.is-open .data-modal-box {
  transform: scale(1);
}
.data-modal-body {
  padding: 19px 17px 17px;
  text-align: center;
}
.data-modal-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
.data-modal-message {
  margin-top: 5px;
  color: #3a3a3c;
  font-size: 12px;
  line-height: 1.38;
}
.data-modal-field {
  display: block;
  margin-top: 14px;
  text-align: left;
}
.data-modal-field[hidden] {
  display: none !important;
}
.data-modal-field span {
  display: block;
  margin: 0 0 5px 2px;
  color: #636366;
  font-size: 10px;
}
.data-modal-field input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0.5px solid rgba(60, 60, 67, 0.3);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #111;
  font: inherit;
  font-size: 12px;
}
.data-modal-field input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.13);
}
.data-modal-status {
  min-height: 0;
  margin-top: 8px;
  color: #636366;
  font-size: 10px;
  line-height: 1.3;
}
.data-modal-status:empty {
  display: none;
}
.data-modal-status.is-error {
  color: #ff3b30;
}
.data-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid rgba(60, 60, 67, 0.28);
}
.data-modal-actions button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.data-modal-actions button + button {
  border-left: 0.5px solid rgba(60, 60, 67, 0.28);
  font-weight: 600;
}
.data-modal-actions button.is-danger {
  color: #ff3b30;
}
.data-modal-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 360px) {
  .data-cache-overview {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 11px;
  }
  .data-cache-chart {
    width: 104px;
    height: 104px;
  }
  .data-cache-chart-center {
    width: 64px;
    height: 64px;
  }
}

.about-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.about-drawer-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.about-drawer-panel {
  width: min(100%, 430px);
  height: min(72dvh, 610px);
  max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #111;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.14);
  touch-action: pan-y;
}
.about-drawer-layer.is-open .about-drawer-panel {
  transform: translateY(0);
}
.about-drawer-grabber {
  width: 36px;
  height: 5px;
  flex: 0 0 auto;
  margin: 7px auto 2px;
  border-radius: 999px;
  background: #c7c7cc;
  touch-action: none;
}
.about-drawer-title {
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.24px;
}
.about-drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 18px calc(22px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.about-drawer-content::-webkit-scrollbar {
  display: none;
}
.about-card {
  margin-bottom: 12px;
  padding: 15px 16px;
  border-radius: 12px;
  background: #fff;
}
.about-version-card {
  min-height: 60px;
  display: flex;
  align-items: center;
}
.about-version-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}
.about-version-copy strong {
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
}
.about-section-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 650;
}
.about-copy,
.about-changelog-item span {
  margin: 0;
  color: #636366;
  font-size: 13px;
  line-height: 1.5;
}
.about-changelog-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.about-changelog-item strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

/* Global input focus: no visual highlight */
.api-input:focus,.api-input:focus-visible,.api-search input:focus,.api-search input:focus-visible{
  outline:none!important;box-shadow:none!important;
}
.data-modal-field input:focus,.data-modal-field input:focus-visible{
  border-color:rgba(60,60,67,.3)!important;outline:none!important;box-shadow:none!important;
}


/* API actions: icon + label, using the same visual language as the settings controls. */
.api-action-main{display:inline-flex;align-items:center;gap:9px;min-width:0}.api-action-icon{width:18px;height:18px;flex:0 0 18px;fill:currentColor;stroke:none}.api-action:disabled .api-action-icon{opacity:.65}
/* Model selection is a global centered dialog, not a bottom drawer. */
.api-model-dialog-layer{align-items:center;padding:22px}.api-model-dialog-panel{width:min(calc(100vw - 44px),386px);max-height:min(68dvh,590px);border-radius:22px;padding:16px 12px 14px;box-shadow:0 18px 55px rgba(0,0,0,.2);transform:translateY(12px) scale(.96);opacity:0;transition:transform .24s cubic-bezier(.2,.82,.25,1),opacity .18s ease}.api-model-dialog-layer.is-open .api-model-dialog-panel{transform:translateY(0) scale(1);opacity:1}.api-model-dialog-panel .api-sheet-title{padding:1px 0 13px}.api-model-dialog-panel .api-model-list{max-height:min(46dvh,410px)}
/* Personal information sheet: compact profile form. */
.apple-personal-sheet{max-height:min(76dvh,610px);padding:7px 14px 0}.apple-sheet-head{height:40px;flex-basis:40px}.apple-sheet-avatar-wrap{width:86px;height:86px;margin:5px auto 10px}.apple-sheet-avatar{width:82px;height:82px}.apple-sheet-camera{width:29px;height:29px;border-width:2px}.apple-sheet-camera svg{width:13px;height:13px}.apple-personal-form{gap:8px}.apple-personal-field{min-height:48px}.apple-personal-field textarea{min-height:86px;padding:8px 0 11px}.apple-personal-setting-group .apple-personal-field{min-height:112px}.apple-personal-setting-group .apple-personal-field textarea{min-height:82px}.apple-sheet-footer{padding:9px 0 calc(10px + env(safe-area-inset-bottom))}.apple-sheet-done{height:46px}
