.settings-content {
  width: min(820px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.settings-panel {
  display: grid;
  gap: 12px;
}

.settings-group {
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}

.settings-group-heading,
.account-info-row,
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.settings-group-heading > div:first-child {
  min-width: 0;
}

.settings-group h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.settings-kicker,
.danger-kicker {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.danger-kicker {
  color: #b83d34;
}

.settings-status-pill {
  max-width: none;
  min-height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--settings-status-neutral-border, var(--theme-line, var(--line)));
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--settings-status-neutral-background, var(--theme-surface-soft, #fff));
  color: var(--settings-status-neutral-text, var(--theme-muted, var(--muted)));
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.settings-status-pill[data-tone="neutral"] {
  border-color: var(--settings-status-neutral-border, var(--theme-line, var(--line)));
  background: var(--settings-status-neutral-background, var(--theme-surface-soft, #fff));
  color: var(--settings-status-neutral-text, var(--theme-muted, var(--muted)));
}

.settings-status-pill[data-tone="positive"] {
  border-color: var(--settings-status-positive-border, rgba(31, 122, 90, 0.24));
  background: var(--settings-status-positive-background, #eef8f3);
  color: var(--settings-status-positive-text, var(--primary-strong));
}

.settings-status-pill[data-tone="attention"] {
  border-color: var(--settings-status-attention-border, #d8bd83);
  background: var(--settings-status-attention-background, #fff7e7);
  color: var(--settings-status-attention-text, #76551a);
}

.settings-status-pill[data-tone="negative"] {
  border-color: var(--settings-status-negative-border, #dfaaa5);
  background: var(--settings-status-negative-background, #fff0ef);
  color: var(--settings-status-negative-text, #963c35);
}

.account-info-row {
  margin-top: 22px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.account-overview-group {
  padding: 18px 0 20px;
}

.account-management-entry {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(31, 122, 90, 0.12);
  border-radius: 8px;
  padding: 15px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 249, 0.76)),
    rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(25, 42, 35, 0.055);
  text-align: left;
}

.account-management-entry:hover:not(:disabled),
.account-management-entry:focus-visible {
  border-color: rgba(31, 122, 90, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 245, 0.86)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 32px rgba(25, 42, 35, 0.08);
  transform: none;
}

.account-management-entry:active:not(:disabled) {
  transform: scale(0.992);
}

.account-management-entry .settings-account-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.account-management-summary {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.account-management-summary > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.account-overview-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-overview-fields > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(31, 122, 90, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
}

.account-overview-fields small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 820;
}

.account-overview-fields em {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme^="glass-"] .account-management-entry {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 12px 28px rgba(80, 102, 119, 0.08);
}

html[data-theme^="glass-"] .account-management-entry:hover:not(:disabled),
html[data-theme^="glass-"] .account-management-entry:focus-visible {
  border-color: rgba(105, 183, 207, 0.3);
  background: rgba(229, 247, 251, 0.48);
}

html[data-theme^="glass-"] .account-overview-fields > span {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.22);
}

.account-profile-row {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.account-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid rgba(31, 122, 90, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(250, 253, 251, 0.88);
}

.account-login-card {
  margin-top: 18px;
}

.account-management-panel .settings-group-heading {
  align-items: flex-start;
}

.account-management-panel > .settings-group:first-of-type {
  padding-bottom: 12px;
}

.account-management-panel .account-management-section {
  padding-top: 14px;
  padding-bottom: 14px;
}

.account-management-panel .account-management-section + .account-management-section {
  padding-top: 12px;
}

.account-management-panel .settings-description {
  margin-top: 6px;
}

.settings-overview-actions {
  justify-content: stretch;
  padding: 22px 0 6px;
}

.settings-overview-actions .settings-logout-button {
  width: 100%;
}

.account-binding-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-binding-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(31, 122, 90, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(250, 253, 251, 0.88);
}

.account-binding-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-binding-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.account-binding-card strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.account-binding-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.account-binding-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(115, 166, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #17202a;
}

.account-binding-icon.qq-login-mark {
  border-radius: 999px;
}

.account-binding-icon.huawei-login-mark {
  color: #d91935;
  border-color: rgba(217, 25, 53, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.account-binding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-bind-button {
  min-height: 36px;
  border: 1px solid rgba(76, 159, 178, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
}

.account-bind-button.subtle {
  color: var(--muted);
}

.account-bind-button:hover:not(:disabled),
.account-bind-button:focus-visible {
  border-color: rgba(76, 159, 178, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(80, 102, 119, 0.1);
  transform: none;
}

.account-bind-button:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  transform: scale(0.985);
}

.account-blacklist-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-blacklist-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(31, 122, 90, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(250, 253, 251, 0.88);
}

.account-blacklist-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(76, 159, 178, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  font-size: 15px;
  font-weight: 900;
}

.account-blacklist-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-blacklist-user {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-blacklist-user strong {
  color: var(--ink);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-blacklist-user small,
.account-blacklist-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.account-blacklist-empty {
  margin: 10px 0 0;
}

.account-profile-readonly {
  min-width: 0;
  display: grid;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.account-profile-item {
  width: 100%;
  min-width: 0;
  height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  align-items: center;
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  white-space: normal;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.account-profile-item:last-child {
  border-bottom: 0;
}

.account-profile-item:hover:not(:disabled),
.account-profile-item:focus-visible {
  background: #f7fbf9;
  box-shadow: none;
  transform: none;
}

.account-profile-item:active:not(:disabled) {
  background: #eef7f2;
  transform: none;
}

.account-profile-item[aria-disabled="true"] {
  cursor: not-allowed;
}

.account-profile-item > span:first-child,
.account-profile-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.account-profile-item > span:first-child {
  min-width: 0;
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-item strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink);
  font-size: 15px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-item .settings-account-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.account-profile-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.account-profile-field {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.profile-goal-field {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.profile-goal-field label {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  overflow: hidden;
}

.profile-goal-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.account-profile-field input,
.account-profile-field select,
.profile-edit-avatar-row input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(250, 253, 251, 0.92);
  color: var(--ink);
  color-scheme: light;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.profile-goal-field input {
  display: block;
  appearance: none;
  -webkit-appearance: none;
}

.profile-goal-field input[type="date"] {
  min-inline-size: 0;
  line-height: 42px;
  text-align: left;
}

.profile-goal-field input[type="date"]::-webkit-date-and-time-value {
  min-height: 42px;
  text-align: left;
}

.profile-goal-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

.profile-birthday-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.profile-birthday-control .profile-date-input,
.profile-goal-field .profile-date-input {
  min-inline-size: 0;
  line-height: 42px;
  text-align: left;
}

.profile-birthday-control .profile-date-input::-webkit-date-and-time-value,
.profile-goal-field .profile-date-input::-webkit-date-and-time-value {
  min-height: 42px;
  text-align: left;
}

.profile-birthday-control .profile-date-input::-webkit-calendar-picker-indicator,
.profile-goal-field .profile-date-input::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

.profile-birthday-clear-button {
  min-width: 72px;
  min-height: 42px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(250, 253, 251, 0.92);
  color: var(--ink);
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  transform: none;
}

.profile-birthday-clear-button:hover:not(:disabled),
.profile-birthday-clear-button:focus-visible {
  border-color: rgba(31, 122, 90, 0.24);
  background: #f2f8f5;
  box-shadow: none;
  transform: none;
}

.profile-birthday-clear-button:active:not(:disabled) {
  background: #edf6f1;
  transform: none;
}

.profile-birthday-clear-button:disabled {
  cursor: default;
  opacity: 0.44;
}

.account-profile-field input:focus,
.account-profile-field select:focus,
.profile-edit-avatar-row input:focus {
  border-color: rgba(31, 122, 90, 0.32);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.1);
}

.profile-gender-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-gender-options.profile-gender-scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  overflow-x: auto;
  padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.profile-gender-options.profile-gender-scroll::-webkit-scrollbar {
  display: none;
}

.profile-gender-options button,
.birthday-picker-toggle,
.birthday-picker-done {
  min-height: 40px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfdfb;
  color: var(--ink);
  box-shadow: none;
  font-weight: 760;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.profile-gender-scroll button {
  min-height: 50px;
  scroll-snap-align: center;
}

.profile-gender-options button:hover:not(:disabled),
.birthday-picker-toggle:hover:not(:disabled),
.birthday-picker-done:hover:not(:disabled) {
  border-color: rgba(31, 122, 90, 0.24);
  background: #f2f8f5;
  box-shadow: none;
  transform: none;
}

.profile-gender-options button:active:not(:disabled),
.birthday-picker-toggle:active:not(:disabled),
.birthday-picker-done:active:not(:disabled) {
  background: #edf6f1;
  transform: scale(0.99);
}

.profile-gender-options button.is-active {
  border-color: rgba(31, 122, 90, 0.34);
  background: #e9f5ef;
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, 0.12);
}

.profile-gender-scroll button[data-profile-gender="male"].is-active {
  border-color: rgba(47, 123, 214, 0.3);
  background: #eaf3ff;
  color: #2b69b8;
  box-shadow: inset 0 0 0 1px rgba(47, 123, 214, 0.14);
}

.profile-gender-scroll button[data-profile-gender="female"].is-active {
  border-color: rgba(211, 78, 107, 0.3);
  background: #fff0f4;
  color: #bd3f61;
  box-shadow: inset 0 0 0 1px rgba(211, 78, 107, 0.14);
}

.birthday-picker {
  border: 1px solid rgba(31, 122, 90, 0.13);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfdfb 0%, #f4faf6 100%);
  box-shadow: 0 14px 34px rgba(31, 122, 90, 0.08);
}

.birthday-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.birthday-picker-head strong {
  color: var(--primary-strong);
  font-size: 14px;
}

.birthday-picker-head button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(31, 122, 90, 0.08);
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 12px;
}

.birthday-picker-head button:hover:not(:disabled),
.birthday-picker-head button:focus-visible {
  background: rgba(31, 122, 90, 0.12);
  box-shadow: none;
  transform: none;
}

.birthday-picker-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 8px;
}

.birthday-picker-column {
  height: 186px;
  overflow-y: auto;
  border: 1px solid rgba(31, 122, 90, 0.1);
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.74);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.birthday-picker-column::-webkit-scrollbar {
  display: none;
}

.birthday-picker-column button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  background: transparent;
  color: #607069;
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
}

.birthday-picker-column button:hover:not(:disabled),
.birthday-picker-column button:focus-visible {
  background: rgba(31, 122, 90, 0.06);
  box-shadow: none;
  transform: none;
}

.birthday-picker-column button.is-selected {
  background: #dfeee7;
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 90, 0.12);
}

.birthday-picker-done {
  width: 100%;
  margin-top: 10px;
}

.account-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.account-personal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.account-personal-fields label {
  display: grid;
  gap: 6px;
}

.account-personal-fields span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.account-personal-fields select,
.account-personal-fields input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(250, 253, 251, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 720;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.account-personal-fields select:focus,
.account-personal-fields input:focus {
  border-color: rgba(31, 122, 90, 0.32);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.1);
}

.settings-account-text {
  flex: 1 1 180px;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.settings-account-text small,
.settings-account-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.account-info-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-status-notice {
  margin: 8px 0 0;
  border: 1px solid rgba(198, 96, 82, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff5f2;
  color: #a94635;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.55;
}

.account-status-notice[data-status="frozen"] {
  border-color: rgba(190, 139, 44, 0.22);
  background: #fff8e8;
  color: #8a641d;
}

.qq-sync-button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: #f7fbf9;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 820;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.qq-sync-button:hover:not(:disabled),
.qq-sync-button:focus-visible {
  border-color: rgba(31, 122, 90, 0.34);
  background: #edf8f2;
}

.qq-sync-button:active:not(:disabled) {
  transform: scale(0.98);
}

.qq-sync-button:disabled {
  cursor: not-allowed;
  color: rgba(95, 112, 104, 0.66);
  background: #f4f7f5;
}

.qq-sync-message {
  margin-top: 6px;
}

.qq-sync-message[data-type="success"] {
  color: var(--primary-strong);
}

.qq-sync-message[data-type="error"] {
  color: #b45143;
}

.settings-options,
.native-health-sync {
  display: grid;
  gap: 12px;
  padding: 0;
}

.native-health-sync .settings-option-button {
  min-height: 68px;
}

.settings-option-button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 12px;
  background: transparent;
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  white-space: normal;
  overflow: hidden;
}

.settings-option-button:hover:not(:disabled),
.settings-option-button:focus-visible {
  background: rgba(31, 122, 90, 0.045);
  box-shadow: none;
  transform: none;
}

.settings-option-button:active:not(:disabled) {
  background: rgba(31, 122, 90, 0.075);
  box-shadow: none;
  transform: scale(0.992);
}

.settings-option-button > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}

.settings-option-button small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.settings-option-button strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
}

.settings-option-button em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
  line-height: 1.45;
}

.native-health-last-sync,
.native-health-detail-sync-time {
  color: #8a968f;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.native-health-detail-sync-time {
  margin: 6px 0 0;
}

html[data-locale="en"] .settings-option-button {
  gap: 12px;
  padding-block: 12px;
}

html[data-locale="en"] .settings-option-button strong {
  font-size: clamp(14px, 3.65vw, 16px);
}

html[data-locale="en"] .settings-option-button em {
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.35;
}

html[data-locale="en"] .settings-status-pill {
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  line-height: 1.15;
}

.settings-option-arrow {
  color: #9aa69f;
  font-size: 24px;
  font-weight: 500;
}

.settings-option-meta {
  flex: 0 0 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-option-meta .settings-status-pill {
  max-width: none;
  white-space: nowrap;
}

.settings-option-meta .settings-option-arrow {
  flex: 0 0 auto;
}

.settings-entry-button {
  position: relative;
}

.settings-entry-button.has-app-update::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e34848;
  box-shadow: 0 0 0 2px var(--safe-bg, #fff);
  pointer-events: none;
}

.settings-entry-button.has-app-update::after {
  top: 3px;
  right: 2px;
}

.app-update-inline-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e34848;
  box-shadow: 0 0 0 2px var(--safe-bg, #fff);
}

.app-version-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.app-version-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
}

.app-version-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.app-version-row strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
}

.app-update-button {
  width: 100%;
  margin-top: 20px;
}

.app-update-message {
  margin-top: 12px;
  text-align: center;
}

.settings-footer-actions {
  display: flex;
  justify-content: center;
  padding: 26px 0 6px;
}

.native-health-switch-list,
.notification-preference-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.native-health-switch,
.notification-preference-switch {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.native-health-switch:hover,
.notification-preference-switch:hover {
  border-color: rgba(31, 122, 90, 0.26);
  background: #fbfdfb;
}

.native-health-switch > span:first-child,
.notification-preference-switch > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.native-health-switch small,
.notification-preference-switch small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.native-health-switch strong,
.notification-preference-switch strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.native-health-switch em,
.notification-preference-switch em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.native-health-switch input,
.notification-preference-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.native-health-switch-track,
.notification-preference-track {
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 108, 102, 0.16);
  border-radius: 999px;
  padding: 3px;
  background: #dfe8e3;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.native-health-switch-track span,
.notification-preference-track span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(36, 48, 42, 0.22);
  transition: transform 150ms ease;
}

.native-health-switch input:checked + .native-health-switch-track,
.notification-preference-switch input:checked + .notification-preference-track {
  border-color: rgba(31, 122, 90, 0.36);
  background: var(--primary);
}

.native-health-switch input:checked + .native-health-switch-track span,
.notification-preference-switch input:checked + .notification-preference-track span {
  transform: translateX(20px);
}

.native-health-switch input:focus-visible + .native-health-switch-track,
.notification-preference-switch input:focus-visible + .notification-preference-track {
  outline: 2px solid rgba(31, 122, 90, 0.24);
  outline-offset: 3px;
}

.native-health-switch input:disabled + .native-health-switch-track,
.notification-preference-switch input:disabled + .notification-preference-track {
  opacity: 0.62;
}

.notification-system-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.notification-system-card > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notification-system-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.notification-system-card strong {
  color: var(--ink);
  font-size: 16px;
}

.notification-system-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
  line-height: 1.45;
}

.notification-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-system-button {
  min-height: 42px;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.notification-system-button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.notification-system-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.notification-settings-message[data-type="success"] {
  color: var(--primary-strong);
}

.notification-settings-message[data-type="error"] {
  color: #b45143;
}

.native-health-detail-actions {
  display: flex;
  margin-top: 18px;
}

.native-health-sync-button {
  min-width: 148px;
}

.native-health-settings-message[data-type="success"] {
  color: var(--primary-strong);
}

.native-health-settings-message[data-type="error"] {
  color: #b45143;
}

.settings-logout-button {
  min-width: 152px;
}

.settings-back-button {
  width: fit-content;
  min-height: 36px;
  margin: 20px 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 14px;
}

.settings-back-button::before {
  content: "‹";
  margin-right: 6px;
  color: var(--primary);
}

.settings-back-button:hover:not(:disabled),
.settings-back-button:focus-visible {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}

.settings-back-button:active:not(:disabled) {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  transform: none;
}

.settings-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.mode-selector button {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  background-clip: padding-box;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  overflow: hidden;
}

.mode-selector button:hover:not(:disabled) {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
  transform: none;
}

.mode-selector button:active:not(:disabled) {
  border-color: rgba(31, 122, 90, 0.18);
  background: #f2f8f5;
  box-shadow: none;
  transform: scale(0.992);
}

.mode-selector button:focus-visible {
  outline: none;
}

.mode-selector button.is-active,
.mode-selector button.is-active:hover:not(:disabled),
.mode-selector button.is-active:focus-visible {
  border-color: var(--primary);
  background: #edf7f2;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mode-selector strong {
  font-size: 15px;
}

.mode-selector span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.5;
}

.document-links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.document-link,
.consent-document-row button {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 13px;
}

.document-link:hover:not(:disabled),
.consent-document-row button:hover:not(:disabled) {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.document-link:active:not(:disabled),
.consent-document-row button:active:not(:disabled) {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  transform: none;
}

.privacy-audit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.privacy-audit-summary span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #fff;
}

.privacy-audit-summary small {
  color: var(--muted);
  font-size: 11px;
}

.privacy-audit-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}

.passkey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.passkey-card > div,
.passkey-list-item > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.passkey-card small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.passkey-card strong,
.passkey-list-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.passkey-card em,
.passkey-list-item small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.passkey-add-button {
  min-height: 40px;
  white-space: nowrap;
}

.passkey-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.passkey-list-item,
.passkey-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.passkey-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
}

.passkey-delete-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: #ba392b;
  box-shadow: none;
  overflow: hidden;
}

.passkey-delete-button:hover:not(:disabled) {
  background: rgba(186, 57, 43, 0.08);
  color: #a72e23;
  box-shadow: none;
  transform: none;
}

.passkey-delete-button:focus-visible {
  background: transparent;
  color: #ba392b;
  box-shadow: none;
  outline: none;
  transform: none;
}

.passkey-delete-button:active:not(:disabled) {
  background: rgba(186, 57, 43, 0.12);
  transform: scale(0.94);
}

.passkey-empty {
  color: var(--muted);
  font-size: 13px;
}

.withdraw-button {
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid rgba(184, 61, 52, 0.2);
  background: #fff;
  background-clip: padding-box;
  color: #a93830;
  overflow: hidden;
}

.withdraw-button:hover:not(:disabled) {
  background: #fff4f2;
  box-shadow: none;
}

.withdraw-button:active:not(:disabled) {
  background: #ffe7e3;
  box-shadow: none;
  transform: scale(0.985);
}

.settings-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-message:empty {
  min-height: 0;
  margin: 0;
}

.danger-zone p:not(.settings-kicker) {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.danger-confirm-button {
  background: #b83d34;
  color: #fff;
  overflow: hidden;
}

.danger-confirm-button:hover:not(:disabled) {
  background: #982f28;
  box-shadow: 0 10px 24px rgba(184, 61, 52, 0.18);
}

.danger-confirm-button:active:not(:disabled) {
  background: #812720;
  box-shadow: 0 5px 14px rgba(184, 61, 52, 0.14);
  transform: scale(0.985);
}

.account-delete-button {
  border: 1px solid rgba(184, 61, 52, 0.22);
  background: #fff;
  background-clip: padding-box;
  color: #a93830;
  overflow: hidden;
}

.account-delete-button:hover:not(:disabled),
.account-delete-button:focus-visible {
  background: #fff7f5;
  box-shadow: none;
  transform: none;
}

.account-delete-button:active:not(:disabled) {
  background: #ffe7e3;
  box-shadow: none;
  transform: scale(0.985);
}

.privacy-consent-backdrop {
  z-index: 1420;
}

.privacy-consent-dialog {
  width: min(560px, 100%);
}

.consent-dialog::-webkit-scrollbar,
.confirmation-dialog::-webkit-scrollbar,
.privacy-consent-dialog::-webkit-scrollbar,
.policy-content::-webkit-scrollbar {
  display: none;
}

.privacy-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.privacy-highlights span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #f7f9f8;
  font-size: 11px;
}

.consent-document-row {
  display: flex;
  gap: 16px;
  margin: 18px 0 14px;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 10px 0 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.privacy-consent-message,
.confirmation-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b83d34;
  font-size: 13px;
}

.passkey-prompt-backdrop {
  z-index: 1430;
}

.notification-permission-prompt-backdrop {
  z-index: 1425;
}

.notification-permission-prompt-dialog {
  width: min(440px, 100%);
}

.notification-permission-prompt-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--primary-strong);
  background: #f3faf6;
}

.notification-permission-prompt-visual > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-permission-prompt-visual strong {
  font-size: 13px;
  font-weight: 780;
}

.notification-permission-prompt-visual small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}

.notification-permission-prompt-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 122, 90, 0.1);
}

.notification-permission-prompt-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.passkey-prompt-dialog {
  width: min(440px, 100%);
}

.profile-edit-backdrop {
  z-index: 1460;
}

.profile-edit-dialog {
  width: min(520px, 100%);
  max-height: calc(100dvh - var(--modal-safe-top-gap) - var(--modal-safe-bottom-gap));
  display: grid;
  gap: 15px;
  overflow-y: auto;
  border: 1px solid rgba(31, 122, 90, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(10, 24, 18, 0.26);
  opacity: 0.96;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transition: opacity 190ms ease, transform 190ms cubic-bezier(0.22, 0.84, 0.2, 1);
  will-change: opacity, transform;
  scrollbar-width: none;
}

.profile-edit-dialog::-webkit-scrollbar {
  display: none;
}

.consent-backdrop.is-open .profile-edit-dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.profile-edit-dialog h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.profile-edit-avatar-row {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 6px 0 2px;
}

.profile-edit-avatar-row .settings-account-avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

.profile-edit-avatar-row label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-edit-avatar-row label > span:not(.settings-account-avatar) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.profile-avatar-picker {
  width: max-content;
  cursor: pointer;
  border-radius: 999px;
}

.profile-avatar-picker .settings-account-avatar {
  transition: box-shadow 150ms ease, transform 150ms ease, filter 150ms ease;
}

.profile-avatar-picker:hover .settings-account-avatar,
.profile-avatar-picker:focus-within .settings-account-avatar {
  box-shadow: 0 0 0 4px rgba(31, 122, 90, 0.12);
  filter: saturate(1.04);
  transform: scale(1.01);
}

.profile-avatar-picker:active .settings-account-avatar {
  transform: scale(0.98);
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-edit-dialog .account-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
}

.profile-edit-dialog .profile-action-button {
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(25, 42, 35, 0.07);
  font: inherit;
  font-size: 15px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  transform: none;
}

.profile-edit-dialog .profile-action-button:hover:not(:disabled),
.profile-edit-dialog .profile-action-button:focus-visible {
  border-color: rgba(31, 122, 90, 0.22);
  background: #f8fcfa;
  box-shadow: 0 10px 24px rgba(25, 42, 35, 0.08);
  transform: none;
}

.profile-edit-dialog .profile-action-button:active:not(:disabled) {
  background: #f0f7f3;
  box-shadow: 0 6px 16px rgba(25, 42, 35, 0.06);
  transform: none;
}

.passkey-prompt-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--primary-strong);
  background: #f3faf6;
  font-size: 13px;
  font-weight: 760;
}

.passkey-prompt-visual .passkey-icon {
  width: 30px;
  height: 30px;
  background: #fff;
}

.policy-backdrop {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--modal-safe-top-gap) var(--modal-safe-right-gap) var(--modal-safe-bottom-gap) var(--modal-safe-left-gap);
  background: rgba(15, 24, 20, 0.55);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 190ms ease, background-color 190ms ease;
}

.policy-backdrop.is-open {
  opacity: 1;
}

.policy-panel {
  width: min(760px, 100%);
  height: min(780px, calc(100dvh - var(--modal-safe-top-gap) - var(--modal-safe-bottom-gap)));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(31, 122, 90, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(10, 24, 18, 0.3);
  opacity: 0.97;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transition: opacity 190ms ease, transform 190ms cubic-bezier(0.22, 0.84, 0.2, 1);
  will-change: opacity, transform;
}

.policy-backdrop.is-open .policy-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.policy-header p {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 820;
}

.policy-header h2 {
  margin: 0;
  font-size: 22px;
}

.policy-content {
  overflow-y: auto;
  padding: 22px 24px 36px;
  color: #39443f;
  font-size: 14px;
  line-height: 1.75;
  scrollbar-width: none;
}

.policy-content h3 {
  margin: 24px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.policy-content p {
  margin: 8px 0;
}

.policy-content a {
  color: var(--primary-strong);
}

.policy-version {
  color: var(--muted);
  font-size: 12px;
}

.confirmation-dialog {
  width: min(500px, 100%);
  max-height: calc(100dvh - var(--modal-safe-top-gap) - var(--modal-safe-bottom-gap));
  overflow-y: auto;
  border: 1px solid rgba(184, 61, 52, 0.2);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 24, 18, 0.28);
  scrollbar-width: none;
}

.action-confirm-dialog {
  width: min(380px, 100%);
  border: 1px solid rgba(216, 86, 104, 0.2);
  border-radius: 10px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 253, 255, 0.82)),
    radial-gradient(120% 120% at 100% 0%, rgba(111, 207, 226, 0.12), rgba(255, 255, 255, 0) 58%);
  box-shadow:
    0 26px 72px rgba(20, 36, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  color: var(--ink);
  opacity: 0.98;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transition: opacity 190ms ease, transform 190ms cubic-bezier(0.22, 0.84, 0.2, 1);
}

.consent-backdrop.is-open .action-confirm-dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.action-confirm-dialog h2 {
  margin: 0;
  font-size: 24px;
}

.action-confirm-dialog > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.action-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.feedback-dialog {
  width: min(520px, 100%);
  max-height: calc(100dvh - var(--modal-safe-top-gap) - var(--modal-safe-bottom-gap));
  overflow-y: auto;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(10, 24, 18, 0.24);
  scrollbar-width: none;
}

.feedback-dialog h2 {
  margin: 0;
  font-size: 25px;
}

.feedback-dialog > p:not(.eyebrow):not(.feedback-message) {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.feedback-dialog label {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.feedback-dialog textarea {
  min-height: 118px;
  font-size: 16px;
}

.feedback-dialog select {
  font-size: 16px;
}

.feedback-attachments {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
}

.feedback-attachments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.feedback-upload-button {
  min-height: 34px;
  padding: 0 14px;
}

.feedback-image-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feedback-image-preview {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(241, 250, 254, 0.34)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 24px rgba(78, 127, 150, 0.09);
}

.feedback-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.feedback-image-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 36, 45, 0.12);
  font-size: 18px;
  line-height: 1;
}

.feedback-attachments small {
  color: var(--muted);
  font-size: 12px;
}

.feedback-message {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.confirmation-dialog h2 {
  margin: 0;
  font-size: 26px;
}

.confirmation-dialog > p:not(.danger-kicker):not(.confirmation-message) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.confirmation-dialog label {
  margin-top: 18px;
}

.confirmation-phrase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}

.copy-phrase-button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(31, 122, 90, 0.14);
  border-radius: 7px;
  padding: 0;
  background: #f5f9f6;
  background-clip: padding-box;
  color: var(--primary-strong);
  box-shadow: none;
  overflow: hidden;
}

.copy-phrase-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-phrase-button:hover:not(:disabled) {
  background: #eaf3ee;
  box-shadow: none;
  transform: none;
}

.copy-phrase-button:active:not(:disabled) {
  background: #dfeee7;
  box-shadow: none;
  transform: scale(0.94);
}

.copy-phrase-button.is-copied {
  border-color: rgba(31, 122, 90, 0.26);
  background: #dff0e7;
}

.copy-phrase-button.is-copy-failed {
  border-color: rgba(184, 61, 52, 0.28);
  background: #fff1ef;
  color: #b83d34;
}

html[data-theme^="glass-"] .settings-detail-panel {
  gap: 16px;
}

html[data-theme^="glass-"] .settings-detail-panel .settings-group {
  padding-top: 18px;
}

html[data-theme^="glass-"] .settings-back-button,
html[data-theme^="glass-"] .settings-back-button:hover:not(:disabled),
html[data-theme^="glass-"] .settings-back-button:focus-visible,
html[data-theme^="glass-"] .settings-back-button:active:not(:disabled) {
  width: fit-content;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

html[data-theme^="glass-"] .settings-back-button:hover:not(:disabled),
html[data-theme^="glass-"] .settings-back-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[data-theme^="glass-"] .settings-back-button::before {
  color: currentColor;
}

html[data-theme^="glass-"] .account-profile-card,
html[data-theme^="glass-"] .account-binding-card,
html[data-theme^="glass-"] .account-binding-icon,
html[data-theme^="glass-"] .account-blacklist-item,
html[data-theme^="glass-"] .account-blacklist-avatar,
html[data-theme^="glass-"] .account-profile-readonly,
html[data-theme^="glass-"] .birthday-picker,
html[data-theme^="glass-"] .birthday-picker-column,
html[data-theme^="glass-"] .privacy-audit-summary,
html[data-theme^="glass-"] .privacy-audit-summary span,
html[data-theme^="glass-"] .passkey-card,
html[data-theme^="glass-"] .passkey-list-item,
html[data-theme^="glass-"] .passkey-empty,
html[data-theme^="glass-"] .native-health-card,
html[data-theme^="glass-"] .native-health-json,
html[data-theme^="glass-"] .privacy-highlights span,
html[data-theme^="glass-"] .notification-permission-prompt-visual,
html[data-theme^="glass-"] .passkey-prompt-visual {
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22)),
    radial-gradient(90% 110% at 100% 0%, rgba(188, 244, 255, 0.18), rgba(255, 255, 255, 0) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 24px rgba(80, 102, 119, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

html[data-theme^="glass-"] .privacy-audit-summary {
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme^="glass-"] .account-profile-item {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

html[data-theme^="glass-"] .account-profile-item:hover:not(:disabled),
html[data-theme^="glass-"] .account-profile-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  transform: none;
}

html[data-theme^="glass-"] .account-profile-item:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: none;
}

html[data-theme^="glass-"] .account-status-notice {
  border-color: rgba(216, 138, 158, 0.28);
  background: rgba(255, 239, 245, 0.46);
  color: #9b566f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme^="glass-"] .account-status-notice[data-status="frozen"] {
  border-color: rgba(212, 170, 102, 0.34);
  background: rgba(255, 248, 232, 0.5);
  color: #8a6828;
}

html[data-theme^="glass-"] .profile-gender-options button,
html[data-theme^="glass-"] .birthday-picker-toggle,
html[data-theme^="glass-"] .birthday-picker-done,
html[data-theme^="glass-"] .birthday-picker-head button,
html[data-theme^="glass-"] .profile-edit-avatar-row input,
html[data-theme^="glass-"] .account-profile-field input,
html[data-theme^="glass-"] .account-profile-field select,
html[data-theme^="glass-"] .mode-selector button,
html[data-theme^="glass-"] .qq-sync-button,
html[data-theme^="glass-"] .account-bind-button,
html[data-theme^="glass-"] .profile-edit-dialog .profile-action-button,
html[data-theme^="glass-"] .ghost-button,
html[data-theme^="glass-"] .secondary-button,
html[data-theme^="glass-"] .passkey-add-button,
html[data-theme^="glass-"] .settings-logout-button,
html[data-theme^="glass-"] .copy-phrase-button {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26)),
    radial-gradient(120% 110% at 100% 0%, rgba(184, 238, 255, 0.2), rgba(255, 255, 255, 0) 58%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(80, 102, 119, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

html[data-theme^="glass-"] .profile-gender-options button:hover:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-toggle:hover:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-done:hover:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-head button:hover:not(:disabled),
html[data-theme^="glass-"] .profile-edit-avatar-row input:focus,
html[data-theme^="glass-"] .account-profile-field input:focus,
html[data-theme^="glass-"] .account-profile-field select:focus,
html[data-theme^="glass-"] .mode-selector button:hover:not(:disabled),
html[data-theme^="glass-"] .qq-sync-button:hover:not(:disabled),
html[data-theme^="glass-"] .account-bind-button:hover:not(:disabled),
html[data-theme^="glass-"] .account-bind-button:focus-visible,
html[data-theme^="glass-"] .profile-edit-dialog .profile-action-button:hover:not(:disabled),
html[data-theme^="glass-"] .profile-edit-dialog .profile-action-button:focus-visible,
html[data-theme^="glass-"] .ghost-button:hover:not(:disabled),
html[data-theme^="glass-"] .secondary-button:hover:not(:disabled),
html[data-theme^="glass-"] .passkey-add-button:hover:not(:disabled),
html[data-theme^="glass-"] .settings-logout-button:hover:not(:disabled),
html[data-theme^="glass-"] .copy-phrase-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    radial-gradient(120% 110% at 100% 0%, rgba(184, 238, 255, 0.28), rgba(255, 255, 255, 0) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(80, 102, 119, 0.1);
  transform: none;
}

html[data-theme^="glass-"] .profile-gender-options button:active:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-toggle:active:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-done:active:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-head button:active:not(:disabled),
html[data-theme^="glass-"] .mode-selector button:active:not(:disabled),
html[data-theme^="glass-"] .qq-sync-button:active:not(:disabled),
html[data-theme^="glass-"] .account-bind-button:active:not(:disabled),
html[data-theme^="glass-"] .profile-edit-dialog .profile-action-button:active:not(:disabled),
html[data-theme^="glass-"] .ghost-button:active:not(:disabled),
html[data-theme^="glass-"] .secondary-button:active:not(:disabled),
html[data-theme^="glass-"] .passkey-add-button:active:not(:disabled),
html[data-theme^="glass-"] .settings-logout-button:active:not(:disabled),
html[data-theme^="glass-"] .copy-phrase-button:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 8px rgba(117, 144, 160, 0.12), 0 5px 14px rgba(80, 102, 119, 0.08);
  transform: scale(0.985);
}

html[data-theme^="glass-"] .qq-sync-button,
html[data-theme^="glass-"] .account-bind-button,
html[data-theme^="glass-"] .passkey-add-button,
html[data-theme^="glass-"] .birthday-picker-done {
  color: var(--primary-strong);
}

html[data-theme^="glass-"] .qq-sync-button:disabled {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.24);
  color: rgba(102, 116, 128, 0.66);
}

html[data-theme^="glass-"] .profile-gender-options button.is-active,
html[data-theme^="glass-"] .mode-selector button.is-active,
html[data-theme^="glass-"] .mode-selector button.is-active:hover:not(:disabled),
html[data-theme^="glass-"] .mode-selector button.is-active:focus-visible,
html[data-theme^="glass-"] .birthday-picker-column button.is-selected {
  border-color: rgba(103, 174, 190, 0.5);
  background:
    linear-gradient(145deg, rgba(239, 250, 253, 0.66), rgba(255, 241, 249, 0.34)),
    radial-gradient(110% 110% at 100% 0%, rgba(184, 238, 255, 0.34), rgba(255, 255, 255, 0) 58%);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(103, 174, 190, 0.16), 0 0 0 3px rgba(103, 174, 190, 0.08);
}

html[data-theme^="glass-"] .birthday-picker-column button,
html[data-theme^="glass-"] .document-link,
html[data-theme^="glass-"] .consent-document-row button {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme^="glass-"] .birthday-picker-column button:hover:not(:disabled),
html[data-theme^="glass-"] .birthday-picker-column button:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  color: var(--primary-strong);
  box-shadow: none;
  transform: none;
}

