/* Academy — management app (/app/) */
:root {
	--bg: #f4f6fb; --card: #fff; --ink: #0f1d33; --ink2: #33415c; --muted: #6b7a90; --line: #e3e8f0; --line2: #eef1f6;
	--brand: #2457e6; --brand2: #1b45bd; --brandbg: #eaf0ff;
	--side: #0f1c33; --side2: #18294a; --sidetx: #b8c4da;
	--ok: #11804f; --okbg: #e3f6ec; --warn: #a65a00; --warnbg: #fff1dc; --err: #b42318; --errbg: #fdeceb; --info: #135fb8; --infobg: #e5f0ff;
	--r: 12px; --sh: 0 1px 2px rgba(15, 29, 51, .05), 0 4px 16px rgba(15, 29, 51, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body.acm-app { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
small { font-size: .82em; }
.block { display: block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.i { flex: none; vertical-align: -4px; }
:focus-visible { outline: 3px solid #9db7ff; outline-offset: 2px; border-radius: 6px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 252px; flex: none; background: var(--side); color: var(--sidetx); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 800; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; color: var(--sidetx); font-weight: 500; font-size: .75rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2f6bff, #1b3fa8); font-size: 20px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; gap: 12px; align-items: center; color: var(--sidetx); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.side nav a:hover { background: var(--side2); color: #fff; text-decoration: none; }
.side nav a.on { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(36, 87, 230, .35); }
.side nav a.logout { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 10px 10px; padding-top: 14px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244, 246, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 1.3rem; flex: 1; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.who { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink2); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.content { padding: 22px 28px 48px; max-width: 1320px; width: 100%; }
.scrim { display: none; }

/* Buttons */
.btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: #c8d2e3; text-decoration: none; background: #fafbfe; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand2); border-color: var(--brand2); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 11px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
form.inline { display: inline; margin: 0; }

/* Messages */
.flash { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; background: var(--okbg); color: var(--ok); font-weight: 600; border: 1px solid #bfe8d2; }
.flash.err { background: var(--errbg); color: var(--err); border-color: #f6c6c1; }
.flash.warn { background: var(--warnbg); color: var(--warn); border-color: #f5d6a8; }
.flash.info { background: var(--infobg); color: var(--info); border-color: #c5dbff; }
.flash-x { margin-left: auto; background: none; border: 0; font-size: 20px; color: inherit; cursor: pointer; line-height: 1; }
.lead { color: var(--muted); margin: -4px 0 16px; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
.note { background: var(--infobg); color: var(--info); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 12px 0 0; }
.crumbs { color: var(--muted); font-size: .88rem; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.empty { color: var(--muted); text-align: center; padding: 22px !important; }

/* Cards & panels */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card-stat { position: relative; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); color: var(--ink); }
a.card-stat:hover { border-color: #b9c8e6; text-decoration: none; transform: translateY(-1px); }
.card-stat small { color: var(--muted); font-weight: 600; font-size: .82rem; padding-right: 40px; }
.card-stat b { font-size: 1.75rem; letter-spacing: -.02em; }
.card-stat em { font-style: normal; color: var(--muted); font-size: .8rem; }
.card-stat.ok b { color: var(--ok); } .card-stat.warn b { color: var(--warn); } .card-stat.err b { color: var(--err); }
.ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.ico.blue { background: var(--brandbg); color: var(--brand); } .ico.green { background: var(--okbg); color: var(--ok); } .ico.orange { background: var(--warnbg); color: var(--warn); } .ico.gray { background: #eef1f6; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 18px; }
.panel.highlight { border-color: #b6c9ff; box-shadow: 0 0 0 4px var(--brandbg); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .panel, .stack > .panel { margin-bottom: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.section-title { font-size: 1.1rem; margin: 4px 0 12px; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: #eef1f6; color: var(--ink2); }
.chip.ok { background: var(--okbg); color: var(--ok); } .chip.warn { background: var(--warnbg); color: var(--warn); } .chip.err { background: var(--errbg); color: var(--err); } .chip.info { background: var(--infobg); color: var(--info); } .chip.muted { background: #eef1f6; color: var(--muted); }
.pill { background: var(--brandbg); color: var(--brand); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #eef1f6; color: var(--muted); font-weight: 800; }
.tick.on { background: var(--okbg); color: var(--ok); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brandbg); color: var(--brand); font-weight: 800; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: .85rem; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.5rem; }

/* Toolbar & tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.toolbar select, .toolbar input, .fields input, .fields select, .fields textarea, .payform input, .payform select, .linkform input, .mini-link input, .paybox input, .paybox select, .login-form input { font: inherit; color: var(--ink); background: #fff; border: 1px solid #d5dce8; border-radius: 10px; padding: 8px 11px; min-height: 40px; width: 100%; }
.toolbar select { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--brand) !important; outline: 3px solid var(--brandbg); }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; color: var(--muted); }
.search input { padding-left: 38px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--ink2); }
.check input { width: 18px; height: 18px; min-height: 0; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow-x: auto; }
.panel .table-wrap { box-shadow: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th a { color: inherit; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fbfcff; }
.tbl.compact td, .tbl.compact th { padding: 8px 10px; }
.tbl .right { text-align: right; }
.tbl tr.is-new td { background: #f1fbf5 !important; }
.tbl tr.is-now td { background: #f4f8ff; }
.tbl.pays tr.is-paid td:first-child, .tbl tr.is-paid td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
.tbl.pays tr.is-unpaid td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.who-cell { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.who-cell:hover { text-decoration: none; }
.who-cell b { display: block; }
.who-cell small { color: var(--muted); }
.actions { white-space: nowrap; }
.actions .btn { margin-left: 4px; }
details.more { display: inline-block; position: relative; }
details.more summary, details.paybox summary { list-style: none; }
details.more summary::-webkit-details-marker, details.paybox summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 29, 51, .15); padding: 6px; min-width: 190px; z-index: 10; text-align: left; }
details.more .menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; }
details.more .menu a:hover { background: var(--bg); text-decoration: none; }
details.paybox { display: inline-block; text-align: left; }
details.paybox[open] form { position: absolute; right: 14px; margin-top: 6px; display: grid; gap: 8px; width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 14px 34px rgba(15, 29, 51, .18); z-index: 15; }
details.paybox label { display: grid; gap: 3px; font-size: .8rem; font-weight: 700; color: var(--ink2); }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); font-weight: 600; font-size: .88rem; }
.tabs a span { color: var(--muted); margin-left: 4px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a.on span { color: #c7d2e6; }
.tabs a.err { border-color: #f6c6c1; color: var(--err); }
.tabs a:hover { text-decoration: none; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.list li:last-child { border-bottom: 0; }
.list li a, .list li > span { display: grid; color: var(--ink); }
.list li small { color: var(--muted); }
.monthbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.monthbar h2 { font-size: 1.2rem; }
.monthsum { margin-left: auto; display: flex; gap: 16px; color: var(--muted); font-size: .9rem; }
.monthsum b { color: var(--ink); }

/* Forms */
.pform .form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pform .panel { margin-bottom: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields.one { grid-template-columns: minmax(0, 1fr); }
.fields label, .payform label, .linkform label, .login-form label { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--ink2); }
.fields .full { grid-column: 1 / -1; }
.fields textarea { resize: vertical; min-height: 84px; }
.fields h3 { font-size: .95rem; margin-top: 8px; }
.req { color: var(--err); }
.subbox { margin-top: 16px; padding: 14px; border-radius: 12px; background: #f7f9fd; border: 1px dashed #d5dce8; }
.sublabel { margin: 0 0 10px; font-weight: 700; font-size: .88rem; }
.seg { display: inline-flex; background: #e9eef6; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: 7px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--ink2); }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.seg label:has(input:focus-visible) { outline: 3px solid #9db7ff; }
.judo-switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 14px; }
.judo-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.judo-switch b { display: block; }
.judo-switch small { color: var(--muted); display: block; margin-top: 2px; }
.judo-switch:has(input:checked) { border-color: #22c55e; background: #f3fcf6; }
.judo-switch:has(input:focus-visible) { outline: 3px solid #9db7ff; }
.sw { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #cfd7e4; position: relative; transition: background .15s; margin-top: 2px; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s; }
.judo-switch:has(input:checked) .sw, .switch.on .sw { background: #22c55e; }
.judo-switch:has(input:checked) .sw::after, .switch.on .sw::after { left: 21px; }
.switch { display: inline-flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink2); min-height: 38px; }
.switch.on { border-color: #86e0a8; color: var(--ok); }
.switch .sw { margin-top: 0; }
.form-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; margin-top: 18px; background: linear-gradient(to top, var(--bg) 70%, rgba(244, 246, 251, 0)); }
.payform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; }
.payform .wide { grid-column: span 2; }

/* Player profile */
.hero { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #cfd7e4; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh); margin-bottom: 18px; }
.hero.is-eligible { border-left-color: #22c55e; } .hero.is-unpaid { border-left-color: #f59e0b; } .hero.is-unlinked { border-left-color: #3b82f6; } .hero.is-sync_failed { border-left-color: #dc2626; }
.hero-main { display: flex; gap: 16px; align-items: flex-start; }
.hero h2 { font-size: 1.5rem; margin: 2px 0 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.why { margin: 10px 0 0; color: var(--ink2); background: #f7f9fd; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.hero-side { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.dl.one { grid-template-columns: minmax(0, 1fr); }
.dl div { min-width: 0; }
.dl .full { grid-column: 1 / -1; }
.dl dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.confirm { margin-top: 14px; padding: 14px; border: 2px solid #93b4ff; background: #f3f7ff; border-radius: 12px; }
.confirm h3 { font-size: 1rem; margin-bottom: 6px; }
.linkform { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.linkform label { flex: 1 1 220px; }
.mini-link { display: inline-flex; gap: 6px; }
.mini-link input { width: 190px; min-height: 32px; padding: 5px 9px; font-size: .85rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline .t { color: var(--muted); font-size: .8rem; margin-right: 8px; }
.rules { background: linear-gradient(135deg, #0f1c33, #1d3566); color: #dbe5f7; border-radius: var(--r); padding: 18px 22px; margin-bottom: 16px; }
.rules h2 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.rules ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.rules b { color: #fff; }
.rules .hint { color: #a9b8d4; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 6px 0 22px; margin-bottom: 12px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar span { display: block; width: 100%; max-width: 30px; background: #c9d7fb; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar.on span { background: var(--brand); }
.bar small { position: absolute; bottom: -20px; font-size: .7rem; color: var(--muted); }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.downloads a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.downloads a:hover { background: var(--bg); text-decoration: none; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { background: linear-gradient(150deg, #0f1c33 0%, #1b3a7a 60%, #2457e6 100%); color: #dbe5f7; display: grid; place-items: center; padding: 40px; }
.login-art > div { max-width: 420px; }
.login-art h2 { color: #fff; font-size: 2rem; margin: 16px 0 10px; }
.login-mark { font-size: 54px; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 40px max(24px, 8vw); background: #fff; }
.login-card h1 { font-size: 1.8rem; }
.login-card .muted { margin: 6px 0 22px; }
.login-form { display: grid; gap: 16px; max-width: 400px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 18px; padding: 4px 8px; }
.login-card .flash { max-width: 400px; }

/* Responsive */
@media (max-width: 1100px) { .grid-2, .pform .form-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
	.side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); visibility: hidden; }
	body.nav-open .side { transform: none; visibility: visible; }
	body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 28, 51, .45); z-index: 25; }
	.menu-btn { display: inline-flex; }
	.top { padding: 12px 16px; }
	.content { padding: 16px 16px 40px; }
	.login-wrap { grid-template-columns: minmax(0, 1fr); }
	.login-art { padding: 28px 20px; }
	.login-art p { display: none; }
	.login-art h2 { font-size: 1.4rem; margin: 6px 0 0; }
	.login-mark { font-size: 36px; }
}
@media (max-width: 720px) {
	.hide-xs { display: none !important; }
	.fields, .dl, .rules ol { grid-template-columns: minmax(0, 1fr); }
	.payform .wide { grid-column: auto; }
	.toolbar > * { flex: 1 1 140px; }
	.toolbar .btn { flex: 0 0 auto; }
	.monthsum { margin-left: 0; width: 100%; }
	.table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
	.tbl thead { display: none; }
	.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
	.tbl tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 6px 4px; box-shadow: var(--sh); }
	.tbl td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: right; }
	.tbl td[data-label]::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; text-align: left; }
	.tbl td:first-child { justify-content: flex-start; text-align: left; }
	.tbl td:first-child::before { display: none; }
	.tbl .right { justify-content: flex-end; flex-wrap: wrap; }
	.tbl tr.is-paid td:first-child, .tbl.pays tr.is-paid td:first-child, .tbl.pays tr.is-unpaid td:first-child { box-shadow: none; }
	.tbl.pays tr.is-paid { border-left: 4px solid #22c55e; } .tbl.pays tr.is-unpaid { border-left: 4px solid #f59e0b; }
	details.paybox[open] form { position: static; width: 100%; box-shadow: none; margin-top: 8px; }
	details.more .menu { right: 0; }
	.mini-link { width: 100%; } .mini-link input { width: auto; flex: 1; }
	.form-actions { justify-content: stretch; } .form-actions .btn { flex: 1; }
	.hero-main { flex-direction: column; }
}
/* Long values (emails, change details) wrap instead of widening the page. */
.timeline li, .dl dd, .flash, .why, .hint, .tbl td small { overflow-wrap: anywhere; word-break: break-word; }
.main, .content, .panel, .grid-2 > *, .stack > * { min-width: 0; }
/* Form polish */
.fields label, .payform label, .linkform label, .login-form label { align-content: start; }
label .hint, label small.hint { font-weight: 400; margin-top: 0; }
@media (min-width: 961px) { .shell { background: linear-gradient(to right, var(--side) 252px, transparent 252px); } }
/* All Players: fit the table */
.who-cell b, .who-cell small { white-space: nowrap; }
.tbl.players .chip[data-elig] { white-space: normal; text-align: center; line-height: 1.25; }
.tbl.players td, .tbl.players th { padding-left: 10px; padding-right: 10px; }
.sublinks { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; font-size: .78rem; font-weight: 600; }
@media (max-width: 720px) { .sublinks { width: 100%; justify-content: flex-end; } }
.tbl.players .actions { white-space: normal; width: 1%; }
.tbl.players .actions .btn { margin: 0 0 0 4px; }
.tbl.players .sublinks { flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.tbl.players th { letter-spacing: .02em; }
@media (max-width: 720px) {
	.tbl.players td.actions { width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 10px; }
	.tbl.players td.actions::before { display: none; }
	.tbl.players .sublinks { flex-direction: row; width: 100%; justify-content: flex-end; gap: 14px; margin: 2px 0 0; }
	.tbl td > span { text-align: right; }
}
.login-form label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.login-form label.check input { width: 18px; min-height: 0; }
