/* People and profiles on the Board: round photos in the violet ring (initials under them, never a broken image), the
   account in the sidebar, My profile, the welcome state, and the Instagram / TikTok analyse form. Loaded after board.css. */

/* the ring: initials underneath, the photo on top; a photo that fails is removed (portal.js) and the initials show */
.ring { display: inline-grid; flex: none; border-radius: 50%; border: 2px solid var(--acc); padding: 2px; box-sizing: border-box; background: var(--paper); vertical-align: middle; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.ring > .ring-ini, .ring > img { grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; min-width: 0; min-height: 0; max-width: none; object-position: 50% 20%; }
.ring > .ring-ini { background: var(--acc-soft); color: var(--acc-ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.ring-xs { width: 1.625rem; height: 1.625rem; border-width: 1.5px; padding: 1px; } .ring-xs > .ring-ini { font-size: 0.625rem; }
.ring-s { width: 2.25rem; height: 2.25rem; } .ring-s > .ring-ini { font-size: 0.8125rem; }
.ring-m { width: 3rem; height: 3rem; } .ring-m > .ring-ini { font-size: 1.05rem; }
.ring-l { width: 4.5rem; height: 4.5rem; } .ring-l > .ring-ini { font-size: 1.5rem; }
.side-cr .ring > img, .card-head .ring > img, .c-id .ring > img { width: 100%; height: 100%; }

.plat-tag { font: 500 0.6875rem/1 var(--mono); color: var(--ink-3); border: 1px solid var(--rule-strong); padding: 0.15rem 0.3rem; vertical-align: middle; white-space: nowrap; }

/* the account in the sidebar foot: photo + name, a link to My profile; sign out next to it */
.who .me { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); padding: 0.3rem; margin: -0.3rem; }
.who .me:hover, .who .me[aria-current="page"] { background: var(--paper-2); }
.me-t { display: grid; min-width: 0; line-height: 1.25; }
.me-t b { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 859px) {
  .side-foot { display: flex; align-items: center; gap: 0.35rem; }   /* top row, right: credits and the account, always in reach */
  .side-foot .who { display: flex; padding: 0; }           /* board.css hides it on phones: the photo stays, as the way to My profile */
  .who .me { margin: 0; padding: 0.15rem; flex: none; }
  .who .me-t, .who .me-out { display: none; }
}

/* analyse a profile: Instagram | TikTok, then the handle or a pasted link */
.an-form .an-body { display: grid; gap: 0.6rem; padding: 0.875rem 0.875rem 0; }
.an-plats { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule-strong); background: var(--paper); min-width: min(100%, 16rem); }
.seg label { position: relative; display: block; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.seg label + label { border-left: 1px solid var(--rule-strong); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0.4rem 0.9rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -4px; }
.an-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.at { display: flex; align-items: center; flex: 1 1 16rem; max-width: 28rem; min-height: 2.5rem; border: 1px solid var(--rule-strong); background: var(--paper); }
.at span { padding-left: 0.65rem; color: var(--ink-3); font: 500 0.9375rem var(--mono); }
.at input { border: 0 !important; min-height: 2.4rem; padding-left: 0.2rem; flex: 1; min-width: 0; max-width: none; background: transparent; }
.at:focus-within { outline: 2px solid var(--acc); outline-offset: 1px; } .at input:focus { outline: none; }
@media (max-width: 520px) { .an-row .btn { width: 100%; justify-content: center; } .seg { width: 100%; } }

.run-note { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--rule); padding: 0.65rem 0.875rem; margin-bottom: 1rem; font-size: 0.875rem; }

/* the in-app live analysis: the same module as uprocket.app's (analysis-live.css), on a Board module */
.an-live-wrap { max-width: 40rem; }
.an-live { display: grid; padding: clamp(1rem, 3vw, 1.5rem); gap: 1.1rem; }
.an-live .fa-live-top h2 { padding: 0; border: 0; font-size: 1.125rem; }
.an-live .fa-small, .an-live .fa-mail { color: var(--ink-3); font-size: 0.8125rem; }
.an-live .fa-cta { width: 100%; justify-content: center; min-height: 2.75rem; }
.an-live .fa-bars li { grid-template-columns: minmax(0, 8.25rem) minmax(0, 1fr) 2.5rem; font-size: 0.875rem; line-height: 1.3; }
.an-live .fa-bars .bar { background: var(--acc-soft); } .an-live .fa-bars .bar i { background: var(--acc); }
.an-live .fa-grade { margin-left: 0.4rem; align-self: center; font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; padding: 0.32rem 0.45rem; border: 1px solid var(--ink); }
.an-live .fa-note { border-top: 1px solid var(--rule); padding-top: 1rem; display: grid; gap: 0.5rem; justify-items: start; }

/* welcome: the first thing a new account sees */
.welcome { margin-bottom: 1rem; }
.wel-body { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 0.75rem 1.5rem; padding: 1rem 0.875rem 0; }
.wel-who { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); min-width: 0; }
.wel-who > span:last-child { display: grid; min-width: 0; }
.wel-name { font-size: 1.0625rem; overflow-wrap: anywhere; }
.wel-score { display: flex; align-items: baseline; gap: 0.3rem; }
.wel-score b { font: 500 2.5rem/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.wel-score > span:not(.stamp) { color: var(--ink-3); font: 500 0.9375rem var(--mono); }
.wel-score .stamp { margin-left: 0.4rem; align-self: center; }
.wel-sum { grid-column: 1 / -1; color: var(--ink-2); max-width: 68ch; }
.wel-steps { list-style: none; margin: 0; padding: 0.875rem; display: grid; gap: 0; counter-reset: wel; }
.wel-steps li { counter-increment: wel; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.15rem 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.875rem; }
.wel-steps li:first-child { border-top: 0; }
.wel-steps li::before { content: counter(wel); grid-row: span 3; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; font: 500 0.75rem var(--mono); border: 1px dashed var(--rule-strong); }
.wel-steps b { color: var(--ink-2); font-size: 0.9375rem; }
.wel-steps li.done::before { content: "✓"; background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.wel-steps li.now::before { background: var(--acc); border: 1px solid var(--acc); color: #fff; }
.wel-steps li.now b { color: var(--ink); }
.wel-steps .btn { justify-self: start; margin-top: 0.5rem; }
.wel-foot { padding: 0 0.875rem 0.875rem; font-size: 0.875rem; }
@media (max-width: 520px) { .wel-body { grid-template-columns: 1fr; } }

/* My profile */
.acct-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem; margin-bottom: 1rem; }
.acct-id { flex: 1 1 14rem; min-width: 0; }
.acct-id h1 { overflow-wrap: anywhere; }
.acct-email { overflow-wrap: anywhere; font-size: 0.875rem; }
.acct-plan { margin-top: 0.4rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.acct-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acct-grid .span-2 { grid-column: 1 / -1; } }
.acct-form, .acct-body { padding: 0.875rem; }
.acct-form + .acct-form { border-top: 1px solid var(--rule); }
.acct-form .field { margin-bottom: 0.75rem; }
.acct-form input[type=text], .acct-form input[type=password] { width: 100%; max-width: 24rem; }
.acct-form input[type=file] { max-width: 100%; }
.acct-form .check { align-items: flex-start; font-weight: 400; }
.acct-form .check input { margin-top: 0.25rem; accent-color: var(--acc); }
.acct-body .bar { margin: 0.4rem 0 0.75rem; }
.acct-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin: 0 0 0.75rem; }
.acct-dl dt { font-size: 0.75rem; color: var(--ink-3); } .acct-dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.acct-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.acct-sec h3 { padding: 0 0.875rem; } .acct-sec h3 + p { padding: 0.35rem 0.875rem 0.875rem; margin: 0; }

.linked { list-style: none; margin: 0; padding: 0; }
.linked-cr { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; padding: 0.75rem 0.875rem; border-top: 1px solid var(--rule); }
.linked-cr:first-child { border-top: 0; }
.linked-name { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; min-width: 0; }
.linked-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked-profs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.linked-profs a { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; color: var(--ink-2); text-decoration: none; padding: 0.3rem 0.4rem; margin: -0.3rem -0.4rem; min-height: 2.25rem; }
.linked-profs a:hover { background: var(--paper-2); color: var(--ink); }
.lp-h { font: 500 0.875rem var(--mono); overflow-wrap: anywhere; }
.lp-s { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); } .lp-s b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-add { color: var(--acc-ink) !important; font-size: 0.8125rem; }
.lp-add .icon { width: 1rem; height: 1rem; }
@media (max-width: 640px) { .linked-cr { grid-template-columns: 1fr; } .lp-s { margin-left: 0; flex-basis: 100%; padding-left: 2.15rem; } }

