:root {
  --bg: #061226;
  --panel: #0b203b;
  --line: #26496f;
  --text: #d6e7ff;
  --muted: #8db0d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #0f3158, var(--bg)) fixed;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px 8px;
}

.eyebrow {
  margin: 0;
  color: #16cfff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 { margin: 4px 0; font-size: 30px; }
.meta { margin: 0; color: var(--muted); }

.btn {
  border: 1px solid #2f5f91;
  border-radius: 10px;
  background: #0f3157;
  color: #cae5ff;
  text-decoration: none;
  padding: 8px 12px;
  cursor: pointer;
}

.company-select {
  border: 1px solid #2f5f91;
  border-radius: 10px;
  background: #0f3157;
  color: #cae5ff;
  padding: 8px 10px;
  min-width: 180px;
}

.wall-main { padding: 8px 14px 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #0b2342, #0a1d36);
  padding: 8px;
}

.title {
  font-size: 13px;
  color: #d2e9ff;
  font-weight: 700;
  margin-bottom: 6px;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  font-size: 12px;
  color: #9fc3e9;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2b4f752e;
}

.risk-high { color: #ff7c97; font-weight: 700; }
.risk-mid { color: #ffc46b; font-weight: 700; }
.risk-low { color: #74efba; font-weight: 700; }

.frame {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #2b4f75;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #08162b;
  cursor: pointer;
}

.actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn.tiny {
  padding: 4px 8px;
  font-size: 12px;
}

.wall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
.wall-lightbox[hidden] { display: none !important; }
.wall-lightbox-mask { position: absolute; inset: 0; background: #020b16d9; }
.wall-lightbox-content {
  position: relative;
  width: min(1400px, 96vw);
  max-height: 94vh;
  border: 1px solid #2f5f91;
  border-radius: 14px;
  background: #0b203b;
  padding: 12px;
}
.wall-viewport {
  margin-top: 10px;
  width: 100%;
  height: min(78vh, 920px);
  overflow: auto;
  border: 1px solid #2b4f75;
  border-radius: 10px;
  background: #0a1d36;
}
#wallZoomImage { width: 100%; display: block; }

@media (max-width: 1680px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  .topbar {
    display: grid;
    gap: 8px;
    padding: 10px 10px 6px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .meta {
    font-size: 14px;
  }

  .btn {
    min-height: 40px;
    font-size: 14px;
    padding: 8px 12px;
  }

  .wall-main {
    padding: 6px 10px 12px;
  }

  .card {
    padding: 10px;
  }

  .title {
    font-size: 16px;
  }

  .meta-row {
    font-size: 14px;
  }

  .btn.tiny {
    min-height: 36px;
    font-size: 13px;
  }
}
