/* ══ Ссылки ══ */

.linkhub-page {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  width: 100%;
}

/* ── Hero ── */

.linkhub-hero.section-hero--full-banner {
  background: none;
  padding: 0;
  display: block;
}

.linkhub-hero {
  display: block;
  padding: var(--hero-pad-block) var(--hero-pad-inline);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: none;
}

.linkhub-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.linkhub-eyebrow {
  display: inline-flex;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}

.linkhub-hero-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
}

.linkhub-hero-text {
  max-width: 680px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-2);
}

.linkhub-hero-stats {
  display: flex;
  gap: var(--s3);
}

.linkhub-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 92px;
  padding: 13px 14px;
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 82%, transparent 18%);
}

.linkhub-stat-value {
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text);
}

.linkhub-stat-label {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Category strip ── */

.linkhub-category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s3);
}

.linkhub-category-tile {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.linkhub-category-tile:hover,
.linkhub-category-tile--active {
  border-color: var(--accent-mid);
  background: color-mix(in srgb, var(--accent-light) 40%, var(--surface) 60%);
}

.linkhub-category-tile:hover {
  border-color: var(--hover-tile-border);
  box-shadow: var(--hover-tile-shadow);
}

.linkhub-category-icon {
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.linkhub-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--text);
}

.linkhub-category-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-3);
}

/* ── Layout ── */

.linkhub-layout {
  display: block;
}

.linkhub-main {
  min-width: 0;
}

.linkhub-section {
  margin-bottom: var(--s5);
}

.linkhub-section:last-child {
  margin-bottom: 0;
}

.linkhub-section-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.linkhub-section-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--text);
}

.linkhub-section-titlebar span {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Resource cards ── */

.linkhub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s4);
}

.linkhub-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.linkhub-card:hover {
  border-color: var(--hover-tile-border);
  box-shadow: var(--hover-tile-shadow);
}

.linkhub-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.linkhub-card-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}

.linkhub-card-banner-img,
.linkhub-detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkhub-card-banner-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent-text);
}

.linkhub-card-banner-ph span {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.linkhub-card-badge {
  position: absolute;
  left: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border) 66%);
  border-radius: var(--r-full);
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkhub-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.linkhub-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--text);
}

.linkhub-card-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.linkhub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: 11px;
  border-top: 1px solid var(--divider);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Detail — карточка ресурса (макет darkhub.at/companies/…) */

.linkhub-detail {
  width: 100%;
}

.linkhub-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 6px;
  align-items: start;
}

.linkhub-detail-main,
.linkhub-detail-left,
.linkhub-detail-side {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.linkhub-detail-hero,
.linkhub-detail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 558px;
  background: var(--surface-2);
  overflow: hidden;
}

.linkhub-detail-hero img,
.linkhub-detail-logo img {
  display: block;
  width: 100%;
  max-height: 558px;
  object-fit: cover;
}

.linkhub-detail-hero--ph,
.linkhub-detail-logo--ph {
  min-height: 280px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
}

.linkhub-detail-hero-initials,
.linkhub-detail-logo-initials {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--accent-text);
}

.linkhub-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  padding: 14px 12px 0;
}

.linkhub-detail-head-main {
  min-width: 0;
}

.linkhub-detail-title,
.linkhub-detail-name {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.linkhub-detail-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.linkhub-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--divider);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.linkhub-detail-chip--rate {
  color: var(--accent-text);
}

.linkhub-detail-chip--up {
  color: #0d3d24;
  border-color: color-mix(in srgb, var(--green) 45%, var(--divider));
  background: color-mix(in srgb, var(--green) 18%, var(--surface-2));
}

.linkhub-detail-chip--down {
  color: #5c1414;
  border-color: color-mix(in srgb, var(--red) 45%, var(--divider));
  background: color-mix(in srgb, var(--red) 18%, var(--surface-2));
}

.linkhub-detail-edit {
  flex-shrink: 0;
}

.linkhub-detail-access {
  padding: 12px;
  border-top: 1px solid var(--divider);
}

