.hub-page {
  min-height: 100vh;
  padding: 28px 0 60px;
}

.hub-boot-loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hub-boot-loading i {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: hub-spin 0.8s linear infinite;
}

.hub-app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--ink);
}

.hub-heading {
  min-height: 124px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 26px;
}

.hub-heading p,
.hub-section-heading p,
.hub-side-heading p,
.hub-modal header p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-heading h1 {
  width: fit-content;
  margin: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hub-heading > div:first-child > span {
  display: block;
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hub-heading-actions,
.hub-card-actions,
.hub-heading-actions > a,
.hub-alert-control {
  display: flex;
  align-items: center;
}

.hub-heading-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.hub-icon-button,
.hub-channel-link,
.hub-admin-shortcut {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--subtle);
  color: var(--ink);
}

.hub-admin-shortcut {
  border-radius: 5px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
}

.hub-icon-button {
  position: relative;
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.hub-icon-button svg {
  width: 17px;
  height: 17px;
}

.hub-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-quick-icon img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.hub-quick-icon:hover {
  border-color: var(--blue-line);
  box-shadow: var(--glow);
}

.hub-icon-button > span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid var(--canvas);
  border-radius: 10px;
  background: var(--blue);
  color: #001021;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 900;
}

.hub-channel-link {
  gap: 9px;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.hub-channel-link svg:first-child {
  width: 16px;
  color: var(--blue);
}

.hub-channel-link svg:last-child {
  width: 13px;
}

.hub-channel-link:hover,
.hub-icon-button:hover,
.hub-admin-shortcut:hover {
  border-color: #3b506b;
  background: #081321;
  color: #fff;
}

.hub-alert-control {
  position: relative;
}

.hub-alert-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(330px, calc(100vw - 32px));
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #050d1a;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.46);
  padding: 10px;
}

.hub-alert-popover > strong {
  padding: 6px 8px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-alert-popover button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.hub-alert-popover button:hover {
  color: var(--blue);
}

.hub-alert-popover button > svg {
  width: 17px;
  color: var(--blue);
}

.hub-alert-popover button span {
  display: grid;
  gap: 2px;
}

.hub-alert-popover button b {
  font-size: 12px;
}

.hub-alert-popover button small {
  color: var(--soft);
  font-size: 12px;
}

.hub-tabs {
  height: 58px;
  display: flex;
  align-items: stretch;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.hub-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  padding: 0;
  font-size: 12px;
  font-weight: 650;
}

.hub-tabs button svg {
  width: 16px;
}

.hub-tabs button:hover {
  color: #d6e1ef;
}

.hub-tabs button.active {
  border-bottom-color: var(--blue);
  color: #f5f9ff;
}

.hub-tabs button em {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 30px;
  padding-top: 0;
}

.hub-app-news .hub-layout {
  padding-top: 0;
}

.hub-app-news {
  margin-top: 0;
}

.hub-main,
.hub-section {
  min-width: 0;
}

.hub-mobile-tools {
  display: none;
}

.hub-side {
  position: sticky;
  top: 28px;
  min-width: 0;
  display: grid;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.hub-side-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-side-actions .hub-channel-link {
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.hub-side-actions .hub-admin-shortcut {
  min-width: 0;
}

.hub-clock-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
  overflow: hidden;
}

.hub-clock-panel > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  color: var(--soft);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}

.hub-clock-panel > summary::-webkit-details-marker {
  display: none;
}

.hub-clock-panel > summary svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.hub-clock-panel[open] > summary {
  border-bottom-color: var(--line);
}

.hub-clock-panel[open] > summary svg {
  transform: rotate(180deg);
}

.hub-clock-panel .hub-clock {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hub-section-heading {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.hub-section-heading h2,
.hub-side-heading h2,
.hub-modal h2 {
  margin: 0;
  color: #f7faff;
  letter-spacing: -0.025em;
}

.hub-section-heading h2 {
  font-size: 24px;
}

.hub-section-heading > div > span {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
}

.hub-news-heading {
  min-height: 92px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  padding-bottom: 18px;
}

.hub-news-heading h2 {
  font-size: 30px;
  line-height: 1.12;
}

.hub-news-heading > div:first-child > span {
  font-size: 14px;
}

.hub-news-grid {
  width: 100%;
  margin: 0;
}

.hub-feed-date {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.hub-feed-date::before,
.hub-feed-date::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.hub-feed-date span {
  flex: 0 0 auto;
  padding: 8px 0;
}

.hub-news-card,
.hub-bookmark-card,
.hub-clock,
.hub-quick,
.hub-admin-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--subtle);
}

.hub-admin-access {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 20px;
  text-align: center;
}

.hub-admin-access strong {
  color: var(--ink);
  font-size: 17px;
}

.hub-admin-access p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hub-admin-access a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hub-admin-access a:hover {
  color: #79c9ff;
}

.hub-news-card,
.hub-bookmark-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hub-news-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 16px;
  overflow: visible;
}

.hub-news-card:hover,
.hub-bookmark-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.hub-news-card:hover {
  transform: none;
}

.hub-news-card.is-new,
.hub-bookmark-card.is-new {
  border-color: #244a6f;
}

.hub-news-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  align-self: start;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #01050c;
}

.hub-news-avatar img {
  width: 30px;
  height: 18px;
  object-fit: contain;
}

.hub-new-badge {
  margin-left: auto;
  color: #61bcff;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-bookmark-card > .hub-new-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  margin: 0;
}

.hub-news-media {
  width: 100%;
  max-height: 52vh;
  display: block;
  background: #01050c;
  object-fit: contain;
}

.hub-news-media.compact {
  height: clamp(160px, 9.5vw, 190px);
  max-height: none;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.hub-media-fallback {
  position: relative;
  min-height: 220px;
  display: grid;
  overflow: hidden;
  background: #01050c;
  color: #fff;
  place-items: center;
}

.hub-media-fallback.compact {
  min-height: 0;
  height: clamp(160px, 9.5vw, 190px);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hub-media-fallback img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hub-media-fallback span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(2, 9, 18, 0.82);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hub-media-fallback span svg {
  width: 13px;
}

.hub-news-copy {
  min-width: 0;
  padding: 0;
}

.hub-card-meta {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0;
}

.hub-card-meta > strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.hub-card-meta small {
  border-left: 1px solid var(--line-strong);
  padding-left: 7px;
}

.hub-news-copy h3 {
  margin: 7px 0 6px;
  color: #f7faff;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hub-news-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hub-risk-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 16px;
  border-top: 1px solid var(--amber-line);
  border-bottom: 1px solid var(--amber-line);
  background: color-mix(in srgb, var(--amber-soft) 62%, transparent);
  color: var(--muted);
  padding: 12px 2px;
  font-size: 13px;
  line-height: 1.55;
}

.hub-risk-notice svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--amber);
}

.hub-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.hub-card-actions button,
.hub-card-actions a,
.hub-empty button,
.hub-add-button,
.hub-admin-card footer button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.hub-card-actions button:first-child,
.hub-add-button,
.hub-admin-card footer button:last-child {
  border-color: #167dc5;
  background: #087ff5;
  color: #fff;
}

.hub-news-card .hub-card-actions button,
.hub-news-card .hub-card-actions a {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--soft);
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.035em;
}

