/* Last Four In — accounts + social: sign-in, profile, posts, comments, moderation. Builds on lfi.css. */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar { overflow: hidden; }

/* The "post it" box inside the share pop-up */
.post-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card-2); display: grid; gap: 10px; }
.post-box p { margin: 0; color: var(--ink-2); font-size: 14px; }
.post-box textarea, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: 16px; resize: vertical; min-height: 64px; background: var(--card); }
.post-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.post-box .btn { min-height: 44px; }

/* The "Create account" pop-up (LFI.needAccount in cloud.js) */
.acct-pop { z-index: 70; }
.acct-pop .dlg { width: min(420px, 100%); }
.acct-emo { font-size: 44px; line-height: 1; margin: 2px 0 10px; }
.acct-why { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.acct-pop .share-acts { margin-top: 16px; }
.acct-pop .btn.big { justify-content: center; }
.acct-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 16px; background: var(--card); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.err { color: var(--loss); font-size: 14px; font-weight: 600; min-height: 1em; margin: 0 0 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* White with dark text in both modes, like Google's own button (colours come from lfi.css). */
.btn.google { gap: 10px; min-height: 50px; font-size: 16px; width: 100%; }
.btn.google svg { width: 20px; height: 20px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.handle-prefix { position: relative; }
.handle-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.handle-prefix input { padding-left: 28px; }

/* Profile header */
.prof { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prof-cover { height: 92px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--brand-2) 100%); position: relative; }
.prof-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 18px, color-mix(in srgb, var(--accent) 8%, transparent) 18px 20px); }
.prof-in { padding: 0 18px 18px; }
.prof-top { display: flex; justify-content: space-between; align-items: end; margin-top: -44px; gap: 10px; position: relative; z-index: 1; }
.prof-av { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--card); background: var(--navy-2); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 40px; overflow: hidden; flex: none; }
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.prof h1 { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.05; margin: 10px 0 0; }
.prof .handle { color: var(--muted); font-weight: 600; }
.prof .bio { margin: 10px 0 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.prof .meta { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.prof-stats div { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.prof-stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; }
.prof-stats span { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 560px) { .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof h1 { font-size: 26px; } }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; }

/* Feed */
.feed { display: grid; gap: 14px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.post-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-h .avatar { width: 40px; height: 40px; flex: none; border-width: 0; font-size: 17px; }
.post-h b { font-weight: 700; }
.post-h .when { color: var(--muted); font-size: 13px; }
.post-h a { text-decoration: none; }
.post .cap { margin: 0 0 10px; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.post-f { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.post-f .btn { padding: 7px 12px; font-size: 13.5px; }
.post-f .spacer { flex: 1; }
.linkish { background: none; border: 0; padding: 6px 4px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.linkish:hover { color: var(--ink); }

/* Comments */
.cmts { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: grid; gap: 10px; }
.cmt { display: flex; gap: 10px; align-items: start; }
.cmt .avatar { width: 30px; height: 30px; font-size: 13px; border-width: 0; flex: none; }
.cmt-b { background: var(--card-2); border-radius: 10px; padding: 7px 11px; min-width: 0; flex: 1; }
.cmt-b .who { font-weight: 700; font-size: 13.5px; text-decoration: none; }
.cmt-b .when { color: var(--muted); font-size: 12px; margin-left: 4px; }
.cmt-b p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.cmt.hidden-c .cmt-b { opacity: .55; }
.cmt-acts { display: flex; gap: 2px; }
.cmt-form { display: flex; gap: 8px; align-items: end; }
.cmt-form textarea { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 18px; font: inherit; font-size: 16px; resize: none; min-height: 40px; max-height: 120px; }
.cmt-form .btn { border-radius: 18px; min-height: 40px; }

/* Small menus (report / block / hide) */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(var(--brand-rgb),.18); min-width: 190px; z-index: 30; padding: 4px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.menu button:hover { background: var(--card-2); }
.menu button.danger { color: var(--loss); }

/* Moderator queue */
.mq { display: grid; gap: 12px; }
.mq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.mq-item .what { margin: 8px 0; padding: 10px 12px; background: var(--card-2); border-radius: 6px; overflow-wrap: anywhere; }
.mq-item .post-acts .btn { padding: 8px 12px; font-size: 13.5px; }

/* Plain legal pages */
.legal { max-width: 720px; }
.legal h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; font-style: var(--disp-style); margin: 28px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.notice { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-deep); border-radius: var(--r); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
[hidden] { display: none !important; }

/* Friends button in the header (signed in only), with a badge for requests waiting on you */
.fbtn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s; flex: none; }
.fbtn:hover, .fbtn.on { border-color: var(--ink); }
.fbtn i, .mm-badge { font-style: normal; font-family: var(--f-body); font-weight: 800; font-size: 11px; line-height: 1; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.fbtn i { position: absolute; top: -5px; right: -6px; box-shadow: 0 0 0 2px var(--bg); }
.mm-badge { vertical-align: 2px; margin-left: 4px; }
@media (max-width: 820px) { .fbtn { width: 38px; height: 38px; } }

/* Pick'em pools: the "Your pools" card on the pick'em pages and the forms on /pools/. */
.pool-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pool-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); color: var(--ink); text-decoration: none; }
.pool-list a:hover { border-color: var(--line-2); }
.pool-list b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-list span { flex: none; font-size: 13px; color: var(--muted); font-weight: 700; }
.pool-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pool-acts .btn { padding: 9px 8px; }
.pool-form { display: flex; gap: 8px; margin-top: 10px; }
.pool-form.col { flex-direction: column; margin-top: 0; }
.pool-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 16px; background: var(--card); color: var(--ink); }
.pool-form .btn { flex: none; }
.pool-form .seg { align-self: flex-start; }
.hint-s { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
