/* Selector de apariencia compartido por web y las pantallas empaquetadas de la app. */
.tema-picker { --tp-bg: #fff; --tp-text: #0a2219; --tp-muted: #56695f; --tp-line: #dce7e1; --tp-active: #effaf4; --tp-green: #0b5c3f; position: fixed; inset: 0; margin: auto; width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--tp-line); border-radius: 24px; background: var(--tp-bg); color: var(--tp-text); box-shadow: 0 24px 80px #021a1340; font-family: var(--f-ui, system-ui, sans-serif); text-align: left; }
html[data-theme='oscuro'] .tema-picker { --tp-bg: #11271f; --tp-text: #e8f4ee; --tp-muted: #b4c9be; --tp-line: #29493b; --tp-active: #163a2b; --tp-green: #5be3a6; }
.tema-picker::backdrop { background: #021a1373; backdrop-filter: blur(4px); }
.tema-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tema-heading h2 { margin: 0; color: var(--tp-text); font-size: 22px; line-height: 1.25; }
.tema-heading button { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tp-muted); font: 28px/1 system-ui; cursor: pointer; }
.tema-picker > p { margin: 8px 0 20px; font-size: 14px; line-height: 1.5; color: var(--tp-muted); }
.tema-options { display: grid; gap: 10px; }
.tema-options button { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px; border: 1px solid var(--tp-line); border-radius: 16px; background: var(--tp-bg); color: var(--tp-text); text-align: left; font-family: inherit; cursor: pointer; }
.tema-options button:hover, .tema-options button[aria-pressed='true'] { border-color: var(--tp-green); background: var(--tp-active); }
.tema-options svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tema-options strong { display: block; font-size: 15px; }
.tema-options small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--tp-muted); }
.tema-options i { visibility: hidden; color: var(--tp-green); font-style: normal; font-weight: 800; }
.tema-options button[aria-pressed='true'] i { visibility: visible; }
.tema-picker button:focus-visible { outline: 3px solid var(--tp-green); outline-offset: 3px; }