.hub-news-card .hub-card-actions button:first-child {
  border: 0;
  background: transparent;
  color: var(--soft);
}

.hub-instant-action {
  grid-column: 2;
  justify-self: center;
}

.hub-card-actions-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.hub-card-actions-right a {
  margin-left: 0;
  text-decoration: none;
}

.hub-card-actions svg,
.hub-add-button svg,
.hub-admin-card footer button svg {
  width: 13px;
  height: 13px;
  display: block;
  flex: 0 0 auto;
}

.hub-card-actions .icon-only {
  width: 44px;
  padding: 0;
}

.hub-news-card .hub-card-actions button:hover,
.hub-news-card .hub-card-actions a:hover {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}

.hub-card-actions button:hover,
.hub-card-actions a:hover,
.hub-empty button:hover,
.hub-add-button:hover,
.hub-admin-card footer button:hover {
  border-color: var(--blue);
  color: #fff;
}

.hub-inline-warning {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 12px;
}

.hub-bookmark-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
  margin-bottom: 12px;
  overflow: hidden;
}

.hub-bookmark-stats button {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-right: 0;
  background: #030b17;
  color: var(--soft);
  padding: 0 16px;
  font-size: 12px;
}

.hub-bookmark-stats button:hover,
.hub-bookmark-stats button.active {
  color: #f7faff;
}

.hub-bookmark-stats button.active strong {
  color: var(--blue);
}

.hub-bookmark-stats strong {
  color: var(--ink);
  font-size: 19px;
}

.hub-bookmark-tools {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 12px 0;
}

.hub-filter-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-top: 10px;
}

.hub-filter-row > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.hub-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.hub-filter-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-filter-tabs::-webkit-scrollbar {
  display: none;
}

.hub-filter-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  padding: 0 1px;
  font-size: 13px;
  font-weight: 650;
}

.hub-filter-tabs button:hover {
  color: var(--ink);
}

.hub-filter-tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--ink);
}

.hub-filter-tabs button small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
}

.hub-chain-filter {
  flex-wrap: wrap;
  gap: 6px 16px;
  overflow: visible;
}

.hub-chain-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hub-chain-label > img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  object-fit: contain;
}

.hub-rating-filter {
  gap: 8px;
}

.hub-rating-filter-star {
  width: 30px;
  min-height: 34px;
  justify-content: center;
  color: #3d4756 !important;
}

.hub-rating-filter-star > svg {
  width: 17px;
  height: 17px;
}

.hub-rating-filter-star.filled {
  color: var(--amber) !important;
}

.hub-rating-filter-star.filled > svg {
  fill: currentColor;
}

.hub-rating-filter-star[aria-pressed="true"] {
  border-bottom-color: var(--amber);
}

.hub-raw-filter-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
}

.hub-raw-help {
  width: 28px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  padding: 0;
  cursor: help;
}

.hub-raw-help:hover {
  color: var(--ink);
}

.hub-raw-help:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 2px;
}

.hub-raw-help > svg {
  width: 13px;
  height: 13px;
}