.linkhub-detail-access-group + .linkhub-detail-access-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--divider);
}

.linkhub-detail-access-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.linkhub-access-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.linkhub-access-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.linkhub-access-btn:hover {
  border-color: var(--hover-tile-border);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  box-shadow: var(--hover-tile-shadow);
}

.linkhub-access-btn--primary {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--divider));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
}

.linkhub-access-btn--clear {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--divider));
}

.linkhub-access-btn--onion {
  border-color: color-mix(in srgb, var(--purple, #7c5cff) 35%, var(--divider));
}

.linkhub-access-btn--contact {
  min-height: 54px;
}

.linkhub-access-btn-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.linkhub-access-btn-kind {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.linkhub-access-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-3) 70%, var(--surface));
}

.linkhub-access-icon {
  display: block;
}

.linkhub-access-btn--clear .linkhub-access-btn-icon {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 14%, var(--surface-2));
}

.linkhub-access-btn--onion .linkhub-access-btn-icon {
  color: #9b59d0;
  background: color-mix(in srgb, #9b59d0 16%, var(--surface-2));
}

.linkhub-access-btn--telegram .linkhub-access-btn-icon {
  color: #2aabee;
  background: color-mix(in srgb, #2aabee 16%, var(--surface-2));
}

.linkhub-access-btn--element .linkhub-access-btn-icon {
  color: #0dbd8b;
  background: color-mix(in srgb, #0dbd8b 16%, var(--surface-2));
}

.linkhub-access-btn--jabber .linkhub-access-btn-icon {
  color: #e67e22;
  background: color-mix(in srgb, #e67e22 16%, var(--surface-2));
}

.linkhub-access-btn-sub {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkhub-detail-side-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.linkhub-detail-side-section--access {
  padding-top: 10px;
}

.linkhub-detail-side-section--access .linkhub-detail-access {
  padding: 0;
  border-top: none;
}

.linkhub-detail-side-section--access .linkhub-access-btn-grid {
  grid-template-columns: 1fr;
}

.linkhub-detail-side-section--access .linkhub-access-btn {
  min-height: 48px;
  padding: 8px 10px;
}

.linkhub-detail-lead {
  padding: 10px 10px 12px;
  font-size: 1.0625rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--text);
}

.linkhub-detail-lead--muted {
  color: var(--text-3);
  font-weight: 600;
}

.linkhub-detail-actions-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-height: 36px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.linkhub-detail-menu-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.8vw;
  border-bottom: 1px solid transparent;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.linkhub-detail-menu-action:hover {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.linkhub-detail-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 10px 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-3);
}

.linkhub-detail-split-item {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid color-mix(in srgb, var(--text-3) 55%, var(--divider));
}

.linkhub-detail-split-item:first-child {
  padding-left: 0;
}

.linkhub-detail-split-item:last-child {
  border-right: none;
}

.linkhub-detail-split-rate {
  color: var(--accent-text);
}

.linkhub-detail-star {
  margin-right: 4px;
  font-size: 0.95rem;
  line-height: 1;
}

.linkhub-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.linkhub-detail-toolset {
  position: relative;
  border-top: 1px solid var(--divider);
}

.linkhub-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 20px 10px 15px;
}

.linkhub-detail-tab {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.68;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.14s ease;
}

.linkhub-detail-tab:hover {
  color: var(--text);
}

#linkhub-tab-reviews:checked ~ .linkhub-detail-tabs label[for="linkhub-tab-reviews"],
#linkhub-tab-monitor:checked ~ .linkhub-detail-tabs label[for="linkhub-tab-monitor"] {
  color: var(--text);
}

.linkhub-detail-panels {
  min-width: 0;
}

.linkhub-detail-panel {
  display: none;
  padding: 0 10px 18px;
}

#linkhub-tab-reviews:checked ~ .linkhub-detail-panels #linkhub-panel-reviews,
#linkhub-tab-monitor:checked ~ .linkhub-detail-panels #linkhub-panel-monitor {
  display: block;
}

