:root {
  --void: #07111d;
  --rail: #0a1628;
  --well: #0d1c33;
  --ice: #e7f3ff;
  --mist: #9db4d4;
  --cyan: #5ad6ff;
  --teal: #3ed9b0;
  --violet: #b08cff;
  --orchid: #d59bff;
  --line: #27405f;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

html {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(176, 140, 255, 0.16), transparent 55%),
    radial-gradient(900px 420px at -10% 110%, rgba(62, 217, 176, 0.1), transparent 50%),
    var(--void);
  color: var(--ice);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

#app {
  display: grid;
  grid-template-columns: minmax(17.5rem, 20rem) minmax(0, 1fr);
  transition: grid-template-columns 0.18s ease;
}

#app.nav-collapsed {
  grid-template-columns: 2.6rem minmax(0, 1fr);
}

#app.nav-collapsed .nav-pane {
  overflow: hidden;
}

#app.nav-collapsed .brand,
#app.nav-collapsed .nav-items,
#app.nav-collapsed .nav-manage {
  display: none;
}

#app.nav-collapsed .nav-brand {
  flex-direction: column;
  align-items: stretch;
  padding: 0.45rem 0.2rem;
}

#app.nav-collapsed .nav-toggle {
  position: static;
  width: 100%;
  min-width: 0;
  z-index: 20;
}

#modal-root:empty {
  display: none;
}

#modal-root {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
}

#modal-root .modal-backdrop {
  pointer-events: auto;
}

.nav-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  background:
    linear-gradient(180deg, rgba(90, 214, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #0e1c34, var(--rail));
  border-right: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.85rem 0.7rem 0.5rem;
}

.nav-brand .brand {
  margin-bottom: 0;
}

.nav-toggle {
  padding: 0.2rem 0.45rem;
  min-width: 1.8rem;
}

.nav-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-item,
.nav-tree {
  display: block;
  color: var(--cyan);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(13, 28, 51, 0.55);
}

.nav-item {
  padding: 0.5rem 0.65rem;
}

.nav-tree.active,
.nav-item.active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.nav-parent {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.65rem;
}

.nav-parent::-webkit-details-marker {
  display: none;
}

.nav-parent .chev,
.nav-child-head .chev {
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.nav-tree[open] > .nav-parent .chev,
.nav-child[open] > .nav-child-head .chev {
  transform: rotate(45deg);
}

.nav-children {
  padding: 0 0.35rem 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
}

.nav-child {
  margin: 0;
  border: 0;
  background: none;
}

.nav-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.15rem;
  color: var(--ice);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.nav-child-head::-webkit-details-marker {
  display: none;
}

.nav-child .session-tree {
  padding-left: 0.7rem;
}

.nav-manage {
  position: relative;
  flex: 0 0 auto;
  padding: 0.55rem 0.7rem 0.75rem;
  border-top: 1px solid var(--line);
}

.account-btn .menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--line);
}

.account-face {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.account-face .avatar-menu {
  width: 2.1rem;
  height: 2.1rem;
}

.account-photo {
  width: 4.5rem;
  height: 4.5rem;
}

.account-photo-row {
  margin: 0 0 1rem;
}

.token-secret {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(13, 28, 51, 0.55);
}

.token-secret p {
  margin: 0 0 0.55rem;
}

pre.token-secret {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--ice);
}

.token-secret input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  background: var(--void);
  color: var(--ice);
  border: 1px solid var(--line);
  padding: 0.45rem 0.5rem;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#token-list {
  margin-top: 0.85rem;
}

#token-list small {
  display: block;
  margin-top: 0.15rem;
}

.account-pop {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: calc(100% + 0.35rem);
  background: #0d1c33;
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.account-pop p {
  margin: 0 0 0.55rem;
}

.account-pop .pop-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-pop a,
.account-pop button {
  width: 100%;
  text-align: center;
}

.display {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(12rem, 38vh);
  min-width: 0;
  min-height: 0;
}

/* About and management pages fill the area beside the nav, not the whole window. */
html.doc-pending .primary-pane,
html.doc-pending .secondary-pane {
  visibility: hidden;
}

#app.doc-open .display {
  grid-template-rows: minmax(0, 1fr);
}

#app.doc-open .primary-pane,
#app.doc-open .secondary-pane {
  display: none;
}

.doc-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(90, 214, 255, 0.05), transparent 16rem),
    var(--void);
}

.doc-pane .about-body {
  max-width: 46rem;
}

.doc-pane .admin-body {
  max-width: 72rem;
}

.doc-pane .about-body p .btn + .btn {
  margin-left: 0.55rem;
}

.primary-pane {
  position: relative;
  z-index: 0;
  min-height: 0;
  min-width: 0;
  background: #071018;
}

.secondary-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 0.75rem;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem 0.85rem 0.75rem;
  background: linear-gradient(180deg, #0c1730, #091324);
  border-top: 1px solid var(--line);
}

