/* Admin variant B layout. Loaded after admin.css, which keeps the colour tokens, pills and chart styles. */
body { background: var(--bg); }
.muted { color: var(--muted); }
.b-good { color: var(--green); }
.b-bad { color: #ff8a94; }
.b-warn { color: var(--amber); }
.b-info { color: var(--cyan); }
.b-error { color: #ff8a94; }

.b-app button { font-weight: 700; }
.b-ghost, .b-app .b-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px;
  background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.2); text-decoration: none; font-weight: 600;
}
.b-primary { background: var(--cyan); color: #031016; }
.b-danger-button { background: transparent; color: #ff8a94; border: 1px solid #ff8a94; }

.b-top {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.b-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.b-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; color: #c9d6dd; text-decoration: none; }
.b-nav a[aria-current] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); }
.b-nav span { font-size: 13px; color: var(--muted); }
.b-updated { font-size: 13px; }

.b-view { min-height: calc(100vh - 66px); }
.b-split { display: flex; flex-wrap: wrap; align-items: stretch; }
.b-list { flex: 1 1 360px; max-width: 520px; padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.b-detail { flex: 999 1 560px; min-width: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.b-side { flex: 1 1 360px; max-width: 460px; padding: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.b-page { padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; max-width: 1600px; margin: 0 auto; }

.b-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b-chip { min-height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; font-weight: 600; background: transparent; color: #c9d6dd; border: 1px solid rgba(255, 255, 255, 0.2); }
.b-chip[aria-pressed="true"] { background: var(--cyan); color: #031016; border-color: var(--cyan); }
.b-list-count { font-size: 13px; }
.b-rows { display: flex; flex-direction: column; gap: 6px; }
.b-row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 8px;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text); text-decoration: none;
}
.b-row:hover { border-color: rgba(0, 212, 255, 0.5); }
.b-row[aria-current="true"] { background: var(--panel-2); border-color: var(--cyan); }
.b-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.b-row-main .muted { font-size: 13px; }
.b-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 5px; background: #8a99a3; }
.b-dot.on { background: var(--green); }

.b-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.b-detail-head h1 { margin: 0 0 8px; font-size: 26px; overflow-wrap: anywhere; }
.b-detail-head p { font-size: 14px; line-height: 1.7; }
.b-detail-head a { color: var(--cyan); }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.b-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; border: 1px solid currentColor; font-size: 13px; }
.b-empty { padding: 40px 0; }

.b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.b-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.b-card h3 { margin: 0; font-size: 15px; }
.b-card h4 { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.b-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 6px; }
.b-line > span:first-child { color: #c9d6dd; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.b-line > span:last-child { text-align: right; flex: 0 0 auto; max-width: 55%; }
.b-line small { font-size: 12px; }
.b-card details summary, .b-danger summary, .b-release-group details summary { cursor: pointer; min-height: 32px; padding: 6px 0; color: var(--cyan); }
.b-restart { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); overflow-wrap: anywhere; }
.b-job { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; }
.b-job .b-line { border: 0; padding: 0; }
.b-job small { font-size: 12px; }
.b-card .b-job { padding: 6px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; background: none; }
.b-preview canvas { width: 100%; }
.b-danger { color: var(--muted); font-size: 14px; }
.b-danger p { margin: 6px 0 10px; }
.b-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.b-facts strong { font-size: 18px; overflow-wrap: anywhere; }

.b-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.b-page-head h1 { margin: 0; font-size: 24px; flex: 1 1 auto; }
.b-page-head a { color: var(--cyan); }
.b-segment { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; overflow: hidden; }
.b-segment button, .b-segment label span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 0;
  background: transparent; color: #c9d6dd; font-size: 14px; font-weight: 600; cursor: pointer;
}
.b-segment button[aria-pressed="true"], .b-segment input:checked + span { background: var(--cyan); color: #031016; }
.b-segment label { display: inline-flex; }
.b-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b-segment input:focus-visible + span { outline: 2px solid var(--text); outline-offset: -4px; }
.b-contacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b-chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }

.b-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.b-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.b-tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.b-release-group { display: flex; flex-direction: column; gap: 12px; }
.b-release-group h2 { font-size: 20px; margin-top: 8px; }
.b-release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.b-release-head strong { font-size: 17px; }
.b-release-head .b-segment { margin-left: auto; }
.b-targets { display: flex; flex-wrap: wrap; gap: 8px; }
.b-target { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; overflow-wrap: anywhere; }
.b-target input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; }
.b-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.b-side-head h2 { font-size: 18px; }

@media (min-width: 900px) {
  .b-split { flex-wrap: nowrap; }
  .b-list, .b-side { position: sticky; top: var(--b-top-height, 66px); align-self: flex-start; max-height: calc(100vh - var(--b-top-height, 66px)); overflow: auto; }
}
@media (max-width: 760px) {
  .b-top { position: static; padding: 8px 16px; gap: 8px 12px; }
  .b-nav a { padding: 0 10px; }
  .b-updated { display: none; }
  .b-top .b-ghost { min-height: 40px; padding: 0 12px; }
  .b-list, .b-side { max-width: none; border: 0; padding: 16px; }
  .b-detail, .b-page { padding: 16px; }
  .b-release-head .b-segment { margin-left: 0; }
}
#panelReleases, #moduleReleases, .b-release-group details { display: flex; flex-direction: column; gap: 12px; }
