/* Inset card treatment adapted from adamgiebl's Uiverse card, in Overseer colors. */

.shard-status-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 0 24px;
  color: #e9e7ee;
  font-family: Inter, system-ui, sans-serif;
}
.shard-status-page [hidden] {
  display: none !important;
}
.status-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.status-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: #ad96cb;
  margin: 0 0 8px;
}
.shard-status-page h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 650;
}
.shard-status-page h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.network-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #bdb6c6;
  font-size: 13px;
  white-space: nowrap;
}
.network-state:before,
.live-indicator:before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #82778d;
}
.network-state[data-state='online']:before {
  background: #65cb96;
}
.network-state[data-state='degraded']:before {
  background: #e0b86a;
}
.network-state[data-state='disconnected']:before {
  background: #df8282;
}
.network-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid #292331;
  border-bottom: 1px solid #292331;
}
.network-summary > div {
  padding: 0 24px;
  border-left: 1px solid #292331;
}
.network-summary > div:first-child {
  padding-left: 0;
  border: 0;
}
.network-summary dt {
  color: #9992a5;
  font-size: 12px;
}
.network-summary dd {
  font-size: 25px;
  font-weight: 550;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.status-notice {
  font-size: 12px;
  color: #d4b982;
  margin: 16px 0 0;
  line-height: 1.5;
}
.server-check {
  margin: 32px 0 36px;
}
.server-check-heading {
  margin-bottom: 16px;
}
.server-check-heading p,
.status-support p {
  font-size: 13px;
  color: #9992a5;
  margin: 6px 0 0;
  line-height: 1.5;
}
.server-search {
  display: flex;
  gap: 10px;
}
.server-search input {
  display: block;
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #352b43;
  border-radius: 9px;
  background: #151119;
  color: #eae5f2;
  padding: 0 14px;
  font: 14px system-ui;
  box-shadow: inset 0 2px 5px #0003;
}
.server-search input::placeholder {
  color: #81788f;
}
.shard-status-page .status-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: none;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #8464b4;
  border-radius: 9px;
  background: #75519e;
  color: #fff;
  font: 600 13px system-ui;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transform: none;
}
.status-search-button svg {
  width: 16px;
  height: 16px;
}
.shard-status-page .status-search-button:hover {
  background: #8660b0;
}
.status-search-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.lookup-feedback,
.profile-note {
  font-size: 12px;
  color: #b3a8c3;
  line-height: 1.5;
  margin: 12px 0 0;
}
.lookup-feedback[data-error='true'] {
  color: #e3a0a0;
}
.server-result {
  border: 1px solid #3d304d;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  background: #1b1522;
}
.server-result-banner {
  height: 100px;
  background-position: center;
  background-size: cover;
}
.server-result-body {
  padding: 20px;
}
.server-result-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.server-result-profile > div {
  min-width: 0;
}
.server-result-profile img {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.server-result-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.server-result-name strong {
  font-size: 15px;
  color: #f0ebf5;
  overflow-wrap: anywhere;
}
.server-result-profile p {
  font-size: 13px;
  color: #b2a9bd;
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.server-result-id {
  font-size: 11px;
  color: #a296b1;
  font-variant-numeric: tabular-nums;
}
.server-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #342a40;
  margin: 18px 0 0;
  padding-top: 16px;
}
.server-result-metrics dt {
  color: #a79ab3;
  font-size: 11px;
}
.server-result-metrics dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.server-result-metrics [data-state='online'] {
  color: #86cba3;
}
.gateway-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #948b9f;
}
.live-indicator:before {
  background: #65cb96;
  width: 5px;
  height: 5px;
}
.live-indicator[data-stale='true']:before {
  background: #82778d;
}
.shard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.shard-card {
  min-width: 0;
  border-radius: 26px;
  background: #211c2b;
  border: 1px solid #332b40;
  padding: 22px;
  box-shadow:
    rgba(57, 39, 84, 0.36) 0 28px 46px -12px inset,
    rgba(0, 0, 0, 0.48) 0 18px 26px -18px inset;
}
.shard-card-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.shard-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f0e8f7;
  margin: 0;
  letter-spacing: 0;
}
.shard-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: capitalize;
  color: #b0a2be;
}
.shard-state:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #887894;
}
.shard-card[data-state='online'] .shard-state {
  color: #8bd6aa;
}
.shard-card[data-state='online'] .shard-state:before {
  background: #70cb96;
}
.shard-card:is([data-state='reconnecting'], [data-state='connecting'], [data-state='starting'])
  .shard-state {
  color: #debc7a;
}
.shard-card[data-state='disconnected'] .shard-state {
  color: #e4a0a0;
}
.shard-card[data-selected='true'] {
  border-color: #ad7ce0;
  outline: 1px solid #ad7ce0;
  outline-offset: 2px;
}
.shard-card dl {
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}
.shard-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shard-card dt {
  font-size: 11px;
  color: #a99bb7;
}
.shard-card dd {
  font-size: 12px;
  color: #ded1ec;
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shard-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 28px;
  color: #aaa0b7;
  font-size: 13px;
}
.status-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #2c2535;
  padding-top: 24px;
  margin-top: 32px;
}
.status-support h2 {
  font-size: 14px;
}
.shard-status-page .status-discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  padding: 12px 18px;
  border: 1px solid #6e78f5;
  border-radius: 9px;
  background: #5865f2;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  box-sizing: border-box;
}
.status-discord-button svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.shard-status-page .status-discord-button:hover {
  background: #4752c4;
}
.shard-status-page :is(input, button, a):focus-visible {
  outline: 2px solid #bda0e5;
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .shard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .shard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .shard-status-page {
    padding-top: 0;
  }
  .shard-status-page h1 {
    font-size: 30px;
  }
  .status-heading {
    margin-bottom: 24px;
    align-items: flex-end;
    gap: 12px;
  }
  .network-state {
    font-size: 11px;
    gap: 6px;
  }
  .network-summary > div {
    padding: 0 14px;
  }
  .network-summary dt {
    font-size: 10px;
  }
  .network-summary dd {
    font-size: 20px;
  }
  .server-check {
    margin: 26px 0;
  }
  .server-search {
    gap: 8px;
  }
  .server-search input {
    font-size: 13px;
    padding: 0 11px;
  }
  .shard-status-page .status-search-button {
    padding: 0 12px;
    font-size: 12px;
    gap: 6px;
  }
  .shard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .shard-card {
    border-radius: 22px;
    padding: 18px 16px;
  }
  .shard-card h3 {
    font-size: 14px;
  }
  .shard-card dd {
    font-size: 11px;
  }
  .shard-card dt {
    font-size: 10px;
  }
  .server-result-body {
    padding: 16px;
  }
  .server-result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
  .status-support {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .shard-status-page .status-discord-button {
    width: 100%;
  }
}
.shard-status-page .shard-card dl {
  grid-template-columns: minmax(0, 1fr);
}
.shard-status-page .status-heading {
  flex-direction: row;
  text-align: left;
}
.shard-status-page .shard-card dl > div {
  min-width: 0;
}
body:has(.shard-status-page) {
  background: #0c0b10;
}
.status-server-picker {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-server-picker label {
  font-size: 13px;
  color: #bdb2c9;
  white-space: nowrap;
}
.status-server-picker select {
  flex: 1;
  min-width: 0;
  margin: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #352b43;
  border-radius: 9px;
  background: #151119;
  color: #eae5f2;
  font: 14px system-ui;
}
@media (max-width: 600px) {
  .status-server-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .status-server-picker select {
    flex: auto;
    width: 100%;
  }
}

.shard-card[role='button'] {
  cursor: pointer;
  transition: border-color 0.15s;
}
.shard-card[role='button']:hover {
  border-color: #ac83d6;
}
.shard-card[role='button']:focus-visible {
  outline: 2px solid #c6a1ee;
  outline-offset: 4px;
}
.shard-detail-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 28px));
  max-height: 88dvh;
  overflow: auto;
  padding: 28px;
  border: 1px solid #493659;
  border-radius: 22px;
  background: #17121f;
  color: #eee8f5;
  box-shadow: 0 24px 90px #0009;
}
.shard-detail-dialog::backdrop {
  background: #07050dcc;
  backdrop-filter: blur(5px);
}
.shard-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.shard-detail-header .eyebrow {
  color: #b28cd9;
  font-size: 11px;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}