.hub-raw-tooltip {
  position: fixed;
  z-index: 200;
  border: 1px solid var(--line-strong);
  background: #06101f;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  pointer-events: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hub-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--subtle);
  margin-bottom: 2px;
}

.hub-search svg {
  width: 15px;
  justify-self: center;
  color: var(--soft);
}

.hub-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

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

.hub-bookmark-banner {
  position: relative;
  height: 125px;
  border-bottom: 1px solid var(--line);
  background: #030a14;
  overflow: hidden;
}

.hub-bookmark-banner > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hub-bookmark-banner > div {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hub-bookmark-banner > div > span,
.hub-bookmark-banner b {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(2, 9, 22, 0.82);
  color: #dce7f5;
  padding: 4px 7px;
  font-size: 12px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.hub-bookmark-banner .hub-chain-label > img {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.hub-bookmark-banner b[data-category="NFT"] { color: #65bdff; }
.hub-bookmark-banner b[data-category="Memecoin"] { color: #e7ad50; }
.hub-bookmark-banner b[data-category="RAW"] { color: #b8a7ff; }

.hub-bookmark-copy {
  padding: 16px;
}

.hub-bookmark-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hub-bookmark-identity > span {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #081323;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
}

.hub-project-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-bookmark-identity > span[data-category="Memecoin"] { color: var(--amber); }
.hub-bookmark-identity > span[data-category="RAW"] { color: var(--violet); }

.hub-bookmark-identity h3 {
  margin: 0 0 2px;
  overflow: hidden;
  color: #f6f9fe;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-bookmark-identity a {
  color: var(--blue);
  font-size: 12px;
}

.hub-bookmark-handle {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.hub-bookmark-handle a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-x-verification-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #1d9bf0;
  line-height: 0;
}

.hub-x-verification-badge.is-gold { color: #e3b341; }
.hub-x-verification-badge.is-gray { color: #82909d; }

.hub-x-verification-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 2.15;
}

.hub-bookmark-identity > div:last-child {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.hub-bookmark-identity > .hub-follower-snapshot {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.hub-follower-snapshot > span {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.hub-bookmark-identity small {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.hub-follower-snapshot strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hub-rating,
.hub-rating-picker {
  display: flex;
  gap: 2px;
}

.hub-rating {
  margin: 0;
}

.hub-rating span {
  color: #3d4756;
  font-size: 13px;
}

.hub-rating span.filled {
  color: var(--amber);
}

.hub-bookmark-card-toolbar {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
}

.hub-bookmark-admin-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hub-bookmark-admin-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--soft);
}

.hub-bookmark-admin-actions button:hover,
.hub-bookmark-admin-actions button:focus-visible {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.hub-bookmark-admin-actions button:last-child:hover,
.hub-bookmark-admin-actions button:last-child:focus-visible {
  border-bottom-color: var(--red);
  color: var(--red);
}

.hub-bookmark-admin-actions svg {
  width: 14px;
  height: 14px;
}

.hub-bookmark-copy > p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hub-bookmark-copy > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 12px;
}

.hub-bookmark-copy > footer time {
  color: var(--soft);
  font-size: 13px;
}

.hub-bookmark-copy > footer > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hub-bookmark-copy footer button,
.hub-bookmark-copy footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--soft);
  padding: 0 9px;
  font-size: 13px;
  font-weight: 700;
}

.hub-bookmark-copy footer button {
  min-width: 36px;
}

.hub-bookmark-copy footer svg {
  width: 13px;
}

.hub-bookmark-copy footer button:hover,
.hub-bookmark-copy footer a:hover {
  border-color: #34516f;
  color: var(--blue);
}

.hub-bookmark-copy footer button.liked,
.hub-bookmark-copy footer button.liked:hover {
  border-color: var(--red-line);
  color: var(--red);
}

.hub-bookmark-copy footer button.liked svg {
  fill: currentColor;
}

.hub-bookmark-copy footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hub-bookmark-heading-actions {
  display: flex;
  align-items: center;
}

.hub-bookmark-heading-actions {
  gap: 10px;
}

.hub-discussion {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.hub-discussion-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--soft);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.hub-discussion-toggle:hover,
.hub-discussion.open .hub-discussion-toggle {
  color: var(--blue);
}

.hub-discussion-toggle svg {
  width: 14px;
}

.hub-discussion-toggle strong {
  margin-left: auto;
  font-family: var(--mono);
}

.hub-discussion-panel {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hub-discussion-panel form textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: 0;
  background: var(--canvas);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.hub-discussion-panel form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hub-discussion-panel form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.hub-discussion-panel form small,
.hub-comments-status {
  color: var(--soft);
  font-size: 12px;
}

.hub-discussion-panel form button {
  min-height: 32px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.hub-discussion-panel form button:disabled {
  opacity: 0.45;
}

.hub-discussion-panel ul {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hub-discussion-panel li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.hub-discussion-panel li > img,
.hub-discussion-panel li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--subtle-strong);
  color: var(--blue);
  object-fit: cover;
  font-size: 12px;
  font-weight: 900;
}

.hub-discussion-panel li header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hub-discussion-panel li header strong {
  font-size: 12px;
}

.hub-discussion-panel li header small,
.hub-discussion-panel li header time {
  color: var(--soft);
  font-size: 12px;
}

.hub-discussion-panel li header time {
  margin-left: auto;
}

.hub-discussion-panel li p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.hub-comments-status {
  margin: 12px 0 2px;
}

.hub-member-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 72px 48px;
}

.hub-member-gate-copy {
  max-width: 640px;
}

.hub-member-gate-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
}

.hub-member-gate-icon svg {
  width: 20px;
}

.hub-member-gate-copy > p {
  margin: 24px 0 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hub-member-gate-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.hub-member-gate-copy > span:not(.hub-member-gate-icon) {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hub-member-gate-copy > small {
  display: block;
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
}

.hub-member-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hub-member-gate-actions a,
.hub-member-gate-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 0 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.hub-member-gate-actions a:hover,
.hub-member-gate-actions button:hover,
.hub-member-gate-actions a:focus-visible,
.hub-member-gate-actions button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.hub-member-gate-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hub-member-gate-actions svg {
  width: 15px;
  height: 15px;
}

.hub-member-gate-actions .is-spinning {
  animation: hub-spin 0.8s linear infinite;
}

.hub-telegram-login {
  min-height: 50px;
  margin-top: 26px;
}

.hub-member-unavailable {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--amber);
  font-size: 12px;
}

.hub-member-unavailable button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
}

.hub-access-ladder {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-access-ladder li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: 82px;
}

.hub-access-ladder li:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.hub-access-ladder li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.hub-access-ladder li.active > span {
  border-color: var(--blue);
  color: var(--blue);
}

.hub-access-ladder li.active div strong {
  color: var(--blue);
}

.hub-access-ladder li div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 3px;
}

.hub-access-ladder strong {
  font-size: 13px;
}

.hub-access-ladder small {
  color: var(--soft);
  font-size: 12px;
}

.hub-add-button {
  min-height: 40px;
}

.hub-clock,
.hub-quick {
  padding: 18px;
}

.hub-side-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hub-side-heading > svg {
  width: 17px;
  color: var(--blue);
}

.hub-side-heading p {
  margin-bottom: 2px;
  font-size: 12px;
}

.hub-side-heading h2 {
  font-size: 13px;
}

.hub-clock > strong {
  display: block;
  color: #f7faff;
  font-family: var(--mono);
  font-size: 31px;
  letter-spacing: -0.055em;
}

.hub-clock > span {
  color: var(--soft);
  font-size: 12px;
}

.hub-zone-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 18px;
  overflow: hidden;
}

.hub-zone-tabs button {
  min-height: 34px;
  border: 0;
  background: #030a15;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.hub-zone-tabs button.active {
  background: #0a3158;
  color: #fff;
}

.hub-time-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.hub-time-selects label {
  display: grid;
  gap: 4px;
}

.hub-time-selects label span {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.hub-time-selects input {
  width: 100%;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  background: #030a15;
  color: var(--ink);
  padding: 0 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.hub-time-selects input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.hub-converted {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 13px;
}

.hub-converted span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-converted b {
  font-size: 12px;
}

.hub-quick > div:last-child {
  display: grid;
}

.hub-quick a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hub-quick a:first-child {
  border-top: 0;
}

.hub-quick a:hover b,
.hub-quick a:focus-visible b,
.hub-quick a:hover > svg,
.hub-quick a:focus-visible > svg {
  color: var(--blue);
}

.hub-quick a:hover b,
.hub-quick a:focus-visible b {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-quick img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.hub-quick a span {
  display: grid;
  gap: 1px;
}

.hub-quick b {
  font-size: 13px;
}

.hub-quick small {
  color: var(--soft);
  font-size: 13px;
}

.hub-quick a > svg {
  width: 13px;
  color: var(--soft);
}

.hub-sidebar-tools .hub-clock,
.hub-sidebar-tools .hub-quick {
  border-color: #243044;
  border-radius: 6px;
  background: #040b17;
  padding: 12px;
}

.hub-sidebar-tools .hub-side-heading {
  margin-bottom: 8px;
}

.hub-sidebar-tools .hub-clock > strong {
  font-size: 23px;
}

.hub-sidebar-tools .hub-zone-tabs {
  margin-top: 9px;
}

.hub-sidebar-tools .hub-zone-tabs button {
  min-height: 28px;
}

.hub-sidebar-tools .hub-time-selects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 7px;
}

.hub-sidebar-tools .hub-time-selects input {
  height: 29px;
  padding: 0 3px;
}

.hub-sidebar-tools .hub-converted {
  margin-top: 8px;
  padding-top: 7px;
}

.hub-sidebar-tools .hub-quick a {
  min-height: 39px;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  gap: 8px;
}

.hub-sidebar-tools .hub-quick img {
  width: 24px;
  height: 24px;
}

.hub-sidebar-tools .hub-quick small {
  display: none;
}

.hub-sidebar-account {
  min-width: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.hub-sidebar-account-heading,
.hub-sidebar-profile {
  min-width: 0;
  display: flex;
  align-items: center;
}

.hub-sidebar-account-heading {
  position: relative;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.hub-sidebar-account-heading > svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.hub-sidebar-account-heading > span,
.hub-sidebar-profile > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hub-sidebar-account-heading small,
.hub-sidebar-profile small {
  color: var(--soft);
  font-size: 12px;
}

.hub-sidebar-profile small.hub-sidebar-username.is-verified {
  color: var(--green);
  font-weight: 700;
}

.hub-sidebar-account-heading strong,
.hub-sidebar-profile strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-sidebar-account > p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.hub-sidebar-account-loading {
  min-height: 30px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.hub-sidebar-account-loading > i {
  width: 72%;
  height: 4px;
  display: block;
  background: var(--line-strong);
}

.hub-sidebar-account-loading > i:last-child {
  width: 44%;
}

.hub-sidebar-profile {
  gap: 9px;
}

.hub-sidebar-profile > img,
.hub-sidebar-profile > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  color: var(--blue);
}

.hub-sidebar-profile > span {
  flex: 1;
}

.hub-sidebar-profile > button,
.hub-sidebar-login-retry {
  border: 0;
  background: transparent;
  color: var(--soft);
}

.hub-sidebar-profile > button {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.hub-sidebar-profile > button:hover,
.hub-sidebar-login-retry:hover {
  color: var(--blue);
}

.hub-sidebar-profile > button svg {
  width: 15px;
  height: 15px;
}

.hub-sidebar-login-retry {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
}

.hub-sidebar-account .hub-telegram-login {
  min-height: 36px;
  overflow: hidden;
}

@media (min-width: 761px) and (max-width: 1359px) {
  #hubSidebarTools .hub-sidebar-account {
    width: 52px;
    height: 48px;
    display: block;
    overflow: hidden;
    border: 0;
    padding: 0;
  }

  #hubSidebarTools .hub-sidebar-account-heading {
    width: 48px;
    height: 48px;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--subtle);
  }

  #hubSidebarTools .hub-sidebar-account-heading > svg {
    width: 18px;
    height: 18px;
  }

  #hubSidebarTools .hub-sidebar-account-heading > span,
  #hubSidebarTools .hub-sidebar-account > p,
  #hubSidebarTools .hub-sidebar-account-status,
  #hubSidebarTools .hub-sidebar-profile,
  #hubSidebarTools .hub-sidebar-login-retry,
  #hubSidebarTools .hub-sidebar-account .hub-telegram-login {
    display: none;
  }
}

.hub-loading,
.hub-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--soft);
  text-align: center;
}

.hub-loading svg {
  width: 20px;
  animation: hub-spin 1s linear infinite;
}

.hub-loading span,
.hub-empty span {
  max-width: 480px;
  font-size: 12px;
}

.hub-empty > svg {
  width: 25px;
  color: #41516a;
}

.hub-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.hub-admin-card {
  overflow: hidden;
}

.hub-admin-card > header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.hub-admin-card > header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-admin-card > header svg {
  width: 20px;
  color: var(--blue);
}

.hub-admin-card > header span {
  display: grid;
  gap: 2px;
}

.hub-admin-card > header small {
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.hub-admin-card > header strong {
  font-size: 13px;
}

.hub-admin-connection {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.hub-admin-connection span {
  color: var(--soft);
}

.hub-admin-connection strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hub-admin-connection[data-state="connected"] strong {
  color: var(--green);
}

.hub-admin-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.hub-admin-card dl > div {
  min-height: 95px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.hub-admin-card dt {
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.hub-admin-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.hub-admin-card footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 18px;
}

.hub-digest-settings {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #030b17;
}

.hub-digest-settings > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.hub-digest-settings > header p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hub-digest-settings > header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.hub-digest-settings > header > span,
.hub-digest-settings label > span,
.hub-digest-settings dt {
  color: var(--soft);
  font-size: 12px;
}

.hub-digest-settings > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

.hub-digest-settings label {
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.hub-digest-settings select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  padding: 0 11px;
  color: var(--ink);
  font: inherit;
}

.hub-digest-settings dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.hub-digest-settings dl > div {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 82px;
  padding: 18px;
}

.hub-digest-settings dl > div + div {
  border-left: 1px solid var(--line);
}

.hub-digest-settings dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.hub-digest-access {
  display: inline-block;
  margin-left: 8px;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--soft);
  border: 1px solid var(--line-strong);
}

.hub-digest-access[data-state="can_post"] {
  border-color: rgb(0 214 107 / 45%);
  color: #00d66b;
}

.hub-digest-access[data-state="not_admin"] {
  border-color: rgb(255 105 105 / 55%);
  color: #ff6969;
}

.hub-digest-settings > .hub-digest-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 105 105 / 8%);
  padding: 14px 18px;
}

.hub-digest-warning p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.hub-digest-warning button {
  flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #167dc5;
  border-radius: 4px;
  background: #087ff5;
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.hub-digest-warning button svg {
  width: 13px;
  height: 13px;
}

.hub-digest-settings > .hub-digest-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}

.hub-digest-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.hub-digest-actions button:last-child {
  border-color: #167dc5;
  background: #087ff5;
  color: #fff;
}

.hub-digest-actions button:disabled {
  opacity: 0.55;
}

.hub-digest-actions button svg {
  width: 13px;
  height: 13px;
}

.hub-digest-settings > .hub-digest-preview {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 18px 18px;
}

.hub-digest-preview h4 {
  margin: 0 0 8px;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hub-digest-preview p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.hub-digest-preview pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hub-taxonomy-manager {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #030b17;
  overflow: hidden;
}

.hub-taxonomy-manager > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.hub-taxonomy-manager > header p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-taxonomy-manager > header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.hub-taxonomy-manager > header > span {
  color: var(--soft);
  font-size: 12px;
}

.hub-taxonomy-manager > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hub-taxonomy-group {
  min-width: 0;
  padding: 18px;
}

.hub-taxonomy-group + .hub-taxonomy-group {
  border-left: 1px solid var(--line);
}

.hub-taxonomy-group h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
}

.hub-taxonomy-group > form,
.hub-taxonomy-row form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

.hub-taxonomy-group input,
.hub-taxonomy-delete select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  background: #071322;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
}

.hub-taxonomy-group input:focus,
.hub-taxonomy-delete select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hub-taxonomy-group button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.hub-taxonomy-group button:hover:not(:disabled) {
  border-color: var(--blue);
  color: #fff;
}

.hub-taxonomy-group button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hub-taxonomy-group button svg {
  width: 13px;
  height: 13px;
}

.hub-taxonomy-group > form > button {
  border-color: #167dc5;
  background: #087ff5;
  color: #fff;
}

.hub-taxonomy-group ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hub-taxonomy-group li {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #050e1b;
}

.hub-taxonomy-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
}

