.masthead .header-account{position:absolute;left:104px;right:auto;top:14px;display:grid;place-items:center;text-decoration:none;color:#fff}
.account-access{max-width:620px;margin:18px auto;padding:24px}
.account-access form{display:grid;gap:14px}
.account-access label{display:grid;gap:7px;font-weight:700}
.account-access input{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #7690a7;border-radius:9px;background:var(--surface,#fff);color:var(--ink,#132c43);font:inherit}
.account-access small{line-height:1.6}
.account-auth-tabs{display:flex;gap:10px;margin-bottom:22px}
.account-access [role=status]{min-height:1.6em;line-height:1.6}
.account-submit{justify-self:start;min-width:130px}
.account-access button:disabled{opacity:.6;cursor:wait}
.account-access input:focus-visible{outline:3px solid #62b6e5;outline-offset:2px}
@media(max-width:850px){.masthead .header-account{left:74px;top:8px;width:42px;height:42px}}
@media(max-width:520px){.account-access{padding:18px}}

.my-account {
  --my-paper: #f5f9fd;
  --my-card: #fff;
  --my-ink: #152d43;
  --my-muted: #465d73;
  --my-line: #d2deeb;
  display: grid;
  gap: 18px;
  color: var(--my-ink);
}
.my-account-bar {
  padding: 22px;
  color: #fff;
  background: #153451;
  border: 1px solid #547a9b;
  border-radius: 16px;
}
.my-account-bar h1 { margin: 0 0 12px; }
.my-account-bar nav,.my-directory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.my-identity>.account-access {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 20px;
  background: var(--my-paper);
  color: var(--my-ink);
  border: 1px solid var(--my-line);
  border-radius: 14px;
}
.my-identity>.account-access h2 { margin: 0; font-size: 1.2rem; }
.my-identity>.account-access p { margin: .4em 0; overflow-wrap: anywhere; }
.my-identity>.account-access [data-account-status]:empty { display: none; }
.my-panel {
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  background: var(--my-paper);
  color: var(--my-ink);
  border: 1px solid var(--my-line);
  border-radius: 16px;
  scroll-margin-block-start: 16px;
}
.my-panel>h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; font-size: 1.18rem; }
.my-icon {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #244c73;
  background: #e5edf8;
}
.my-icon svg { width: 20px; height: 20px; }
.my-control,.my-action {
  --my-action-bg: #e8f1fc;
  --my-action-ink: #213f65;
  --my-action-edge: #b6cce5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px;
  text-align: start;
  text-decoration: none;
  border-radius: 11px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
}
.my-account .tone-violet { --my-action-bg: #eee8fb; --my-action-ink: #48316e; --my-action-edge: #c8b9e9; }
.my-account .tone-bronze { --my-action-bg: #f7edde; --my-action-ink: #6d421c; --my-action-edge: #e4c8a7; }
html[data-theme] #content .my-account :is(.my-control,.my-action) {
  background: var(--my-action-bg) !important;
  color: var(--my-action-ink) !important;
  border: 1px solid var(--my-action-edge) !important;
}
html[data-theme] #content .my-account .my-action[aria-pressed="true"] {
  background: var(--my-action-ink) !important;
  color: #fff !important;
}
.my-account :is(.my-control,.my-action):hover { box-shadow: inset 0 0 0 1px currentColor; }
.my-account :is(.my-control,.my-action) .my-icon { background: #819bbb25; color: inherit; }
.my-team-grid,.my-personal,.my-news-list,.my-saved-list { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.my-team,.my-news,.my-saved,.my-directory-club {
  border: 1px solid var(--my-line);
  background: var(--my-card);
  border-radius: 13px;
}
.my-team,.my-news { padding: 12px; }
.my-team header,.my-directory-club { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.my-team-link,.my-news-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  color: inherit;
  min-width: min(100%, 118px);
  text-decoration: none;
}
.my-team-link small,.my-news-link small { display: block; color: var(--my-muted); }
.my-team-link:hover strong,.my-news-link:hover strong,.my-saved:hover strong { text-decoration: underline; }
.my-crest {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #edf2fa;
  color: #31547e;
  font-weight: 800;
}
.my-crest img { width: 40px; height: 40px; object-fit: contain; }
.my-team-fact { margin: .6rem 0 0; color: var(--my-muted); font-size: .84rem; }
.my-team-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 12px; }
.my-team-content section { min-width: 0; }
.my-team-content h3 { margin: 0 0 6px; font-size: .88rem; }
.my-match {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content;
  gap: 4px;
  padding: 7px 4px;
  border-block-end: 1px solid var(--my-line);
  color: inherit;
  font-size: .79rem;
  text-decoration: none;
}
.my-match:hover { background: #edf5fd; }
.my-match bdi { color: #28557e; font-weight: 750; }
.my-match small { grid-column: 1/-1; color: var(--my-muted); }
.my-text-link { color: #275788; font-weight: 700; font-size: .85rem; }
.my-news-link>img { width: 84px; height: 58px; border-radius: 8px; object-fit: cover; }
.my-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 9px; }
.my-tags a { background: #ebf0f9; color: #2d4e72; text-decoration: none; border-radius: 7px; padding: 3px 7px; font-size: .77rem; }
.my-directory-actions { margin-block-end: 12px; }
.my-league-select { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.my-league-select select { min-height: 44px; max-width: 100%; padding-inline: 8px; border-radius: 8px; font: inherit; }
.my-directory-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding: 3px;
}
.my-directory-club { padding: 7px; }
.my-directory-club .my-crest { flex-basis: 40px; width: 40px; height: 40px; }
.my-directory-club .my-crest img { width: 32px; height: 32px; }
.my-saved-list { margin-block-end: 12px; }
.my-saved { display: grid; gap: 7px; padding: 8px; color: inherit; text-decoration: none; overflow: hidden; }
.my-saved-cover { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.my-empty,.my-device-note { margin: 0; color: var(--my-muted); font-size: .88rem; }
.my-device-note { color: #c0d4e8; padding-inline: 6px; }
.my-account .push-panel { color: var(--my-ink); background: var(--my-card); margin-block-end: 10px; }
@media(max-width:1000px){.my-directory-list{grid-template-columns: repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.my-team-grid,.my-news-list,.my-personal{grid-template-columns: 1fr;}}
@media(max-width:510px){
 .my-directory-list{grid-template-columns: 1fr;}
 .my-team-content{grid-template-columns: 1fr;}
 .my-account-bar{padding:14px;}
 .my-news-link>img{width:63px;height:49px;}
}

.my-identity { padding: 10px 14px; border-radius: 12px; background: #dce8f6; color: #243f5d; }
.my-identity summary { cursor: pointer; font-weight: 700; }
.my-identity[open]>.account-access { margin-block-start: 8px; }
html[data-theme] #content .my-account :is(.push-panel button,.my-identity button) {
  background: #e8f1fc !important;
  color: #213f65 !important;
  border-color: #adc2db !important;
}
html[data-theme] #content .my-account :is(.push-panel button,.my-identity button):hover {
  background: #d0e1f6 !important;
}
