:root {
  --rb-bg: #081018;
  --rb-panel: rgba(15, 24, 36, .9);
  --rb-card: rgba(255, 255, 255, .055);
  --rb-card-strong: rgba(255, 255, 255, .09);
  --rb-line: rgba(152, 175, 210, .2);
  --rb-text: #edf6ff;
  --rb-muted: #94a7c1;
  --rb-blue: #73b5ff;
  --rb-green: #65d79b;
  --rb-yellow: #ffd166;
  --rb-red: #ff7087;
}

* { box-sizing: border-box; }
body.lab-sandbox-page--resource-board {
  margin: 0;
  min-height: 100vh;
  color: var(--rb-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(115, 181, 255, .2), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(101, 215, 155, .14), transparent 32%),
    linear-gradient(135deg, #060b12 0%, var(--rb-bg) 54%, #101622 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rb-shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.rb-hero,
.rb-notice,
.rb-panel,
.rb-stat,
.rb-view-switcher {
  border: 1px solid var(--rb-line);
  background: var(--rb-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
}

.rb-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
}

.rb-back,
.rb-eyebrow,
.rb-lead,
.rb-hint,
.rb-item span,
.rb-cell small,
.rb-stat span,
.rb-warning,
.rb-dropzone__placeholder,
.rb-chip small { color: var(--rb-muted); }

.rb-back {
  display: inline-flex;
  margin-bottom: 18px;
  text-decoration: none;
  transition: color .18s ease;
}
.rb-back:hover { color: var(--rb-text); }

.rb-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}

.rb-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: .95;
  letter-spacing: -.06em;
}

.rb-lead {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
}

.rb-actions,
.rb-panel__head,
.rb-item__top,
.rb-slot__top,
.rb-result-row,
.rb-view-switcher { display: flex; gap: 14px; }
.rb-actions,
.rb-panel__head,
.rb-item__top,
.rb-slot__top,
.rb-result-row { align-items: flex-start; justify-content: space-between; }

.rb-btn,
.rb-item,
.rb-cell,
.rb-remove,
.rb-view-btn,
.rb-chip {
  border: 1px solid var(--rb-line);
  color: var(--rb-text);
  background: var(--rb-card);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.rb-btn,
.rb-item,
.rb-cell,
.rb-remove,
.rb-view-btn,
.rb-chip { cursor: pointer; }
.rb-btn:hover,
.rb-item:hover,
.rb-cell:hover,
.rb-remove:hover,
.rb-view-btn:hover,
.rb-chip:hover { transform: translateY(-1px); border-color: rgba(115, 181, 255, .5); }

.rb-btn {
  min-width: 132px;
  padding: 13px 16px;
  border-radius: 16px;
  font-weight: 800;
}
.rb-btn--primary { background: linear-gradient(135deg, rgba(115, 181, 255, .95), rgba(101, 215, 155, .86)); color: #05101d; }
.rb-btn--ghost { background: rgba(255, 255, 255, .06); }

.rb-notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #dceaff;
}

.rb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.rb-stat { padding: 18px; border-radius: 22px; }
.rb-stat span,
.rb-stat strong { display: block; }
.rb-stat strong { margin-top: 8px; font-size: 28px; }

.rb-view-switcher {
  margin-top: 16px;
  padding: 10px;
  border-radius: 20px;
}

.rb-view-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
}
.rb-view-btn.is-active {
  background: rgba(101, 215, 155, .14);
  border-color: rgba(101, 215, 155, .62);
}

.rb-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.rb-panel {
  border-radius: 26px;
  padding: 20px;
}
.rb-panel__head { margin-bottom: 16px; }
.rb-panel h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.rb-hint { font-size: 12px; text-align: right; }