.hub-taxonomy-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hub-taxonomy-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}

.hub-taxonomy-row small,
.hub-taxonomy-delete p,
.hub-taxonomy-delete label > span {
  color: var(--soft);
  font-size: 13px;
}

.hub-taxonomy-row > div {
  display: flex;
  gap: 5px;
}

.hub-taxonomy-row > div button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.hub-taxonomy-row form {
  width: 100%;
}

.hub-taxonomy-delete {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.hub-taxonomy-delete p {
  margin: 0;
  line-height: 1.5;
}

.hub-taxonomy-delete label {
  display: grid;
  gap: 5px;
}

.hub-taxonomy-delete > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.hub-taxonomy-delete button.danger {
  border-color: rgba(255, 84, 109, 0.5);
  color: #ff7187;
}

.hub-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 4, 11, 0.84);
  padding: 20px;
  backdrop-filter: blur(4px);
}

.hub-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050d1a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.hub-modal > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.hub-modal > header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.hub-modal > header button:hover {
  color: #fff;
}

.hub-modal > header button svg {
  width: 18px;
}

.hub-instant > div:last-child {
  padding: 24px;
}

.hub-instant h2 {
  font-size: 23px;
}

.hub-instant > div:last-child p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.hub-instant > div:last-child a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #167dc5;
  border-radius: 4px;
  background: #087ff5;
  color: #fff;
  margin-top: 6px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.hub-instant > div:last-child a svg {
  width: 13px;
}

