/* AI Hot — editorial hierarchy instead of equal-weight cards. */
:root {
  --ah-paper: var(--sv-color-canvas);
  --ah-paper-light: var(--sv-color-surface);
  --ah-ink: var(--sv-color-text);
  --ah-muted: var(--sv-color-text-muted);
  --ah-faint: var(--sv-color-text-faint);
  --ah-line: var(--sv-color-border);
  --ah-urgent: #ef4b37;
  --ah-important: #d88716;
  --ah-reading-width: 45rem;
  --ah-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

html[data-app-rail="ai-hot"] body.has-app-rail {
  overflow: hidden;
  color: var(--ah-ink);
  background: var(--ah-paper);
  font-family: var(--sv-font-sans);
}

html[data-app-rail="ai-hot"] body.has-app-rail > .app-rail {
  background: var(--sv-color-canvas-raised);
  box-shadow: none;
}

html[data-app-rail="ai-hot"] .ah-layout {
  height: 100dvh;
  display: grid;
  grid-template-columns: 248px minmax(560px, 0.96fr) minmax(500px, 1.04fr);
  gap: 0;
  padding: 0;
  background:
    radial-gradient(circle at 72% 0%, rgba(216, 135, 22, 0.035), transparent 32rem),
    var(--ah-paper);
}

html[data-app-rail="ai-hot"] .ah-pane {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--ah-line);
  border-radius: 0;
  outline: 0;
  background: var(--sv-color-surface-subtle);
  box-shadow: none;
}

.ah-overview-pane {
  padding: 22px 18px 18px;
}

html[data-app-rail="ai-hot"] .ah-overview-pane .ah-pane-head {
  padding: 0 0 18px;
  border: 0;
}

html[data-app-rail="ai-hot"] .ah-pane-head h1 {
  font-size: 1.32rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

html[data-app-rail="ai-hot"] .ah-pane-head p {
  color: var(--ah-muted);
  font-size: 0.73rem;
}

html[data-app-rail="ai-hot"] .ah-count {
  padding: 2px 7px;
  background: var(--sv-color-surface-strong);
  color: var(--sv-color-text-faint);
  font-size: 0.67rem;
}

.ah-overview-card {
  margin: 0 0 18px;
  padding: 16px 16px 15px;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: var(--sv-color-surface);
}

.ah-overview-title {
  margin-bottom: 16px;
  color: var(--sv-color-text);
  font-size: 0.76rem;
  font-weight: 650;
}

.ah-overview-title span {
  margin-left: 3px;
  color: var(--ah-faint);
  font-size: 0.64rem;
}

.ah-overview-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.ah-overview-total strong {
  font-family: var(--sv-font-editorial);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.ah-overview-total span {
  color: var(--ah-muted);
  font-size: 0.72rem;
}

.ah-overview-priority {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--ah-urgent);
  font-size: 0.7rem;
}

.ah-overview-priority span {
  font-size: 0.56rem;
  transform: rotate(45deg);
}

html[data-app-rail="ai-hot"] .ah-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0 0 18px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(45, 40, 34, 0.045);
}

html[data-app-rail="ai-hot"] .ah-tab {
  padding: 7px 4px;
  border-radius: 7px;
  font-size: 0.73rem;
}

html[data-app-rail="ai-hot"] .ah-tab.is-active {
  background: var(--sv-color-surface-elevated);
  color: var(--sv-color-text);
  box-shadow: 0 5px 12px rgba(32, 28, 24, 0.14);
}

html[data-app-rail="ai-hot"] .ah-search-shell {
  margin: 0 0 16px;
}

html[data-app-rail="ai-hot"] .ah-search {
  height: 42px;
  border-radius: 9px;
  background: rgba(45, 40, 34, 0.045) !important;
  font-size: 0.76rem;
}

html[data-app-rail="ai-hot"] .ah-cat-nav {
  padding: 0;
}

html[data-app-rail="ai-hot"] .ah-cat-btn {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.79rem;
  transition:
    transform 240ms var(--ah-ease),
    background-color 240ms var(--ah-ease);
}

html[data-app-rail="ai-hot"] .ah-cat-btn:hover {
  transform: translateX(2px);
}

