/* Instagram fonts generator (livecounts.nl/instagram-fonts/). Loaded after instagram-live.css.
   No web fonts: the phone's own fonts draw these characters, the same as in the Instagram app. */

.ifx-input { padding: 16px 18px 14px; }
.ifx-label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ifx-input textarea { display: block; width: 100%; min-height: 76px; max-height: 240px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: 18px; line-height: 1.4; resize: vertical; }
.ifx-input textarea::placeholder { color: var(--muted); opacity: 1; }
.ifx-input textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(79, 91, 213, .2); }
.ifx-meter { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ifx-meter b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.ifx-meter.is-over b { color: var(--bad); }

/* ---------- the list: fixed row height, one innerHTML per change ---------- */
.ifx-list { margin-top: var(--s6); }
.ifx-list-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.ifx-list-head p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.ifx-gh { margin-top: var(--s6); padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.ifx-gp { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
/* lists off screen are not laid out until they come near (content-visibility); rows have a fixed
   height, so --n / --h (set on each list) give the exact size and nothing moves. The 4px inline
   padding keeps the focus ring of the edge buttons inside the list's paint clip. */
.ifx-rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s6); margin-inline: -4px; padding-inline: 4px; content-visibility: auto; contain-intrinsic-size: auto calc(var(--n, 10) * 68px); }
.fr { display: flex; align-items: center; gap: 8px; height: 68px; border-bottom: 1px solid var(--line); contain: content; }
.fr-main { flex: 1; min-width: 0; }
.fr-n { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.fr-n small { margin-inline-start: 8px; font-size: 11.5px; }
.fr-n .fr-ok { color: var(--good); }
.fr-t { display: block; overflow: hidden; height: 32px; color: var(--ink); font-size: 21px; line-height: 32px; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.is-sample .fr-t { color: var(--muted); }
/* row icons are CSS masks (no svg per row: 35 to 47 rows) */
.fr-star::before, .fr-copy::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.fr-copy::before { width: 16px; height: 16px; }
.fr-star { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z'/%3E%3C/svg%3E"); width: 40px; height: 40px; color: var(--muted); }
.fr-star[aria-pressed="true"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z'/%3E%3C/svg%3E"); color: var(--warn); border-color: currentColor; }
.fr-copy { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='12' height='12' rx='2'/%3E%3Cpath d='M15.5 5.5v-.5a1.5 1.5 0 0 0-1.5-1.5H5A1.5 1.5 0 0 0 3.5 5v9A1.5 1.5 0 0 0 5 15.5h.5'/%3E%3C/svg%3E"); flex: none; min-width: 86px; }
.fr-copy.is-done { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); border-color: var(--good); background: var(--good); color: #fff; }

/* ---------- ads: outside the list, reserved height ---------- */
.ifx .ad-infeed { max-width: 728px; margin: var(--s8) auto 0; }
.ifx .ad-bottom { margin-top: var(--s8); }

/* ---------- symbols ---------- */
.ifx-sym { margin-top: var(--s8); }
.ifx-sym h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.ifx-sym p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.ifx-sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; margin-top: var(--s4); }
.ifx-sym-grid button { height: 48px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: copy; }
.ifx-sym-grid button:hover { border-color: var(--line-2); }
.ifx-sym-grid button.is-done { border-color: var(--good); background: var(--good-bg); }

/* ---------- text ---------- */
.ifx-info { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.ifx-info .faq { margin-top: var(--s8); }

@media (min-width: 1024px) {
    /* two columns of rows: half the scrolling */
    .ifx-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); contain-intrinsic-size: auto calc(var(--h, 5) * 68px); }
    .ifx .top { align-items: start; }
    .ifx .top .page-head { padding-top: 8px; }
}
@media (max-width: 719.98px) {
    .ifx-input { padding: 14px 14px 12px; }
    .ifx-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
    .ifx-input textarea { min-height: 64px; font-size: 17px; }
    .fr { height: 64px; gap: 6px; }
    .ifx-rows { contain-intrinsic-size: auto calc(var(--n, 10) * 64px); }
    .fr-t { font-size: 19px; }
    .fr-copy { min-width: 0; padding-inline: 12px; }
    .ifx-list-head h2, .ifx-sym h2 { font-size: 19px; }
}