.hub-bookmark-modal {
  width: min(760px, 100%);
}

.hub-delete-modal {
  width: min(520px, 100%);
}

.hub-delete-modal > div {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.hub-delete-modal > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.hub-delete-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hub-delete-modal footer button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 750;
}

.hub-delete-modal footer button.danger {
  border-color: color-mix(in srgb, var(--red) 58%, var(--line));
  color: var(--red);
}

.hub-delete-modal footer button:hover,
.hub-delete-modal footer button:focus-visible {
  color: var(--ink);
}

.hub-bookmark-modal form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.hub-bookmark-modal form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hub-x-import-note {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hub-bookmark-modal label,
.hub-bookmark-modal fieldset {
  display: grid;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
}

.hub-bookmark-modal label > span,
.hub-bookmark-modal legend {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hub-bookmark-modal input,
.hub-bookmark-modal select,
.hub-bookmark-modal textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  background: #030a15;
  color: var(--ink);
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
}

.hub-bookmark-modal textarea {
  resize: vertical;
}

.hub-bookmark-modal input:focus,
.hub-bookmark-modal select:focus,
.hub-bookmark-modal textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hub-rating-picker button {
  border: 0;
  background: transparent;
  color: #3d4756;
  padding: 2px;
  font-size: 23px;
}

.hub-rating-picker button.active {
  color: var(--amber);
}

.hub-bookmark-modal form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
}