.shard-detail-header h2 {
  font-size: 26px;
  margin: 0;
}
.shard-detail-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #493659;
  border-radius: 10px;
  background: #282032;
  color: #eee;
  font-size: 25px;
  cursor: pointer;
}
.shard-detail-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid #91879e;
  background: #211a2b;
  padding: 15px 18px;
  border-radius: 8px;
}
.shard-detail-state[data-state='online'] {
  border-color: #70cb96;
}
.shard-detail-state[data-state='online'] strong {
  color: #8bd6aa;
}
.shard-detail-state span,
.shard-detail-dialog p {
  font-size: 13px;
  color: #b5a8c4;
  line-height: 1.6;
}
.shard-history {
  margin: 24px 0;
}
.shard-history h3 {
  font-size: 15px;
  margin: 0;
}
.shard-history p {
  margin: 6px 0 12px;
}
.shard-history-bar {
  display: flex;
  gap: 3px;
  min-height: 42px;
  padding: 10px;
  background: #100d16;
  border-radius: 10px;
}
.shard-history-bar > span {
  flex: 1;
  max-width: 16px;
  min-width: 2px;
  border-radius: 3px;
  background: #655c70;
}
.shard-history-bar > span[data-state='online'] {
  background: #70cb96;
}
.shard-history-bar
  > span:is([data-state='starting'], [data-state='connecting'], [data-state='reconnecting']) {
  background: #debc7a;
}
.shard-history-bar > span[data-state='disconnected'] {
  background: #dd858e;
}
.shard-history-legend {
  font-size: 11px;
  line-height: 1.6;
  color: #ad9dba;
  margin-top: 8px;
}
.shard-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.shard-detail-metrics > div {
  padding: 14px;
  background: #211a2b;
  border: 1px solid #34283f;
  border-radius: 12px;
  min-width: 0;
}
.shard-detail-metrics dt {
  font-size: 12px;
  color: #ad9dba;
}
.shard-detail-metrics dd {
  font-size: 15px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .shard-detail-dialog {
    padding: 20px;
  }
  .shard-detail-metrics {
    gap: 8px;
  }
  .shard-detail-metrics > div {
    padding: 11px;
  }
}

