.hub-page .hub-hero {
  min-height: 176px;
}

.hub-home-link,
.hub-primary,
.hub-secondary,
.hub-row-actions button,
.hub-dialog-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.hub-home-link,
.hub-primary {
  border: 0;
  color: #fff;
  background: var(--teal, #0f8b8d);
}

.hub-home-link {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.34);
}

.hub-secondary,
.hub-row-actions button {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #d9e2ee;
}

.hub-row-actions button.is-danger {
  color: #b91c1c;
  background: #fff1f2;
  border-color: #fecdd3;
}

.hub-panel {
  overflow: visible;
}

.hub-panel .panel-head {
  align-items: center;
}

.hub-toolbar,
.hub-row-actions,
.hub-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-safe-note {
  margin: 0 0 14px;
  color: #64748b;
  font-weight: 760;
}

.hub-message {
  min-height: 22px;
  margin: 0 0 12px;
  color: #0f766e;
  font-weight: 850;
}

.hub-message.is-error {
  color: #b91c1c;
}

.hub-table-shell {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}

.hub-table th,
.hub-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e7edf5;
  vertical-align: top;
}

.hub-table th {
  color: #334155;
  background: #f3f7fb;
  font-size: 13px;
  font-weight: 900;
}

.hub-table tr.is-selected td {
  background: rgba(15, 139, 141, 0.06);
}

.hub-table td small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  max-width: 260px;
}

.hub-empty,
.hub-empty-cell {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
}

.hub-empty-cell {
  border: 0;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hub-badge.is-ok {
  color: #047857;
  background: #d1fae5;
}

.hub-badge.is-bad {
  color: #b91c1c;
  background: #fee2e2;
}

.hub-badge.is-timeout {
  color: #92400e;
  background: #fef3c7;
}

.hub-subscription-layout {
  display: grid;
  gap: 16px;
}

.hub-subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 18px;
}

.hub-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-info-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.hub-info-item span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.hub-info-item strong {
  overflow-wrap: anywhere;
}

.hub-qr-box {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fbfdff;
}

.hub-qr-box img {
  width: 210px;
  height: 210px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.hub-qr-box .hub-empty {
  width: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
}

.hub-card-list {
  display: grid;
  gap: 12px;
}

.hub-card-list h3 {
  font-size: 18px;
}

.hub-log-row,
.hub-task-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.hub-log-row {
  grid-template-columns: 90px 90px 180px 1fr;
  align-items: center;
}

.hub-log-row em,
.hub-log-row small,
.hub-task-card small,
.hub-task-card span {
  color: #64748b;
  font-style: normal;
  font-weight: 760;
}

.hub-task-card pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
}

.hub-dialog {
  width: min(920px, calc(100vw - 32px));
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.hub-dialog::backdrop {
  background: rgba(15, 23, 42, .38);
}

.hub-dialog form {
  padding: 22px;
}

.hub-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hub-icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 24px;
  cursor: pointer;
}

.hub-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hub-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.hub-form input,
.hub-form textarea,
.hub-form select {
  width: 100%;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hub-form input:focus,
.hub-form textarea:focus,
.hub-form select:focus {
  border-color: rgba(15, 139, 141, 0.72);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.12);
}

.hub-form-wide {
  grid-column: 1 / -1;
}

.hub-dialog-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.hub-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #064e3b;
  background: #d1fae5;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
  font-weight: 900;
  transition: opacity .18s ease, transform .18s ease;
}

.hub-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hub-toast.is-error {
  color: #7f1d1d;
  background: #fee2e2;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .hub-subscription-card,
  .hub-form,
  .hub-info-grid,
  .hub-log-row {
    grid-template-columns: 1fr;
  }
}