html[data-theme^="glass-"] .document-link,
html[data-theme^="glass-"] .document-link:hover:not(:disabled),
html[data-theme^="glass-"] .document-link:focus-visible,
html[data-theme^="glass-"] .document-link:active:not(:disabled),
html[data-theme^="glass-"] .consent-document-row button,
html[data-theme^="glass-"] .consent-document-row button:hover:not(:disabled),
html[data-theme^="glass-"] .consent-document-row button:focus-visible,
html[data-theme^="glass-"] .consent-document-row button:active:not(:disabled) {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

html[data-theme^="glass-"] .document-link:hover:not(:disabled),
html[data-theme^="glass-"] .document-link:focus-visible,
html[data-theme^="glass-"] .consent-document-row button:hover:not(:disabled),
html[data-theme^="glass-"] .consent-document-row button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme^="glass-"] .account-personal-fields input,
html[data-theme^="glass-"] .account-personal-fields select,
html[data-theme^="glass-"] .feedback-dialog textarea,
html[data-theme^="glass-"] .confirmation-dialog input {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme^="glass-"] .account-personal-fields input:focus,
html[data-theme^="glass-"] .account-personal-fields select:focus,
html[data-theme^="glass-"] .feedback-dialog textarea:focus,
html[data-theme^="glass-"] .confirmation-dialog input:focus {
  border-color: rgba(103, 174, 190, 0.44);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(103, 174, 190, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme^="glass-"] .withdraw-button,
html[data-theme^="glass-"] .account-delete-button,
html[data-theme^="glass-"] .danger-confirm-button {
  border-color: rgba(216, 138, 158, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 240, 246, 0.32)),
    radial-gradient(110% 120% at 100% 0%, rgba(255, 190, 212, 0.22), rgba(255, 255, 255, 0) 58%);
  color: #a7465d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(150, 72, 94, 0.08);
}

