/* Redesign · ACCOUNT area, Rails-only rules (agent D). Uses site.css tokens; restyles no site.css component.
   - Today's OmniAuth buttons are POST forms (button_to): the form must not change the mock's grid. */

.account-provider { display: contents; }
.account-provider .btn { width: 100%; }
/* Today's "By continuing, you agree…" notice beside the sign-in/up buttons (replaces the mock's tickbox, 12 Oct). */
.account-terms { margin-top: var(--s-3); font-size: var(--fs-1); color: var(--ink-2); line-height: 1.45; }
.account-terms a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Today's end-of-sign-up offer (onboarding finish) */
.account-ob-kicker { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-weight: 600; color: var(--ink-2); }
.account-ob-offer .lead { margin-top: var(--s-3); }
.account-inline-form { display: inline; margin: 0; }
.account-flash { margin-top: var(--s-4); }
.account-sub { margin-top: var(--s-3); }
.account-quota-row { align-items: center; }  /* a line under the page title (institution name) */
/* Today's avatar image (avatar_for) in the settings and profile pages */
.account-avatar-img { display: inline-flex; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--paper-2, #eef1f3); }
.account-avatar-img img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.account-avatar-img--lg { width: 72px; height: 72px; }
.account-media-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.account-media-item { padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; width: 72px; height: 72px; }
.account-media-item img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; }
/* Media library (the mock's app/app.css .app-media… rules, under this area's prefix) */
.account-media-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-media-head .lead { margin-top: var(--s-2); }
.account-media-filters { max-width: 420px; }
/* The media type filters are links (server-side filtering), so the chosen one is aria-current, styled as a pressed chip */
.chips a.chip[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.account-bulk { display: flex; align-items: center; gap: 12px; margin-top: var(--s-4); }
.account-media { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.account-mitem { min-width: 0; }
.account-mthumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--paper-2, #eef1f3); color: var(--ink-3); }
.account-mthumb img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.account-mthumb .i { width: 32px; height: 32px; }
.account-mrow { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.account-mname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-sel { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }
.account-rename { display: flex; gap: 8px; margin-top: 8px; }
.account-rename .input { min-width: 0; }
.account-upload-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: var(--fs-1); color: var(--ink-2); }
/* Profile (the mock's app/app.css .app-prof… rules, under this area's prefix) */
.account-prof { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
.account-prof-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 6px; font-size: var(--fs-1); color: var(--ink-2); margin-left: -1.1em; clip-path: inset(-8px -8px -8px calc(1.1em - 2px)); }
.account-prof-meta > span::before { content: "·"; display: inline-block; width: 1.1em; text-align: center; color: var(--ink-3); }
.account-prof-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .account-prof { grid-template-columns: auto minmax(0, 1fr) auto; } .account-prof-acts { grid-column: auto; } }
.account-about { display: grid; gap: 12px; max-width: 68ch; margin-top: 20px; color: var(--ink-2); }
.account-about dt { font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); }
.account-about dd { margin-top: 2px; }
.account-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.account-tabs-wrap { margin-top: 20px; }
@media (min-width: 900px) { .account-entries2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); -moz-column-gap: 48px; column-gap: 48px; } .account-entries2 > li:nth-child(2) { border-top: 0; } }
.account-flash p { margin: 0; }
/* "There's already an account with this email" (fix X, 16 Oct): its three ways in don't break inside a link. */
.account-taken a, .account-taken button { white-space: nowrap; }
/*
 * Redesign · ACCOUNT area (agent D): the few Rails-only rules on top of redesign-account.css (the mock's account.css).

 */

