/* The Tip Jar on guests' phones (Nov 13; public/js/tips.js): the sheet (menu, DJ and karaoke pages) and the /tip page.
   The sing page's system in the party theme's colors: a bottom sheet, eyebrow labels with a glowing streak, round
   pictures, big pill choices, one row per app with its color, and a gradient pill for the one big action. */
.tp-dlg, .tp-page { --tp-grad: linear-gradient(100deg, color-mix(in srgb, var(--violet) 80%, #000), var(--pumpkin-fill, var(--pumpkin)) 62%, var(--pumpkin));
    --tp-btn: #25252D; --tp-acc: var(--pumpkin-text, var(--pumpkin)); }

/* the sheet */
dialog.tp-dlg { width: min(500px, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 26px; background: var(--panel); color: var(--text); overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6); font-family: var(--body); }
dialog.tp-dlg[open] { display: flex; flex-direction: column; }
dialog.tp-dlg::backdrop { background: rgba(8, 8, 12, .72); backdrop-filter: blur(3px); }
@media (max-width: 640px) {
    dialog.tp-dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94dvh; border-radius: 26px 26px 0 0; animation: tp-up .28s cubic-bezier(.2, .9, .3, 1); }
}
@keyframes tp-up { from { transform: translateY(40%); opacity: .4; } }
.tp-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px 22px; }
.tp-head h3 { flex: 1; margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; text-align: left; }
.tp-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.tp-body { display: grid; gap: 14px; padding: 8px 20px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; min-height: 0; flex: 1 1 auto; align-content: start; }

/* little labels: an eyebrow with a short glowing streak */
.tp-sec { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tp-sec::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--tp-grad); box-shadow: 0 0 10px color-mix(in srgb, var(--pumpkin) 60%, transparent); }

/* round pictures: a photo, or initials in the theme's colors */
.tp-ava { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; font-size: 1.05rem;
    background: linear-gradient(140deg, color-mix(in srgb, var(--c1, var(--violet)) 86%, #000), color-mix(in srgb, var(--c2, var(--pumpkin)) 66%, #000)); }
.tp-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tp-ava i { font-style: normal; letter-spacing: .02em; }
.tp-ava.is-big { width: 72px; height: 72px; font-size: 1.45rem; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pumpkin) 55%, transparent), 0 10px 26px rgba(0, 0, 0, .4); }
.tp-ava.t0 { --c1: var(--a1, var(--violet)); --c2: var(--a0, var(--pumpkin)); } .tp-ava.t1 { --c1: var(--a0, var(--pumpkin)); --c2: var(--a3, var(--violet)); }
.tp-ava.t2 { --c1: var(--a3, var(--violet)); --c2: var(--a1, var(--pumpkin)); } .tp-ava.t3 { --c1: var(--a2, var(--violet)); --c2: var(--a1, var(--pumpkin)); }
.tp-ava.t4 { --c1: var(--a1, var(--violet)); --c2: var(--a2, var(--pumpkin)); } .tp-ava.t5 { --c1: var(--a3, var(--violet)); --c2: var(--a0, var(--pumpkin)); }

/* everyone: one card each */
.tp-list { display: grid; gap: 10px; }
.tp-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px;
    background: color-mix(in srgb, var(--ink) 70%, transparent); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tp-person:active { transform: scale(.99); }
.tp-pt { display: grid; gap: 2px; min-width: 0; }
.tp-pt b { font-size: 1.1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pgo { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tp-grad); color: #fff; font-weight: 800; font-size: .92rem; white-space: nowrap; }
.tp-pgo i { font-style: normal; font-size: 1.15rem; line-height: 1; }

/* one person */
.tp-back { justify-self: start; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tp-btn); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.tp-who { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.tp-whot { display: grid; gap: 2px; min-width: 0; }
.tp-whot b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.tp-whot small { color: var(--muted); font-weight: 600; }
.tp-thanks { margin: 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--violet) 14%, var(--ink)); color: var(--text); font-style: italic; line-height: 1.45; }
.tp-for { margin: -4px 0 0; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }

/* how much: big pill choices */
/* five across on a phone: the four amounts and Other in one row */
.tp-amts { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 6px; }
.tp-amt { min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--tp-btn); color: var(--text); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer;
    font-variant-numeric: tabular-nums; transition: transform .12s; }
.tp-amt.is-other { font-size: .92rem; }
.tp-amt[aria-checked="true"] { border-color: transparent; background: var(--tp-grad); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--pumpkin) 35%, transparent); transform: translateY(-1px); }
.tp-other { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 20px; border-radius: 999px; background: var(--ink); border: 1.5px solid color-mix(in srgb, var(--tp-acc) 60%, transparent); }
.tp-other[hidden] { display: none; }
.tp-other span { font-size: 1.3rem; font-weight: 800; color: var(--muted); }
.tp-other input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.3rem; font-weight: 800; }
.tp-other input:focus { outline: none; }