.shard-history-bar > span {
  max-width: none;
  min-width: 0;
}
.shard-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.shard-history-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shard-history-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #655c70;
  flex: none;
}
.shard-history-legend i[data-state='online'] {
  background: #70cb96;
}
.shard-history-legend i[data-state='connecting'] {
  background: #debc7a;
}
.shard-history-legend i[data-state='disconnected'] {
  background: #dd858e;
}
.shard-history-bar > span:focus-visible {
  outline: 2px solid #eee;
  outline-offset: 2px;
}

/* Shard panels keep their neutral Discord-like surfaces and semantic state colors. */
.shard-card,
.shard-detail-dialog {
  background: #18191d;
  border-color: #ffffff1c;
  color: #f2f3f5;
}
.shard-card:hover,
.shard-card:focus-visible {
  background: #202127;
  border-color: #8a8d98;
}
.shard-card[data-selected='true'] {
  border-color: #9ca5b8;
  box-shadow: 0 0 0 1px #9ca5b833;
}
.shard-detail-state,
.shard-detail-metrics > div {
  background: #222329;
  border-color: #ffffff16;
}
.shard-detail-header .eyebrow,
.shard-detail-metrics dt,
.shard-detail-dialog p,
.shard-detail-state span {
  color: #b5bac1;
}
.shard-detail-close {
  background: #27282f;
  border-color: #ffffff20;
  color: #f2f3f5;
}
.shard-history-bar {
  background: #111216;
  padding: 8px;
  min-height: 48px;
  gap: 4px;
}
.shard-history-bar > span {
  background: #59606b;
  border-radius: 4px;
  min-height: 32px;
}
.shard-history-bar > span[data-state='online'],
.shard-history-legend i[data-state='online'] {
  background: #43b581;
}
.shard-history-bar
  > span:is([data-state='starting'], [data-state='connecting'], [data-state='reconnecting']),
.shard-history-legend i[data-state='connecting'] {
  background: #f0b232;
}
.shard-history-bar > span[data-state='disconnected'],
.shard-history-legend i[data-state='disconnected'] {
  background: #ed4245;
}
.shard-history-inspection {
  padding: 12px 14px;
  border: 1px solid #ffffff16;
  background: #222329;
  border-radius: 8px;
  min-height: 44px;
  color: #f2f3f5 !important;
}
.shard-state[data-state='online'] {
  color: #79d8aa;
}
.shard-state:is([data-state='connecting'], [data-state='reconnecting'], [data-state='starting']) {
  color: #f0b232;
}
.shard-state[data-state='disconnected'] {
  color: #f78d91;
}