/* My profile without creators: each analysed profile with its one next step, or the first step when there are none */
.mod > .acct-lead { margin: 0; padding: 0.875rem 0.875rem 0.25rem; color: var(--ink-2); font-size: 0.875rem; max-width: 65ch; }
.setup-list { list-style: none; margin: 0; padding: 0 0 0.25rem; }
.setup-row { display: flex; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding: 0.65rem 0.875rem; border-top: 1px solid var(--rule); }
.setup-row:first-child { border-top: 0; }
.setup-who { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 14rem; min-width: 0; color: var(--ink); text-decoration: none; }
.setup-who:hover .lp-h { text-decoration: underline; text-decoration-color: var(--acc); }
.setup-t { display: flex; align-items: baseline; gap: 0.25rem 0.5rem; flex-wrap: wrap; min-width: 0; }
.setup-t .lp-s { margin-left: 0; }
.acct-first { padding: 0.875rem; } .acct-first p { margin: 0; max-width: 60ch; color: var(--ink-2); } .acct-first b { color: var(--ink); }

/* reports: the account's photo by each row */
.rp-acct { display: flex; gap: 0.6rem; align-items: flex-start; min-width: 0; }
.rp-acct > div { min-width: 0; }
.an-live .fa-line { border-left: 0; padding-left: 0; }

/* report thumbnails: two across on a phone instead of one screen-high picture each */
@media (max-width: 520px) { .rep-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 0.6rem; } .rep-posts .rp-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
.an-live > p, .an-live > .fa-note, .an-live .fa-result > p { margin: 0; }
