/* transitions.dev Checkbox check, Jakub Antalik, adapted native controls.
   Application use licensed under the supplied Transitions.dev license. */
:root {
  --check-box: 150ms;
  --check-draw: 350ms;
  --check-delay: 0ms;
  --check-uncheck: 150ms;
  --check-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-check {
  transition:
    background var(--check-box) var(--check-ease),
    box-shadow var(--check-box) var(--check-ease);
}
.t-check svg path {
  stroke-dasharray: var(--check-len, 15);
  stroke-dashoffset: var(--check-len, 15);
  transition: stroke-dashoffset var(--check-uncheck) var(--check-ease);
}
.t-check[aria-checked="true"] svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--check-draw) var(--check-ease)
    var(--check-delay);
}

@media (prefers-reduced-motion: reduce) {
  .t-check,
  .t-check svg path {
    transition: none !important;
  }
}

:root {
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --press-dur: 150ms;
  --press-scale: 0.99;
}
/* Menu dropdown recipe */
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"] {
  transform-origin: top right;
}
.t-dropdown[data-origin="top-center"] {
  transform-origin: top center;
}
.t-dropdown[data-origin="bottom-left"] {
  transform-origin: bottom left;
}
.t-dropdown[data-origin="bottom-center"] {
  transform-origin: bottom center;
}
.t-dropdown[data-origin="bottom-right"] {
  transform-origin: bottom right;
}
.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity var(--dropdown-close-dur) var(--dropdown-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-dropdown,
  .trigger,
  .item {
    transition: none !important;
  }
  .trigger:active,
  .item:active {
    transform: none;
  }
}

