/* Matchweek — design F tokens */
:root {
  --bg: #000000;
  --tile: #161617;
  --text: #F5F5F7;
  --soft: #86868B;
  --fill: #2C2C2E;
  --sep: #2A2A2C;
  --edge: #1D1D1F;
  --bubble: #262628;
  --no-bg: #3B1715;
  --no: #FF6961;
  --link: #2997FF;
  --faded: #48484A;
  --maxw: 430px;
  --top: calc(env(safe-area-inset-top) + 60px);
  --bottom: calc(env(safe-area-inset-bottom) + 64px);
}

* { box-sizing: border-box; }
html { height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* iOS home-screen app: short pages left the tab bar floating up by the status-bar height */
  min-height: calc(100% + env(safe-area-inset-top));
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; padding: 0; background: transparent; color: inherit; }
button:disabled { cursor: default; }
input { font-family: inherit; }
input::placeholder { color: var(--soft); }
h1, h2, p { margin: 0; }

/* Frosted bars */
.topbar, .tabbar {
  position: fixed; left: 0; right: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.topbar { top: 0; background: rgba(0,0,0,0.72); border-bottom: 1px solid var(--edge); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.wordmark { font-size: 27px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.wordmark span { color: var(--soft); }
.avatar-btn { width: 36px; height: 36px; border-radius: 99px; background: var(--text); color: #000; font-size: 13px; font-weight: 600; }

.tabbar { bottom: 0; background: rgba(22,22,23,0.8); border-top: 1px solid var(--edge); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 6px 8px 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tab { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--soft); font-size: 10.5px; font-weight: 500; }
.tab.active { color: var(--text); }
.tab.active svg.fillable { fill: currentColor; }

main { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--top) + 14px) 16px calc(var(--bottom) + 24px); }

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.mt10 { margin-top: 10px; }
.pad4 { padding: 0 4px; }
.spread { display: flex; justify-content: space-between; align-items: center; }
.soft { color: var(--soft); }
.b15 { font-size: 15px; }
.t14 { font-size: 14px; }
.row + .row { border-top: 1px solid var(--sep); }

/* Type */
.page-head { padding: 0 4px; display: flex; flex-direction: column; gap: 4px; }
.page-head.gap6 { gap: 6px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--soft); }
.title { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.title.t36 { font-size: 36px; }
.h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; padding: 0 4px; }
.label { font-size: 14px; font-weight: 600; color: var(--soft); }
.small-label { font-size: 12px; color: var(--soft); }

/* Tiles and lists */
.tile { background: var(--tile); border-radius: 28px; }
.pad20 { padding: 20px; }
.list { background: var(--tile); border-radius: 28px; padding: 4px 18px; }
.list.p20 { padding: 4px 20px; }

/* Buttons */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pill-big { height: 52px; border-radius: 99px; background: var(--fill); color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.round { width: 40px; height: 40px; border-radius: 99px; background: var(--fill); color: var(--text); display: grid; place-items: center; }
.on-yes { background: var(--text); color: #000; }
.on-no { background: var(--no-bg); color: var(--no); }
.chips { display: flex; gap: 8px; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 99px; background: var(--tile); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--text); color: #000; }
.seg { display: grid; background: var(--tile); border-radius: 99px; padding: 4px; }
.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg button { min-height: 38px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.seg-4 button { font-size: 13px; }
.seg button.on { background: var(--text); color: #000; }

/* Home: Up next carousel */
.card { flex: 0 0 75%; background: var(--tile); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card .label { font-size: 12px; }
.card .small-label { font-size: 11px; }
.countdown { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.countdown::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--text); }
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.card-when { font-size: 17px; color: var(--soft); letter-spacing: -0.01em; }
.card .card-when { font-size: 14px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats3 > div { display: flex; flex-direction: column; gap: 4px; }
.stats3 > div + div { padding-left: 14px; border-left: 1px solid var(--sep); }
.card .stats3 > div { gap: 2px; }
.card .stats3 > div + div { padding-left: 10px; }
.stat-v { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.counts { font-size: 12px; color: var(--soft); }
.card .pair { gap: 8px; }
.card .pill-big { height: 40px; font-size: 15px; }
.car-nav { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.arrow { width: 36px; height: 36px; border-radius: 99px; background: var(--tile); color: var(--text); display: grid; place-items: center; }
.arrow:disabled { color: var(--faded); }
.dots { display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--faded); transition: width 0.3s; }
.dot.on { width: 22px; background: var(--text); }

/* Home: feed */
.post { background: var(--tile); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 99px; background: var(--fill); display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: -0.01em; }
.av.mine { background: var(--text); color: #000; }
.post-who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.post-team { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.post-meta { font-size: 13px; color: var(--soft); }
.scorebox { background: #000; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.score-row .away { text-align: right; color: var(--soft); }
.score { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); }
.post-text { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.post-actions { display: flex; gap: 18px; align-items: center; }
.like, .comments { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--soft); }
.like.on { color: var(--no); }
.like.on svg { fill: currentColor; }

/* Calendar */
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.ev-open { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; min-height: 48px; }
.ev-date { display: flex; flex-direction: column; }
.ev-dow { font-size: 12px; font-weight: 600; color: var(--soft); }
.ev-day { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.ev-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ev-sub { font-size: 14px; color: var(--soft); }
.rounds { display: flex; gap: 8px; }
.hint { padding: 0 4px; font-size: 13px; color: var(--soft); }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: var(--link); font-size: 17px; }
.group-label { padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--soft); }
.people { background: var(--tile); border-radius: 22px; padding: 4px 16px; }
.person { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.ini { width: 32px; height: 32px; flex-shrink: 0; border-radius: 99px; background: var(--fill); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.pname { font-size: 16px; flex: 1; }

/* Team */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.big-tile { background: var(--tile); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.big-num { font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.form-row { display: flex; gap: 8px; }
.res { border-radius: 99px; display: grid; place-items: center; font-weight: 700; border: 1.5px solid; flex-shrink: 0; }
.res.W { background: var(--text); color: #000; border-color: var(--text); }
.res.D { background: var(--fill); color: var(--text); border-color: var(--fill); }
.res.L { background: transparent; color: var(--no); border-color: var(--no); }
.res.lg { width: 44px; height: 44px; font-size: 16px; }
.res.sm { width: 30px; height: 30px; font-size: 12px; }
.pwdl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sep); padding-top: 12px; }
.pw { display: flex; flex-direction: column; }
.pw-n { font-size: 22px; font-weight: 700; }
.list-cap { padding: 16px 0 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.scorer { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--sep); font-size: 17px; }
.scorer-n { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.tbl { padding: 8px 16px; }
.tbl-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 22px 22px 22px 30px 30px; gap: 6px; align-items: center; padding: 11px 0; border-top: 1px solid var(--sep); font-size: 15px; font-variant-numeric: tabular-nums; color: #C7C7CC; }
.tbl-row.head { padding: 10px 0; border-top: 0; font-size: 12px; font-weight: 600; color: var(--soft); }
.tbl-row.me { color: var(--text); font-weight: 700; }
.tbl-row .pos { color: var(--soft); }
.tbl-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-row .r { text-align: right; }
.tbl-row .pts { text-align: right; font-weight: 700; }
.res-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.res-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-opp { font-size: 16px; font-weight: 600; }
.res-meta { font-size: 13px; color: var(--soft); }
.res-score { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coach { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.coach-name { font-size: 17px; font-weight: 600; }
.player { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.player-num { font-size: 15px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.player-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.player-goals { font-size: 15px; color: var(--soft); }
.player-goals b { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }

/* Chat */
.msgs { display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 78%; align-self: flex-start; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-who { padding: 0 12px; font-size: 12px; color: var(--soft); }
.bubble { padding: 10px 15px; border-radius: 20px; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; background: var(--bubble); overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--text); color: #000; }
.composer input { flex: 1; min-width: 0; height: 44px; border-radius: 99px; border: 1px solid var(--sep); background: var(--tile); color: var(--text); padding: 0 18px; font-size: 16px; outline-color: var(--text); }
.send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 99px; background: var(--text); color: #000; display: grid; place-items: center; }

/* Me */
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; }
.big-av { width: 92px; height: 92px; border-radius: 99px; background: var(--text); color: #000; display: grid; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.profile-name { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; }
.me-stats > div + div { padding-left: 16px; }
.me-stats > div { gap: 2px; }
.me-n { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toggle-label { font-size: 17px; }
.toggle-hint { font-size: 13px; color: var(--soft); }
.switch { width: 51px; height: 31px; border-radius: 99px; padding: 2px; background: var(--fill); display: flex; justify-content: flex-start; flex-shrink: 0; transition: background 0.2s; }
.switch span { width: 27px; height: 27px; border-radius: 99px; background: var(--soft); }
.switch.on { background: var(--text); justify-content: flex-end; }
.switch.on span { background: #000; }
.set-row { display: flex; align-items: center; width: 100%; min-height: 54px; font-size: 17px; text-align: left; }
.set-row span { flex: 1; }
.set-row.danger { color: var(--no); }

/* Up next carousel: drag, plus pull past the last card to open Calendar */
.car-wrap { position: relative; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.car-track { position: relative; z-index: 1; display: flex; gap: 12px; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.car-track.dragging { transition: none; }
.car-pull { position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; }
.pull-circle { width: 44px; height: 44px; border-radius: 99px; border: 2px solid var(--text); color: var(--text); display: grid; place-items: center; transition: background 0.15s, color 0.15s, transform 0.15s; }
.pull-circle > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 0.15s; }
.pull-tick { opacity: 0; }
.car-pull.armed .pull-circle { background: var(--text); color: #000; transform: scale(1.1); }
.car-pull.armed .pull-arrow { opacity: 0; }
.car-pull.armed .pull-tick { opacity: 1; }
.pull-label { font-size: 11px; font-weight: 600; color: var(--soft); }
.tap { cursor: pointer; }
.post.tap:active, .res-row.tap:active { opacity: 0.8; }

/* Detail pages */
.scorebox.big .score { font-size: 44px; }
.scorebox.big .score-row { font-size: 17px; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 16px; }
.info-v { text-align: right; font-weight: 600; }
.res-inline { display: inline-flex; align-items: center; gap: 8px; }
.comment { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.comment-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.comment-who { font-size: 14px; font-weight: 600; }
.comment-text { font-size: 15px; line-height: 1.35; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; color: var(--soft); font-size: 15px; }

/* Chat: message box sits just above the tab bar */
main.chat-mode { padding-bottom: calc(var(--bottom) + 84px); }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom) + 1px); z-index: 9; padding: 8px 16px; background: rgba(0,0,0,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--edge); }
.composer-inner { max-width: calc(var(--maxw) - 32px); margin: 0 auto; display: flex; gap: 8px; align-items: center; }
body.typing .tabbar { display: none; }

/* Me: linked account and quick buttons */
.acct { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.acct-badge { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.acct-status { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 99px; background: var(--fill); color: var(--text); font-size: 14px; font-weight: 600; flex-shrink: 0; }
.acct-status:hover { text-decoration: none; }
.acct-status:active { opacity: 0.8; }

/* Chat: channel switcher stays at the top while messages scroll */
.chat-bar { position: sticky; top: calc(var(--top) + 1px); z-index: 5; margin: -14px -16px 0; padding: 10px 16px; background: rgba(0,0,0,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.quick { background: var(--tile); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
.quick-ic { width: 40px; height: 40px; border-radius: 99px; background: var(--fill); display: grid; place-items: center; }
.quick-text { display: flex; flex-direction: column; gap: 2px; }
.quick-label { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.quick-hint { font-size: 13px; color: var(--soft); }

/* Roles: profile sheet, toast, forms, manager and club admin pages */
.h2.nopad { padding: 0; }
.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips { align-items: center; }
.chip.plus { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: var(--text); color: #000; }
.round-plus { width: 40px; height: 40px; flex-shrink: 0; border-radius: 99px; background: var(--text); color: #000; display: grid; place-items: center; }
.pill-big.wide { width: 100%; }
.pill-big:disabled { color: var(--soft); background: var(--fill); }
.round.sm { width: 32px; height: 32px; flex-shrink: 0; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 99px; background: var(--fill); font-size: 13px; font-weight: 600; }
.pad-sm { padding: 16px; }
.tile .chip { background: var(--fill); }
.tile .chip.on { background: var(--text); color: #000; }
.big-num.sm { font-size: 36px; }
.tap-tile { align-items: flex-start; text-align: left; cursor: pointer; }
.row-btn { width: 100%; text-align: left; }
.wk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0; text-align: left; }
.team-badge { width: 40px; height: 40px; border-radius: 99px; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.wk-miss { font-size: 13px; font-weight: 600; color: var(--soft); text-align: right; }
.wk-miss.warn { color: var(--no); }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-align: left; }
.goal-n { min-width: 18px; text-align: center; font-size: 17px; font-weight: 700; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step-col { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.step-col .label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step-n { min-width: 40px; text-align: center; font-size: 44px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fee-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.bar { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--text); }
.invite-link { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.field { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--sep); background: var(--tile); color: var(--text); padding: 0 16px; font-size: 16px; font-family: inherit; font-weight: 400; outline-color: var(--text); -webkit-appearance: none; appearance: none; color-scheme: dark; }
.field.area { height: auto; padding: 14px 16px; line-height: 1.4; resize: vertical; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); min-width: 0; }
.select { max-width: 60%; height: 36px; border: 0; border-radius: 99px; background: var(--fill); color: var(--text); padding: 0 14px; font-size: 15px; font-weight: 600; font-family: inherit; color-scheme: dark; }

.sheet-wrap { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-wrap.open { pointer-events: auto; }
.sheet-back { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity 0.25s; }
.sheet-wrap.open .sheet-back { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--maxw); margin: 0 auto; background: #1C1C1E; border-radius: 28px 28px 0 0; padding: 10px 16px calc(env(safe-area-inset-bottom) + 20px); display: flex; flex-direction: column; gap: 14px; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-handle { align-self: center; width: 36px; height: 5px; border-radius: 99px; background: var(--faded); }
.sheet-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; }
.sheet .chip { background: var(--fill); }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottom) + 16px); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; background: var(--text); color: #000; font-size: 15px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* BetterKdul data in Matchweek */
.card-ic { display: inline-block; width: 10px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.card-ic.Y { background: #FFD60A; }
.card-ic.R { background: var(--no); }
.line-ic { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.icon-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.conf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--soft); }
.conf.bad { color: var(--no); }
.neg { color: var(--no); }
.neg-tag { align-self: flex-start; color: var(--no); background: var(--no-bg); }
.ev-row.muted .ev-open { opacity: 0.5; }
.res.xs { width: 26px; height: 26px; font-size: 11px; }
.res.todo { background: transparent; border-color: var(--faded); }
.form-row.sm { gap: 6px; }
.opp-head { display: flex; align-items: center; gap: 12px; }
.team-badge.lg { width: 48px; height: 48px; font-size: 14px; flex-shrink: 0; }
.opp-info { border-top: 1px solid var(--sep); }
.tile .field { background: var(--fill); border-color: transparent; }
.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg-5 button { font-size: 12px; }
.scorer.me { font-weight: 700; }
.tie-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 13px 0; font-size: 15px; }
.tie-t.me { font-weight: 700; }
.tie-t.r { text-align: right; }
.tie-note { grid-column: 1 / -1; font-size: 12px; color: var(--soft); }
.link-row { align-self: flex-start; padding: 0 4px; font-size: 15px; font-weight: 600; }

/* Goals by half */
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--sep); padding-top: 10px; }
.half { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.half-l { font-size: 12px; font-weight: 600; color: var(--soft); }
.half-g { font-size: 14px; font-weight: 600; color: var(--text); }
.scorebox.big .half-g { font-size: 16px; }
.wk-row .res-score { font-size: 17px; }

/* Notification permission sheet */
.push-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--fill); display: grid; place-items: center; align-self: center; margin-top: 6px; }
.push-title { text-align: center; }
.push-text { margin: 0; text-align: center; font-size: 16px; line-height: 1.45; color: #A1A1A6; padding: 0 6px; }
.push-later { min-height: 44px; font-size: 16px; font-weight: 600; color: var(--soft); }
.toast { white-space: normal; max-width: calc(100vw - 48px); text-align: center; }
