.bsb-app {
  --bsb-bg: #10141c;
  --bsb-text: #f5f7fb;
  --bsb-accent: #38bdf8;
  --bsb-level-marker: #166534;
  --bsb-break-marker: #92400e;
  color: var(--bsb-text);
  font-family: Arial, sans-serif;
}

.bsb-shell,
.bsb-admin-card {
  background: var(--bsb-bg, #10141c);
  color: var(--bsb-text, #f5f7fb);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.bsb-shell {
  padding: 20px;
}

.bsb-header,
.bsb-toolbar,
.bsb-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.bsb-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bsb-brand h2,
.bsb-admin-card h2 {
  margin: 0 0 6px;
  color: var(--bsb-text, #f5f7fb);
}

.bsb-brand p {
  margin: 0;
  opacity: 0.8;
}

.bsb-logo {
  max-width: 220px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bsb-btn,
.bsb-mini-btn {
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--bsb-text);
  cursor: pointer;
}

.bsb-btn {
  padding: 11px 14px;
}

.bsb-mini-btn {
  padding: 6px 8px;
}

.bsb-btn-primary {
  background: var(--bsb-accent);
  color: #08131f;
  font-weight: 700;
}

.bsb-danger {
  background: #b91c1c;
}

.bsb-add-below {
  background: #15803d;
  color: #fff;
  font-weight: 700;
}

.bsb-toolbar {
  margin: 18px 0;
}

.bsb-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
  font-size: 14px;
}

.bsb-inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bsb-inline-field input {
  min-width: 100px;
}

.bsb-toolbar input,
.bsb-toolbar select,
.bsb-table input,
.bsb-table select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: var(--bsb-text);
}

.bsb-table-wrap {
  overflow-x: auto;
}

.bsb-table {
  width: 100%;
  border-collapse: collapse;
}

.bsb-table th,
.bsb-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  vertical-align: middle;
}

.bsb-table th {
  text-align: left;
}

.bsb-row-level td:first-child {
  border-left: 4px solid var(--bsb-level-marker);
}

.bsb-row-break td:first-child {
  border-left: 4px solid var(--bsb-break-marker);
}

.bsb-type-pill {
  display: inline-block;
  min-width: 58px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.bsb-type-level {
  background: var(--bsb-level-marker);
  color: #fff;
}

.bsb-type-break {
  background: var(--bsb-break-marker);
  color: #fff;
}

.bsb-action-stack,
.bsb-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bsb-export-bar {
  margin-top: 18px;
  align-items: stretch;
}

.bsb-export-group {
  flex: 1 1 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
}

.bsb-export-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bsb-export-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bsb-banner-area {
  margin-top: 20px;
  min-height: 90px;
}

.bsb-banner-link {
  display: block;
}

.bsb-banner-image {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.bsb-admin-wrap .bsb-admin-card {
  padding: 18px;
  margin: 18px 0;
}

.bsb-admin-wrap .bsb-admin-card input[type="url"],
.bsb-admin-wrap .bsb-admin-card input[type="number"] {
  max-width: 420px;
}

.bsb-banner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .bsb-shell {
    padding: 14px;
  }

  .bsb-header,
  .bsb-toolbar,
  .bsb-export-bar,
  .bsb-banner-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bsb-inline-field,
  .bsb-export-actions,
  .bsb-action-row {
    flex-wrap: wrap;
  }

  .bsb-logo {
    max-width: 160px;
  }
}
