.settings-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.settings-top .screen-title {
  margin: 0;
}

.settings-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row--tap {
  cursor: pointer;
  transition: background 0.15s ease;
}

.settings-row--tap:active {
  background: rgba(255, 255, 255, 0.04);
}

.settings-row:first-of-type {
  padding-top: 0;
}

.settings-row-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.settings-row-text small {
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-value,
.settings-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.settings-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(217, 255, 0, 0.28);
  background: rgba(217, 255, 0, 0.06);
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease;
}

.settings-picker-btn:active {
  transform: scale(0.98);
  background: rgba(217, 255, 0, 0.1);
}

.settings-picker-btn i {
  font-size: 10px;
  opacity: 0.85;
}

.settings-option-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 320px);
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.settings-option-picker::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  font-family: var(--font-family-base);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease;
}

.settings-option:active {
  transform: scale(0.985);
}

.settings-option-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.settings-option-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-muted);
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
}

.settings-option.is-selected {
  border-color: var(--brand);
  background: rgba(217, 255, 0, 0.1);
}

.settings-option.is-selected .settings-option-label {
  color: var(--brand);
}

#settings-confirm-sheet .sheet-panel--confirm,
#logout-confirm-sheet .sheet-panel--confirm {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
  background: #141414;
  box-sizing: border-box;
}

#settings-confirm-sheet .sheet-panel--confirm h3,
#logout-confirm-sheet .sheet-panel--confirm h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.settings-confirm-msg {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

#settings-confirm-sheet .confirm-actions,
#logout-confirm-sheet .confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#logout-confirm-sheet .confirm-actions .btn-ghost-block,
#logout-confirm-sheet .confirm-actions .btn-primary-block,
#settings-confirm-sheet .confirm-actions .btn-ghost-block,
#settings-confirm-sheet .confirm-actions .btn-primary-block {
  margin: 0;
}

.settings-confirm-danger {
  background: #ff453a;
  color: #ffffff;
  box-shadow: none;
}

.settings-row.danger-text strong {
  color: #f87171;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-default);
  padding: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.toggle span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.toggle.is-on {
  background: var(--brand);
  border-color: var(--brand);
}

.toggle.is-on span {
  transform: translateX(20px);
  background: var(--text-on-primary);
}

.profile-edit {
  font-family: var(--font-family-base);
}

button.profile-edit {
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(217, 255, 0, 0.12);
  color: var(--brand);
  border: 1px solid rgba(217, 255, 0, 0.45);
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

button.profile-edit:active {
  transform: scale(0.96);
  background: rgba(217, 255, 0, 0.2);
}

.profile-edit-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile-avatar--lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

.profile-avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 255, 0, 0.45);
  background: rgba(217, 255, 0, 0.1);
  color: var(--brand);
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.profile-avatar-upload-btn i {
  font-size: 14px;
}

.profile-avatar-upload-btn:active {
  transform: scale(0.97);
  background: rgba(217, 255, 0, 0.18);
}

.avatar-sheet-panel h3 {
  text-align: center;
}

.avatar-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-sheet-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-section);
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.avatar-sheet-option i {
  font-size: 18px;
  color: var(--brand);
}

.avatar-sheet-option:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-field:last-child {
  margin-bottom: 0;
}

.profile-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-section);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

.profile-field input:focus {
  border-color: rgba(217, 255, 0, 0.4);
}

.profile-field textarea,
.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-section);
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.profile-field textarea:focus,
.feedback-textarea:focus {
  border-color: rgba(217, 255, 0, 0.4);
}

.profile-field textarea::placeholder,
.feedback-textarea::placeholder {
  color: var(--text-muted);
}

.feedback-form-card {
  margin-bottom: 16px;
}

.security-action .chevron,
a.settings-row .chevron {
  font-size: 12px;
  color: var(--text-muted);
}

a.settings-row {
  text-decoration: none;
  color: inherit;
}

.security-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-code-row input {
  flex: 1;
  min-width: 0;
}

.btn-ghost-sm {
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(217, 255, 0, 0.28);
  background: rgba(217, 255, 0, 0.06);
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.btn-ghost-sm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost-sm:active:not(:disabled) {
  transform: scale(0.98);
}

.security-form-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.security-form-hint strong {
  color: var(--brand);
  font-weight: 700;
}

.section-hint strong {
  color: #ffffff;
  font-weight: 700;
}

.profile-birthday-field {
  width: 100%;
}

.profile-birthday-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-section);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.profile-birthday-trigger span {
  flex: 1;
  min-width: 0;
}

