/* reskin-settings.css — residual Settings styling still used after the
 * App_Shell PR2g port.
 *
 * PR2g restructured #surface-settings into the handoff's 6-row account layout;
 * that row chrome + the action pills now live in appshell.css (which loads after
 * this sheet and supersedes the old decorative shell — sprig, hero title,
 * subscription card, mode segmented control). What remains here is the inline
 * change-password form (revealed by the Password row) and the owner Users block,
 * both kept fully functional. Every selector stays scoped under #surface-settings.
 * Palette/typography come from the shared theme tokens in themes.css, so dark
 * mode stays intentional for free.
 */

/* Change-password form — single column, placeholder-driven; the <label>s stay in
 * the DOM (visually hidden) for screen readers. */
#surface-settings .rk-set-pw {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
#surface-settings .rk-set-pw input[type="password"] {
  font: inherit;
  font-size: 14px;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  height: 38px;
}
#surface-settings .rk-set-pw input[type="password"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* The "Update password" accent button follows the mockup's gentle tinted-fill →
 * solid-fill hover, overriding the app-wide neo-brutalist accent treatment within
 * this scope only. */
#surface-settings #pw-change-btn.btn-accent {
  align-self: flex-start;
  border: 1px solid var(--accent);
  background: var(--selected-bg);
  color: var(--accent-hover);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  box-shadow: none;
  transform: none;
}
#surface-settings #pw-change-btn.btn-accent:hover,
#surface-settings #pw-change-btn.btn-accent:active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

/* Owner-only Users block — kept consistent with the rest of the surface. */
#surface-settings #users-block {
  margin-top: 30px;
}
#surface-settings .section-label {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 12px;
}

/* Quiet helper text under the form / users controls. */
#surface-settings .rk-set-pw .hint,
#surface-settings #users-block .hint {
  font-size: var(--text-xs);
  color: var(--ink-subtle);
}
#surface-settings .hint.err {
  color: var(--error-ink);
}

/* Visually-hidden labels (kept for a11y). */
#surface-settings .rk-set-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
