/* SWABT team operations. Scoped by the standalone portal; no global website CSS. */
:root {
    --tm-ink: #1b2b22;
    --tm-muted: #5f7065;
    --tm-accent: #24583f;
    --tm-accent-hover: #18452e;
    --tm-paper: #f5f7f3;
    --tm-surface: #ffffff;
    --tm-soft: #edf3eb;
    --tm-line: #dbe3da;
    --tm-focus: #326e4d;
    --tm-radius: 14px;
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", sans-serif;
    color: var(--tm-ink);
    background: var(--tm-paper);
    font-synthesis: none;
    font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
::selection { color: #123c27; background: #d1e5c7; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: var(--tm-accent); text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.76rem; line-height: 1.25; letter-spacing: -.025em; font-weight: 720; overflow-wrap: anywhere; }
h2 { font-size: 1.41rem; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 680; }
h4 { font-size: 1rem; font-weight: 650; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
input, select, textarea {
    display: block; width: 100%; min-width: 0; min-height: 52px; margin: 7px 0 20px; padding: 12px 14px;
    border: 1px solid #bdcbbf; border-radius: 10px; color: var(--tm-ink); background: #fff; caret-color: var(--tm-accent);
    transition: border-color 160ms ease, background-color 160ms ease;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #66786b; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #7f9885; }
input:focus, select:focus, textarea:focus { outline: 3px solid #b7d4b7; outline-offset: 1px; border-color: var(--tm-focus); }
label { display: block; margin-top: 17px; font-size: 1rem; font-weight: 650; }
label small { margin-left: 4px; font-size: 1rem; font-weight: 400; color: var(--tm-muted); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--tm-focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.tm-app { width: min(1160px, 100%); min-height: 100dvh; margin: auto; padding: 0 36px 64px; }
.tm-demo-note { color: #4c6553; background: #e8eee5; text-align: center; font-size: .76rem; padding: 6px 14px; margin: 12px 0 0; border-radius: 7px; }
.tm-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--tm-line); }
.tm-brand { display: flex; align-items: center; gap: 11px; color: var(--tm-accent); text-decoration: none; flex-shrink: 0; }
.tm-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tm-accent); color: #fff; }
.tm-brand-mark svg { width: 27px; height: 27px; stroke-width: 1.5; }
.tm-brand-text { display: flex; align-items: baseline; gap: 11px; font-size: 1.18rem; font-weight: 760; letter-spacing: -.03em; }
.tm-brand-text small { color: var(--tm-muted); font-size: .82rem; letter-spacing: 0; font-weight: 450; }
.tm-desktop-nav { display: flex; align-items: center; gap: 6px; }
.tm-desktop-nav a { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 9px; color: var(--tm-muted); text-decoration: none; font-size: 1rem; font-weight: 550; }
.tm-desktop-nav a:hover { background: #eaf0e6; color: var(--tm-ink); }
.tm-desktop-nav a[aria-current] { color: var(--tm-accent); background: #e5eedf; font-weight: 700; }
.tm-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border: 0; border-radius: 8px; background: transparent; color: var(--tm-muted); font-size: 1rem; padding: 8px 10px; }
.tm-quiet:hover { background: #e8eee4; color: var(--tm-ink); }
.tm-team-heading { display: flex; align-items: center; gap: 17px; padding: 30px 0 32px; }
.tm-logo, .tm-logo-placeholder { flex-shrink: 0; width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--tm-line); border-radius: 14px; padding: 5px; }
.tm-logo-placeholder { display: grid; place-items: center; color: var(--tm-accent); }
.tm-logo-placeholder svg { width: 34px; height: 34px; }
.tm-team-identity { min-width: 0; }
.tm-team-identity p { margin-top: 6px; color: var(--tm-muted); font-size: 1rem; overflow-wrap: anywhere; }
.tm-meta-separator { margin: 0 9px; color: #8a998a; }
.tm-page-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.tm-page-title p { color: var(--tm-muted); font-size: 1rem; margin-top: 5px; }
.tm-action-group { display: flex; gap: 10px; flex-shrink: 0; }
.tm-primary, .tm-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 11px 19px; border-radius: 10px; border: 1px solid transparent; font-size: 1rem; font-weight: 650; line-height: 1.45; white-space: nowrap; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.tm-primary { color: #fff; background: var(--tm-accent); }
.tm-primary:hover { background: var(--tm-accent-hover); }
.tm-primary:active { background: #123a25; }
.tm-secondary { color: var(--tm-accent); background: #fff; border-color: #b8cbb9; }
.tm-secondary:hover { border-color: #6f9476; background: #f1f6ee; }
.tm-secondary:active { background: #e6f0e1; }
.tm-wide { width: 100%; }
.tm-panel { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); padding: 26px; }
.tm-panel > h3 { margin-bottom: 20px; }
.tm-hint { color: var(--tm-muted); font-size: 1rem; line-height: 1.65; }
.tm-required { color: #9c4535; }
.tm-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--tm-line); }
.tm-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--tm-muted); text-decoration: none; font-size: 1rem; font-weight: 500; }
.tm-tabs a[aria-current] { border-color: var(--tm-accent); color: var(--tm-accent); font-weight: 700; }
.tm-tabs a:hover { color: var(--tm-accent); }
.tm-tabs b { min-width: 24px; padding: 1px 7px; border-radius: 6px; font-size: .76rem; line-height: 1.6; text-align: center; font-weight: 650; background: #e6ece2; color: #3d5943; }
.tm-tabs a[aria-current] b { background: #dcebd4; color: #244c32; }
.tm-roster-help { margin: 16px 0 19px; color: var(--tm-muted); font-size: 1rem; }
.tm-roster { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); overflow: hidden; background: #fff; }
.tm-player { display: flex; align-items: center; gap: 14px; min-height: 85px; padding: 17px 24px; }
.tm-player + .tm-player { border-top: 1px solid #e6ebe3; }
.tm-player:hover { background: #fbfcf9; }
.tm-player-avatar { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; border-radius: 50%; color: #42634a; background: #edf3e9; font-size: 1.05rem; font-weight: 550; }
.tm-player-info { flex: 1; min-width: 0; }
.tm-player h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 1.06rem; line-height: 1.5; overflow-wrap: anywhere; }
.tm-player-info > p { margin-top: 3px; color: var(--tm-muted); font-size: 1rem; overflow-wrap: anywhere; }
.tm-badge { font-size: .65rem; color: #315f3e; background: #eaf2e4; border-radius: 4px; padding: 1px 5px; font-weight: 550; white-space: nowrap; }
.tm-player-actions { display: flex; align-items: center; flex-shrink: 0; gap: 13px; }
.tm-row-edit, .tm-row-archive { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 1rem; border-radius: 8px; padding: 9px 13px; white-space: nowrap; text-decoration: none; }
.tm-row-edit { background: #f2f6ee; border: 1px solid #d7e3d1; color: var(--tm-accent); }
.tm-row-edit:hover { background: #e4efdd; }
.tm-row-archive { background: transparent; border: 1px solid transparent; color: #74613f; }
.tm-row-archive:hover { background: #faf3e6; border-color: #e5d9bf; }
.tm-empty { padding: 44px 22px; text-align: center; }
.tm-empty > svg { width: 35px; height: 35px; margin-bottom: 14px; color: #6b886e; }
.tm-empty h3 { margin-bottom: 9px; }
.tm-empty p { max-width: 38ch; margin: 0 auto 19px; color: var(--tm-muted); font-size: 1rem; }
.tm-message { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid #bad5b8; border-radius: 11px; margin: 0 0 22px; background: #ecf5e7; color: #2c5737; font-size: 1rem; }
.tm-message > p { flex: 1; }
.tm-status-icon { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.tm-message form { margin-left: auto; }
.tm-undo { border: 0; background: transparent; color: #24583f; font-weight: 700; min-height: 44px; padding: 6px 10px; text-decoration: underline; text-underline-offset: 5px; }
.tm-error { display: block; color: #8b352d; border-color: #e5bcb3; background: #fff2ed; }
.tm-error strong { display: block; margin-bottom: 3px; }
.tm-error p { color: #8b352d; }
.tm-task-panel { margin: 0 0 27px; max-width: 780px; scroll-margin-top: 20px; }
.tm-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tm-section-head .tm-hint { margin-top: 7px; }
.tm-close-task { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; color: var(--tm-muted); font-size: 1rem; }
.tm-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; font-size: 1rem; font-weight: 600; }
.tm-text-link svg { width: 17px; height: 17px; }
.tm-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.tm-grid > div { min-width: 0; }
.tm-form-footer { display: flex; align-items: center; gap: 21px; padding-top: 15px; margin-top: 8px; border-top: 1px solid #e3e9df; }
.tm-form-footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: 1rem; color: var(--tm-muted); }
.tm-details { border-top: 1px solid var(--tm-line); padding: 16px 0; margin-top: 19px; }
.tm-details summary { min-height: 44px; cursor: pointer; color: #385d43; font-size: 1rem; font-weight: 600; }
.tm-details summary small { display: block; margin: 4px 0 0 18px; font-size: 1rem; color: var(--tm-muted); font-weight: 400; }
.tm-details[open] summary { margin-bottom: 12px; }
.tm-search { display: flex; align-items: flex-start; gap: 10px; }
.tm-search input { min-width: 0; flex: 1; margin: 0; }
.tm-search button { min-height: 52px; flex-shrink: 0; }
.tm-search-caption { display: flex; justify-content: space-between; gap: 12px; margin: 23px 0 5px; font-size: 1rem; color: #415f47; }
.tm-search-caption span { color: var(--tm-muted); font-size: 1rem; }
.tm-search-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-top: 1px solid #e1e8dc; }
.tm-search-result > div { min-width: 0; }
.tm-search-result p { margin-top: 5px; color: var(--tm-muted); font-size: 1rem; overflow-wrap: anywhere; }
.tm-search-result form { flex-shrink: 0; }
.tm-member-present { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; font-size: 1rem; color: #315f3e; }
.tm-member-present svg { width: 18px; height: 18px; }
.tm-search-empty { text-align: center; padding: 30px 10px 10px; }
.tm-search-empty p { margin: 9px 0 19px; color: var(--tm-muted); font-size: 1rem; }
.tm-profile-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 24px; }
.tm-profile-side { display: grid; gap: 24px; min-width: 0; }
.tm-profile-grid > * { min-width: 0; }
.tm-profile-grid .tm-panel { scroll-margin-top: 24px; }
.tm-profile-basics textarea { min-height: 116px; }
.tm-subsection-heading { border-top: 1px solid var(--tm-line); margin-top: 25px; padding-top: 23px; }
.tm-subsection-heading .tm-hint { margin-top: 7px; }
.tm-profile-logo { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--tm-line); border-radius: 12px; padding: 7px; background: #fff; }
.tm-logo-tools { display: flex; align-items: center; gap: 20px; margin-bottom: 21px; }
.tm-logo-form .tm-hint { margin: 8px 0 16px; }
.tm-file-label { margin-top: 0; }
.tm-file-label input { border-style: dashed; font-size: 1rem; padding: 10px; margin-bottom: 8px; }
.tm-file-label input::file-selector-button { border: 0; border-radius: 5px; background: #e9f1e3; color: var(--tm-accent); padding: 7px 10px; font: inherit; margin-right: 9px; cursor: pointer; }
.tm-manager-list { margin: 0; }
.tm-manager-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.tm-manager-list dt { color: var(--tm-muted); font-size: 1rem; flex-shrink: 0; }
.tm-manager-list dd { margin: 0; text-align: right; font-size: 1rem; font-weight: 550; overflow-wrap: anywhere; }
.tm-text-button { border: 0; background: transparent; color: #785d38; padding: 9px 1px; font-size: 1rem; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.tm-role-note { margin-top: 19px; }
.tm-matches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 22px; }
.tm-match { border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: #fff; padding: 23px; min-width: 0; }
.tm-match-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tm-match-date { display: flex; align-items: center; gap: 12px; }
.tm-date-day { color: #fff; background: var(--tm-accent); border-radius: 10px; width: 49px; height: 56px; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; font-weight: 700; }
.tm-match-date strong { display: block; font-size: 1rem; font-weight: 600; }
.tm-match-date div > span { display: block; color: var(--tm-muted); margin-top: 4px; font-size: 1rem; }
.tm-match-status { padding: 4px 8px; border-radius: 5px; font-size: .73rem; color: #3e5e45; background: #edf3e8; flex-shrink: 0; }
.tm-match-status.is-finished { color: #58675b; background: #edf0eb; }
.tm-match-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 13px; margin: 30px 0; text-align: center; min-height: 60px; }
.tm-match-teams h3 { font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.tm-match-versus { font-size: .8rem; color: #6b7e6d; white-space: nowrap; }
.tm-match-versus.is-score { font-size: 1.4rem; font-weight: 700; color: var(--tm-ink); }
.tm-match-kit { margin-top: 7px; font-size: 1rem; color: var(--tm-muted); overflow-wrap: anywhere; }
.tm-match-footer { border-top: 1px solid #e2e8de; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-match-footer p { display: flex; align-items: center; gap: 6px; color: #506857; font-size: 1rem; min-width: 0; }
.tm-match-footer p svg { width: 17px; height: 17px; }
.tm-match-footer a { min-height: 44px; padding: 8px 0; display: inline-flex; align-items: center; gap: 5px; font-size: 1rem; flex-shrink: 0; }
.tm-match-footer a svg { width: 16px; height: 16px; }
.tm-match-remark { margin-top: 14px; font-size: 1rem; color: var(--tm-muted); line-height: 1.65; }
.tm-bottom-nav { display: none; }
.tm-dialog { width: min(440px,calc(100% - 36px)); padding: 29px; border: 0; border-radius: 16px; background: #fff; color: var(--tm-ink); box-shadow: 0 24px 80px #18302040; }
.tm-dialog::backdrop { background: #15271d80; }
.tm-dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #e8f1e1; color: var(--tm-accent); border-radius: 12px; margin-bottom: 19px; }
.tm-dialog h2 { font-size: 1.24rem; }
.tm-dialog p { margin: 13px 0 27px; color: #4c6354; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.tm-dialog-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.tm-dialog[open] { animation: tm-confirm-in 160ms ease-out both; }
@keyframes tm-confirm-in { from { opacity: .75; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.tm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
/* The sign-in surface retains the same operating vocabulary. */
.tm-login-app { max-width: 1040px; padding-bottom: 32px; }
.tm-login-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: 72px; min-height: calc(100dvh - 80px); padding: 45px 0; }
.tm-login-intro { min-width: 0; }
.tm-login-intro .tm-brand-mark { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 28px; }
.tm-login-intro .tm-brand-mark svg { width: 39px; height: 39px; }
.tm-login-intro h1 { font-size: 2.25rem; line-height: 1.35; }
.tm-login-intro h1 span { display: block; color: var(--tm-accent); }
.tm-login-intro > p { margin: 19px 0 30px; color: var(--tm-muted); font-size: 1rem; line-height: 1.8; max-width: 25ch; }
.tm-login-features { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: #47654e; font-size: .85rem; }
.tm-login-features li { display: flex; gap: 6px; align-items: center; }
.tm-login-features svg { width: 19px; height: 19px; }
.tm-login-panel { padding: 31px; }
.tm-login-panel h2 { font-size: 1.29rem; margin-bottom: 5px; }
.tm-login-panel > p { color: var(--tm-muted); font-size: 1rem; margin-bottom: 20px; }
.tm-login-panel label { margin-top: 18px; }
.tm-login-panel .tm-hint { margin: -2px 0 23px; }
.tm-login-owners:empty { display: none; }
.tm-login-owners { background: #edf3e8; border-radius: 10px; padding: 17px; margin: 0 0 22px; }
.tm-login-owners p { font-size: 1rem; color: #506b57; }
.tm-login-owners p + p { border-top: 1px solid #d6e1d0; padding-top: 12px; margin-top: 12px; }
.tm-login-owners strong { display: block; margin-top: 3px; font-size: 1.13rem; font-weight: 650; color: #264c32; overflow-wrap: anywhere; }
.tm-login-footer { margin-top: 22px; color: var(--tm-muted); font-size: 1rem; text-align: center; }
.tm-team-picker { margin-bottom: 20px; }
.tm-team-picker input { margin-bottom: 8px; }
.tm-team-results { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--tm-line); border-radius: 10px; background: var(--tm-surface); }
.tm-team-result { display: block; width: 100%; min-height: 52px; padding: 11px 14px; border: 0; border-radius: 0; text-align: left; color: var(--tm-ink); background: var(--tm-surface); overflow-wrap: anywhere; }
.tm-team-result + .tm-team-result { border-top: 1px solid var(--tm-line); }
.tm-team-result:hover, .tm-team-result.is-active { background: var(--tm-soft); }
.tm-team-result strong, .tm-team-result span { display: block; }
.tm-team-result strong { font-weight: 650; }
.tm-team-result span, .tm-team-search-status { color: var(--tm-muted); font-size: .88rem; line-height: 1.5; }
.tm-team-search-status { margin: 6px 0 0; }
.tm-team-search-status:empty { display: none; }
@media (max-width: 960px) {
    .tm-app { padding-right: 25px; padding-left: 25px; }
    .tm-header { gap: 15px; }
    .tm-brand-text small { display: none; }
    .tm-desktop-nav a { padding: 10px 13px; }
    .tm-profile-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 18px; }
    .tm-panel { padding: 22px; }
    .tm-login-layout { gap: 40px; }
    .tm-player { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 740px) {
    .tm-app { padding: 0 20px 116px; }
    .tm-header { min-height: 73px; }
    .tm-brand-text small { display: inline; }
    .tm-desktop-nav { display: none; }
    .tm-team-heading { padding: 25px 0; }
    .tm-team-identity h1 { font-size: 1.48rem; }
    .tm-page-title { display: block; margin-bottom: 21px; }
    .tm-action-group { margin-top: 20px; }
    .tm-action-group > a { flex: 1; }
    .tm-player-actions { gap: 7px; }
    .tm-player-avatar { display: none; }
    .tm-player { padding: 15px 18px; gap: 9px; }
    .tm-profile-grid { display: block; }
    .tm-profile-side { margin-top: 22px; gap: 22px; }
    .tm-profile-basics { max-width: none; }
    .tm-matches { grid-template-columns: 1fr; }
    .tm-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: #fff; border-top: 1px solid var(--tm-line); padding: 8px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
    .tm-bottom-nav a { display: flex; flex: 1; min-width: 0; min-height: 58px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 4px 10px; text-decoration: none; color: #607467; border-radius: 10px; font-size: .82rem; }
    .tm-bottom-nav a[aria-current] { color: #214e33; background: #edf4e7; font-weight: 700; }
    .tm-bottom-nav svg { width: 23px; height: 23px; }
    .tm-login-app { padding-bottom: 32px; }
    .tm-login-layout { display: block; min-height: auto; padding: 28px 0 0; }
    .tm-login-intro { margin-bottom: 23px; }
    .tm-login-intro .tm-brand-mark { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px; }
    .tm-login-intro .tm-brand-mark svg { width: 26px; height: 26px; }
    .tm-login-intro h1 { font-size: 1.65rem; }
    .tm-login-intro h1 span { display: inline; margin-left: 10px; }
    .tm-login-intro > p { margin: 10px 0 0; max-width: none; font-size: 1rem; }
    .tm-login-features { display: none; }
    .tm-login-panel { padding: 24px; }
}
@media (max-width: 440px) {
    :root { font-size: 16px; }
    .tm-app { padding-right: 16px; padding-left: 16px; }
    .tm-brand-text { font-size: 1.15rem; gap: 8px; }
    .tm-brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .tm-brand-mark svg { width: 24px; height: 24px; }
    .tm-logo, .tm-logo-placeholder { width: 53px; height: 53px; border-radius: 12px; }
    .tm-team-heading { gap: 12px; padding: 23px 0 24px; }
    .tm-team-identity h1 { font-size: 1.4rem; }
    .tm-team-identity p { font-size: 1rem; line-height: 1.65; }
    .tm-meta-separator { margin: 0 5px; }
    .tm-page-title h2 { font-size: 1.34rem; }
    .tm-page-title p { font-size: 1rem; }
    .tm-action-group { gap: 9px; margin-top: 17px; }
    .tm-primary, .tm-secondary { padding: 11px 14px; font-size: 1rem; gap: 7px; }
    .tm-action-group .tm-primary, .tm-action-group .tm-secondary { min-height: 50px; }
    .tm-tabs { gap: 25px; }
    .tm-tabs a { min-height: 52px; }
    .tm-roster-help { font-size: 1rem; margin: 14px 0 17px; }
    .tm-player { min-height: 80px; padding: 14px 13px; }
    .tm-player h3 { font-size: 1.06rem; gap: 5px; }
    .tm-player-info > p { font-size: 1rem; }
    .tm-row-edit { padding: 8px 10px; font-size: 1rem; }
    .tm-row-archive { padding: 8px 5px; font-size: 1rem; }
    .tm-player-actions { gap: 5px; }
    .tm-panel { padding: 21px 18px; }
    .tm-grid { gap: 13px; }
    .tm-section-head { gap: 12px; }
    .tm-section-head > div { min-width: 0; }
    .tm-close-task { font-size: 1rem; }
    .tm-search button { padding-right: 13px; padding-left: 13px; }
    .tm-search button svg { display: none; }
    .tm-search-caption { display: block; }
    .tm-search-caption span { display: block; margin-top: 4px; }
    .tm-search-result { gap: 11px; }
    .tm-search-result .tm-secondary { padding: 10px 12px; white-space: nowrap; }
    .tm-match { padding: 20px 18px; }
    .tm-match-teams { gap: 12px; margin: 26px 0; }
    .tm-match-teams h3 { font-size: 1.03rem; }
    .tm-match-footer p { font-size: 1rem; }
    .tm-match-footer a { font-size: 1rem; }
    .tm-dialog { padding: 25px 21px; }
    .tm-login-layout { padding-top: 24px; }
    .tm-login-intro .tm-brand-mark { display: none; }
    .tm-login-intro { margin-bottom: 21px; }
    .tm-login-intro h1 { font-size: 1.65rem; }
    .tm-login-panel { padding: 23px 21px; }
    .tm-login-panel > p { font-size: 1rem; }
    .tm-login-owners { padding: 15px 16px; }
    .tm-demo-note { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.tm-login-owners.has-deputy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.tm-login-owners.has-deputy p+p{border-top:0;border-left:1px solid #d6e1d0;padding-top:0;padding-left:16px;margin-top:0}.tm-login-owners p{min-width:0}

/* Public event header; isolated from the team operation controls. */
.tm-site-header { width: min(1110px,100%); margin: 0 auto; }
.tm-site-header .swabt-site-banner { display: block; width: 100%; height: auto; }
.tm-site-header .navbar { position: relative; z-index: 20; margin: 0; background: #242222; color: #fff; }
.tm-site-header .navbar > .container { padding: 0 12px; }
.tm-site-header .navbar-header { display: none; }
.tm-site-header ul { margin: 0; padding: 0; list-style: none; }
.tm-site-header .navbar-nav { display: flex; flex-wrap: wrap; }
.tm-site-header li { position: relative; }
.tm-site-header a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 12px 16px; color: #fff; text-decoration: none; font-size: .94rem; }
.tm-site-header a:hover, .tm-site-header a:focus-visible, .tm-site-header li.open > a { background: #3c494f; color: #fff; }
.tm-site-header a:focus-visible, .tm-site-header button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tm-site-header .caret { width: 0; height: 0; border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor; }
.tm-site-header .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; width: max-content; max-width: min(360px,90vw); background: #2b3033; border: 1px solid #51595c; }
.tm-site-header .open > .dropdown-menu { display: block; }
.tm-site-header .dropdown-submenu > .dropdown-menu { left: 100%; top: 0; }
.tm-site-header .navbar-nav > li:last-child > .dropdown-menu { left: auto; right: 0; }
.tm-site-header .dropdown-menu a { white-space: normal; overflow-wrap: anywhere; }
.tm-site-header .team-menu-search { padding: 12px; }
.tm-site-header input { margin: 0; color: var(--tm-ink); background: #fff; min-height: 48px; }
.tm-site-header .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.tm-site-header [hidden] { display: none !important; }
.tm-login-layout { min-height: calc(100dvh - 330px); padding-top: 36px; padding-bottom: 36px; }
@media (max-width: 960px) {
    .tm-site-header .navbar-header { display: flex; justify-content: flex-end; }
    .tm-site-header .navbar-toggle { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 52px; height: 52px; padding: 12px; border: 0; border-radius: 0; color: #fff; background: transparent; }
    .tm-site-header .icon-bar { width: 24px; height: 2px; background: currentColor; }
    .tm-site-header .navbar-main-collapse:not(.is-open) { display: none; }
    .tm-site-header .navbar-nav { display: block; }
    .tm-site-header .navbar-nav > li + li { border-top: 1px solid #3c3b3b; }
    .tm-site-header .dropdown-menu, .tm-site-header .dropdown-submenu > .dropdown-menu { position: static; width: 100%; min-width: 0; max-width: none; border: 0; }
    .tm-site-header .dropdown-menu a { padding-left: 28px; }
    .tm-site-header .dropdown-menu .dropdown-menu a { padding-left: 40px; }
    .tm-login-layout { min-height: auto; padding: 28px 0 0; }
}
