.rogue-bag-builder-app {
  --rbb-ink: #16211c;
  --rbb-muted: #5e6b63;
  --rbb-line: #d9ded7;
  --rbb-field: #f4f7f2;
  --rbb-accent: #2f6f4e;
  --rbb-accent-dark: #1f4f38;
  --rbb-amber: #d89428;
  --rbb-blue: #34758f;
  --rbb-danger: #a84f32;
  --rbb-shadow: 0 18px 45px rgba(22, 33, 28, 0.12);
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--rbb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rogue-bag-builder-app * {
  box-sizing: border-box;
}

.rogue-bag-builder-app button,
.rogue-bag-builder-app input,
.rogue-bag-builder-app select,
.rogue-bag-builder-app textarea {
  font: inherit;
}

.rbb-intro {
  min-height: 360px;
  margin-bottom: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 15, 12, 0.9), rgba(10, 15, 12, 0.58)),
    var(--rbb-logo-url, none) center/cover no-repeat,
    #101712;
  box-shadow: var(--rbb-shadow);
}

.rbb-eyebrow {
  margin: 0 0 10px;
  color: #d8b55e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbb-intro h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.rbb-lede {
  max-width: 690px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
}

.rbb-app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rbb-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rbb-line);
  border-radius: 8px;
  box-shadow: var(--rbb-shadow);
}

.rbb-builder {
  padding: 20px;
}

.rbb-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.rogue-bag-builder-app label {
  font-size: 0.92rem;
  font-weight: 800;
}

.rogue-bag-builder-app input,
.rogue-bag-builder-app select,
.rogue-bag-builder-app textarea {
  width: 100%;
  border: 1px solid var(--rbb-line);
  border-radius: 7px;
  color: var(--rbb-ink);
  background-color: var(--rbb-field);
}

.rogue-bag-builder-app input,
.rogue-bag-builder-app select {
  min-height: 46px;
  padding: 0 13px;
}

.rogue-bag-builder-app select {
  padding-right: 42px;
  cursor: pointer;
}

.rogue-bag-builder-app textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.4;
}

.rogue-bag-builder-app input:focus,
.rogue-bag-builder-app select:focus,
.rogue-bag-builder-app textarea:focus {
  border-color: var(--rbb-accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 78, 0.15);
  outline: none;
}

.rbb-hint {
  margin: 0;
  color: var(--rbb-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.rbb-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rbb-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--rbb-line);
  border-radius: 7px;
  background: var(--rbb-field);
  font-size: 0.9rem;
  font-weight: 700;
}

.rbb-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--rbb-accent);
}

.rbb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.rbb-primary,
.rbb-ghost,
.rbb-print {
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.rbb-primary,
.rbb-ghost {
  min-height: 44px;
  border: 1px solid transparent;
}

.rbb-primary {
  flex: 1;
  color: white;
  background: var(--rbb-accent);
}

.rbb-primary:disabled {
  color: #879188;
  background: #dfe6dd;
  cursor: not-allowed;
}

.rbb-ghost {
  width: 44px;
  color: var(--rbb-accent-dark);
  background: white;
  border-color: var(--rbb-line);
}

.rbb-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--rbb-danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.rbb-results {
  min-height: 580px;
  overflow: hidden;
}

.rbb-empty-state,
.rbb-recommendations {
  padding: 24px;
}

.rbb-empty-state {
  display: grid;
  min-height: 580px;
  place-items: center;
  text-align: center;
}

.rbb-empty-state-inner {
  max-width: 420px;
}

.rbb-empty-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rbb-accent);
  font-size: 2rem;
  font-weight: 900;
}

.rbb-empty-state h2,
.rbb-recommendations h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.rbb-empty-state p,
.rbb-summary {
  color: var(--rbb-muted);
  line-height: 1.55;
}

.rbb-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.rbb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #233229;
  background: #edf3ea;
  border: 1px solid #d3ddcf;
  font-size: 0.82rem;
  font-weight: 800;
}

.rbb-summary {
  margin: 0 0 18px;
}

.rbb-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rbb-category {
  padding: 16px;
  border: 1px solid var(--rbb-line);
  border-radius: 8px;
  background: #fff;
}

.rbb-category h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 1rem;
}

.rbb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rbb-accent);
}

.rbb-dot.rbb-amber {
  background: var(--rbb-amber);
}

.rbb-dot.rbb-blue {
  background: var(--rbb-blue);
}

.rbb-category ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: var(--rbb-muted);
  line-height: 1.4;
}

.rbb-note {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 4px solid var(--rbb-amber);
  border-radius: 6px;
  color: #45331a;
  background: #fff5df;
  line-height: 1.45;
}

.rbb-print-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.rbb-print {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rbb-line);
  color: var(--rbb-accent-dark);
  background: white;
}

.rbb-footer {
  padding: 22px 0 0;
  color: var(--rbb-muted);
  font-size: 0.92rem;
  text-align: center;
}

.rbb-footer a {
  color: var(--rbb-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.rbb-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .rbb-app-shell {
    grid-template-columns: 1fr;
  }

  .rbb-results,
  .rbb-empty-state {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .rogue-bag-builder-app {
    padding-top: 18px;
  }

  .rbb-intro {
    min-height: 300px;
    padding: 22px;
  }

  .rbb-builder,
  .rbb-empty-state,
  .rbb-recommendations {
    padding: 16px;
  }

  .rbb-result-grid {
    grid-template-columns: 1fr;
  }

  .rbb-checks {
    grid-template-columns: 1fr;
  }
}

@media print {
  .rbb-intro,
  .rbb-builder,
  .rbb-print-row {
    display: none;
  }

  .rogue-bag-builder-app {
    width: 100%;
    padding: 0;
  }

  .rbb-app-shell {
    display: block;
  }

  .rbb-panel,
  .rbb-category {
    box-shadow: none;
  }
}