:root {
  --accent-fill: var(--accent);
  --on-accent: #fff;
  --accent-line: var(--accent);
}
.native-check,
.option-multi-check {
  position: relative;
  display: inline-flex;
  flex: 0 0 17px;
  align-self: center;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--field);
  color: var(--on-accent);
  vertical-align: middle;
}
.native-check input[type="checkbox"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: inherit;
  z-index: 1;
}
.native-check svg,
.option-multi-check svg {
  width: 11px;
  height: 11px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.native-check:has(input:checked),
.native-check:has(input:indeterminate),
.option-multi-check[data-checked="true"] {
  background: var(--accent-fill);
  border-color: var(--accent-line);
}
.native-check:has(input:checked) svg path,
.option-multi-check[data-checked="true"] svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--check-draw) var(--check-ease)
    var(--check-delay);
}
.native-check:has(input:indeterminate) svg {
  visibility: hidden;
}
.native-check:has(input:indeterminate)::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.native-check:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.native-check:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.check-label,
.confirmation,
.event-check,
.permission-option {
  column-gap: 10px;
}
.t-check.native-check:active {
  transform: none;
}
.option-multi-check {
  --check-len: 15;
  margin-left: auto;
}
.profile-menu-item:active,
.profile-actions-trigger:active {
  transform: scale(var(--press-scale));
  transition: transform var(--press-dur) var(--dropdown-ease);
}
.profile-menu-item .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.profile-menu-item .menu-label {
  flex: 1;
  text-align: left;
}
.profile-actions-menu button {
  gap: 10px;
}
.profile-submenu {
  position: fixed;
  z-index: 1500;
  max-height: min(420px, 70dvh);
  overflow: auto;
  width: 260px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.profile-submenu button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
}
.profile-submenu button:hover:not(:disabled),
.profile-submenu button[aria-checked="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.profile-submenu .helper {
  padding: 6px 12px;
  font-size: 11px;
}
.profile-submenu .submenu-heading {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
}
.submenu-chevron {
  margin-left: auto;
  transform: rotate(-90deg);
  width: 14px !important;
}
.profile-submenu[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .native-check,
  .native-check svg path,
  .option-multi-check svg path,
  .profile-menu-item,
  .profile-actions-trigger {
    transition: none !important;
    animation: none !important;
  }
  .profile-menu-item:active,
  .profile-actions-trigger:active {
    transform: none;
  }
}
.players-series {
  stroke: #4dbabb;
}
.players-area {
  fill: #4dbabb;
}
.players-point {
  fill: #4dbabb;
}
.chart-scrub-dot[data-series="community"] {
  fill: #f2ab59;
}
.chart-scrub-dot[data-series="players"] {
  fill: #4dbabb;
}
.chart-scrub-dot {
  stroke: var(--panel);
  stroke-width: 1.2;
}
.donut-plot {
  overflow: visible;
}
.donut-plot svg {
  overflow: visible;
}
.donut-segment {
  cursor: pointer;
  transform: translate(0, 0);
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 150ms ease-out;
  outline: none;
}
.donut-segment.is-inspected {
  transform: translate(var(--donut-x), var(--donut-y));
  filter: drop-shadow(0 2px 3px #0003);
}
.donut-segment:focus-visible circle {
  stroke-width: 35;
}
.donut-chart .donut-legend {
  display: grid;
  gap: 8px;
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.donut-chart .donut-legend button {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  gap: 6px 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  min-width: 0;
}
.donut-legend button.is-inspected {
  background: var(--accent-soft);
  outline: 1px solid var(--accent-line);
}
.donut-legend button[aria-pressed="false"] {
  color: var(--muted);
  opacity: 1;
}
.donut-legend button[aria-pressed="false"] i {
  opacity: 0.4;
}
.donut-legend small {
  font-size: 11px;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
}
.donut-share-bar {
  grid-column: 2/-1;
  display: block;
  height: 3px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.donut-share-bar > span {
  display: block;
  height: 100%;
  background: var(--share-color);
  transition: width 200ms ease-out;
  border-radius: inherit;
}
.donut-percentage {
  fill: var(--muted);
  font-size: 10px;
}
.donut-legend p {
  font-size: 10px;
  margin: 0 10px;
}
@media (min-width: 1200px) {
  .donut-chart {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
  }
  .donut-chart .donut-plot {
    width: 100%;
    max-width: 220px;
    margin: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .donut-segment,
  .donut-share-bar > span {
    transition: none;
  }
  .donut-segment.is-inspected {
    transform: none;
    filter: none;
  }
}

/* transitions.dev Community Notification badge bell ring. */
:root {
  --badge-slide-dur: 260ms;
  --badge-pop-dur: 500ms;
  --badge-pop-close-dur: 180ms;
  --badge-fade-dur: 400ms;
  --badge-fade-close-dur: 180ms;
  --badge-blur: 2px;
  --badge-offset-x: -8.2px;
  --badge-offset-y: 12.4px;
  --badge-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --badge-pop-ease: cubic-bezier(0.34, 1.36, 0.64, 1);
  --badge-close-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 70ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
  --ring-dur: 900ms;
  --ring-angle: 18deg;
  --ring-ease: cubic-bezier(0.36, 0.07, 0.19, 0.97);
  --press-scale: 0.97;
  --press-dur: 150ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-ring {
  display: flex;
  transform-origin: 50% 15%;
}
.nb-ring .hi {
  width: 20px;
  height: 20px;
}
.nb-ring.is-ringing {
  animation: nb-ring var(--ring-dur) var(--ring-ease);
}
@keyframes nb-ring {
  0% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(var(--ring-angle));
  }
  30% {
    transform: rotate(calc(var(--ring-angle) * -0.85));
  }
  45% {
    transform: rotate(calc(var(--ring-angle) * 0.6));
  }
  60% {
    transform: rotate(calc(var(--ring-angle) * -0.4));
  }
  78% {
    transform: rotate(calc(var(--ring-angle) * 0.18));
  }
  100% {
    transform: rotate(0);
  }
}

@keyframes t-badge-slide-in {
  from {
    transform: translate(var(--badge-offset-x), var(--badge-offset-y));
  }
  to {
    transform: translate(0, 0);
  }
}
.t-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  pointer-events: none;
}
.t-badge[data-open="true"] {
  animation: t-badge-slide-in var(--badge-slide-dur) var(--badge-slide-ease);
}
.t-badge-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-image: linear-gradient(
    -51.52deg,
    rgb(238, 41, 51) 13.929%,
    rgb(236, 2, 72) 112.7%
  );
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0.338px 1.351px 0 rgba(0, 0, 0, 0.17),
    0 0.676px 2.703px 0 rgba(0, 0, 0, 0.04),
    inset 0 -0.338px 0 0 rgba(0, 0, 0, 0.16);
  transform-origin: center;
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  transition:
    transform var(--badge-pop-dur) var(--badge-pop-ease),
    opacity var(--badge-fade-dur) var(--badge-pop-ease),
    filter var(--badge-pop-dur) var(--badge-pop-ease);
}
.t-badge[data-open="false"] .t-badge-dot {
  transform: scale(0);
  opacity: 0;
  filter: blur(var(--badge-blur));
  transition:
    transform var(--badge-pop-close-dur) var(--badge-close-ease),
    opacity var(--badge-fade-close-dur) var(--badge-close-ease),
    filter var(--badge-pop-close-dur) var(--badge-close-ease);
}

@keyframes t-digit-pop-in {
  0% {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
    filter: blur(0);
  }
}
.t-digit-group {
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
}
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}

#notification-bell {
  color: var(--ink);
}
#notification-count.t-badge {
  background: transparent;
  border: 0;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  display: block;
  top: -4px;
  right: -6px;
  line-height: 1;
}
#notification-count.t-badge[hidden] {
  display: none;
}
.t-badge-dot {
  min-width: 20px;
  width: auto;
  padding: 0 4px;
  box-sizing: border-box;
}
.t-badge[data-silent="true"],
.t-badge[data-silent="true"] * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .nb-ring.is-ringing,
  .t-badge,
  .t-badge-dot,
  .t-digit-group .t-digit {
    animation: none !important;
    transition: none !important;
  }
}
/* beui Morphing Search behavior; the existing top-search field stays fixed. */
.global-results {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(2px);
  transition:
    opacity 160ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 160ms ease-out;
  max-width: calc(100vw - 24px);
}
.global-results.is-search-open {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.recent-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.recent-search-row {
  display: flex;
  align-items: center;
  min-width: 0;
}
.recent-search-row > .search-result {
  min-width: 0;
  flex: 1;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  border-radius: 0;
}
.recent-search-row:hover,
.recent-search-row:has([aria-selected="true"]) {
  background: var(--accent-soft);
}
.recent-search-row .search-result > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.recent-search-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-search-row small {
  font-size: 10px;
  color: var(--muted);
}
.recent-search-remove {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-right: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}
.recent-term-icon {
  width: 28px;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .global-results {
    transition: none;
    transform: none;
    filter: none;
  }
}
/* beui Animated Breadcrumb: stable ancestors, soft leaf changes, no collapse. */
.animated-breadcrumb {
  min-width: 0;
}
.animated-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.animated-breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  animation: breadcrumb-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.animated-breadcrumb li[data-stable] {
  animation: none;
}
.animated-breadcrumb a {
  padding: 4px 2px;
  color: var(--muted);
  transition: color 150ms ease-out;
}
.animated-breadcrumb a:hover {
  color: var(--accent);
}
.animated-breadcrumb strong {
  font-weight: 550;
  max-width: min(360px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.animated-breadcrumb .breadcrumb-separator {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.6;
}
@keyframes breadcrumb-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.not-found-stage {
  max-width: 720px;
  min-height: min(60vh, 580px);
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
.not-found-stage h1 {
  font-size: 26px;
  margin: 0;
}
.not-found-stage > p {
  color: var(--muted);
  max-width: 360px;
  margin: 0 0 12px;
}
.not-found-code {
  position: relative;
  user-select: none;
  font:
    800 clamp(5rem, 18vw, 11rem) / 1 ui-monospace,
    monospace;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.not-found-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 150ms ease-out,
    opacity 150ms ease-out;
}
.ghost-red {
  color: #ff0040;
}
.ghost-cyan {
  color: #00a7b9;
}
.not-found-code:hover .ghost-red {
  transform: translateX(3px);
  opacity: 0.5;
}
.not-found-code:hover .ghost-cyan {
  transform: translateX(-3px);
  opacity: 0.5;
}
.profile-actions,
.profile-submenu {
  --press-scale: 0.99;
}
html .profile-menu-item:active,
html .profile-actions-trigger:active {
  transform: scale(var(--press-scale));
}
@media (prefers-reduced-motion: reduce) {
  .animated-breadcrumb li {
    animation: none;
  }
  .not-found-ghost {
    display: none;
  }
  .animated-breadcrumb a {
    transition: none;
  }
}
/* Calendar Day Card presentation: compact real event/date groups. */
.compact-events {
  padding: 18px 22px;
  display: grid;
  gap: 20px;
}
.event-date-group {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
  gap: 16px;
}
.event-date-group h3 {
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0;
  color: var(--muted);
  font-weight: 600;
}
.compact-event-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.compact-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 7px;
  min-width: 0;
  color: var(--text);
  transition: background 150ms var(--check-ease);
}
.compact-event:hover {
  background: var(--accent-soft);
}
.compact-event-bar {
  width: 3px;
  min-height: 34px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 3px;
}
.event-training .compact-event-bar {
  background: #36bca0;
}
.event-community .compact-event-bar {
  background: #edaa56;
}
.compact-event-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.compact-event-copy strong {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.compact-event-copy > span,
.compact-event-copy small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.compact-event-arrow {
  color: var(--muted);
}
.calendar-event-lists .card-header {
  flex-wrap: wrap;
  gap: 12px;
}
.calendar-import-status {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.calendar-import-status summary {
  cursor: pointer;
}
.t-multi-check {
  --check-len: 1;
  flex-shrink: 0;
}
.t-multi-check svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t-multi-check svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--check-uncheck) var(--check-ease);
}
.t-multi-check[data-checked="true"] svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--check-draw) var(--check-ease);
}
.pik-mark {
  color: var(--on-accent);
}
.pik-row[data-on] .pik-mark {
  background: var(--accent-fill);
  border-color: var(--accent-line);
}
@media (max-width: 600px) {
  .event-date-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .compact-events {
    padding: 16px;
    gap: 14px;
  }
  .compact-event {
    gap: 9px;
    padding: 8px 4px;
  }
  .compact-event .badge {
    max-width: 85px;
    white-space: normal;
  }
  .compact-event-arrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-event,
  .t-multi-check svg path {
    transition: none !important;
  }
}
.donut-chart .donut-legend button strong {
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}
.donut-chart .donut-legend button small {
  font-size: 10px;
  font-family: inherit;
}
html [data-activity]:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
}

html .log-event-options .native-check {
  align-self: flex-start;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .native-check {
    width: 20px;
    height: 20px;
  }
  label:has(> .native-check) {
    min-height: 44px;
  }
  .native-check:has(input:indeterminate)::after {
    top: 9px;
  }
}