.shard-loading-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.shard-loading-icon[hidden],
.shards-loading-count[hidden] {
  display: none !important;
}
.network-shard-count {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shards-loading-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #f0c463;
  white-space: nowrap;
}
.network-state[data-state='loading'] {
  color: #f0c463;
}
.network-state[data-state='loading']:before {
  background: #f0c463;
}
.status-notice[data-loading='true'] {
  color: #f0c463;
}
.gateway-list-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shard-card:is([data-state='starting'], [data-state='connecting']) .shard-state:before {
  display: none;
}
@media (max-width: 600px) {
  .network-shard-count {
    gap: 4px;
  }
  .shards-loading-count {
    font-size: 10px;
  }
  .shards-loading-count .shard-loading-icon {
    width: 15px;
    height: 15px;
  }
}

/* Neutral surfaces keep a single disruption from tinting the whole network. */
.shard-status-page {
  color: #f2f2f2;
}
.status-kicker {
  color: #aaa;
}
.status-heading {
  align-items: center;
}
.network-state {
  color: #eee;
  padding: 9px 12px;
  border: 1px solid #ffffff1c;
  background: #191919;
  border-radius: 8px;
  white-space: normal;
  line-height: 1.4;
}
.network-state[data-state='online']:before {
  background: #5ab18b;
}
.network-state:is([data-state='degraded'], [data-state='loading']):before {
  background: #c7a160;
}
.network-state[data-state='disconnected']:before {
  background: #c7727d;
}
.network-state[data-state='loading'],
.shards-loading-count {
  color: #d1d1d1;
}
.status-notice,
.status-notice[data-loading='true'] {
  color: #c3c3c3;
  background: #191919;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  padding: 12px 14px;
}
.network-summary {
  border-color: #ffffff16;
}
.network-summary > div {
  border-color: #ffffff16;
}
.network-summary dt {
  color: #b5b5b5;
}
.network-summary dd {
  color: #fff;
}
.server-check {
  padding: 22px;
  border: 1px solid #ffffff16;
  border-radius: 14px;
  background: #151515;
}
.server-check-heading p,
.status-support p {
  color: #b5b5b5;
}
.shard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shard-card,
.shard-card:is(
  [data-state='online'],
  [data-state='connecting'],
  [data-state='reconnecting'],
  [data-state='starting'],
  [data-state='disconnected']
) {
  background: #191919;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 18px;
  box-shadow: none;
}
.shard-card:hover,
.shard-card:focus-visible {
  background: #212121;
  border-color: #ffffff50;
}
.shard-card h3 {
  color: #f3f3f3;
}
.shard-card dt {
  color: #b5b5b5;
}
.shard-card dd {
  color: #e6e6e6;
}
.shard-card .shard-state,
.shard-state[data-state='online'],
.shard-state[data-state='disconnected'],
.shard-state:is([data-state='connecting'], [data-state='reconnecting'], [data-state='starting']) {
  color: #c6c6c6;
}
.shard-card[data-state='online'] .shard-state:before {
  background: #5ab18b;
}
.shard-card:is([data-state='connecting'], [data-state='reconnecting'], [data-state='starting'])
  .shard-state:before {
  background: #c7a160;
}
.shard-card[data-state='disconnected'] .shard-state:before {
  background: #c7727d;
}
.shard-detail-state,
.shard-detail-metrics > div,
.shard-history-inspection {
  background: #212121;
}
.shard-detail-state strong,
.shard-detail-state[data-state='online'] strong {
  color: #f2f2f2;
}
.shard-detail-state {
  border-left-color: #777;
}
.shard-detail-state[data-state='online'] {
  border-left-color: #5ab18b;
}
.shard-detail-state:is(
  [data-state='connecting'],
  [data-state='reconnecting'],
  [data-state='starting']
) {
  border-left-color: #c7a160;
}
.shard-detail-state[data-state='disconnected'] {
  border-left-color: #c7727d;
}
.shard-history-bar > span[data-state='online'],
.shard-history-legend i[data-state='online'] {
  background: #5ab18b;
}
.shard-history-bar
  > span:is([data-state='starting'], [data-state='connecting'], [data-state='reconnecting']),
.shard-history-legend i[data-state='connecting'] {
  background: #c7a160;
}
.shard-history-bar > span[data-state='disconnected'],
.shard-history-legend i[data-state='disconnected'] {
  background: #c7727d;
}
@media (max-width: 760px) {
  .shard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .server-check {
    padding: 16px;
  }
  .network-state {
    max-width: 155px;
    padding: 8px 10px;
  }
  .shard-card {
    padding: 15px;
  }
  .status-heading {
    align-items: flex-start;
  }
}