.linkhub-detail-tab--mobile {
  display: none;
}

.linkhub-detail-section-lead {
  margin: 0 0 var(--s3);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-2);
}

.linkhub-detail-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-3);
}

.linkhub-detail-side {
  position: sticky;
  top: calc(var(--navbar-height, 56px) + 12px);
}

.linkhub-detail-side-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 10px 10px;
}

.linkhub-detail-side-logo {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--surface-2);
}

.linkhub-detail-side-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkhub-detail-side-logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--accent-text);
}

.linkhub-detail-side-title-wrap {
  min-width: 0;
}

.linkhub-detail-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.linkhub-detail-side-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.linkhub-detail-rate-value {
  font-size: 1.35rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}

.linkhub-detail-rate-value--na {
  color: var(--text-3);
}

.linkhub-detail-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 12px;
}

.linkhub-detail-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--divider);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkhub-detail-tag--link:hover {
  border-color: var(--accent-mid);
  color: var(--accent-text);
}

.linkhub-detail-side-section {
  padding: 14px 10px 16px;
  border-top: 1px solid var(--divider);
}

.linkhub-detail-side-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.linkhub-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.linkhub-detail-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.linkhub-detail-action:hover {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.linkhub-detail-action-icon {
  width: 19px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1;
}

.linkhub-monitor-block {
  min-width: 0;
}

.linkhub-monitor-status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.linkhub-monitor-status--up {
  color: #0d3d24;
  background: color-mix(in srgb, var(--green) 35%, var(--surface-2));
}

.linkhub-monitor-status--down {
  color: #5c1414;
  background: color-mix(in srgb, var(--red) 35%, var(--surface-2));
}

.linkhub-monitor-status--na {
  color: var(--text-3);
  background: var(--surface-2);
}

.linkhub-monitor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.linkhub-monitor-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.linkhub-monitor-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.linkhub-monitor-stat-value {
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.linkhub-heartbeat {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: thin;
}

.linkhub-heartbeat-beat {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.linkhub-heartbeat-beat:hover {
  transform: scale(1.35);
  opacity: 0.85;
}

.linkhub-heartbeat-beat--ok { background: var(--green); }
.linkhub-heartbeat-beat--warn { background: var(--yellow); }
.linkhub-heartbeat-beat--bad { background: var(--red); }
.linkhub-heartbeat-beat--na { background: var(--surface-3); opacity: 0.55; }

.linkhub-chart-block--compact {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.uptime-bars--compact {
  height: 52px;
}

.latency-svg--compact {
  height: 56px;
}

.linkhub-rich {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.linkhub-ratings {
  border-top: 1px solid var(--divider);
}

.linkhub-ratings-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 850;
}

.linkhub-ratings-lead {
  margin: 0 0 var(--s3);
  font-size: 0.82rem;
  line-height: 1.5;
}

.linkhub-ratings-summary {
  margin: 0 0 var(--s4);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-2);
}

.linkhub-ratings-summary .sep-dot {
  margin: 0 0.35em;
  color: var(--text-3);
}

.linkhub-ratings-empty {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.linkhub-rating-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.linkhub-rating-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: 6px;
}

.linkhub-rating-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.linkhub-rating-value {
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  flex-shrink: 0;
}

.linkhub-rating-value--na {
  font-weight: 600;
}

.linkhub-rating-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface-3) 88%, var(--border) 12%);
  overflow: hidden;
}

.linkhub-rating-bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 72%, var(--blue) 28%), var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: width 0.35s ease;
}

.linkhub-monitor {
  border-top: 1px solid var(--divider);
}

.linkhub-monitor-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 850;
}

.linkhub-monitor-meta {
  margin: 0 0 var(--s4);
  font-size: 0.82rem;
}

.linkhub-charts {
  display: grid;
  gap: var(--s4);
}

.linkhub-chart-block {
  padding: 12px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.linkhub-chart-caption {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uptime-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 64px;
  padding: 4px 0;
  border-bottom: 1px solid var(--divider);
}

.uptime-bar-wrap {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 100%;
}

.uptime-bar {
  width: 100%;
  max-width: 8px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--text-3);
  opacity: 0.8;
}

