.dm-arena-home {
  --team-ink:#350947;
  --team-line:#e5d6f2;
  --team-surface:#fbf5ff;
}
#tab-meduakis.fr-home-view {background:#f4ebfb}
.dm-team-card,.dm-team-info {
  min-width:0;
  padding:12px;
  border:1px solid #e5d6f2;
  border-radius:16px;
  background:#fbf5ff;
  box-shadow:0 2px 5px #451d551a;
  color:#350947;
}
.dm-team-summary {
  display:grid;
  grid-template-columns:minmax(74px,32%) minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.dm-team-crest {display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px}
.dm-team-summary h2 {margin:0;font-size:clamp(18px,5vw,28px);line-height:1.12;overflow-wrap:anywhere}
.dm-team-summary p,.dm-team-summary small {display:block;margin:4px 0;font-size:12px}
.dm-team-summary strong {display:block;margin-top:6px;font-size:clamp(17px,4.6vw,25px)}
.dm-team-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dm-arena-home [data-team-action],.dm-team-sheet button {
  min-width:0;
  min-height:42px;
  padding:6px 9px;
  border:1px solid #d8b5ef;
  border-radius:12px;
  background:#fbf5ff;
  color:#350947;
  font:900 clamp(11px,3.2vw,15px)/1.15 Nunito,system-ui,sans-serif;
  overflow-wrap:anywhere;
  cursor:pointer;
}
.dm-arena-home [data-team-action="premium"],.dm-arena-home [data-team-action="create"],
.dm-team-sheet button[type="submit"] {
  background:linear-gradient(#ffe866,#ffc520);
  border-color:#ecaf10;
}
.dm-team-tasks h3 {margin:0 0 6px;font-size:16px}
.dm-team-task {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 8px;
  padding:7px 0;
  border-top:1px solid #ebdef5;
  font-size:13px;
  font-weight:850;
}
.dm-team-task progress {grid-column:1/-1;width:100%;height:8px;accent-color:#7b22ca}
.dm-team-task progress:indeterminate {accent-color:#b48dd2}
.dm-team-sheet {
  width:min(calc(100% - 24px),520px);
  max-height:min(85dvh,680px);
  border:1px solid #e5d6f2;
  border-radius:20px;
  padding:14px;
  background:#fbf5ff;
  color:#350947;
  overflow:auto;
  font-family:Nunito,system-ui,sans-serif;
}
.dm-team-sheet::backdrop {background:#280c4290}
.dm-team-sheet header {display:flex;justify-content:space-between;align-items:center;gap:10px}
.dm-team-sheet h2 {font-size:20px;margin:0}
.dm-team-sheet-body,.dm-team-sheet form {display:grid;gap:10px}
.dm-team-sheet input:not([type="radio"]) {box-sizing:border-box;width:100%;min-height:40px;padding:8px;border:1px solid #d8b5ef;border-radius:9px}
.dm-team-sheet fieldset {min-width:0;border:1px solid #e5d6f2;border-radius:12px}
.dm-team-crests {display:grid;gap:4px;grid-template-columns:repeat(5,minmax(0,1fr))}
.dm-team-crests label {display:grid;justify-items:center}
.dm-team-crests input {accent-color:#7b22ca;margin:4px}
.dm-team-list-row {
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 0;
  border-bottom:1px solid #e5d6f2;
}
.dm-team-list-row img {width:38px;flex:none}
.dm-team-list-row b {overflow-wrap:anywhere}
.dm-team-list-row strong,.dm-team-list-row button {margin-inline-start:auto}
.dm-team-error {font-weight:800;color:#9b2451}
.dm-team-info p {margin:4px 0}

#tab-meduakis .dm-arena-home .fr-weekly-podium {
  background:#fbf5ff;
  border:1px solid #e5d6f2;
  border-radius:18px;
}
#tab-meduakis .dm-arena-home .fr-podium-heading {background:none;box-shadow:none;color:#350947}
#tab-meduakis .dm-arena-home .fr-podium-heading h3 {color:#350947!important;-webkit-text-fill-color:#350947!important}
#tab-meduakis .dm-arena-home .fr-podium-footer {padding:8px}
#tab-meduakis .dm-arena-home .fr-league-self {background:#ffe264;color:#350947;border-radius:12px;padding:6px}
.dm-arena-rank-list {margin:8px 0;display:grid;gap:6px;border:0;border-radius:0;overflow:visible;background:transparent}
.dm-arena-rank-row {
  display:grid;
  grid-template-columns:22px 32px minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  min-width:0;
  border:1px solid #dce2f0;
  border-radius:14px;
  background:#fff;
  padding:6px 9px;
  color:#14244b;
  font-size:clamp(11px,3.5vw,15px);
}
.dm-arena-rank-row:last-child {border-bottom:1px solid #dce2f0}
.dm-arena-rank-row>span {min-width:0;overflow-wrap:anywhere}
.dm-arena-rank-row.is-self {background:#fff1ae}

body #tab-meduakis.fr-home-view {background:#f4ebfb!important}
body #tab-meduakis.fr-home-view .dm-team-summary h2 {color:#350947!important;-webkit-text-fill-color:#350947!important}
body #tab-meduakis.fr-home-view .dm-arena-home .fr-weekly-podium {
  background:#fbf5ff!important;
  border-color:#e5d6f2!important;
  box-shadow:0 2px 5px #451d551a!important;
}
#tab-meduakis .dm-arena-home .fr-podium-copy {order:2;min-height:35px;background:#fff9fc;border-color:#eeddf3}
#tab-meduakis .dm-arena-home .fr-podium-block {order:3}
#tab-meduakis .dm-arena-home .fr-podium-stage {padding-top:4px}
#dmDuelHome .dm-duel-page-inner {justify-content:flex-start;gap:12px}
#dmDuelHome .dm-duel-page-head {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
#dmDuelHome .dm-duel-hero-stage {
  background:linear-gradient(90deg,#3d0928,#27061a);
  isolation:isolate;
}
#dmDuelHome .dm-duel-hero-stage::before {
  content:"";
  position:absolute;
  inset:0 0 0 44%;
  z-index:-1;
  background:url("friends-assets/papi-duel-bordeaux.webp") right center / cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 17%);
}
#dmDuelHome .dm-duel-hero-copy h2 {font-size:clamp(19px,5.8vw,32px)}
.dm-team-portraits {display:flex;flex-wrap:wrap;gap:2px;margin-top:4px}
.dm-team-portraits>span {
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#e6d4f5;
  overflow:hidden;
  font-weight:900;
}

body > dialog.dm-team-sheet[open] {
  position:fixed!important;
  inset:0!important;
  margin:auto!important;
  box-sizing:border-box;
  height:fit-content;
  max-height:min(78vh,680px);
  max-height:min(78dvh,680px);
  padding:16px;
  box-shadow:0 20px 60px #250b4760;
  overscroll-behavior:contain;
}
body > dialog.dm-team-sheet header {
  padding:0 0 10px;
  border-bottom:1px solid #e5d6f2;
}
body > dialog.dm-team-sheet h2 {
  color:#350947!important;
  -webkit-text-fill-color:#350947!important;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.dm-team-sheet .dm-team-error:empty {display:none}
.dm-team-sheet .dm-team-sheet-body {padding-top:10px}
.dm-team-sheet :is(input,button):focus-visible {outline:2px solid #8244ca;outline-offset:2px}

#tab-meduakis .dm-arena-home :is(.dm-arena-rank-row,.fr-arena-player,.fr-podium-face,.fr-league-self) .dm-member-badge {
  font:900 7px/1 Nunito,system-ui,sans-serif!important;
  padding:1px 2px!important;
  border-radius:4px;
  bottom:-2px;
}
#tab-meduakis .dm-arena-home :is(.dm-arena-rank-row,.fr-arena-player) .dm-member-premium::after {content:none}
#tab-meduakis .dm-arena-home .fr-arena-title {
  padding:10px 12px;
  margin:0 0 4px;
  border-radius:14px 14px 0 0;
  background:#411c78;
  box-sizing:border-box;
}
#tab-meduakis .dm-arena-home .fr-arena-title .fr-icon {
  width:28px;height:28px;box-sizing:border-box;
  padding:5px;
  color:#ffe39a;background:#5d2c9c;border-color:#ac7ce6;
}

/* Embedded league content must shrink inside the shared grid. */
#tab-meduakis.fr-home-view .dm-arena-home {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr);
}
#tab-meduakis .dm-arena-home > *,
#tab-meduakis [data-embedded-league],
#tab-meduakis [data-embedded-league] .dm-lig {
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#tab-meduakis [data-embedded-league] .dm-lig {width:100%;padding-inline:0}
#tab-meduakis [data-embedded-league] .dm-lig-period {grid-template-columns:repeat(2,minmax(0,1fr))}
#tab-meduakis [data-embedded-league] .dm-lig-caption {flex-wrap:wrap}
#tab-meduakis [data-embedded-league] :is(.dm-lig-period,.dm-lig-choices) button {
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
#tab-meduakis [data-embedded-league] .dm-lig-journey h3 {overflow-wrap:anywhere}
#tab-meduakis [data-embedded-league] .dm-lig-row {min-width:0}
#tab-meduakis [data-embedded-league] .dm-lig-header h2 {min-width:0;overflow-wrap:anywhere}
.dm-team-summary-actions {display:grid;gap:6px;justify-items:stretch;max-width:82px}
.dm-team-summary-actions [data-team-action="invite"] {
 min-height:36px;padding:5px;font-size:10px;background:linear-gradient(#22c8a4,#078b80);color:#fff;border-color:#07978a;
}
.dm-team-summary-actions [data-team-action="settings"] {justify-self:end}
.dm-team-buttons>[data-team-action="premium"],.dm-team-buttons>[data-team-action="duel"] {
 display:flex;align-items:center;justify-content:center;gap:7px;position:relative;isolation:isolate;overflow:hidden;min-height:60px;
 box-shadow:0 4px 0 #d8aa31,0 0 12px #ffd54c55;
}
.dm-team-buttons>[data-team-action="premium"] {background:linear-gradient(135deg,#fff09b,#ffcf28)!important;color:#5a3000}
.dm-team-buttons>[data-team-action="duel"] {background:linear-gradient(135deg,#8736c3,#4c1469)!important;color:#fff;border-color:#d399f0;box-shadow:0 4px 0 #380f52,0 0 12px #c76bff55}
.dm-team-action-icon {font-size:27px;line-height:1;color:inherit}
.dm-team-buttons>[data-team-action="premium"]::after,.dm-team-buttons>[data-team-action="duel"]::after {
 content:"";position:absolute;inset:-30% auto -30% -65%;width:40%;background:linear-gradient(110deg,transparent,#fff8,transparent);
 transform:skewX(-15deg);animation:dmTeamActionShine 4s ease-in-out infinite;pointer-events:none;
}
@keyframes dmTeamActionShine {0%,55%{left:-65%}85%,100%{left:140%}}
@media(prefers-reduced-motion:reduce){.dm-team-buttons>[data-team-action]::after {animation:none}}
img.dm-team-action-icon {width:28px;height:28px;object-fit:contain;flex:none}

/* The two Team states are white surfaces with neutral borders. */
html body #tab-meduakis.dc-fullscreen-overlay.fr-home-view.fr-team-view,
body #tab-meduakis.fr-team-view .ma-wrap,
body #tab-meduakis.fr-team-view #maEkran {
  background: #fff !important;
}
body:has(#tab-meduakis.active.fr-team-view) { background: #fff !important; }
#tab-meduakis.fr-team-view { --fr-ink: #211a35; --fr-surface: #fff; }
body #tab-meduakis.fr-team-view .akis-baslik h2 {
  color: #211a35 !important;
  -webkit-text-fill-color: #211a35 !important;
}
#tab-meduakis.fr-team-view .dm-arena-home {
  --team-ink: #211a35;
  --team-line: #bbbcc6;
  --team-lip: #dddde4;
  color: var(--team-ink);
  gap: clamp(10px, 2dvh, 20px);
}
#tab-meduakis.fr-team-view .dm-arena-home :is(.dm-team-card,.dm-team-info),
#tab-meduakis.fr-team-view .dm-arena-home [data-team-action] {
  background: #fff;
  color: var(--team-ink);
  border: 1px solid var(--team-line);
  box-shadow: 0 2px 0 var(--team-lip);
}
body #tab-meduakis.fr-team-view .dm-team-summary h2 {
  color: #211a35 !important;
  -webkit-text-fill-color: #211a35 !important;
}
#tab-meduakis.fr-team-view .dm-team-summary-actions [data-team-action="invite"] {
  padding: 5px 7px;
  font-size: clamp(10px, 2.8vw, 13px);
}
#tab-meduakis.fr-team-view .dm-team-summary .dm-team-crest { border-radius: 0; }
#tab-meduakis.fr-team-view .dm-team-intro {
  display: grid;
  gap: 8px;
  text-align: center;
}
#tab-meduakis.fr-team-view .dm-team-intro .dm-team-crest {
  margin-inline: auto;
  width: clamp(120px, min(46vw, 29dvh), 225px);
  border-radius: 0;
}
#tab-meduakis.fr-team-view .dm-team-intro h2 {
  color: var(--team-ink) !important;
  -webkit-text-fill-color: var(--team-ink) !important;
  font: 950 clamp(22px, 6.8vw, 38px)/1.12 Nunito, system-ui, sans-serif;
  margin: 0 0 4px;
}
#tab-meduakis.fr-team-view .dm-team-intro p { margin: 0; font-size: clamp(13px, 4vw, 18px); }
#tab-meduakis.fr-team-view .dm-team-entry { display: grid; gap: 12px; }
#tab-meduakis.fr-team-view .dm-team-entry > button {
  display: grid;
  grid-template-columns: clamp(64px, 24%, 126px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(5px, 2vw, 13px);
  padding: 4px clamp(8px, 3vw, 18px);
  min-height: clamp(63px, 11dvh, 104px);
  text-align: start;
  font-size: clamp(16px, 5vw, 26px);
  border-radius: 17px;
}
#tab-meduakis.fr-team-view .dm-team-entry small {
  display: block;
  font-size: clamp(11px, 3.1vw, 15px);
  font-weight: 650;
  line-height: 1.25;
  margin-top: 4px;
}
#tab-meduakis.fr-team-view .dm-team-entry em { font-style: normal; font-size: 1.45em; }
#tab-meduakis.fr-team-view .dm-team-entry [data-team-action="search"] em { color: #b5263f; }
.dm-team-entry-art {
  display: block;
  width: 100%;
  height: clamp(48px, 9.5dvh, 84px);
  background: center / contain no-repeat;
}
.dm-team-entry [data-team-action="create"] .dm-team-entry-art { background-image: url("friends-assets/team-create-papi.webp"); }
.dm-team-entry [data-team-action="search"] .dm-team-entry-art { background-image: url("friends-assets/team-join-papi.webp"); }
#tab-meduakis.fr-team-view .dm-arena-home :is([data-team-action="create"],[data-team-action="duel"]) {
  background: linear-gradient(165deg, #e43b50, #b91f39) !important;
  color: #fff;
  border-color: #a41c34;
  box-shadow: inset 0 2px 0 #ffc4ba9c, 0 3px 0 #93122b;
}
#tab-meduakis.fr-team-view .dm-arena-home [data-team-action="premium"] { background: #fff !important; }
#tab-meduakis.fr-team-view .dm-arena-home :is([data-team-action="create"],[data-team-action="premium"],[data-team-action="duel"]) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#tab-meduakis.fr-team-view .dm-arena-home :is([data-team-action="create"],[data-team-action="premium"],[data-team-action="duel"])::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 43%, #fff8 50%, transparent 56%);
  transform: translateX(-100%);
  animation: dm-team-glint 4.5s ease-in-out infinite;
}
#tab-meduakis.fr-team-view .dm-arena-home [data-team-action="premium"]::after {
  background: linear-gradient(112deg, transparent 43%, #ffcf6466 50%, transparent 58%);
  animation-delay: .8s;
}
#tab-meduakis.fr-team-view .dm-arena-home [data-team-action="duel"]::after { animation-delay: 1.6s; }
@keyframes dm-team-glint {
  0%, 66% { transform: translateX(-100%); opacity: 0; }
  74% { opacity: 1; }
  90%, 100% { transform: translateX(100%); opacity: 0; }
}
#tab-meduakis.fr-team-view .dm-team-tasks { display: grid; gap: 8px; }
#tab-meduakis.fr-team-view .dm-team-tasks h3 { margin: 0; }
#tab-meduakis.fr-team-view .dm-team-task {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  padding: 7px 8px;
  border: 1px solid var(--team-line);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--team-lip);
}
.dm-team-task-art {
  grid-row: span 2;
  display: grid;
  place-items: center;
  color: #bd263e;
  font: 800 22px/1 system-ui;
}
.dm-team-task-art :is(img,svg) { width: 23px; height: 23px; object-fit: contain; }
#tab-meduakis.fr-team-view .dm-team-task progress {
  grid-column: 2 / -1;
  accent-color: #ce2d47;
  margin: 0;
}
.dm-team-sheet { background: #fff; border-color: #bbbcc6; color: #211a35; }
.dm-team-sheet :is(button, fieldset, input:not([type="radio"])) { border-color: #bbbcc6; background: #fff; }
.dm-team-sheet button[type="submit"] { background: #b91f39; border-color: #a41c34; color: #fff; }

/* Active 30 league students in Invite sheet */
.dm-team-invite-section {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e7e5ee;
}
.dm-team-invite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dm-team-invite-head strong { font-size: 14px; color: #211a35; }
.dm-team-invite-head small {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1ff;
  color: #3547e8;
  font-size: 11px;
  font-weight: 900;
}
.dm-team-invite-list {
  display: grid;
  gap: 6px;
  max-height: min(40dvh, 270px);
  overflow-y: auto;
  padding-right: 2px;
}
.dm-team-invite-empty {
  margin: 4px 0;
  text-align: center;
  font-size: 13px;
  color: #6b6782;
}
.dm-team-invite-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #e7e5ee;
  border-radius: 13px;
  background: #faf9fd;
}
.dm-team-invite-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ece8ff;
  font-weight: 900;
  color: #3547e8;
}
.dm-team-invite-avatar svg { width: 100%; height: 100%; display: block; }
.dm-team-invite-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.dm-team-invite-meta b {
  font-size: 13.5px;
  color: #211a35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-team-invite-meta small { font-size: 11px; color: #6b6782; font-weight: 700; }
dialog.dm-team-sheet button.dm-team-invite-btn {
  flex: none;
  min-height: 34px;
  padding: 5px 11px;
  border: 0;
  border-bottom: 2.5px solid #2433b5;
  border-radius: 10px;
  background: linear-gradient(180deg, #4b63ff, #3547e8);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.dm-team-invite-sent {
  flex: none;
  padding: 5px 9px;
  border-radius: 9px;
  background: #e6f8ee;
  color: #16794c;
  font-size: 11.5px;
  font-weight: 900;
}

/* Redesigned Team Duel Launch Panel */
.dm-team-duel-panel {
  display: grid;
  gap: 10px;
}
.dm-team-duel-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(90deg, #fff4d6, #ffe8ec);
  border: 1px solid #f7cf92;
  color: #491429;
  font-size: 12.5px;
  font-weight: 800;
}
dialog.dm-team-sheet button.dm-team-duel-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  color: #fff;
  -webkit-text-fill-color: #fff;
  transition: transform .12s ease;
}
dialog.dm-team-sheet button.dm-team-duel-card:active { transform: translateY(2px); }
dialog.dm-team-sheet button.dm-team-duel-card.is-live {
  background: linear-gradient(135deg, #f44d57 0%, #c8213a 100%);
  border-bottom: 4px solid #911327;
  box-shadow: 0 8px 20px rgba(200, 33, 58, .28);
}
dialog.dm-team-sheet button.dm-team-duel-card.is-papi {
  background: linear-gradient(135deg, #0f6f83 0%, #073e4d 100%);
  border-bottom: 4px solid #042833;
  box-shadow: 0 8px 20px rgba(7, 62, 77, .26);
}
.dm-team-duel-art {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .32);
}
.dm-team-duel-art.is-papi-art {
  background: #0a4253 url("friends-assets/papi-duel-petrol.webp") no-repeat 28% 12% / 365% auto;
}
.dm-team-duel-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dm-team-duel-tag {
  width: max-content;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.dm-team-duel-copy b { font-size: 16px; font-weight: 1000; line-height: 1.15; }
.dm-team-duel-copy small { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .86); line-height: 1.25; }
.dm-team-duel-go {
  flex: none;
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
  opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
  #tab-meduakis.fr-team-view .dm-arena-home [data-team-action]::after { animation: none; }
}

/* Top Overlapping Crest + Centered Team Summary Card (Approved Design 1) */
.dm-team-hero-wrap {
  position: relative;
  padding-top: clamp(46px, 8dvh, 58px);
}
.dm-team-crest-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(94px, 16dvh, 118px);
  height: clamp(94px, 16dvh, 118px);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.dm-team-crest-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 82, .45) 0%, rgba(255, 212, 82, 0) 70%);
}
.dm-team-crest-stage .dm-team-crest {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 8px 14px rgba(45, 20, 60, .22));
}
#tab-meduakis.fr-team-view .dm-team-summary.dm-team-summary-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(54px, 8.6dvh, 66px) 14px 13px;
  text-align: center;
}
.dm-team-settings-pin {
  position: absolute;
  top: 10px;
  right: 10px;
}
#tab-meduakis.fr-team-view .dm-team-settings-pin button {
  min-height: 36px;
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 16px;
}
#tab-meduakis.fr-team-view .dm-team-summary-v2 h2 {
  margin: 0;
  font-size: clamp(18px, 5vw, 23px);
  font-weight: 1000;
  line-height: 1.15;
}
.dm-team-members-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dm-team-summary-v2 .dm-team-portraits {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}
.dm-team-summary-v2 .dm-team-portraits > span:not(.dm-team-slot-empty) {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ece8ff;
  border: 1.5px solid #c9c2f0;
}
#tab-meduakis.fr-team-view .dm-team-slot-empty {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px dashed #cbc6dc;
  background: #faf9fd;
  color: #8b85a3;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.dm-team-member-count {
  font-size: 12.5px;
  font-weight: 800;
  color: #625c7a;
}
.dm-team-score-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid #eceaf3;
  text-align: left;
}
.dm-team-score-progress {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.dm-team-score-nums {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
#tab-meduakis.fr-team-view .dm-team-score-nums strong {
  margin: 0;
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 1000;
  line-height: 1;
  color: #211a35;
}
#tab-meduakis.fr-team-view .dm-team-score-nums small {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #78718f;
}
.dm-team-threshold-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #efecf5;
  overflow: hidden;
}
.dm-team-threshold-bar i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcc33, #f04856);
  transition: width .35s ease;
}
#tab-meduakis.fr-team-view .dm-team-invite-cta button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}