.rb-list { display: grid; gap: 10px; }
.rb-item {
  width: 100%;
  padding: 13px;
  border-radius: 18px;
  text-align: left;
}
.rb-item.is-active { border-color: rgba(101, 215, 155, .74); background: rgba(101, 215, 155, .12); }
.rb-item.is-disabled { opacity: .48; cursor: not-allowed; }
.rb-item.is-draggable { border-style: dashed; }
.rb-item strong { display: block; font-size: 15px; }
.rb-item span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; }
.rb-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(115, 181, 255, .15);
  font-size: 12px;
  font-weight: 900;
}
.rb-count--warn { background: rgba(255, 209, 102, .16); color: var(--rb-yellow); }
.rb-count--bad { background: rgba(255, 112, 135, .16); color: var(--rb-red); }

.rb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rb-object {
  border: 1px solid var(--rb-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}
.rb-object--tile { min-height: auto; }
.rb-object__head { padding: 16px; border-bottom: 1px solid var(--rb-line); }
.rb-object h3 { margin: 0; font-size: 18px; }
.rb-object p { margin: 8px 0 0; color: var(--rb-muted); font-size: 13px; line-height: 1.45; }
.rb-object__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rb-object__tags span,
.rb-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--rb-card-strong);
  color: #dceaff;
  font-size: 11px;
  font-weight: 800;
}

.rb-cells,
.rb-tile-slots { display: grid; gap: 12px; padding: 12px; }
.rb-cell {
  width: 100%;
  min-height: 82px;
  padding: 11px;
  border-radius: 16px;
  text-align: left;
}
.rb-cell.is-filled { background: rgba(101, 215, 155, .1); border-color: rgba(101, 215, 155, .35); }
.rb-cell.is-warn { background: rgba(255, 209, 102, .08); border-color: rgba(255, 209, 102, .32); }
.rb-cell strong { display: block; font-size: 14px; }
.rb-cell small { display: block; margin-top: 5px; line-height: 1.35; }

.rb-tile-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rb-tile-slot {
  padding: 12px;
  border: 1px solid var(--rb-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
.rb-tile-slot.is-filled { border-color: rgba(101, 215, 155, .38); }
.rb-tile-slot.is-partial { border-color: rgba(255, 209, 102, .38); }

.rb-dropzone {
  margin-top: 10px;
  min-height: 88px;
  padding: 10px;
  border: 1px dashed rgba(152, 175, 210, .32);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
}
.rb-dropzone.is-filled { border-style: solid; border-color: rgba(115, 181, 255, .26); }
.rb-dropzone.is-over { border-color: rgba(101, 215, 155, .72); background: rgba(101, 215, 155, .08); }
.rb-dropzone__label {
  display: block;
  margin-bottom: 8px;
  color: #dceaff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rb-dropzone__placeholder {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.rb-chip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
}
.rb-chip--person { background: rgba(101, 215, 155, .08); }
.rb-chip--equipment { background: rgba(115, 181, 255, .08); }
.rb-chip strong,
.rb-result-row strong { display: block; }
.rb-chip small,
.rb-result-row span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; }
.rb-chip.is-dragging,
.rb-item.is-dragging { opacity: .55; }

.rb-bottom { margin-top: 16px; }
.rb-result { display: grid; gap: 10px; }
.rb-result-row {
  padding: 12px 14px;
  border: 1px solid var(--rb-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}
.rb-warning { margin: 8px 0 0; color: var(--rb-yellow); }
.rb-remove {
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.rb-remove.is-hidden { opacity: .35; cursor: default; }

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

@media (max-width: 760px) {
  .rb-shell { width: min(100% - 20px, 1540px); padding-top: 16px; }
  .rb-hero { display: block; padding: 22px; }
  .rb-actions { margin-top: 18px; justify-content: stretch; }
  .rb-btn,
  .rb-view-btn { flex: 1; min-width: 0; }
  .rb-actions,
  .rb-view-switcher { flex-wrap: wrap; }
  .rb-stats,
  .rb-board,
  .rb-tile-board { grid-template-columns: 1fr; }
  .rb-panel { padding: 16px; border-radius: 22px; }
}