/* the apps: one row each, with its color */
.tp-ways { display: grid; gap: 8px; }
.tp-way { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px 10px 10px; border-radius: 18px; border: 1px solid var(--line);
    background: color-mix(in srgb, var(--ink) 70%, transparent); color: var(--text); text-decoration: none; }
a.tp-way:active { transform: scale(.99); background: var(--tp-btn); }
.tp-way.is-copy { grid-template-columns: auto 1fr auto; }
.tp-way.is-copy:has(.tp-wbtn + .tp-wbtn) { grid-template-columns: auto 1fr; }
.tp-way.is-copy:has(.tp-wbtn + .tp-wbtn) .tp-wgo { grid-column: 2; }
.tp-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-style: normal; font-weight: 900; font-size: 1.35rem; color: #fff; font-family: var(--body); }
.tp-mark.is-venmo { background: #008CFF; } .tp-mark.is-cash { background: #00C244; } .tp-mark.is-paypal { background: #003087; }
.tp-mark.is-zelle { background: #6D1ED4; } .tp-mark.is-apple { background: #1c1c1e; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); } .tp-mark.is-link { background: var(--tp-btn); font-size: 1.15rem; }
.tp-wt { display: grid; gap: 1px; min-width: 0; }
.tp-wt b { font-size: 1.05rem; font-weight: 800; }
.tp-wt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-wgo { display: flex; gap: 6px; }
.tp-wgo.is-open { align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tp-grad); color: #fff; font-weight: 800; font-size: .92rem; }
.tp-wbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--tp-btn); color: var(--text); font: inherit; font-size: .88rem; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap; }
.tp-how { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; line-height: 1.4; padding-left: 58px; }
.tp-fine { margin: 2px 0 0; color: var(--muted); font-size: .82rem; text-align: center; line-height: 1.45; }

/* thank you */
.tp-thx { display: grid; justify-items: center; gap: 10px; padding: 14px 4px 4px; text-align: center; }
.tp-thx-i { font-size: 3.4rem; animation: tp-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tp-pop { from { transform: scale(.3); opacity: 0; } }
.tp-thx h3 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.tp-thx p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.tp-go { display: block; width: 100%; height: 56px; border: 0; border-radius: 999px; background: var(--tp-grad); color: #fff; font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--pumpkin) 35%, transparent); }
.tp-again { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- the /tip page ---------- */
.tp-page { font-family: var(--body); }
.tp-page .sky { opacity: .6; }
.tp-wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 0 0 calc(32px + env(safe-area-inset-bottom)); }
.tp-top { display: flex; align-items: center; gap: .6rem; padding: 12px max(16px, env(safe-area-inset-left)) 12px; border-bottom: 2px solid var(--pumpkin); background: color-mix(in srgb, var(--ink) 92%, #000); }
.tp-top .ph-title { flex: 1; min-width: 0; margin: 0; }
.tp-home { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tp-btn); color: var(--text); font-size: 1.6rem; line-height: 1; text-decoration: none; flex: none; }
.tp-main { display: grid; gap: 18px; padding: 22px 16px 0; }
.tp-hero { display: grid; gap: 6px; text-align: center; }
.tp-hero h1 { margin: 0; font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.tp-hero p { margin: 0; color: var(--muted); line-height: 1.5; }
.tp-card { display: grid; gap: 14px; padding: 20px 18px 18px; border-radius: 26px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.tp-closed { display: grid; justify-items: center; gap: 6px; padding: 28px 10px; text-align: center; }
.tp-closed div { font-size: 2.6rem; }
.tp-closed small { color: var(--muted); }

/* ---------- the request pages (/dj, /sing): the 💸 Tip pill in the top bar, and the line under Done ---------- */
.sg-tip-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sg-grad, var(--pumpkin)); color: #fff;
    font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--pumpkin) 30%, transparent); }
.sg-tip-pill[hidden] { display: none; }
.sg-tip-line { min-height: 48px; border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 999px; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.sg-tip-line[hidden] { display: none; }
.sg-tip-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 18px;
    background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sg-tip-row[hidden] { display: none; }
.sg-tip-row > span:first-child { font-size: 1.5rem; }
.sg-tip-row b { font-weight: 800; }
.sg-tip-row small { display: block; color: var(--muted); font-size: .85rem; }
.sg-tip-row i { font-style: normal; color: var(--muted); font-size: 1.3rem; }

/* ---------- Back Stage > 💸 Tip Jar (public/js/tips-admin.js) ---------- */
.tj { display: grid; gap: 1rem; margin-top: 1rem; }
.tj [data-sub-pane] { display: grid; gap: 1rem; }
.tj [data-sub-pane][hidden] { display: none; }
.tj-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.1rem 1.2rem; margin: 0;
    border-color: color-mix(in srgb, var(--pumpkin) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 16%, var(--panel)), var(--panel) 60%, color-mix(in srgb, var(--pumpkin) 10%, var(--panel))); }