html[data-theme^="glass-"] .withdraw-button:hover:not(:disabled),
html[data-theme^="glass-"] .account-delete-button:hover:not(:disabled),
html[data-theme^="glass-"] .account-delete-button:focus-visible,
html[data-theme^="glass-"] .danger-confirm-button:hover:not(:disabled),
html[data-theme^="glass-"] .danger-confirm-button:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 232, 241, 0.42)),
    radial-gradient(110% 120% at 100% 0%, rgba(255, 190, 212, 0.3), rgba(255, 255, 255, 0) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(150, 72, 94, 0.1);
  transform: none;
}

html[data-theme^="glass-"] .withdraw-button:active:not(:disabled),
html[data-theme^="glass-"] .account-delete-button:active:not(:disabled),
html[data-theme^="glass-"] .danger-confirm-button:active:not(:disabled) {
  background: rgba(255, 235, 243, 0.5);
  box-shadow: inset 0 1px 8px rgba(150, 72, 94, 0.12);
  transform: scale(0.985);
}

html[data-theme^="glass-"] .passkey-delete-button,
html[data-theme^="glass-"] .passkey-delete-button:hover:not(:disabled),
html[data-theme^="glass-"] .passkey-delete-button:focus-visible,
html[data-theme^="glass-"] .passkey-delete-button:active:not(:disabled) {
  border: 0;
  background: transparent;
  color: #a7465d;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme^="glass-"] .passkey-delete-button:active:not(:disabled) {
  transform: scale(0.94);
}