.shard-card:is(
    [data-state='online'],
    [data-state='connecting'],
    [data-state='reconnecting'],
    [data-state='starting'],
    [data-state='disconnected']
  )
  .shard-state {
  color: #c6c6c6;
}

/* Keep status meaning and the site's accent; only metric glyphs are white. */
.shard-status-page .status-kicker,
.shard-status-page .status-heading h1 svg.button-icon {
  color: var(--accent);
}
.network-state[data-state='online'] {
  color: #79cda6;
}
.network-state:is([data-state='degraded'], [data-state='loading']) {
  color: #d4b37b;
}
.network-state[data-state='disconnected'] {
  color: #df929d;
}
.shard-card[data-state='online'] .shard-state {
  color: #79cda6;
}
.shard-card:is([data-state='connecting'], [data-state='reconnecting'], [data-state='starting'])
  .shard-state {
  color: #d4b37b;
}
.shard-card[data-state='disconnected'] .shard-state {
  color: #df929d;
}

/* Daily samples remain readable and selectable on small screens. */
.shard-history-bar {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  padding: 8px 0;
  background: transparent;
}
.shard-history-bar > button {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: #62666e;
  box-shadow: none;
  cursor: pointer;
  transform: none;
}
.shard-history-bar > button:hover,
.shard-history-bar > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.shard-history-bar > p {
  grid-column: 1/-1;
}
.shard-history-dates {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #b5bac1;
}
.shard-history-inspection {
  overflow-wrap: anywhere;
}
.shard-detail-close {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 480px) {
  .shard-history-bar {
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 5px;
  }
  .shard-history-bar > button {
    height: 44px;
  }
  .shard-detail-dialog {
    max-height: 90dvh;
  }
  .shard-detail-metrics {
    grid-template-columns: 1fr;
  }
}

/* Use the configured website accent for headings and metric labels. */
.shard-status-page
  :is(
    .shard-card h3,
    .gateway-list-heading h2,
    .server-check-heading h2,
    .status-support h2,
    .status-kicker
  ),

.shard-status-page .shard-detail-header :is(h2, .eyebrow),
.shard-status-page .shard-history h3,
.shard-status-page .status-server-picker label {
  color: var(--accent, #9500ff);
}
.shard-status-page :is(.network-summary,.shard-card,.server-result-metrics,.shard-detail-metrics) dt { color: #bbbcc4; }
.shard-status-page dt svg.button-icon {
  color: #fff;
}
.shard-status-page dt img.button-icon {
  filter: grayscale(1) brightness(0) invert(1);
}
.shard-status-page .shard-card[data-selected='true'] {
  border-color: var(--accent, #9500ff);
  outline-color: var(--accent, #9500ff);
}
.shard-status-page .shard-card[role='button']:focus-visible {
  outline-color: var(--accent, #9500ff);
}

/* Mobile shard detail sheet: stable header and compact metric rows. */
.shard-status-page .shard-detail-close svg {
  display: block;
  width: 20px;
  height: 20px;
}
.shard-status-page .shard-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #18191d;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  body #main-content .shard-status-page .status-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .shard-status-page .network-state {
    max-width: none;
  }
  .shard-status-page .shard-detail-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    margin: auto 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  .shard-status-page .shard-detail-header h2 {
    font-size: 24px;
    line-height: 1.25;
  }
  .shard-status-page .shard-detail-header .eyebrow {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .shard-status-page .shard-detail-metrics {
    display: block;
    border: 1px solid #ffffff16;
    border-radius: 12px;
    overflow: hidden;
    margin: 18px 0;
  }
  .shard-status-page .shard-detail-metrics > div {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #ffffff12;
    border-radius: 0;
    padding: 13px 14px;
  }
  .shard-status-page .shard-detail-metrics > div:last-child {
    border-bottom: 0;
  }
  .shard-status-page .shard-detail-metrics dd {
    margin: 0;
    font-size: 13px;
    text-align: right;
    line-height: 1.5;
  }
  .shard-status-page .shard-history-bar {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
  }
  .shard-status-page .shard-history-bar > button {
    min-height: 32px;
    height: 32px;
  }
  .shard-status-page .shard-history {
    margin: 18px 0;
  }
}

/* Written by Hades. Inset card treatment adapted from adamgiebl's Uiverse card, in Overseer colors. */
