/* Avelune Studio – hubben. Bara egna klasser (hub-…), inga ändringar av befintliga. */
.hub-quick {
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}
.hub-grid .panel.block {
  margin: 0;
}
.hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
}
.hub-item:first-child {
  border-top: 0;
}
.hub-item[data-action] {
  cursor: pointer;
}
.hub-item[data-action]:hover b {
  color: var(--wine);
}
.hub-item b {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.hub-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.hub-right {
  flex: none;
}
.pill.hub-ok {
  background: #eaf0e9;
  color: #47674f;
  border-color: #ceddcc;
}
.pill.hub-wait {
  background: #f7efe0;
  color: #7a5a1f;
  border-color: #e8d9b8;
}
.pill.hub-bad {
  background: #f8e9e9;
  color: #8a2a2a;
  border-color: #ebcaca;
}
.pill.hub-off {
  background: #f0eeeb;
  color: var(--muted);
}
.hub-health {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.hub-health:first-child {
  border-top: 0;
}
.hub-health i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: #5f8a68;
}
.hub-health.warn i {
  background: #c9993a;
}
.hub-health.bad i {
  background: #b23b3b;
}
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.hub-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
}
.hub-card:hover {
  border-color: var(--gold);
}
.hub-card b {
  font: 20px Georgia;
  overflow-wrap: anywhere;
}
.hub-card small,
.hub-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.hub-mono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--side);
  color: var(--gold);
  font: 20px Georgia;
}
.hub-mono.big {
  width: 72px;
  height: 72px;
  font-size: 32px;
  flex: none;
}
.hub-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
}
.hub-profile h2 {
  font: 30px Georgia;
  margin: 4px 0;
}
.hub-profile p {
  margin: 0;
  color: var(--muted);
}
.hub-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hubform textarea {
  min-height: 0;
  line-height: 1.5;
}
.hubform label small {
  display: block;
  margin-top: 4px;
}
.hub-fill {
  margin: -4px 0 4px;
}
.hub-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0 0 16px;
}
.hub-facts dt {
  color: var(--muted);
  font-size: 12px;
}
.hub-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hub-doc {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  max-height: 46vh;
  overflow: auto;
  line-height: 1.6;
}
.hub-hash {
  font:
    11px ui-monospace,
    Menlo,
    monospace;
  word-break: break-all;
}
.hub-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 150px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.hub-frame {
  width: 100%;
  height: 44vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f2ef;
  margin: 0 0 14px;
}
.hub-sub {
  margin: 18px 0 8px;
  font-size: 13px;
}
.hub-clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 46ch;
  white-space: normal;
}
.hub-check {
  width: 18px;
  height: 18px;
}
.hub-find kbd {
  font: inherit;
  opacity: 0.55;
  margin-left: 6px;
}
.hub-search {
  width: 100%;
  font-size: 16px;
  margin: 0 0 12px;
}
.hub-hits {
  max-height: 52vh;
  overflow: auto;
}
.hub-hit {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 2px 12px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  border-radius: 4px;
}
.hub-hit[data-action] {
  cursor: pointer;
}
.hub-hit[data-action]:hover {
  background: var(--paper);
}
.hub-hit small {
  grid-row: span 2;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}
.hub-hit span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.hub-badge {
  margin-left: auto;
  background: #b23b3b;
  color: #fff;
  border-radius: 10px;
  min-width: 18px;
  padding: 1px 6px;
  font-size: 10px;
  text-align: center;
}
.cloudnav .cap:first-child {
  margin-top: 0;
}
@media (max-width: 650px) {
  .hub-two {
    grid-template-columns: 1fr;
  }
  .hub-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .hub-facts dd {
    margin-bottom: 8px;
  }
  .hub-find kbd {
    display: none;
  }
  .hub-profile {
    gap: 14px;
  }
}