html[data-app-rail="ai-hot"] .ah-cat-btn.is-active {
  background: var(--sv-color-surface-elevated);
  color: var(--sv-color-text);
}

.ah-feed-pane {
  overflow: hidden;
}

.ah-feed-toolbar {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-sort-tabs {
  display: flex;
  width: max-content;
  max-width: calc(100% - 72px);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--ah-line);
  border-radius: 999px;
  background: var(--sv-color-surface);
}

.ah-sort-tab {
  min-height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ah-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  transition:
    color 220ms var(--ah-ease),
    background-color 220ms var(--ah-ease),
    transform 220ms var(--ah-ease);
}

.ah-sort-tab:hover {
  color: var(--ah-ink);
}

.ah-sort-tab:active {
  transform: scale(0.97);
}

.ah-sort-tab.is-active {
  background: var(--sv-color-surface-elevated);
  color: var(--sv-color-text);
}

.ah-sort-tab:focus-visible,
.ah-hero-card:focus-visible,
.ah-feature-card:focus-visible,
.ah-compact-card:focus-visible {
  outline: 2px solid var(--ah-urgent);
  outline-offset: 3px;
}

html[data-app-rail="ai-hot"] .ah-sync-button {
  position: absolute;
  top: 18px;
  right: 20px;
  min-width: 58px;
  min-height: 36px;
  justify-content: center;
  border: 1px solid var(--ah-line);
  background: transparent;
  color: var(--ah-muted);
}

html[data-app-rail="ai-hot"] .ah-sync-button:hover {
  background: rgba(45, 40, 34, 0.06);
  color: var(--ah-ink);
}

.ah-feed-status {
  min-height: 0;
}

.ah-feed-status h2,
.ah-feed-status > p:not(.ah-sync-status) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html[data-app-rail="ai-hot"] .ah-sync-status {
  margin: 8px 0 0;
}

html[data-app-rail="ai-hot"] .ah-fallback {
  margin: 12px 20px 0;
}

html[data-app-rail="ai-hot"] .ah-list {
  padding: 14px 18px 28px;
  display: block;
  overflow-y: auto;
}

.ah-editorial-feed {
  display: grid;
  gap: 14px;
}

.ah-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--sv-color-text);
  font-size: 0.76rem;
  font-weight: 680;
}

.ah-section-label::before {
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.ah-section-label.is-urgent {
  color: var(--ah-urgent);
}

.ah-hero-card,
.ah-feature-card,
.ah-compact-card {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ah-hero-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  padding: 0;
  border-radius: 13px;
  background: var(--sv-color-surface-strong);
  color: var(--sv-color-text);
}

.ah-hero-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 25%, var(--sv-color-canvas-raised) 88%);
}

.ah-news-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(239, 75, 55, 0.2), transparent 32%),
    var(--sv-color-surface-strong);
}

.ah-news-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 420ms var(--ah-ease),
    transform 900ms var(--ah-ease);
}

.ah-news-visual.has-real-cover .ah-news-cover {
  opacity: 1;
  transform: scale(1);
}

.ah-news-visual.has-real-cover .ah-visual-grid,
.ah-news-visual.has-real-cover .ah-visual-wave,
.ah-news-visual.has-real-cover .ah-visual-orbit {
  opacity: 0;
}

.ah-hero-card .ah-news-visual {
  position: absolute;
  inset: 0;
}

.ah-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ah-visual-wave {
  position: absolute;
  top: 46%;
  right: 5%;
  left: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--heat-color, var(--ah-urgent)), transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--heat-color, var(--ah-urgent)) 42%, transparent);
}

.ah-visual-wave::before,
.ah-visual-wave::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 45px;
  content: "";
  background:
    linear-gradient(105deg,
      transparent 0 5%,
      var(--heat-color, var(--ah-urgent)) 5.5% 6%,
      transparent 6.5% 13%,
      var(--heat-color, var(--ah-urgent)) 13.5% 14%,
      transparent 14.5% 26%,
      var(--heat-color, var(--ah-urgent)) 26.5% 27.2%,
      transparent 27.7% 40%,
      var(--heat-color, var(--ah-urgent)) 40.5% 41.2%,
      transparent 41.7% 55%,
      var(--heat-color, var(--ah-urgent)) 55.5% 56.3%,
      transparent 56.8% 70%,
      var(--heat-color, var(--ah-urgent)) 70.5% 71.4%,
      transparent 71.9% 84%,
      var(--heat-color, var(--ah-urgent)) 84.5% 85.4%,
      transparent 86%);
}