html[data-theme^="glass-"] .copy-phrase-button.is-copied {
  border-color: rgba(103, 174, 190, 0.36);
  background: rgba(229, 247, 251, 0.58);
  color: var(--primary-strong);
}

html[data-theme^="glass-"] .copy-phrase-button.is-copy-failed {
  border-color: rgba(216, 138, 158, 0.34);
  background: rgba(255, 238, 244, 0.58);
  color: #a7465d;
}

html[data-theme^="glass-"] .weight-chart,
html[data-theme^="glass-"] .community-detail-weight-chart {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)),
    radial-gradient(100% 120% at 0% 0%, rgba(255, 219, 246, 0.18), rgba(255, 255, 255, 0) 58%),
    radial-gradient(100% 120% at 100% 0%, rgba(184, 238, 255, 0.28), rgba(255, 255, 255, 0) 58%);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
}

html[data-theme^="glass-"] .chart-y-axis {
  border-right-color: rgba(255, 255, 255, 0.48);
  background: transparent;
  color: rgba(67, 82, 94, 0.66);
  box-shadow: 10px 0 20px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme^="glass-"] .chart-detail {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
    radial-gradient(110% 120% at 100% 0%, rgba(184, 238, 255, 0.22), rgba(255, 255, 255, 0) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(80, 102, 119, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

html[data-theme^="glass-"] .chart-detail.is-prediction {
  border-color: var(--chart-prediction-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(80, 102, 119, 0.12),
    0 0 28px var(--chart-prediction-soft);
}

html[data-theme^="glass-"] .chart-detail.is-prediction strong {
  color: var(--chart-prediction);
}

html[data-theme^="glass-"] .community-detail-header,
html[data-theme^="glass-"] .ai-summary-header,
html[data-theme^="glass-"] .community-comments-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    radial-gradient(100% 120% at 0% 0%, rgba(255, 219, 246, 0.16), rgba(255, 255, 255, 0) 60%),
    radial-gradient(100% 120% at 100% 0%, rgba(184, 238, 255, 0.2), rgba(255, 255, 255, 0) 60%);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

html[data-theme^="glass-"] .community-detail-profile,
html[data-theme^="glass-"] .community-detail-record-area {
  border-bottom-color: rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(255, 219, 246, 0.12), rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 100% at 100% 0%, rgba(184, 238, 255, 0.16), rgba(255, 255, 255, 0) 60%);
}

html[data-theme^="glass-"] .community-detail-cover,
html[data-theme^="glass-"] .history-thumb,
html[data-theme^="glass-"] .history-body-photo,
html[data-theme^="glass-"] .history-health-thumb,
html[data-theme^="glass-"] .history-food-gallery,
html[data-theme^="glass-"] .history-food-gallery.is-empty,
html[data-theme^="glass-"] .history-food-track img {
  background: rgba(232, 247, 252, 0.5);
  color: #2f7280;
}

html[data-theme^="glass-"] .history-health-thumb {
  border-color: rgba(75, 159, 178, 0.16);
  background:
    linear-gradient(145deg, rgba(237, 250, 253, 0.68), rgba(246, 241, 249, 0.52));
  color: #5166c6;
}

html[data-theme^="glass-"] .history-health-thumb.is-workout {
  border-color: rgba(242, 91, 115, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 246, 239, 0.68), rgba(235, 251, 252, 0.52));
  color: #e55368;
}

html[data-theme^="glass-"] .community-detail-history-section,
html[data-theme^="glass-"] .history-item,
html[data-theme^="glass-"] .food-history-card {
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    radial-gradient(100% 120% at 100% 0%, rgba(184, 238, 255, 0.14), rgba(255, 255, 255, 0) 58%);
}

html[data-theme^="glass-"] .history-food-entry,
html[data-theme^="glass-"] .history-health-entry,
html[data-theme^="glass-"] .history-food-list > span {
  border-color: rgba(105, 183, 207, 0.18);
  background: rgba(229, 247, 251, 0.42);
}

html[data-theme^="glass-"] .history-food-summary span,
html[data-theme^="glass-"] .food-nutrition-grid span,
html[data-theme^="glass-"] .food-selection-nutrition span,
html[data-theme^="glass-"] .history-food-nutrition span,
html[data-theme^="glass-"] .food-selection-data span {
  border-color: rgba(105, 183, 207, 0.14);
  background: rgba(229, 247, 251, 0.5);
  color: rgba(68, 91, 106, 0.82);
}

html[data-theme^="glass-"] .history-food-mood {
  color: rgba(23, 32, 41, 0.82);
}

html[data-theme^="glass-"] .ai-summary-content {
  background:
    radial-gradient(88% 72% at 0% 0%, rgba(255, 219, 246, 0.18), rgba(255, 255, 255, 0) 64%),
    radial-gradient(88% 72% at 100% 0%, rgba(184, 238, 255, 0.22), rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.38), rgba(255, 255, 255, 0.18));
}

html[data-theme^="glass-"] .ai-summary-output {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme^="glass-"] .ai-summary-output code {
  background: rgba(229, 247, 251, 0.58);
  color: #2f7280;
}

html[data-theme^="glass-"] .ai-summary-output blockquote {
  border-left-color: rgba(216, 138, 181, 0.34);
  background: rgba(255, 241, 249, 0.28);
}

html[data-theme^="glass-"] .markdown-table-wrap {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

html[data-theme^="glass-"] .markdown-table-wrap th,
html[data-theme^="glass-"] .markdown-table-wrap td {
  border-bottom-color: rgba(105, 183, 207, 0.16);
}

html[data-theme^="glass-"] .markdown-table-wrap th {
  background: rgba(229, 247, 251, 0.5);
  color: #2f7280;
}

html[data-theme^="glass-"] .ai-summary-output.is-typing::after {
  border-right-color: rgba(75, 159, 178, 0.72);
}

html[data-theme^="glass-"] .food-selection-dialog,
html[data-theme^="glass-"] .manual-food-dialog {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(245, 251, 255, 0.54)),
    radial-gradient(110% 90% at 0% 0%, rgba(255, 219, 246, 0.16), rgba(255, 255, 255, 0) 60%),
    radial-gradient(110% 90% at 100% 0%, rgba(184, 238, 255, 0.2), rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 30px 86px rgba(69, 88, 105, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme^="glass-"] .food-selection-item {
  border-color: rgba(105, 183, 207, 0.16);
  background: rgba(255, 255, 255, 0.34);
}

html[data-theme^="glass-"] .food-selection-item.is-selected {
  border-color: rgba(105, 183, 207, 0.34);
  background: rgba(229, 247, 251, 0.5);
}

html[data-theme^="glass-"] .food-selection-edit-button,
html[data-theme^="glass-"] .food-portion-control button,
html[data-theme^="glass-"] .modal-icon-button,
html[data-theme^="glass-"] .food-selection-manual-button {
  border-color: rgba(105, 183, 207, 0.2);
  background: rgba(229, 247, 251, 0.42);
  color: #2f7280;
}

html[data-theme^="glass-"] .food-selection-edit-button:hover:not(:disabled),
html[data-theme^="glass-"] .food-selection-edit-button:focus-visible,
html[data-theme^="glass-"] .food-portion-control button:hover:not(:disabled),
html[data-theme^="glass-"] .food-portion-control button:focus-visible,
html[data-theme^="glass-"] .modal-icon-button:hover:not(:disabled),
html[data-theme^="glass-"] .modal-icon-button:focus-visible,
html[data-theme^="glass-"] .food-selection-manual-button:hover:not(:disabled),
html[data-theme^="glass-"] .food-selection-manual-button:focus-visible {
  border-color: rgba(105, 183, 207, 0.3);
  background: rgba(229, 247, 251, 0.58);
}

html[data-theme^="glass-"] .food-selection-ai-button {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.78), rgba(229, 247, 251, 0.5));
}

html[data-theme^="glass-"] .food-selection-ai-button:hover:not(:disabled),
html[data-theme^="glass-"] .food-selection-ai-button:focus-visible {
  background: linear-gradient(135deg, rgba(232, 238, 255, 0.86), rgba(218, 244, 252, 0.62));
}

html[data-theme^="glass-"] .food-candidate-editor,
html[data-theme^="glass-"] .food-candidate-editor input,
html[data-theme^="glass-"] .food-portion-control input,
html[data-theme^="glass-"] .food-selection-summary,
html[data-theme^="glass-"] .food-selection-loading,
html[data-theme^="glass-"] .food-empty-state {
  border-color: rgba(105, 183, 207, 0.16);
  background: rgba(229, 247, 251, 0.34);
}

html[data-theme^="glass-"] .food-selection-loading .food-selection-spinner {
  border-color: rgba(75, 159, 178, 0.16);
  border-top-color: #4b9fb2;
}

html[data-theme^="glass-"] .community-food-dots span {
  background: rgba(105, 183, 207, 0.28);
}

html[data-theme^="glass-"] .community-food-dots span.is-active {
  background: rgba(216, 138, 181, 0.72);
}

html[data-theme^="glass-"] .community-social-button,
html[data-theme^="glass-"] .community-like-button {
  border-color: rgba(105, 183, 207, 0.18);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 18px rgba(80, 102, 119, 0.08);
}

html[data-theme^="glass-"] .community-social-button:hover:not(:disabled),
html[data-theme^="glass-"] .community-social-button:focus-visible,
html[data-theme^="glass-"] .community-like-button:hover:not(:disabled),
html[data-theme^="glass-"] .community-like-button:focus-visible {
  border-color: rgba(105, 183, 207, 0.3);
  background: rgba(229, 247, 251, 0.5);
  color: #2f7280;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 10px 22px rgba(80, 102, 119, 0.1);
}

html[data-theme^="glass-"] .community-social-button:active:not(:disabled),
html[data-theme^="glass-"] .community-like-button:active:not(:disabled) {
  background: rgba(229, 247, 251, 0.42);
  box-shadow: inset 0 1px 8px rgba(80, 102, 119, 0.1);
}

html[data-theme^="glass-"] .community-like-button.is-liked {
  background: rgba(255, 250, 240, 0.56);
}

html[data-theme^="glass-"] .community-comment-bubble,
html[data-theme^="glass-"] .community-comment-empty {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 8px 22px rgba(80, 102, 119, 0.06);
}

html[data-theme^="glass-"] .community-comment-item.is-own .community-comment-bubble {
  border-color: rgba(105, 183, 207, 0.18);
  background: rgba(229, 247, 251, 0.46);
}

html[data-theme^="glass-"] .community-comment-empty-icon {
  background: rgba(229, 247, 251, 0.58);
  color: #2f7280;
}