.tj.is-off .tj-hero { border-color: var(--line); }
.tj-hero-t { flex: 1 1 320px; display: grid; gap: .7rem; justify-items: start; }
.tj-on { font-size: 1.15rem; }
.tj-stats { margin: 0; font-weight: 600; color: var(--muted); }
.tj-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.tj-fine { margin: 0; font-size: .82rem; line-height: 1.45; }
.tj-how { margin: 0; }

/* the people */
.tj-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; align-items: start; }
.tj-card { display: grid; gap: .7rem; margin: 0; padding: 1rem; }
.tj-card.is-paused { opacity: .72; border-style: dashed; }
.tj-card.is-unpaid { border-color: color-mix(in srgb, var(--gold, #E8C24A) 55%, var(--line)); }
.tj-card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; }
.tj-card-t { display: grid; gap: 2px; min-width: 0; }
.tj-card-t b { font-size: 1.1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-card-t small { color: var(--muted); font-weight: 600; }
.tj-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tj-wchip { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 70%, #000); font-size: .82rem; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-wchip .tp-mark { width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; flex: none; }
.tj-warn { color: var(--gold, #E8C24A); font-size: .85rem; font-weight: 700; }
.tj-where-line { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.tj-card-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.tj-card-acts .tj-del { margin-left: auto; }
.tj-addcard { display: grid; place-items: center; align-content: center; gap: .3rem; min-height: 150px; border: 2px dashed var(--line); border-radius: 12px; background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.tj-addcard span { font-size: 2rem; line-height: 1; }
.tj-addcard:hover { border-color: var(--pumpkin); color: var(--text); }
.tj-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .5rem; margin: 0; padding: 1.6rem 1rem; text-align: center; }
.tj-empty-i { font-size: 2.6rem; }
.tj-empty b { font-size: 1.15rem; }
.tj-empty small { max-width: 34rem; color: var(--muted); line-height: 1.45; }
.tj-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .4rem; }

/* taps */
.tj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.tj-tile { display: grid; justify-items: center; gap: .1rem; margin: 0; padding: 1rem .6rem; text-align: center; }
.tj-tile span { font-size: 1.5rem; }
.tj-tile b { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.tj-tile small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.tj-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.tj-cols .panel { margin: 0; }
.tj-bars { display: grid; gap: .7rem; }
.tj-bar { display: grid; gap: .3rem; }
.tj-bar-t { display: flex; justify-content: space-between; gap: .6rem; }
.tj-bar-t small { color: var(--muted); font-weight: 700; }
.tj-bar i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 70%, #000); position: relative; overflow: hidden; }
.tj-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--pumpkin)); }
.tj-recent { display: grid; }
.tj-rrow { display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: center; gap: .8rem; padding: .6rem 1rem; border-top: 1px solid var(--line); }
.tj-rrow:first-child { border-top: 0; }
.tj-ramt { font-weight: 900; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tj-rt { display: grid; gap: 1px; min-width: 0; }
.tj-rt b, .tj-rt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-rt small { color: var(--muted); }

/* tell guests */
.tj-share { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin: 0; padding: 1.1rem 1.2rem; }
.tj-share .dq-qr { width: 170px; height: 170px; }
.tj-where { display: grid; }
.tj-wrow { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .8rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.tj-wrow:first-of-type { border-top: 0; }
.tj-wrow > span:first-child { font-size: 1.3rem; text-align: center; filter: grayscale(1); opacity: .55; }
.tj-wrow.is-on > span:first-child { filter: none; opacity: 1; }
.tj-wrow b { display: block; }
.tj-wrow small { color: var(--muted); }
.tj-offnote { margin: 0; padding: .75rem 1rem; color: var(--gold, #E8C24A); font-weight: 700; font-size: .9rem; }

/* amounts */
.tj-amts { display: grid; gap: .5rem; }
.tj-amt { display: flex; align-items: center; gap: .7rem; }
.tj-amt-in { display: inline-flex; align-items: center; gap: .2rem; padding: 0 .7rem; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 80%, #000); }
.tj-amt-in em { font-style: normal; font-weight: 800; color: var(--muted); }
.tj-amt-in input { width: 4.5rem; min-height: 44px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 800; }
.tj-amt-in input:focus { outline: none; }
.tj-def { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 44px; }

/* the sheet: steps, roles, picture, ways to pay */
dialog.tj-dlg { width: min(640px, calc(100% - 1.5rem)); }
@media (max-width: 640px) { dialog.tj-dlg { width: 100vw; max-width: 100vw; } }
.tj-steps { display: flex; gap: 4px; margin: 0; padding: .7rem 1.1rem .2rem; list-style: none; }
.tj-steps li { flex: 1 1 0; min-width: 0; position: relative; }
.tj-steps li + li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--line); }
.tj-steps li.is-done::before, .tj-steps li.is-on::before { background: var(--pumpkin); }
.tj-steps button { display: grid; justify-items: center; gap: .3rem; width: 100%; min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }
.tj-steps button:disabled { cursor: default; opacity: .6; }
.tj-steps i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: .9rem; background: color-mix(in srgb, var(--ink) 70%, #000); box-shadow: inset 0 0 0 2px var(--line); }
.tj-steps li.is-done i { background: color-mix(in srgb, var(--pumpkin) 25%, var(--panel)); box-shadow: inset 0 0 0 2px var(--pumpkin); color: var(--text); }
.tj-steps li.is-on i { background: var(--pumpkin-fill, var(--pumpkin)); color: var(--on-pumpkin, #fff); box-shadow: none; }
.tj-steps li.is-on button { color: var(--text); }
.tj-step { display: grid; gap: .9rem; }
.tj-step[hidden] { display: none; }
.tj-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.tj-role { position: relative; cursor: pointer; }
.tj-role input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tj-role span { display: grid; justify-items: center; gap: .15rem; min-height: 78px; padding: .6rem .3rem; border-radius: 12px; text-align: center; background: color-mix(in srgb, var(--ink) 70%, #000); border: 2px solid var(--line); }
.tj-role i { font-style: normal; font-size: 1.6rem; line-height: 1.2; }
.tj-role b { font-size: .8rem; font-weight: 800; line-height: 1.2; }
.tj-role input:checked + span { border-color: var(--pumpkin); background: color-mix(in srgb, var(--pumpkin) 14%, var(--panel)); }
.tj-role input:focus-visible + span { outline: 3px solid var(--pumpkin); outline-offset: 2px; }
.tj-picrow { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.tj-pic.tp-ava.is-big { width: 104px; height: 104px; font-size: 2.1rem; }
.tj-picbtns { display: grid; gap: .5rem; flex: 1 1 220px; }
.tj-file { position: relative; overflow: hidden; }
.tj-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tj-lib { display: grid; gap: .6rem; }
.tj-libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; max-height: 300px; overflow-y: auto; padding: 2px; }
.tj-libit { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 12px; background: color-mix(in srgb, var(--ink) 70%, #000); overflow: hidden; cursor: pointer; }
.tj-libit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tj-libit.is-on { border-color: var(--pumpkin); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pumpkin) 30%, transparent); }
.tj-ways { display: grid; gap: .6rem; }
.tj-way { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: .7rem; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 55%, transparent); }
.tj-way.is-set { border-color: color-mix(in srgb, var(--ecto, #39d98a) 45%, var(--line)); }
.tj-way.is-bad { border-color: var(--blood-fill, #C8102E); }
.tj-way .tp-mark { margin-top: 2px; }
.tj-wf { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; min-width: 0; }
.tj-wf label b { font-weight: 800; }
.tj-in { display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 80%, #000); }
.tj-in:focus-within { border-color: var(--pumpkin); }
.tj-in em { flex: none; font-style: normal; font-weight: 800; color: var(--muted); }
.tj-in input { flex: 1; width: 0; min-width: 0; min-height: 42px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.tj-in input:focus { outline: none; }
.tj-linkname { min-height: 44px; font-size: 16px; }
.tj-whelp { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.tj-werr { color: #ff8a8a; font-size: .82rem; font-weight: 700; }
.tj-check { margin-top: 1.55rem; min-height: 40px; }
@media (max-width: 640px) {
    .tj-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tj-way { grid-template-columns: auto minmax(0, 1fr); }
    .tj-check { grid-column: 2; margin-top: 0; justify-self: start; }
    .tj-share { justify-content: center; }
    .tj-hero { justify-content: center; }
    .tj-rrow { grid-template-columns: 3.6rem 1fr; }
    .tj-rrow > small { grid-column: 2; }
    .tj-card-acts .btn-sm, .tj-card-acts .icon-btn { min-height: 44px; }
    .tj-steps span { font-size: .7rem; }
}
.kq-chip.is-tip { background: color-mix(in srgb, var(--ecto, #39d98a) 22%, var(--panel)); color: var(--text); }
