:root {
  color-scheme: light;
  --background: #f3f6fb;
  --surface: #ffffff;
  --ink: #14243d;
  --muted: #52637b;
  --line: #d5e0f0;
  --blue: #244fd0;
  --blue-soft: #e8efff;
  --online: #19734f;
  --online-soft: #e8f5ee;
  --unavailable: #59677a;
  --unavailable-soft: #eef2f7;
  --unverified: #795120;
  --unverified-soft: #fbf0dd;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: var(--background);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
[hidden], .symbols { display: none; }
::selection { background: #d6e2ff; color: var(--ink); }

svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: min(100%, 1460px);
  margin-inline: auto;
  padding: 54px 36px 32px;
}

.page-header, .heading, .status-tools {
  display: flex;
  align-items: center;
}

.page-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.heading { gap: 15px; }
.navigation-heading { min-width: 0; overflow-wrap: anywhere; }

.brand-icon, .board-icon {
  display: grid;
  flex: none;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 24px;
}

h1 {
  font-size: 1.9rem;
  font-weight: 740;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.status-tools {
  gap: 14px;
  flex-wrap: wrap;
}

.navigation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#summary {
  color: var(--muted);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

button, .settings-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

.settings-link { text-decoration: none; white-space: nowrap; }
button svg, .settings-link svg { color: var(--blue); font-size: 1rem; }
button:hover:not([aria-disabled="true"]), .settings-link:hover { border-color: #8aa4e4; }
button:active:not([aria-disabled="true"]), .settings-link:active { background: var(--blue-soft); }
button[aria-disabled="true"] { cursor: wait; color: var(--muted); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(var(--board-columns, 4), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-grid[data-columns="2"] { --board-columns: 2; }
.board-grid[data-columns="3"] { --board-columns: 3; }

.board {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 236px;
  padding: 23px;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.board:hover {
  background: #fcfdff;
  border-color: #8aa4e4;
}

.board:active { background: #f0f4ff; }
.board:hover .board-action span { text-decoration: underline; text-underline-offset: .22em; }
button:focus-visible, .board:focus-visible, .settings-link:focus-visible, .notice a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.board-top, .board-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
}

.board-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--unavailable);
  background: var(--unavailable-soft);
  font-size: .75rem;
  line-height: 1.35;
  white-space: nowrap;
}

.board-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.board-status[data-state="online"] { color: var(--online); background: var(--online-soft); }
.board-status[data-state="unverified"] { color: var(--unverified); background: var(--unverified-soft); }

h2 {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 720;
}

.description {
  margin-top: 6px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
}

.board-bottom {
  margin-top: auto;
  padding-top: 21px;
}

.board-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 650;
}

.board-action svg { font-size: .9375rem; }

.board-address {
  max-width: 45%;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  line-height: 1.6;
}

.notice a { color: var(--blue); text-underline-offset: .2em; }

footer {
  margin-top: 18px;
  color: var(--muted);
  text-align: right;
  font-size: .75rem;
}

@media (max-width: 1150px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .page { padding: 24px 16px 24px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .brand-icon { width: 44px; height: 44px; font-size: 21px; }
  h1 { font-size: 1.5rem; }
  .status-tools { width: 100%; justify-content: space-between; gap: 8px; }
  .board-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .board { min-height: 200px; padding: 18px; }
  h2 { margin-top: 15px; }
  .board-bottom { padding-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .board { transition: none; }
}