.ah-visual-wave::before {
  bottom: 0;
  transform: skewY(-8deg);
}

.ah-visual-wave::after {
  top: 0;
  opacity: 0.48;
  transform: scaleY(-1) skewY(-6deg);
}

.ah-visual-orbit {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--heat-color, #d88716) 58%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px color-mix(in srgb, var(--heat-color, #d88716) 7%, transparent),
    0 0 0 56px color-mix(in srgb, var(--heat-color, #d88716) 4%, transparent);
}

.ah-visual-orbit::before,
.ah-visual-orbit::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--heat-color, #d88716);
  content: "";
}

.ah-visual-orbit::before { top: 8px; right: 16px; }
.ah-visual-orbit::after { bottom: 14px; left: 4px; }

.ah-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 292px;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-content: end;
  gap: 18px;
  padding: 22px;
}

.ah-rank {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--sv-font-editorial);
  font-size: 1.8rem;
  line-height: 1;
}

.ah-hero-copy {
  min-width: 0;
}

.ah-hero-title {
  display: block;
  margin: 0 0 9px;
  color: var(--sv-color-text);
  font-family: var(--sv-font-editorial);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ah-hero-summary {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.74rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--sv-color-text-muted);
  font-size: 0.65rem;
}

.ah-editor-badge {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--heat-color) 55%, transparent);
  border-radius: 4px;
  color: var(--heat-color);
  font-weight: 650;
}

.ah-heat-block {
  align-self: end;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 250, 242, 0.2);
}

.ah-heat-block span {
  display: block;
  color: var(--sv-color-text-muted);
  font-size: 0.62rem;
}

.ah-heat-block strong {
  display: block;
  margin: 3px 0;
  color: var(--heat-color);
  font-family: var(--sv-font-editorial);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.ah-heat-meter {
  position: relative;
  height: 2px;
  margin-top: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.ah-heat-meter::after {
  display: block;
  width: var(--heat-width);
  height: 100%;
  background: var(--heat-color);
  content: "";
}

.ah-notable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ah-feature-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ah-line);
  border-radius: 11px;
  background: var(--sv-color-surface);
  transition:
    transform 320ms var(--ah-ease),
    border-color 320ms var(--ah-ease);
}

.ah-feature-card:hover,
.ah-feature-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--heat-color) 48%, transparent);
}

.ah-feature-card .ah-news-visual {
  height: 104px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--heat-color) 17%, transparent), transparent 35%),
    var(--sv-color-surface-elevated);
}

.ah-feature-rank {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 11px;
  color: var(--sv-color-text);
  font-family: var(--sv-font-editorial);
  font-size: 1.2rem;
}

.ah-feature-copy {
  display: block;
  padding: 11px 12px 12px;
}

.ah-feature-title {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.78rem;
  font-weight: 670;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-feature-summary {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--ah-muted);
  font-size: 0.66rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ah-feature-meta {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  color: var(--ah-faint);
  font-size: 0.61rem;
}

.ah-feature-meta strong {
  margin-left: auto;
  color: var(--heat-color);
  font-family: var(--sv-font-editorial);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 0.9;
}

.ah-compact-list {
  overflow: hidden;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  background: var(--sv-color-surface);
}

.ah-compact-card {
  --heat-color: var(--sv-color-text-muted);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(90px, 0.35fr) 72px;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ah-line);
  background: transparent;
  transition: background-color 220ms var(--ah-ease);
}

.ah-compact-card:last-child {
  border-bottom: 0;
}

.ah-compact-card:hover,
.ah-compact-card.is-active {
  background: rgba(216, 135, 22, 0.055);
}