.hub-bookmark-modal form > footer button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
}

.hub-bookmark-modal form > footer button:last-child {
  border-color: #167dc5;
  background: #087ff5;
  color: #fff;
}

.hub-form-error {
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

.hub-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 260;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #071322;
  color: #f6f9fe;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  padding: 0 15px;
  font-size: 12px;
  font-weight: 700;
}

.hub-toast svg {
  width: 15px;
  color: var(--green);
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1199px) {
  .hub-layout {
    display: block;
  }

  .hub-main {
    width: min(100%, 677px);
    margin: 0;
  }

  .hub-side {
    display: none;
  }

  .hub-mobile-tools {
    display: block;
    width: min(100%, 677px);
    margin: 0 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .hub-mobile-tools summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    padding: 0;
    font-size: 13px;
    font-weight: 700;
  }

  .hub-mobile-tools summary::-webkit-details-marker {
    display: none;
  }

  .hub-mobile-tools summary > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--soft);
    transform: rotate(-90deg);
    transition: transform 140ms ease;
  }

  .hub-mobile-tools[open] summary > svg {
    transform: rotate(0deg);
  }

  .hub-mobile-tools-body {
    display: grid;
    gap: 16px;
    padding: 0 0 16px;
  }

  .hub-mobile-tools .hub-sidebar-account {
    width: 100%;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--subtle);
    padding: 12px 14px;
  }

  .hub-mobile-tools .hub-sidebar-account-heading,
  .hub-mobile-tools .hub-sidebar-profile > button {
    min-height: 44px;
  }

  .hub-mobile-tools .hub-sidebar-profile > button {
    width: 44px;
    height: 44px;
  }

  .hub-sidebar-mobile-login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    color: var(--ink);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .hub-sidebar-mobile-login > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--blue);
  }

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

  .hub-mobile-alerts > button {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    padding: 8px 10px;
    text-align: left;
  }

  .hub-mobile-alerts > button > svg {
    width: 17px;
    height: 17px;
    color: var(--blue);
  }

  .hub-mobile-alerts > button > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .hub-mobile-alerts b,
  .hub-mobile-alerts small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hub-mobile-alerts b {
    color: var(--ink);
    font-size: 12px;
  }

  .hub-mobile-alerts small {
    color: var(--soft);
    font-size: 12px;
  }

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

  .hub-mobile-admin-shortcut {
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .hub-bookmark-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hub-page {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .hub-heading {
    min-height: 0;
    display: grid;
    padding: 20px 0;
  }

  .hub-heading-actions {
    justify-content: space-between;
  }

  .hub-alert-popover {
    right: auto;
    left: 0;
    width: min(288px, calc(100vw - 28px));
  }

  .hub-bookmark-tools select,
  .hub-search input,
  .hub-time-selects input,
  .hub-bookmark-modal input,
  .hub-bookmark-modal select,
  .hub-bookmark-modal textarea,
  .hub-discussion-panel form textarea {
    font-size: 16px;
  }

  .hub-heading h1 {
    font-size: 32px;
  }

  .hub-tabs {
    height: 54px;
    gap: 20px;
    overflow-x: auto;
  }

  .hub-layout {
    padding-top: 12px;
  }

  .hub-mobile-tools-grid {
    grid-template-columns: 1fr;
  }

  .hub-section-heading {
    min-height: 0;
    display: grid;
  }

  .hub-bookmark-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hub-member-gate {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 20px;
  }

  .hub-news-heading {
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 16px;
  }

  .hub-app-news {
    margin-top: 0;
  }

  .hub-news-heading h2 {
    font-size: 28px;
  }

  .hub-add-button {
    justify-self: start;
  }

  .hub-bookmark-tools {
    grid-template-columns: 1fr;
  }

  .hub-search {
    grid-column: auto;
  }

  .hub-filter-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hub-news-media.compact {
    height: clamp(160px, 52vw, 220px);
    max-height: none;
  }

  .hub-media-fallback.compact {
    height: clamp(160px, 52vw, 220px);
  }

  .hub-news-card {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 0;
    padding: 16px 0 20px;
  }

  .hub-news-avatar {
    width: 32px;
    height: 32px;
    margin-top: 2px;
  }

  .hub-news-avatar img {
    width: 26px;
    height: 16px;
  }

  .hub-news-copy h3 {
    margin-top: 4px;
    font-size: 16px;
  }

  .hub-news-copy > p {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }

  .hub-news-card .hub-card-actions button,
  .hub-news-card .hub-card-actions a {
    min-height: 44px;
  }

  .hub-card-actions-right {
    gap: 6px;
  }

  .hub-card-actions-right a {
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hub-card-actions .icon-only {
    width: 44px;
    min-width: 44px;
  }

  .hub-filter-tabs button,
  .hub-rating-filter-star,
  .hub-raw-help {
    min-height: 44px;
  }

  .hub-raw-help {
    width: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .hub-modal-layer {
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    padding-right: 0;
    padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
    padding-left: 0;
  }

  .hub-modal {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .hub-admin-card dl {
    grid-template-columns: 1fr;
  }

  .hub-admin-card dl > div {
    border-right: 0;
  }

  .hub-digest-settings > header,
  .hub-digest-settings > div,
  .hub-digest-settings dl {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-digest-settings label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hub-digest-settings dl > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hub-taxonomy-manager > header,
  .hub-taxonomy-manager > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hub-taxonomy-group + .hub-taxonomy-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hub-modal-layer {
    align-items: end;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }

  .hub-modal {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .hub-toast {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 12px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .hub-card-actions {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  .hub-instant-action {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .hub-card-actions-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .hub-card-actions {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .hub-instant-action {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .hub-card-actions-right {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 350px) {
  .hub-mobile-alerts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) and (max-height: 450px) and (orientation: landscape) {
  .hub-page {
    padding-top: calc(60px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .hub-heading {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hub-toast {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

html[data-theme="light"] .hub-section-heading h2,
html[data-theme="light"] .hub-side-heading h2,
html[data-theme="light"] .hub-modal h2,
html[data-theme="light"] .hub-news-copy h3,
html[data-theme="light"] .hub-bookmark-identity h3,
html[data-theme="light"] .hub-clock > strong {
  color: var(--ink);
}

html[data-theme="light"] .hub-channel-link:hover,
html[data-theme="light"] .hub-icon-button:hover,
html[data-theme="light"] .hub-admin-shortcut:hover {
  border-color: var(--blue-line);
  background: var(--accent-soft);
  color: var(--ink);
}

html[data-theme="light"] .hub-alert-popover,
html[data-theme="light"] .hub-modal {
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(35, 49, 70, 0.16);
}

html[data-theme="light"] .hub-bookmark-identity > span,
html[data-theme="light"] .hub-zone-tabs button,
html[data-theme="light"] .hub-time-selects input,
html[data-theme="light"] .hub-taxonomy-group input,
html[data-theme="light"] .hub-taxonomy-delete select,
html[data-theme="light"] .hub-bookmark-modal input,
html[data-theme="light"] .hub-bookmark-modal select,
html[data-theme="light"] .hub-bookmark-modal textarea {
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="light"] .hub-raw-tooltip,
html[data-theme="light"] .hub-discussion-panel form textarea {
  background: #ffffff;
}

html[data-theme="light"] .hub-member-gate-copy h2,
html[data-theme="light"] .hub-access-ladder strong {
  color: var(--ink);
}

html[data-theme="light"] .hub-bookmark-modal select {
  color-scheme: light;
}

html[data-theme="light"] .hub-bookmark-modal select option {
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="light"] .hub-zone-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

html[data-theme="light"] .hub-sidebar-tools .hub-clock,
html[data-theme="light"] .hub-sidebar-tools .hub-quick,
html[data-theme="light"] .hub-clock-panel,
html[data-theme="light"] .hub-quick,
html[data-theme="light"] .hub-digest-settings,
html[data-theme="light"] .hub-taxonomy-manager,
html[data-theme="light"] .hub-taxonomy-group li,
html[data-theme="light"] .hub-toast {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

html[data-theme="light"] .hub-risk-notice {
  background: #fffaf0;
}

html[data-theme="light"] .hub-bookmark-stats button,
html[data-theme="light"] .hub-bookmark-banner {
  background: var(--subtle);
}

html[data-theme="light"] .hub-card-actions button:hover,
html[data-theme="light"] .hub-card-actions a:hover,
html[data-theme="light"] .hub-empty button:hover,
html[data-theme="light"] .hub-taxonomy-group button:hover:not(:disabled) {
  color: var(--ink);
}

@media (max-width: 520px) {
  .hub-channel-link span {
    display: none;
  }

  .hub-bookmark-identity {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .hub-bookmark-identity > div:last-child {
    grid-column: 2;
    justify-items: start;
  }

  .hub-bookmark-identity > .hub-follower-snapshot,
  .hub-follower-snapshot > span {
    justify-content: flex-start;
    justify-items: start;
  }

  .hub-bookmark-copy > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-bookmark-copy > footer > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .hub-bookmark-copy footer a {
    flex: 1;
  }

  .hub-bookmark-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hub-member-gate {
    padding-right: 0;
    padding-left: 0;
  }

  .hub-bookmark-modal form > div,
  .hub-bookmark-tools {
    grid-template-columns: 1fr;
  }

  .hub-taxonomy-group > form,
  .hub-taxonomy-row form {
    grid-template-columns: 1fr auto;
  }

  .hub-taxonomy-row form > button:last-child {
    grid-column: 1 / -1;
  }

  .hub-search {
    grid-column: auto;
  }

  .hub-card-actions {
    flex-wrap: wrap;
  }

  .hub-card-actions a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-loading svg,
  .hub-boot-loading i {
    animation: none;
  }
}

/* Mobile utility controls remain comfortably tappable even when the browser
   reports a fine pointer (for example, tablet desktop-mode emulation). */
@media (max-width: 760px) {
  .hub-mobile-tools .hub-sidebar-login-retry {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 0;
  }

  .hub-mobile-tools .hub-zone-tabs button,
  .hub-mobile-tools .hub-time-selects input {
    min-height: 44px;
    height: 44px;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .hub-news-card .hub-card-actions button,
  .hub-news-card .hub-card-actions a {
    min-height: 44px;
  }
}

/* Touch targets: pointer-coarse devices get at least 44px interactive height. */
@media (pointer: coarse) {
  .hub-mobile-tools summary,
  .hub-news-card .hub-card-actions button,
  .hub-news-card .hub-card-actions a,
  .hub-bookmark-admin-actions button,
  .hub-bookmark-copy footer button,
  .hub-bookmark-copy footer a,
  .hub-discussion-toggle,
  .hub-discussion-panel form button,
  .hub-member-gate-actions button,
  .hub-add-button,
  .hub-filter-tabs button,
  .hub-rating-filter-star,
  .hub-raw-help,
  .hub-zone-tabs button,
  .hub-time-selects input {
    min-height: 44px;
  }

  .hub-card-actions .icon-only {
    width: 44px;
  }

  .hub-bookmark-admin-actions button {
    min-width: 44px;
  }
}