.uptime-bar--ok { background: var(--green); }
.uptime-bar--warn { background: var(--yellow); }
.uptime-bar--bad { background: var(--red); }
.uptime-bar--na { background: var(--surface-3); opacity: 0.55; }

.latency-svg {
  display: block;
  width: 100%;
  height: 72px;
  color: var(--blue);
}

.latency-line {
  filter: drop-shadow(0 0 6px var(--blue-bg));
}

.linkhub-cron-hint {
  margin: var(--s4) 0 0;
  font-size: 0.78rem;
}

/* ── Mobile ── */

@media (max-width: 980px) {
  .linkhub-hero {
    grid-template-columns: 1fr;
  }

  .linkhub-hero-stats {
    flex-wrap: wrap;
  }

}

@media (max-width: 1036px) {
  .linkhub-detail-grid {
    grid-template-columns: 1fr;
  }

  .linkhub-detail-side {
    position: static;
  }

  .linkhub-detail-side-section--access,
  .linkhub-detail-access--side {
    display: none;
  }

  .linkhub-detail-monitor--desktop {
    display: none;
  }

  .linkhub-detail-tab--mobile {
    display: inline-flex;
  }
}

@media (min-width: 1037px) {
  .linkhub-detail-head {
    display: none;
  }

  .linkhub-detail-access--main {
    display: none;
  }

  .linkhub-detail-panel--monitor {
    display: none !important;
  }
}

/* ── Form (create / edit) ── */

.linkhub-form-page {
  max-width: var(--content-max-page);
  margin-inline: auto;
  padding: var(--s4) 0 var(--s6);
}

.linkhub-form-head {
  margin-bottom: var(--s4);
}

.linkhub-form-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 850;
  line-height: 1.15;
}

.linkhub-form-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-2);
}

.linkhub-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.linkhub-form-alert {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--divider));
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.linkhub-form-section {
  padding: 18px 16px 20px;
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.linkhub-form-section--compact {
  padding-bottom: 16px;
}

.linkhub-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: 6px;
}

.linkhub-form-section-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.linkhub-form-section-head .linkhub-form-section-title {
  margin-bottom: 0;
}

.linkhub-form-section-lead {
  margin: 0 0 var(--s3);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-3);
}

.linkhub-form-grid {
  display: grid;
  gap: var(--s3);
}

.linkhub-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.linkhub-form-grid-span-2 {
  grid-column: 1 / -1;
}

.linkhub-form-check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.linkhub-form-check .form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.linkhub-mirror-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.linkhub-mirror-row {
  padding: 12px;
  border: 1px dashed var(--divider);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.linkhub-mirror-fields {
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) minmax(180px, 2fr) auto;
  gap: var(--s2);
  align-items: end;
}

.linkhub-mirror-delete-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
}

.linkhub-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-top: var(--s2);
}

.linkhub-detail-action--contact {
  align-items: flex-start;
}

.linkhub-detail-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.linkhub-detail-action-kind {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.linkhub-detail-action-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkhub-detail-action-icon--telegram::before { content: '✈'; }
.linkhub-detail-action-icon--element::before { content: '◈'; }
.linkhub-detail-action-icon--jabber::before { content: '💬'; }

@media (max-width: 760px) {
  .linkhub-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .linkhub-mirror-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .linkhub-hero:not(.section-hero--full-banner) {
    padding: var(--hero-pad-block-compact) var(--hero-pad-inline-compact);
    border-radius: var(--r-lg);
  }

  .linkhub-hero.section-hero--full-banner {
    padding: 0;
  }

  .linkhub-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s2);
  }

  .linkhub-stat-card {
    min-width: 0;
    padding: 10px;
  }

  .linkhub-stat-value {
    font-size: 1.05rem;
  }

  .linkhub-category-strip {
    grid-template-columns: 1fr;
  }

  .linkhub-cards {
    grid-template-columns: 1fr;
  }
}
