/* Platform admin (hub) additions on top of the console theme */
.page { display: none; }
.page.active { display: block; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hub-tile { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.hub-tile span { color: var(--muted); font-size: 12.5px; }
.hub-tile b { font-size: 24px; }
.hub-tile.good { border-left-color: var(--ok); } .hub-tile.warn { border-left-color: var(--warn); } .hub-tile.bad { border-left-color: var(--bad); }
.hub-client-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.hub-client-head h2 { margin: 0 0 4px; font-size: 17px; }
.hub-inst { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.hub-inst > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-key { font: 600 22px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; text-align: center; user-select: all; }
.hub-pre { white-space: pre-wrap; font-size: 12px; background: var(--accent-soft); padding: 10px; border-radius: 10px; }
.hub-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-bottom: 10px; }
.hub-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hub-bars i { display: block; width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; }
.hub-bars small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 7px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--grad); color: #fff; }
.small { font-size: 12px; }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }

.hub-theme { display: flex; gap: 6px; align-items: center; padding: 6px 12px; color: var(--side-text); font-size: 13px; }
.hub-theme select { padding: 3px 6px; font-size: 12px; background: rgba(255,255,255,.06); color: var(--side-text); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
