.account-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-section + .account-section {
  margin-top: 16px;
}
.setting-group {
  display: flex;
  flex-direction: column;
  background: rgba(var(--ink-rgb), 0.03);
  border-radius: 8px;
}
.setting-group > .account-field + .account-field {
  border-top: 1px solid rgba(var(--ink-rgb), 0.06);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
}
.setting-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.setting-name {
  font-size: 14px;
  color: rgba(var(--ink-rgb), 0.85);
}
.setting-note {
  font-size: 12px;
  line-height: 1.35;
  color: var(--faint);
}
.setting-group .field-edit {
  padding: 4px 12px 12px;
}
.setting-group .field-error {
  padding: 0 12px 10px;
}
.switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(var(--ink-rgb), 0.18);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}
.switch.on {
  background: #2f8f6b;
}
.switch.on::after {
  transform: translateX(16px);
}
.switch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.switch:focus-visible {
  outline: 2px solid rgba(var(--ink-rgb), 0.35);
  outline-offset: 2px;
}
.account-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(var(--ink-rgb), 0.8);
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field-value {
  font-size: 14px;
  color: rgba(var(--ink-rgb), 0.85);
  word-break: break-all;
}
.field-action {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid rgba(var(--ink-rgb), 0.15);
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.7);
  cursor: pointer;
  transition: background-color 120ms ease;
}
.field-action:hover:not(:disabled) {
  background: rgba(var(--ink-rgb), 0.06);
}
.field-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.field-action.subtle {
  border-color: transparent;
  color: rgba(var(--ink-rgb), 0.5);
}
.field-action.danger {
  border-color: rgba(179, 82, 79, 0.35);
  color: #b3524f;
}
.field-action.danger:hover:not(:disabled) {
  background: rgba(179, 82, 79, 0.08);
}
.field-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(var(--ink-rgb), 0.15);
  border-radius: 6px;
  background: var(--card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field-input:focus {
  outline: none;
  border-color: rgba(var(--ink-rgb), 0.35);
}
.field-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.field-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}
.field-hint strong {
  color: var(--muted);
  font-weight: 600;
  word-break: break-all;
}
.field-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--faint);
}
.field-error {
  font-size: 12px;
  line-height: 1.4;
  color: #b3524f;
}
.danger-zone .setting-name {
  color: #b3524f;
}
.confirm-popup {
  z-index: 1100;
}
.confirm-popup .popup-header h3 {
  color: #b3524f;
}
.confirm-popup .popup-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirm-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.8);
}
.confirm-list {
  margin: -4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.reset-ack {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.account-popup .popup-footer,
.account-popup .privacy-note,
.login-popup .privacy-note {
  margin: 0 0 10px 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(var(--ink-rgb), 0.5);
}
.account-popup .legal-links,
.login-popup .legal-links {
  margin: 0;
  font-size: 11px;
  color: rgba(var(--ink-rgb), 0.5);
}
.account-popup .legal-links a,
.login-popup .legal-links a {
  color: rgba(var(--ink-rgb), 0.55);
  text-decoration: none;
}
.account-popup .legal-links a:hover,
.login-popup .legal-links a:hover {
  color: rgba(var(--ink-rgb), 0.75);
  text-decoration: underline;
}
.share-list {
  display: flex;
  flex-direction: column;
  padding: 0 12px 8px;
}
.share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.06);
}
.share-item .setting-text {
  flex: 1;
}
.share-item-text {
  font-size: 13px;
  color: rgba(var(--ink-rgb), 0.85);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-item-text:hover {
  text-decoration: underline;
}