.profile-birthday-trigger i {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.profile-birthday-trigger:active {
  transform: scale(0.99);
  border-color: rgba(217, 255, 0, 0.35);
}

#birthday-picker-sheet.sheet-overlay {
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

#birthday-picker-sheet .sheet-backdrop {
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

#birthday-picker-sheet .profile-birthday-sheet-panel {
  padding: 0;
  overflow: hidden;
  background: var(--surface-card);
}

#birthday-picker-mount .van-picker {
  width: 100%;
  background: var(--surface-card);
  color: #ffffff;
}

#birthday-picker-mount .van-picker__toolbar {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
}

#birthday-picker-mount .van-picker__title {
  color: #ffffff;
  font-weight: 700;
}

#birthday-picker-mount .van-picker__confirm {
  color: var(--brand);
  font-weight: 700;
}

#birthday-picker-mount .van-picker__cancel {
  color: var(--text-secondary);
}

#birthday-picker-mount .van-picker-column__item {
  color: var(--text-muted);
}

#birthday-picker-mount .van-picker-column__item--selected {
  color: var(--brand);
  font-weight: 700;
}

.gender-options {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-section);
  border: 1px solid var(--border-subtle);
}

.gender-option {
  flex: 1;
  padding: 12px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gender-option.is-active {
  background: var(--surface-card);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gender-option:active {
  transform: scale(0.98);
}

.profile-save-btn {
  margin-top: 4px;
}

.profile-section-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.body-metrics,
.body-meta-stats {
  margin-bottom: 16px;
}

.detail-stat--compact strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.body-weight-section {
  margin-bottom: 12px;
}

.body-weight-section .profile-section-title {
  margin-bottom: 10px;
  line-height: 30px;
}

.body-weight-chart {
  margin-bottom: 14px;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}

.body-weight-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 128px;
  padding-top: 4px;
}

.body-weight-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.body-weight-chart-val {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.body-weight-chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.body-weight-chart-bar {
  width: 100%;
  max-width: 20px;
  min-height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: rgba(217, 255, 0, 0.28);
  transition: height 0.25s ease;
}

.body-weight-chart-bar.is-down {
  background: rgba(217, 255, 0, 0.42);
}

.body-weight-chart-bar.is-up {
  background: rgba(248, 113, 113, 0.45);
}

.body-weight-chart-bar.is-latest {
  background: var(--brand);
  box-shadow: 0 0 10px rgba(217, 255, 0, 0.28);
}

.body-weight-chart-bar.is-latest.is-up {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.25);
}

.body-weight-chart-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.body-weight-hint {
  margin: 0 0 10px;
}

.stack-top--body h1 {
  flex: 1;
  min-width: 0;
}

.stack-edit-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--brand);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.stack-edit-btn:active {
  transform: scale(0.95);
  background: rgba(217, 255, 0, 0.12);
}

.body-weight-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.body-weight-log li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}

.body-weight-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.body-weight-value-wrap {
  text-align: right;
}

.body-weight-value {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.body-weight-delta {
  min-width: 56px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--text-muted);
  white-space: nowrap;
}

.body-weight-delta--empty {
  color: var(--text-muted);
  opacity: 0.45;
}

.body-weight-delta.is-down {
  color: var(--brand);
}

.body-weight-delta.is-up {
  color: #f87171;
}

.body-weight-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}

#meta-sheet .profile-field {
  margin-bottom: 12px;
}

#meta-sheet .profile-field:last-of-type {
  margin-bottom: 16px;
}

.about-hero {
  margin-bottom: 16px;
  padding: 28px 20px;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.about-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--brand-muted);
  border: 1px solid rgba(217, 255, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.about-logo__svg {
  width: 34px;
  height: 34px;
  display: block;
}

.about-hero h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.about-version {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.about-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.about-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.about-feature-list i {
  color: var(--brand);
  font-size: 12px;
}

.about-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.about-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: #4b5563;
}

.privacy-doc h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.privacy-doc h3:first-child {
  margin-top: 0;
}

.privacy-doc p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.settings-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-family-base);
}
