/* css/account.css
   Account: change password + the "do not track stats" opt-out. Same
   phone-width popup family as Codes/Forum, styled to match codes.css. */

.dd-account-section {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  background: #fff;
}
.dd-account-section:last-child { margin-bottom: 0; }
:root[data-theme="dark"] .dd-account-section {
  border-color: #3a3f47;
  background: #262a31;
}

.dd-account-section-title {
  font-weight: 700;
  color: var(--dd-orange);
  margin-bottom: 0.5rem;
}

.dd-account-field {
  margin-bottom: 0.55rem;
}
.dd-account-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dd-orange);
  margin-bottom: 0.2rem;
}
.dd-account-field input[type="password"] {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
:root[data-theme="dark"] .dd-account-field input[type="password"] {
  background: #1f2227;
  border-color: #3a3f47;
  color: #e8e8e8;
}

.dd-account-form-msg {
  font-size: 0.8rem;
  color: var(--dd-red);
  margin-bottom: 0.5rem;
}
.dd-account-form-msg-ok {
  color: var(--dd-green);
}

.dd-account-save-btn {
  width: 100%;
}

.dd-account-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.dd-account-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.dd-account-note {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}
:root[data-theme="dark"] .dd-account-note {
  color: #aaa;
}
