/* ETO Accounts in design B: the account screens (/account/…, one card in the middle), the form fields they share with the
   contact form, and the account menu in the top bar. Replaces the plugin's auth.css. */

/* ---------- top bar: streak, points, profile circle with a menu ---------- */
.eto-acc-me { display: flex; align-items: center; gap: 0.25rem; }
.eto-acc-pill { display: none; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.625rem; border-radius: var(--r-s); color: var(--text); font-weight: 600; font-size: var(--fs-ui); white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.eto-acc-pill:hover { background: var(--surface-2); }
.eto-acc-tic { flex: none; color: var(--reward); }
.eto-acc-pill--pts .eto-acc-tic { color: var(--p-subj); }
.eto-acc-menu { position: relative; }
/* The circle is 36px, its touch area 44px. */
.eto-acc-av { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0.25rem solid transparent; border-radius: 50%; background: var(--p-subj) padding-box; color: var(--bg); font-weight: 700; font-size: var(--fs-base); line-height: 1; cursor: pointer; user-select: none; }
.eto-acc-av:hover, .eto-acc-menu[open] .eto-acc-av { border-color: var(--surface-3); }
.eto-acc-av:focus-visible { border-radius: 50%; outline-offset: 0; }
.eto-acc-av::-webkit-details-marker { display: none; }
.eto-acc-menu__list { position: absolute; right: 0; top: calc(100% + 0.375rem); z-index: 40; width: 15rem; max-width: calc(100vw - 1rem); padding: 0.375rem; border: 1px solid var(--edge); border-radius: var(--r); background: var(--surface); }
.eto-acc-menu__name { margin: 0 0 0.375rem; padding: 0.5rem 0.75rem 0.625rem; border-bottom: 1px solid var(--line); line-height: 1.35; overflow-wrap: anywhere; }
.eto-acc-menu__name > * { display: block; }
.eto-acc-menu__name span { font-size: var(--fs-sm); color: var(--muted); }
.eto-acc-menu__list a { display: flex; align-items: center; gap: 0.6875rem; min-height: 2.75rem; padding: 0.25rem 0.75rem; border-radius: var(--r-s); color: var(--text); font-size: var(--fs-ui); font-weight: 500; text-decoration: none; }
.eto-acc-menu__list a:hover { background: var(--surface-2); }
/* A picture instead of the letter (Settings). */
.eto-acc-face { display: block; width: 100%; height: 100%; border-radius: 50%; }
.eto-acc-menu__name:has(.eto-acc-menu__pic) { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 3.75rem; padding-left: 4rem; }
.eto-acc-menu__pic { position: absolute; left: 0.75rem; width: 2.5rem; height: 2.5rem; }
/* Phones and tablets: the numbers are in the menu, so the top bar stays one row. */
@media (min-width: 1024px) { .eto-acc-pill { display: inline-flex; } .eto-acc-menu__name span { display: none; } }

/* ---------- account screens: one pale blue card ---------- */
.eto-main > .eto-acc-screen { max-width: 30rem; margin: 1.5rem auto 0; }
.eto-acc-card { padding: 2rem; border-radius: var(--r-l); background: var(--surface-2); }
.eto-acc-h1 { margin: 0 0 0.5rem; font-weight: 700; font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -.01em; }
.eto-acc-card .eto-acc-h1 { font-size: 2rem; }
.eto-acc-lead { margin: 0 0 1.125rem; color: var(--text-2); font-size: var(--fs-base); }
.eto-acc-msg { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--r); background: var(--right-soft); color: var(--text); font-weight: 500; }
.eto-acc-msg--error { background: var(--wrong-soft); }
.eto-acc-form { display: flex; flex-direction: column; gap: 0.375rem; margin: 0; }
.eto-acc-label { margin-top: 0.75rem; padding: 0; font-weight: 600; font-size: var(--fs-base); color: var(--text); }
.eto-acc-input { width: 100%; min-height: 3rem; padding: 0 0.875rem; border: 1.5px solid var(--edge); border-radius: var(--r-s); background: var(--bg); color: var(--text); font: inherit; }
.eto-acc-input:focus-visible { outline-offset: 0; }
.eto-acc-form > .eto-btn { margin-top: 0.875rem; }
.eto-acc-small { margin: 0.25rem 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.eto-acc-small a, .eto-acc-foot a:not(.eto-btn) { color: var(--link); font-weight: 600; }
.eto-acc-foot { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); }
.eto-acc-foot a:not(.eto-btn), .eto-acc-card .eto-acc-small a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.eto-acc-check { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0 0; line-height: 1.45; color: var(--text); cursor: pointer; }
.eto-acc-check input, .eto-acc-choice input { width: 1.375rem; height: 1.375rem; margin: 0; flex: none; accent-color: var(--p-subj); }
.eto-acc-more { margin-top: 1rem; }
.eto-acc-more > summary { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-weight: 600; cursor: pointer; color: var(--link); list-style: none; }
.eto-acc-more > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.eto-acc-more > summary::-webkit-details-marker { display: none; }
.eto-acc-more > summary::before { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.eto-acc-more[open] > summary::before { transform: rotate(45deg); }
.eto-acc-or { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.25rem; color: var(--muted); font-size: var(--fs-sm); }
.eto-acc-or::before, .eto-acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.eto-acc-google { display: flex; flex-direction: column; }
.eto-acc-set { margin: 0.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.eto-acc-set .eto-acc-label { margin: 0; }

/* Choices are buttons and the current one is yellow, as everywhere on the site. Long answers keep their circle. */
.eto-acc-choices { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.eto-acc-choice { position: relative; display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0.375rem 1rem; border: 1.5px solid var(--edge); border-radius: var(--r-s); background: var(--bg); font-weight: 600; font-size: var(--fs-ui); line-height: 1.35; cursor: pointer; }
.eto-acc-choice:hover { border-color: var(--text); }
.eto-acc-choice:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.eto-acc-choices--stack { flex-direction: column; }
.eto-acc-choices--stack .eto-acc-choice { padding: 0.625rem 0.875rem; font-weight: 500; }
.eto-acc-choices--stack .eto-acc-choice:has(input:checked) { border-color: var(--p-subj); background: var(--accent-soft); }
@supports selector(:has(a)) {
	.eto-acc-choices:not(.eto-acc-choices--stack) .eto-acc-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
	.eto-acc-choices:not(.eto-acc-choices--stack) .eto-acc-choice:has(input:checked) { border-color: var(--accent-edge); background: var(--accent); color: var(--on-accent); }
}
/* Honeypot: out of sight for people and screen readers (aria-hidden), still in the form for bots. */
.eto-acc-hp { position: absolute !important; left: -624.9375rem; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) {
	.eto-main > .eto-acc-screen { margin-top: 0; }
	.eto-acc-card { padding: 1.25rem 1.125rem; }
}

/* ---------- contact form ([eto_contact], contact.php): the account form fields inside a page ---------- */
.eto-acc-contact { max-width: 40rem; margin: 1.5rem 0; }
.eto-acc-textarea { min-height: 11.25rem; padding: 0.75rem 0.875rem; line-height: 1.5; resize: vertical; }
.eto-acc-contact .eto-btn { align-self: flex-start; }
@media (max-width: 620px) { .eto-acc-contact .eto-btn { align-self: stretch; } }

/* One-time notice after sign-in (e.g. the password was reset to take the account back). */
.eto-acc-flash { margin: 0; padding: 0.625rem 1rem; background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--fs-ui); text-align: center; }

/* The conversation on the answer page (Contact page, private link). */
.eto-acc-thread { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.eto-acc-note { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.eto-acc-note--owner { border-color: transparent; background: var(--accent-soft); }
.eto-acc-note__head { margin: 0 0 0.25rem; font-size: var(--fs-sm); color: var(--muted); }
.eto-acc-note__head strong { color: var(--text); }
.eto-acc-note__body { margin: 0; color: var(--text); overflow-wrap: anywhere; }