.secondary-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.secondary-options {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
}

.secondary-options .panel {
  margin-top: 0.85rem;
}

.secondary-options .panel:first-child {
  margin-top: 0;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: none;
  padding: 0;
  filter: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  margin: -0.75rem 0 1.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cyan);
}

.beacon {
  width: 0.7rem;
  height: 1.6rem;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(90, 214, 255, 0.55);
}

.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 0.9;
}

.tag {
  margin: 0;
  color: var(--mist);
  font-size: 0.8rem;
}

.panel {
  margin-top: 1.25rem;
}

.nav-child.panel {
  margin-top: 0;
}

.panel h2,
.panel h3,
.panel-head h2,
.panel-head h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  color: var(--cyan);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-fold > summary {
  list-style: none;
  cursor: pointer;
}

.panel-fold > summary::-webkit-details-marker {
  display: none;
}

.panel-fold .fold-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.panel-fold .fold-title h2,
.panel-fold .fold-title h3 {
  margin: 0;
}

.panel-fold > summary .chev {
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  color: var(--cyan);
}

.panel-fold[open] > summary .chev {
  transform: rotate(45deg);
}

.muted {
  color: var(--mist);
  font-size: 0.85rem;
}

#summary-list,
#account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 0.28rem 0.8rem;
  margin: 0;
  font-size: 0.85rem;
  min-width: 0;
}

#summary-list dt,
#account-summary dt {
  color: var(--mist);
}

#summary-list dd,
#account-summary dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

#account-summary dd {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

button,
.upload,
a.btn {
  background: linear-gradient(180deg, #7ae7ff, var(--cyan));
  color: #04202c;
  border: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.upload:hover,
a.btn:hover {
  filter: brightness(1.08);
}

button.ghost,
a.ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--violet);
}

button.ghost:hover {
  background: rgba(176, 140, 255, 0.12);
  filter: none;
}

button:focus-visible,
.upload:focus-visible,
a.btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.upload input {
  display: none;
}

.session-tree,
.session-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.session-tree ul {
  padding-left: 0.55rem;
}

.session-tree li.group {
  padding: 0;
  border: 0;
  cursor: default;
}

.session-tree .group-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--cyan);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.15rem;
  font-size: 0.95rem;
  cursor: pointer;
  filter: none;
}

.session-tree .group-head:hover {
  filter: none;
  color: var(--ice);
}

.session-tree .chev {
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.session-tree .group:not(.collapsed) > .group-head .chev {
  transform: rotate(45deg);
}

.session-tree .group-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-tree .group.root > .group-head {
  color: var(--ice);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

.session-tree .group.date > .group-head,
.session-tree .group.driver > .group-head {
  color: var(--mist);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.session-tree .group.collapsed > ul {
  display: none;
}

.session-tree li.file {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.session-tree li.file a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  color: inherit;
  text-decoration: none;
}

.session-tree .file-text {
  min-width: 0;
  flex: 1 1 auto;
}

.session-tree .file-text strong,
.session-tree .file-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-tree .file-mph {
  flex: 0 0 auto;
  color: var(--mist);
  font-size: 0.68rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.session-tree li.file:hover {
  background: rgba(90, 214, 255, 0.06);
}

.session-tree li.file.active {
  background: rgba(176, 140, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--teal);
}

.session-tree small {
  display: block;
  color: var(--mist);
}

#lap-count {
  letter-spacing: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 400;
  text-transform: none;
}

.lap-picks {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}

.lap-picks button {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
}

.lap-picks button:hover {
  color: var(--ice);
  border-color: var(--cyan);
  filter: none;
}

.lap-picks button.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(90, 214, 255, 0.12);
}

#lap-list label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  width: 100%;
}

#lap-list label.invalid {
  color: var(--mist);
  opacity: 0.7;
}

#lap-list label.best .lap-meta {
  color: var(--teal);
}

#lap-list .badge {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--teal);
}

#lap-list input {
  accent-color: var(--teal);
}

.stage {
  min-width: 0;
  min-height: 0;
  position: relative;
}

.map-legend {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  padding: 0.4rem 0.65rem;
  background: rgba(7, 17, 29, 0.82);
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.75rem;
  pointer-events: none;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-legend .swatch {
  width: 0.7rem;
  height: 0.25rem;
  display: inline-block;
}

.map-legend .swatch.slow {
  background: #ff5b6e;
}

.map-legend .swatch.fast {
  background: #3ed9b0;
}

.map-legend .swatch.best {
  background: #c084fc;
}

#map {
  height: 100%;
  background: #071018;
}

.dash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  padding: 0;
  background: none;
  border: 0;
  align-items: start;
}

.graph {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.graph-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  font-size: 0.72rem;
  color: var(--mist);
}

.graph-channels label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

.graph-channels input {
  accent-color: var(--cyan);
}

.graph-channels .swatch {
  width: 0.65rem;
  height: 0.2rem;
  display: inline-block;
}

