/* Smart Tournament Manager · tournament page, team link and coach link. Phone first. */
:root { --stm-accent: #15294d; }
.stm-pub { --a: var(--stm-accent, #15294d); --ink: #0e2238; --muted: #556275; --line: #dde3ea; --bg: #f4f6f8; --ok: #0b7a55; --ok-bg: #e3f3ec; --warn: #8a4a06; --warn-bg: #fdf6ec; --bad: #b42318; --bad-bg: #fdf1f0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.45; }
.stm-body { margin: 0; background: #f4f6f8; }
.stm-wrap { max-width: 640px; margin: 0 auto; padding: 0 0 32px; background: var(--bg); min-height: 100vh; }
.stm-pub * { box-sizing: border-box; }
.stm-pub a { color: var(--a); }
.stm-h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.stm-h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.stm-h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.stm-small { font-size: 13px; color: var(--muted); margin: 4px 0; }
.stm-small.is-ok { color: var(--ok); font-weight: 600; }
.stm-small.is-bad { color: var(--bad); font-weight: 600; }
.stm-center { text-align: center; padding: 0 16px; }
.stm-section, .stm-tab { padding: 14px 16px 4px; }
.stm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }

.stm-banner { background: #0e2238; color: #c9d3df; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; }
.stm-banner img { max-height: 30px; max-width: 120px; background: #fff; border-radius: 4px; padding: 2px 6px; }
.stm-banner b { color: #fff; border: 1px solid #5b6e86; border-radius: 6px; padding: 3px 8px; }
.stm-hero { background: var(--a); color: #fff; padding: 22px 16px 18px; }
.stm-hero p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: 14px; }
.stm-hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.stm-hero .stm-lang { color: #fff; }
.stm-hero-btns { display: flex; gap: 8px; margin-top: 14px; }
.stm-hero-btns .stm-btn { flex: 1; }
.stm-lang { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }

.stm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--ink); color: #fff !important; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.stm-btn.is-sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.stm-btn.is-light { background: #fff; color: var(--a) !important; }
.stm-btn.is-ghost { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.stm-btn.is-ghost-dark { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.stm-btn.is-danger { background: var(--bad); }
.stm-btn.is-block { display: flex; margin: 12px 16px 0; }

.stm-tabs { display: flex; gap: 4px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 0; z-index: 5; }
.stm-tabs a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.stm-tabs a.is-on { background: var(--ink); color: #fff; }
.stm-tab { scroll-margin-top: 64px; }

.stm-note { margin: 12px 16px 0; padding: 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid #f1d9b5; font-size: 14px; }
.stm-note b { color: #7a3a05; }
.stm-note.is-ok { background: var(--ok-bg); border-color: #b8e0cd; color: var(--ok); font-weight: 700; }

.stm-match { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.stm-match.is-live { border: 2px solid var(--ok); }
.stm-match.is-disputed { border-color: var(--bad); }
.stm-match-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stm-live { color: var(--ok); font-weight: 800; }
.stm-side { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; padding: 2px 0; }
.stm-side b { font-size: 20px; min-width: 24px; text-align: right; }
.stm-side.is-us { font-weight: 800; }
.stm-side.is-win span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.stm-side small { font-size: 12px; color: var(--muted); }
.stm-cmatch .stm-match { border: 0; padding: 0; margin: 0 0 6px; }

.stm-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.stm-log th { font-size: 12px; color: var(--muted); text-align: left; padding: 4px; border-bottom: 1px solid var(--line); }
.stm-log td { padding: 7px 4px; border-bottom: 1px solid #eef1f4; }
.stm-log td:first-child { border-left: 4px solid transparent; padding-left: 6px; }
.stm-log tr.is-q td:first-child { border-left-color: var(--ok); }
.stm-log tr.is-us td { background: var(--ok-bg); font-weight: 700; }
.stm-log th:not(:first-child), .stm-log td:not(:first-child) { text-align: center; width: 34px; }
.stm-logtitle { font-weight: 800; margin-bottom: 4px; }

.stm-path { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stm-path li { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eef1f4; font-size: 14px; }
.stm-path li:last-child { border-bottom: 0; }
.stm-path li > b { color: var(--ok); width: 36px; flex: none; }

.stm-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stm-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin: 0; }
.stm-crest { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #6b7c93; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; overflow: hidden; }
.stm-crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.stm-teamhead { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.stm-teamhead .stm-crest { width: 52px; height: 52px; font-size: 16px; }
.stm-teamhead > div { flex: 1; min-width: 0; }
.stm-teamhead .stm-h1 { font-size: 24px; }

.stm-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.stm-infocard { margin: 0; font-size: 14px; }
.stm-infocard p { margin: 4px 0 0; color: var(--muted); }
.stm-prod { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.stm-prod .stm-small { display: block; }
.stm-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stm-partners a { display: flex; align-items: center; justify-content: center; min-height: 56px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); }
.stm-partners img { max-width: 100%; max-height: 44px; object-fit: contain; }
.stm-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stm-photos img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }

/* Coach link */
.stm-private { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; background: var(--warn-bg); border-bottom: 1px solid #f1d9b5; font-size: 13px; }
.stm-private b { color: #7a3a05; }
.stm-private .stm-btn { background: #fff; color: #7a3a05 !important; border: 1px solid #e2be8a; flex: none; }
.stm-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f4; }
.stm-check-row > span:nth-child(2) { flex: 1; min-width: 140px; }
.stm-tick { width: 28px; height: 28px; border-radius: 999px; background: #f6e1c1; color: #7a3a05; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.stm-tick.is-on { background: var(--ok); color: #fff; }
.stm-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.stm-inline input, .stm-check-row input[type=color] { min-height: 38px; }
.stm-check-row input[type=color] { width: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.stm-cform { margin: 0; }
.stm-sheet { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.stm-sheet th { font-size: 12px; color: var(--muted); text-align: left; padding: 4px; }
.stm-sheet td { padding: 3px; }
.stm-sheet input[type=text] { width: 100%; min-height: 40px; border: 1px solid #c3ccd6; border-radius: 8px; padding: 0 8px; font: inherit; }
.stm-sheet td:first-child { width: 64px; }
.stm-sheet input[type=checkbox] { width: 22px; height: 22px; }
.stm-declare { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 6px 0 10px; }
.stm-scorein { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.stm-scorein label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.stm-scorein input { width: 72px; min-height: 44px; font-size: 20px; font-weight: 800; text-align: center; border: 1px solid #c3ccd6; border-radius: 8px; }
.stm-scorein .stm-small input { width: 56px; font-size: 15px; }
.stm-dispute summary { cursor: pointer; color: var(--bad); font-weight: 600; margin: 8px 0; }

/* Click Pack embed: sits in the theme container as a card, like the listing's other blocks. */
.stm-embed-wrap { padding-top: 24px; padding-bottom: 6px; }
.stm-embed { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(14,34,56,.08); overflow: hidden; margin: 0 15px; }
.stm-embed .stm-pub, .stm-embed .stm-wrap { max-width: none; min-height: 0; background: transparent; }
.stm-embed .stm-tabs { position: static; border-radius: 10px 10px 0 0; }
.stm-embed > .stm-small { padding: 0 16px 16px; }
@media (max-width: 767px) { .stm-embed { margin: 0; } .stm-embed-wrap { padding-top: 16px; } }
@media (min-width: 768px) {
	.stm-embed .stm-tab { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; padding: 18px 20px 8px; }
	.stm-embed .stm-tab > * { margin: 0; }
	.stm-embed .stm-tab > .stm-h2, .stm-embed .stm-tab > .stm-h3, .stm-embed .stm-tab > p, .stm-embed .stm-tab > .stm-ko, .stm-embed .stm-tab > .stm-teams, .stm-embed .stm-tab > h4 { grid-column: 1 / -1; }
	.stm-embed .stm-tab > .stm-logcard { grid-column: span 1; }
	.stm-embed .stm-teams { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
	.stm-embed #stm-logs { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
}
@media (min-width: 768px) {
	.stm-embed .stm-ko { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
	.stm-embed .stm-ko > * { margin: 0; }
	.stm-embed .stm-ko > .stm-h3, .stm-embed .stm-ko > h3, .stm-embed .stm-ko > p { grid-column: 1 / -1; }
}
a.stm-team.is-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.stm-team.is-link > span:not(.stm-crest) { flex: 1; }
a.stm-team.is-link > .stm-crest { flex: 0 0 auto; }
a.stm-team.is-link > i { font-style: normal; font-size: 20px; color: var(--muted); margin-left: 6px; }
a.stm-team.is-link:hover, a.stm-team.is-link:focus-visible { border-color: var(--a); box-shadow: 0 3px 10px rgba(14,34,56,.10); transform: translateY(-1px); }
a.stm-team.is-link:hover > i { color: var(--a); }

/* Build 2 · pitch scorer */
.is-scorer .stm-scard { padding: 12px 14px; margin-bottom: 10px; }
.is-scorer .stm-scard .stm-match { border: 0; padding: 0; margin: 0 0 8px; }
.is-scorer .stm-scard.is-live { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.stm-step { display: grid; grid-template-columns: 1fr 52px 64px 52px; gap: 8px; align-items: center; margin: 8px 0; }
.stm-step span { font-weight: 700; font-size: 15px; }
.stm-step input { height: 52px; text-align: center; font-size: 26px; font-weight: 800; border: 1px solid var(--line); border-radius: 10px; width: 100%; -moz-appearance: textfield; }
.stm-step input::-webkit-outer-spin-button, .stm-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stm-step-btn { height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 26px; font-weight: 700; color: var(--ink); cursor: pointer; }
.stm-step-btn:active { background: var(--a); color: #fff; }
.stm-so-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 8px 10px; background: var(--warn-bg); border-radius: 10px; }
.stm-so-row span.stm-small { flex: 1; color: var(--warn); }
.stm-so-row input { width: 56px; height: 40px; text-align: center; font-size: 18px; border: 1px solid var(--line); border-radius: 8px; }
.stm-done summary { cursor: pointer; }
.stm-note.is-bad { background: var(--bad-bg); color: var(--bad); }
/* Build 2 · partners */
.stm-pp { font-style: normal; color: var(--muted); font-size: 12px; }
.stm-pp::before { content: "· "; }
.stm-award { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.stm-award img { max-height: 32px; max-width: 110px; object-fit: contain; }
.stm-embed .stm-tab > .stm-award { grid-column: 1 / -1; }
.stm-offer { display: flex; gap: 14px; align-items: center; }
.stm-offer p { margin: 4px 0 8px; }
.stm-offer-logo { flex: 0 0 72px; display: flex; align-items: center; justify-content: center; }
.stm-offer-logo img { max-width: 72px; max-height: 56px; object-fit: contain; }
.stm-offer code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-weight: 700; }

/* Build 3 · crests, scorers, player of the match */
.stm-crest.has-logo { background: transparent !important; padding: 0; }
.stm-crest.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.stm-side .stm-crest { width: 22px; height: 22px; min-width: 22px; font-size: 8px; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.stm-side > span { display: inline-flex; align-items: center; }
.stm-scorers { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; font-size: 13px; color: #33415a; display: flex; flex-direction: column; gap: 2px; }
.stm-kind { color: var(--muted); font-size: 12px; }
.stm-potm { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 6px 10px; background: var(--warn-bg); color: var(--ink); border-radius: 10px; font-size: 13px; }
.stm-potm svg { color: var(--warn); flex: 0 0 auto; }
.stm-top { padding: 4px 12px; }
.stm-teampartners .stm-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
/* goal picker (also used on My Account) */
.stm-goals { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; background: #fff; }
.stm-goals-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.stm-goals-count { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.stm-goals-count.is-ok { background: var(--ok-bg, #e3f3ec); color: var(--ok, #0b7a55); }
.stm-goals-count.is-warn { background: var(--warn-bg, #fdf6ec); color: var(--warn, #8a4a06); }
.stm-goals-count.is-flash { outline: 3px solid var(--bad, #b42318); }
.stm-goals-side { font-size: 12px; font-weight: 800; color: var(--muted, #556275); margin: 8px 0 4px; }
.stm-goal-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 6px; margin-bottom: 6px; }
.stm-goal-row select { height: 44px; border: 1px solid var(--line, #dde3ea); border-radius: 8px; padding: 0 8px; font-size: 15px; background: #fff; min-width: 0; }
.stm-potmpick { margin-top: 8px; font-size: 14px; }
.stm-potmpick summary { cursor: pointer; font-weight: 700; }
.stm-potmpick form { display: flex; gap: 6px; margin-top: 6px; }
.stm-potmpick select { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
/* photos upload */
.stm-upload .stm-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.stm-upload select { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-weight: 400; }
.stm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stm-chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.stm-chip.is-on { background: var(--a); border-color: var(--a); color: #fff; font-weight: 700; }
.stm-dropzone { display: flex; align-items: center; justify-content: center; min-height: 96px; border: 2px dashed var(--a); border-radius: 12px; background: var(--bg); color: var(--a); font-weight: 700; cursor: pointer; text-align: center; padding: 10px; margin-bottom: 10px; }
.stm-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stm-upgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.stm-uptile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eef1f4; }
.stm-uptile img { width: 100%; height: 100%; object-fit: cover; }
.stm-uptile span { position: absolute; left: 4px; bottom: 4px; right: 4px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }
.stm-uptile.is-live span { background: var(--ok-bg); color: var(--ok); }
.stm-uptile.is-wait span { background: var(--warn-bg); color: var(--warn); }
.stm-uptile.is-fail span { background: var(--bad-bg); color: var(--bad); }
.stm-photos a { display: block; }

/* 0.5.1: game cards for photo uploads, and Click Pack info images that fit their card */
.stm-gamepick { border: 0; padding: 0; margin: 0 0 10px; }
.stm-gamepick legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.stm-gamecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.stm-gamecard { position: relative; display: block; cursor: pointer; }
.stm-gamecard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stm-gamecard span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.stm-gamecard small { font-size: 12px; color: var(--muted); font-weight: 400; }
.stm-gamecard small b { color: var(--a); }
.stm-gamecard input:checked + span { border: 2px solid var(--a); padding: 9px 11px; background: var(--bg); }
.stm-gamecard input:focus-visible + span { outline: 3px solid var(--a); outline-offset: 2px; }
.stm-moregames { margin-top: 8px; }
.stm-moregames summary { cursor: pointer; font-size: 13px; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.stm-infocard { overflow: hidden; min-width: 0; }
.stm-infocard img, .stm-infocard video, .stm-infocard iframe { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px 0; }
.stm-infocard * { overflow-wrap: anywhere; }

/* Partner banner (0.5.2): the partner's Cover Image, same height for everyone (8:3), cropped from the centre. */
.stm-pbanner { background: #0e2238; color: #fff; }
.stm-pb-stage { position: relative; aspect-ratio: 8 / 3; overflow: hidden; background: #0e2238; }
.stm-pb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.stm-pb-slide.is-on { opacity: 1; visibility: visible; }
.stm-pb-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stm-pb-tag { position: absolute; z-index: 2; top: 8px; left: 8px; background: rgba(255,255,255,.93); color: #0e2238; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; pointer-events: none; }
.stm-pb-cap { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 12px 6px 16px; font-size: 13px; font-weight: 600; }
.stm-pb-name { display: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm-pb-name.is-on { display: block; }
.stm-pb-dots { display: flex; margin-left: auto; }
.stm-pb-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.stm-pb-dots button::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.stm-pb-dots button.is-on::after { background: #fff; }
@media (prefers-reduced-motion: reduce) { .stm-pb-slide { transition: none; } }

/* Rugby tries (0.6.0) */
.stm-tries { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.stm-tries .stm-small { min-width: 48px; font-weight: 600; }
.stm-tries input { width: 64px; font-size: 18px; text-align: center; padding: 8px; border: 1px solid #cdd5e1; border-radius: 8px; }

/* Tennis rubbers (0.7.0) */
.stm-rubbers { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.stm-rubber { border: 1px solid #dde3ec; border-radius: 10px; padding: 8px 10px; margin: 0; background: #fff; }
.stm-rubber legend { font-size: 12px; font-weight: 700; color: #4a5a72; padding: 0 4px; }
.stm-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--sets, 1), 52px); gap: 6px; align-items: center; }
.stm-rname { min-width: 0; font-size: 14px; padding: 8px; border: 1px solid #cdd5e1; border-radius: 8px; }
.stm-rset { font-size: 18px; text-align: center; padding: 8px 0; border: 1px solid #cdd5e1; border-radius: 8px; width: 100%; box-sizing: border-box; }
.stm-wo { display: block; margin-top: 6px; }
.stm-rsum { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.stm-rsum li { padding: 3px 0; border-top: 1px solid #eef1f5; }
.stm-rsum span { font-weight: 700; }

/* Cricket (0.8.0) */
.stm-cricket { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.stm-crow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 6px; align-items: center; font-size: 14px; }
.stm-crow input { font-size: 18px; text-align: center; padding: 8px 0; border: 1px solid #cdd5e1; border-radius: 8px; width: 100%; box-sizing: border-box; }
.stm-nr { display: block; }

/* 0.9.0 golf match play */
.stm-golf .stm-ggrid{display:grid;grid-template-columns:minmax(0,1fr) 4.5em;gap:6px;margin:4px 0}
.stm-golf .stm-ggrid:not(:has(.stm-ghcp)){grid-template-columns:minmax(0,1fr)}
.stm-golf .stm-ghcp{width:100%;text-align:center}
.stm-golf .stm-gres{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.stm-golf .stm-gres select{max-width:100%}

/* 0.10.4 Summary ([stm_summary], Click Pack Summary tab): a few big numbers in the site's navy and accent. */
/* 0.10.6: sits inside the Summary tab's own container, edge to edge with its blocks (MyListing: 10 px column padding, 20 px gutters). */
.stm-sum-wrap{margin:0 -5px;padding:0 0 20px;box-sizing:border-box}
.stm-sum-wrap.is-own{margin:0 auto;padding:20px 15px}
@media (min-width:768px){.stm-sum-wrap .stm-sum-in,.stm-sum-wrap .stm-sum-tiles,.stm-sum-wrap .stm-sum-two,.stm-sum-wrap .stm-sum-hl{gap:20px}.stm-sum-wrap .stm-sum-in{margin:0}}
.stm-sum-row.is-2{grid-template-columns:minmax(0,1fr) auto}
.stm-sum{--sa:var(--stm-sum-accent,#c2410c);background:transparent}
.stm-sum-in{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.stm-sum-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stm-sum-head{border-top:4px solid #15294d}
.stm-sum-k{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.stm-sum-k.is-acc,.stm-sum .is-acc{color:var(--sa)}
.stm-sum-title{font-size:18px;font-weight:800;line-height:1.2;margin:2px 0}
.stm-sum-big{font-size:26px;font-weight:800;line-height:1.15;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.stm-sum-m{font-size:18px;font-weight:800;line-height:1.25}
.stm-sum-s{font-size:12px;color:var(--muted);line-height:1.35}
.stm-sum-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.stm-sum-hl{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.stm-sum-hl:empty{display:none}
.stm-sum-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.stm-sum-bar{display:flex;align-items:center;gap:8px;margin-top:6px}
.stm-sum-bar>span{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.stm-sum-bar i{display:block;height:6px;border-radius:3px;background:var(--sa)}
.stm-sum-bar b{font-size:12px;white-space:nowrap}
.stm-sum-count{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin-top:6px}
.stm-sum-count span{font-size:15px;font-weight:700}.stm-sum-count small{font-size:12px;color:var(--muted)}
.stm-sum-row{display:grid;grid-template-columns:minmax(64px,auto) minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #eef1f4;font-size:13px}
.stm-sum-row:nth-child(2){border-top:0}
.stm-sum-row small{color:var(--muted);font-size:12px}
.stm-sum-row.is-final b:first-child{color:var(--sa)}
.stm-sum-ages{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px 10px;margin-top:4px}
.stm-sum-ages>div{display:flex;flex-direction:column;min-width:0}
.stm-sum-pod{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.stm-sum-pod>.stm-sum-k{grid-column:1/-1}
.stm-sum-pod>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px;border-radius:10px;background:#f4f6f8;font-size:13px}
.stm-sum-pod>div.is-p1{background:#fff3ea;outline:2px solid var(--sa)}
.stm-sum-pod small{font-size:11px;font-weight:700;text-transform:uppercase;color:var(--muted)}
.stm-sum-pod img{width:40px;height:40px;object-fit:contain}
.stm-sum-btns{display:flex;gap:6px;flex-wrap:wrap}
.stm-sum-btns a{font-size:12px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#15294d;text-decoration:none;font-weight:600}
.stm-sum-foot{margin:0}
@media (max-width:480px){
	.stm-sum-tiles{grid-template-columns:1fr 1fr}
	.stm-sum-tiles>:last-child:nth-child(odd){grid-column:1/-1}
	.stm-sum-row{grid-template-columns:minmax(28px,auto) minmax(0,1fr) auto}
	.stm-sum-big{font-size:22px}
	.stm-sum-title{font-size:16px}
	.stm-sum-m{font-size:16px}
}
