:root {
  color-scheme: light;
}

body {
  min-width: 280px;
}

.dashboard-link-button,
.dashboard-start-control,
.dashboard-footer-link,
.app-menu-popup a {
  text-decoration: none;
}

.desktop-context-menu a {
  text-decoration: none;
}

.dashboard-start-control {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  text-align: left;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.secure-address-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 22px;
  background: #fff;
  border: 1px solid #7f9db9;
  box-sizing: border-box;
  overflow: hidden;
}

.secure-address-field:focus-within {
  border-color: #316ac5;
}

.secure-address-icon {
  width: 16px;
  height: 16px;
  margin-left: 3px;
  flex: 0 0 16px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: hue-rotate(72deg) saturate(1.65) brightness(0.9);
}

.browser-toolbar .secure-address-field input {
  flex: 1;
  min-width: 0;
  height: 20px;
  padding: 2px 6px 2px 3px;
  color: #000;
  background: #fff;
  border: 0;
  box-shadow: none;
  outline: 0;
}

.start-right-item.dashboard-start-control,
.start-item.dashboard-start-control {
  display: flex;
}

.start-item.dashboard-start-control:focus-visible,
.start-item.dashboard-start-control:hover,
.start-right-item.dashboard-start-control:focus-visible,
.start-right-item.dashboard-start-control:hover {
  color: #fff;
  background: #316ac5;
  box-shadow: none !important;
  outline: none;
}

.start-item.dashboard-start-control:focus-visible .start-sub,
.start-item.dashboard-start-control:hover .start-sub {
  color: #d1e3ff;
}

.dashboard-footer-link {
  display: flex;
  align-items: center;
}

.app-menu-popup a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  color: #111;
  white-space: nowrap;
}

.app-menu-popup a {
  padding: 4px 22px 4px 20px;
}

.app-menu-popup a:hover,
.app-menu-popup a:focus-visible {
  color: #fff;
  background: #316ac5;
  outline: none;
}

#minecraft-dashboard-window > .title-bar[data-window-drag-handle] {
  cursor: default;
  user-select: none;
}

#minecraft-dashboard-window.is-dragging > .title-bar[data-window-drag-handle] {
  cursor: move;
}

.dashboard-tabs > [role="tabpanel"][hidden] {
  display: none !important;
}

.section-heading h1 {
  margin: 0 0 4px;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px #001f78;
}

.section-heading p {
  margin: 3px 0 0;
  color: #fff;
}

.dashboard-privacy-note {
  margin: 0 0 12px;
  padding: 9px 10px 9px 32px;
  color: #3c3600;
  background: #ffffe1 url("/assets/icons/Information.webp") no-repeat 9px 9px / 16px 16px;
  border: 1px solid #d6d19a;
}

.dashboard-bounds-note {
  margin: -2px 0 12px;
  color: #454545;
  font-size: 11px;
}

.dashboard-stats,
.dashboard-player-stats {
  margin-bottom: 12px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-overview-grid fieldset {
  min-width: 0;
}

.dashboard-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}

.dashboard-summary-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 5px 4px;
  border-bottom: 1px dotted #aca899;
}

.dashboard-summary-card span {
  overflow: hidden;
  color: #333;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-summary-card strong {
  flex: 0 0 auto;
  color: #003c9d;
  font-size: 13px;
}

.dashboard-empty {
  grid-column: 1 / -1;
  margin: 8px 4px;
  color: #555;
}

.dashboard-overview-table {
  width: min(850px, 100%);
  max-height: 255px;
  overflow: auto;
}

.dashboard-overview-table table {
  width: 850px;
  min-width: 850px;
}

.dashboard-overview-table tbody tr {
  height: 27px;
}

.dashboard-search-field {
  min-width: 250px;
}

.dashboard-viewer-layout .event-table {
  width: 100%;
  min-width: 850px;
}

.dashboard-viewer-layout .event-table tbody tr {
  height: 27px;
}

.dashboard-event-name {
  font-weight: 700;
}

.dashboard-muted {
  color: #666;
}

.dashboard-monospace {
  font-family: Consolas, "Courier New", monospace;
}

.dashboard-error {
  color: #7f0000 !important;
}

.dashboard-success {
  color: #145a00 !important;
}

.tray-button {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .dashboard-viewer-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-viewer-layout .event-details {
    margin-top: 2px;
  }
}

@media (max-width: 700px),
       (max-height: 500px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-search-field {
    min-width: 0;
  }

  #minecraft-dashboard-window > .title-bar[data-window-drag-handle] {
    cursor: default;
  }
}

@media (max-width: 420px) {
  .section-heading h1,
  .section-heading h2 {
    font-size: 18px;
  }

  .dashboard-privacy-note {
    padding-left: 9px;
    background-image: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  #minecraft-dashboard-window {
    transition: none;
  }
}