.ah-compact-rank {
  font-family: var(--sv-font-editorial);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.ah-compact-title {
  overflow: hidden;
  color: var(--sv-color-text);
  font-size: 0.69rem;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-compact-source {
  overflow: hidden;
  color: var(--ah-faint);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-compact-heat {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--heat-color);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.ah-compact-heat i {
  width: 27px;
  height: 2px;
  overflow: hidden;
  background: rgba(42, 38, 33, 0.1);
}

.ah-compact-heat i::after {
  display: block;
  width: var(--heat-width);
  height: 100%;
  background: var(--heat-color);
  content: "";
}

html[data-app-rail="ai-hot"] .ah-reader {
  position: relative;
  background: var(--sv-color-surface-subtle);
}

.ah-detail-wrap {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.ah-detail-wrap:not(.hidden) {
  display: flex;
}

html[data-app-rail="ai-hot"] .ah-read-head {
  padding: 28px 34px 18px;
  border-bottom: 0;
}

html[data-app-rail="ai-hot"] .ah-crumbs {
  margin-bottom: 18px;
  font-size: 0.69rem;
}

html[data-app-rail="ai-hot"] .ah-read-title {
  max-width: min(var(--ah-reading-width), 100%);
  margin-bottom: 15px;
  font-family: var(--sv-font-editorial);
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[data-app-rail="ai-hot"] .ah-read-meta {
  gap: 7px;
}

html[data-app-rail="ai-hot"] .ah-read-meta .ah-time {
  margin-left: 0;
}

.ah-detail-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sv-color-text);
  font-size: 0.7rem;
}

.ah-detail-source::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--ah-line);
  border-radius: 50%;
  content: "◆";
  font-size: 0.45rem;
}

.ah-source-badge {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--sv-color-surface-strong);
  color: var(--sv-color-text-faint);
  font-size: 0.61rem;
}

.ah-detail-heat {
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--heat-color) 24%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--heat-color) 4%, transparent);
  color: var(--heat-color);
}

.ah-detail-heat span {
  font-size: 0.69rem;
  font-weight: 650;
}

.ah-detail-heat strong {
  font-family: var(--sv-font-editorial);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.ah-detail-heat small {
  color: var(--ah-muted);
  font-size: 0.64rem;
}

html[data-app-rail="ai-hot"] .ah-read-body {
  padding: 10px 34px 118px;
}

html[data-app-rail="ai-hot"] .ah-article {
  max-width: min(var(--ah-reading-width), 100%);
}

html[data-app-rail="ai-hot"] .ah-article h3 {
  margin-top: 0;
  font-size: 0.78rem;
}

html[data-app-rail="ai-hot"] .ah-article p {
  color: #342f29;
  font-size: 0.88rem;
  line-height: 1.8;
}

html[data-app-rail="ai-hot"] .ah-callout {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--ah-urgent) 28%, transparent);
  border-left-width: 1px;
  border-radius: 10px;
  background: rgba(239, 75, 55, 0.025);
}

html[data-app-rail="ai-hot"] .ah-callout h3 {
  color: var(--ah-urgent);
  font-size: 0.76rem;
}

.ah-why-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-why-list li {
  position: relative;
  padding-left: 20px;
  color: #514a42;
  font-size: 0.76rem;
  line-height: 1.55;
}

.ah-why-list li::before {
  position: absolute;
  top: 0.23em;
  left: 0;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--ah-urgent);
  color: white;
  content: "✓";
  font-size: 0.52rem;
}

html[data-app-rail="ai-hot"] .ah-source-box {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid var(--ah-line);
  border-radius: 9px;
  background: var(--sv-color-surface);
  color: var(--ah-muted);
  font-size: 0.72rem;
}

html[data-app-rail="ai-hot"] .ah-source-box a {
  color: var(--ah-urgent);
}

html[data-app-rail="ai-hot"] .ah-float-bar {
  right: 34px;
  bottom: 24px;
  padding: 0;
  gap: 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-app-rail="ai-hot"] .ah-float-bar .ah-btn {
  min-width: 138px;
  min-height: 48px;
  justify-content: center;
  border: 1px solid var(--ah-line);
  border-radius: 11px;
  background: var(--sv-color-surface);
  color: #312d28;
  box-shadow: 0 12px 28px rgba(57, 46, 34, 0.08);
}