/* Team invitation and application cards */
.dm-team-request-card {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  justify-items:center;
  gap:10px;
  text-align:center;
  padding:20px 14px 18px;
  border:1px solid #f2d1b5;
  border-radius:22px;
  background:linear-gradient(180deg,#fff7e6 0%,#fff 58%);
  box-shadow:0 5px 18px #9f5a2714;
  color:#29203c;
}
.dm-team-request-art {
  position:relative;
  width:142px;
  height:122px;
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse,#ffe7a5 0%,#fff4d8 48%,transparent 72%);
}
.dm-team-request-art .dm-team-crest {
  width:106px;
  height:106px;
  object-fit:contain;
  filter:drop-shadow(0 6px 8px #b46a3545);
}
.dm-team-request-fallback {font-size:64px;color:#d89c22;}
.dm-team-request-star {
  position:absolute;
  color:#d99a22;
  font-size:24px;
  text-shadow:0 0 12px #ffd278;
  animation:dm-team-request-twinkle 2.6s ease-in-out infinite alternate;
}
.dm-team-request-star.star-left {left:0;top:20px;}
.dm-team-request-star.star-right {right:0;bottom:22px;animation-delay:.9s;}
.dm-team-request-card h3 {margin:0;color:#30203e;font-size:clamp(21px,5.5vw,27px);overflow-wrap:anywhere;max-width:100%;}
.dm-team-request-card p {margin:0;color:#5f5368;font-weight:700;overflow-wrap:anywhere;}
.dm-team-request-time {
  display:block;padding:6px 11px;border-radius:99px;
  color:#795519;background:#fff2cb;font-size:12px;font-weight:800;
}
.dm-team-request-card .dm-team-buttons {width:100%;margin-top:8px;gap:10px;}
.dm-team-request-card .dm-team-buttons button {
  position:relative;overflow:hidden;min-height:48px;border-radius:15px;
  font-weight:900;padding:10px 6px;
}
dialog.dm-team-request-sheet .dm-team-request-card button[data-team-action="accept"] {
  background:linear-gradient(160deg,#ff8476,#ed4d5b 75%);
  color:white;border:1px solid #d63b49;
  box-shadow:0 4px 0 #be3445,0 7px 15px #ed4d5b38;
}
dialog.dm-team-request-sheet .dm-team-request-card button[data-team-action="reject"] {
  background:linear-gradient(155deg,#fff9fa,#ffe0e3);
  color:#a32c42;border:1px solid #f0b7bf;
  box-shadow:0 4px 0 #e4a7b2;
}
.dm-team-request-card button::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 25%,#ffffff85 48%,transparent 70%);
  transform:translateX(-125%);animation:dm-team-request-shine 3.8s ease-in-out infinite;
}
.dm-team-request-card button:active {transform:translateY(2px);}
.dm-team-request-card button:disabled {opacity:.5;box-shadow:none!important;}
.dm-team-request-card button:disabled::after {animation:none;}
@keyframes dm-team-request-shine {0%,55%{transform:translateX(-125%)}85%,100%{transform:translateX(125%)}}
@keyframes dm-team-request-twinkle {from{opacity:.6;transform:scale(.85)}to{opacity:1;transform:scale(1.1)}}
@media(prefers-reduced-motion:reduce) {
  .dm-team-request-star,.dm-team-request-card button::after {animation:none;}
}