.graph-channels label.empty {
  opacity: 0.4;
  cursor: not-allowed;
}

.stat span {
  display: block;
  color: var(--mist);
  font-size: 0.75rem;
}

.stat strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ice);
}

.stat:nth-child(1) strong {
  color: var(--cyan);
}

.stat:nth-child(2) strong {
  color: var(--teal);
}

.stat:nth-child(3) strong {
  color: var(--violet);
}

.stat:nth-child(4) strong {
  color: var(--orchid);
}

#spark {
  width: 100%;
  height: 110px;
  cursor: pointer;
}

.playback {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.playback button {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.playback input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #ff5b6e;
}

.leaflet-container {
  background: #071018;
  font-family: inherit;
}

.leaflet-tile-pane {
  filter: invert(1) hue-rotate(195deg) saturate(0.5) brightness(0.78) contrast(1.05);
}

.leaflet-control-zoom a {
  background: var(--well) !important;
  color: var(--ice) !important;
  border-color: var(--line) !important;
}

.leaflet-bar {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.leaflet-control-attribution {
  background: rgba(7, 17, 29, 0.82) !important;
  color: var(--mist) !important;
}

.leaflet-control-attribution a {
  color: var(--cyan) !important;
}

@media (max-width: 900px) {
  #app,
  #app.nav-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(12rem, 38vh) minmax(0, 1fr);
  }
  #app.nav-collapsed {
    grid-template-rows: 2.8rem minmax(0, 1fr);
  }
  .nav-pane {
    max-height: 38vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #app.nav-collapsed .nav-pane {
    max-height: 2.8rem;
    overflow: hidden;
  }
  #app.nav-collapsed .nav-toggle {
    width: auto;
    min-width: 1.8rem;
  }
  .display {
    grid-template-rows: minmax(12rem, 1fr) auto;
  }
  .secondary-pane {
    grid-template-columns: 1fr;
  }
  .secondary-options {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
  }
  .dash {
    grid-template-columns: 1fr 1fr;
  }
  .map-legend {
    top: 0.5rem;
    right: 0.5rem;
    left: 3.2rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .upload,
  a.btn {
    transition: none;
  }
}

body.about-page {
  height: auto;
  min-height: 100%;
}

.about-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

.about-top .brand {
  margin: 0;
}

.about-top .site-nav {
  margin: 0;
}

.about-body {
  max-width: 42rem;
  padding: 2.5rem 2rem 4rem;
}

.about-body .lede {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: var(--ice);
}

.about-body h1,
.about-body h2 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 1.8rem 0 0.6rem;
}

.about-body h1 {
  font-size: 1.4rem;
}

.about-body h2 {
  font-size: 1.2rem;
}

.about-body p,
.about-body li {
  line-height: 1.55;
  color: var(--mist);
}

.about-body strong {
  color: var(--ice);
  font-weight: 600;
}

.about-body ul,
.about-body ol {
  padding-left: 1.2rem;
}

.about-body li + li {
  margin-top: 0.55rem;
}

.about-body code {
  color: var(--teal);
}

.admin-body {
  max-width: 72rem;
}

.admin-sub {
  display: flex;
  gap: 1rem;
  margin: 0 0 1.2rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sub a {
  color: var(--mist);
  text-decoration: none;
}

.admin-sub a[aria-current="page"] {
  color: var(--cyan);
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  padding: 0.85rem;
  background: rgba(13, 28, 51, 0.55);
}

.admin-form label,
.admin-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--mist);
  font-size: 0.85rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-form input,
.admin-form select {
  background: var(--void);
  color: var(--ice);
  border: 1px solid var(--line);
  padding: 0.35rem 0.45rem;
}

.admin-form input[readonly] {
  opacity: 0.7;
}

.admin-form .check {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.4rem 0 0.85rem;
  flex-wrap: wrap;
}

.list-tools a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.list-tools a:hover {
  color: var(--ice);
}

.share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(13, 28, 51, 0.55);
}

.share-list li + li {
  border-top: 1px solid var(--line);
}

.share-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.share-item input {
  margin-top: 0.2rem;
}

.share-item span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.share-item small {
  color: var(--mist);
  font-size: 0.82rem;
}

.share-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
}

.team-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}

.team-toolbar h1 {
  margin: 0;
}

.team-filter {
  width: 100%;
  margin: 0 0 0.65rem;
  background: var(--void);
  color: var(--ice);
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
}

.team-mine li.active {
  background: rgba(90, 214, 255, 0.08);
}

.team-mine .team-pick {
  width: auto;
  text-align: left;
}

.team-sessions a {
  color: inherit;
  text-decoration: none;
}

.team-sessions small {
  display: block;
  color: var(--mist);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.72);
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 1.2rem;
}

.modal-card {
  width: min(28rem, 100%);
  margin: auto;
  background: #0d1c33;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.modal-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