html[data-app-rail="ai-hot"] .ah-float-bar .ah-btn:first-child {
  border-color: #1b1a17;
  background: var(--sv-color-surface-elevated);
  color: var(--sv-color-text);
}

html[data-app-rail="ai-hot"] .ah-float-bar .ah-btn:hover {
  transform: translateY(-2px);
  background: var(--sv-color-surface-hover);
  color: var(--sv-color-text);
}

html[data-app-rail="ai-hot"] .ah-float-bar .ah-btn-accent:hover {
  border-color: rgba(43, 39, 33, 0.24);
  background: var(--sv-color-surface);
  color: var(--sv-color-text);
}

@media (max-width: 1360px) {
  html[data-app-rail="ai-hot"] .ah-layout {
    grid-template-columns: 218px minmax(510px, 0.95fr) minmax(430px, 1.05fr);
  }
}

@media (max-width: 1080px) {
  html[data-app-rail="ai-hot"] body.has-app-rail {
    overflow: auto;
  }

  html[data-app-rail="ai-hot"] .ah-layout {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  html[data-app-rail="ai-hot"] .ah-reader {
    grid-column: 1 / -1;
    min-height: 640px;
    border-top: 1px solid var(--ah-line);
  }
}

@media (max-width: 760px) {
  html[data-app-rail="ai-hot"] .ah-layout {
    display: block;
  }

  .ah-overview-pane {
    padding: 18px 16px;
  }

  html[data-app-rail="ai-hot"] .ah-pane {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ah-line);
  }

  html[data-app-rail="ai-hot"] .ah-cat-nav {
    display: flex;
    overflow-x: auto;
  }

  html[data-app-rail="ai-hot"] .ah-cat-btn {
    width: auto;
    min-width: max-content;
  }

  .ah-notable-grid {
    grid-template-columns: 1fr;
  }

  .ah-hero-content {
    grid-template-columns: 1fr;
  }

  .ah-heat-block {
    display: none;
  }

  .ah-compact-card {
    grid-template-columns: 30px minmax(0, 1fr) 62px;
  }

  .ah-compact-source {
    display: none;
  }

  html[data-app-rail="ai-hot"] .ah-read-head,
  html[data-app-rail="ai-hot"] .ah-read-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  html[data-app-rail="ai-hot"] .ah-float-bar {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  html[data-app-rail="ai-hot"] .ah-float-bar .ah-btn {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-sort-tab,
  .ah-feature-card,
  .ah-compact-card,
  .ah-news-cover {
    transition: none !important;
  }
}

html[data-theme="light"][data-app-rail="ai-hot"] .ah-count { background:var(--sv-color-surface-strong); color:var(--sv-color-text-muted); }

html[data-theme="light"][data-app-rail="ai-hot"] { --ah-paper-light:var(--sv-color-surface); --ah-ink:var(--sv-color-text); --ah-muted:var(--sv-color-text-muted); --ah-line:var(--sv-color-border); --ah-urgent:var(--sv-color-danger); --ah-important:var(--sv-color-warning); }

/* Theme follow-up: roles and readable states. */
html[data-app-rail="ai-hot"] .ah-layout { background:var(--sv-color-canvas); grid-template-columns:208px minmax(0,1fr) minmax(0,1.05fr); }
html[data-app-rail="ai-hot"] .ah-overview-pane { background:var(--sv-color-canvas-raised); }
html[data-app-rail="ai-hot"] .ah-reader { background:var(--sv-color-surface); }
html[data-app-rail="ai-hot"] .ah-pane { overflow-wrap:anywhere; }
@media(max-width:1100px) { html[data-app-rail="ai-hot"] .ah-layout { grid-template-columns:190px minmax(0,1fr); height:auto; } html[data-app-rail="ai-hot"] .ah-reader { grid-column:1/-1; min-height:520px; } html[data-app-rail="ai-hot"] body.has-app-rail { overflow:auto; } }
@media(max-width:760px) { html[data-app-rail="ai-hot"] .ah-layout { display:block; } }
