:root {
  --bb-teal: #167a78;
  --bb-teal-dark: #0f5957;
  --bb-cream: #f5f4ee;
  --bb-cream-dim: #ecebe2;
  --bb-text: #1f2937;
  --bb-muted: #6b7280;
  --bb-accent: #cd3d56;
  --bb-tile-bg: #ffffff;
  --bb-tile-border: rgba(22, 122, 120, 0.18);
  --bb-tile-shadow: 0 1px 2px rgba(15, 89, 87, 0.05), 0 4px 12px rgba(15, 89, 87, 0.08);
  --bb-tile-shadow-hover: 0 2px 4px rgba(15, 89, 87, 0.08), 0 12px 28px rgba(15, 89, 87, 0.18);
  --bb-radius: 14px;
  --bb-radius-sm: 8px;
  --bb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--bb-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bb-text);
  background: var(--bb-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--bb-teal);
  color: #fff;
  border-radius: var(--bb-radius-sm);
  z-index: 100;
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1px solid rgba(22, 122, 120, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  display: block;
  border-radius: 6px;
}
.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bb-teal-dark);
  line-height: 1.1;
}
.brand-sub {
  font-size: 13px;
  color: var(--bb-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signed-in {
  font-size: 13px;
  color: var(--bb-muted);
  background: var(--bb-cream-dim);
  padding: 6px 12px;
  border-radius: 999px;
}

main {
  flex: 1;
  padding: 32px 28px 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }

.group h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--bb-teal-dark);
  letter-spacing: -0.01em;
}
.group-sub {
  margin: 0 0 24px;
  color: var(--bb-muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bb-tile-bg);
  border: 1px solid var(--bb-tile-border);
  border-radius: var(--bb-radius);
  text-decoration: none;
  color: var(--bb-text);
  box-shadow: var(--bb-tile-shadow);
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease;
  position: relative;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--bb-tile-shadow-hover);
  border-color: rgba(22, 122, 120, 0.4);
}
.tile:focus-visible {
  outline: 3px solid var(--bb-accent);
  outline-offset: 2px;
}
.tile.lan::before {
  content: "LAN";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--bb-muted);
  background: var(--bb-cream-dim);
  padding: 3px 8px;
  border-radius: 999px;
}
.tile-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bb-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.tile-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--bb-teal-dark);
}
.tile-desc {
  font-size: 13px;
  color: var(--bb-muted);
  line-height: 1.4;
}
.tile-host {
  font-size: 12px;
  color: var(--bb-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(22, 122, 120, 0.16);
}

footer {
  padding: 20px 28px;
  background: var(--bb-cream-dim);
  border-top: 1px solid rgba(22, 122, 120, 0.12);
  font-size: 13px;
  color: var(--bb-muted);
  text-align: center;
}
footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bb-cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--bb-text);
}
footer a {
  color: var(--bb-teal);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  header { padding: 14px 16px; }
  main { padding: 20px 16px 48px; }
  .grid { grid-template-columns: 1fr; }
  .signed-in { display: none; }
}

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

@media (prefers-contrast: more) {
  .tile { border-color: var(--bb-teal-dark); }
  .group-sub, .tile-desc, .tile-host, footer { color: var(--bb-text); }
}
