/* 正式预告或清楚标注的时间参考放在标题右侧。 */
body.is-ai-view .codex-reset-countdowns[hidden] { display: none; }
body.is-ai-view .codex-reset-countdowns {
  display: grid;
  flex: 0 1 420px;
  min-width: 0;
  max-width: 460px;
  gap: 12px;
}
body.is-ai-view .codex-reset-countdown-card {
  padding: 16px 20px;
  border: 1px solid var(--news-line);
  border-left: 3px solid var(--news-accent);
  border-radius: 8px;
  background: var(--news-accent-soft);
}
body.is-ai-view .codex-reset-countdown-title {
  margin: 0 0 5px;
  color: var(--news-accent);
  font-size: 15px;
  font-weight: 650;
}
body.is-ai-view .codex-reset-countdown-status {
  margin: 0 0 8px;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.5;
}
body.is-ai-view .codex-reset-countdown-value {
  margin: 4px 0 10px;
  color: var(--news-ink);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
body.is-ai-view .codex-reset-countdown-time,
body.is-ai-view .codex-reset-countdown-scope {
  margin: 6px 0;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.is-ai-view .codex-reset-countdown-card .codex-reset-link { min-height: 40px; font-size: 14px; }
@media (max-width: 760px) {
  body.is-ai-view .ai-focus-grid .codex-monitor-heading { flex-wrap: wrap; }
  body.is-ai-view .codex-reset-countdowns { flex-basis: 100%; width: 100%; max-width: none; }
  body.is-ai-view .codex-reset-countdown-card { padding: 14px 16px; }
}

body.is-ai-view .codex-reset-reference-clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 14px 0; }
body.is-ai-view .codex-reset-reference-row { min-width: 0; }
body.is-ai-view .codex-reset-reference-row + .codex-reset-reference-row { border-left: 1px solid var(--news-line); padding-left: 16px; }
body.is-ai-view .codex-reset-reference-time,
body.is-ai-view .codex-reset-reference-phase,
body.is-ai-view .codex-reset-reference-note { margin: 5px 0; font-size: 12px; color: var(--news-muted); line-height: 1.6; overflow-wrap: anywhere; }
body.is-ai-view .codex-reset-reference-value { margin: 8px 0; font-size: clamp(23px, 2.4vw, 31px); font-weight: 650; color: var(--news-accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
@media (max-width: 430px) {
  body.is-ai-view .codex-reset-reference-clocks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.is-ai-view .codex-reset-reference-row + .codex-reset-reference-row { border-left: 0; border-top: 1px solid var(--news-line); padding: 10px 0 0; }
}

/* 横向公开状态优先，事件月历与可展开原帖各占完整行。 */
body.is-ai-view .ai-focus-grid #codexMonitor > .codex-reset-summary {
  margin: 0;
  padding: 18px 0 20px;
  border-top: 1px solid var(--news-line);
  border-bottom: 0;
}
body.is-ai-view .ai-focus-grid .codex-reset-heading {
  margin: 0 0 12px;
  color: var(--news-muted);
  font-size: 13px;
  font-weight: 550;
}
body.is-ai-view .ai-focus-grid .codex-reset-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 30px;
  padding: 20px 22px;
  border: 1px solid var(--news-line);
  border-left: 3px solid var(--news-accent);
  border-radius: 8px;
  background: var(--news-accent-soft);
}
body.is-ai-view .ai-focus-grid .codex-reset-confirmation,
body.is-ai-view .ai-focus-grid .codex-reset-announcement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 26px;
  align-items: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body.is-ai-view .ai-focus-grid .codex-reset-confirmation > h4,
body.is-ai-view .ai-focus-grid .codex-reset-announcement > h4 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 5px;
  font-size: 14px;
}
body.is-ai-view .ai-focus-grid .codex-reset-confirmed-time {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 6px;
  color: var(--news-ink);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 650;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
body.is-ai-view .ai-focus-grid .codex-reset-confirmation > p.codex-reset-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 5px;
  font-size: 13px;
}
body.is-ai-view .ai-focus-grid .codex-reset-elapsed {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--news-accent);
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}
body.is-ai-view .ai-focus-grid .codex-reset-confirmation > .codex-reset-note,
body.is-ai-view .ai-focus-grid .codex-reset-evidence,
body.is-ai-view .ai-focus-grid .codex-reset-announcement > :not(h4) { grid-column: 1 / -1; }
body.is-ai-view .ai-focus-grid .codex-reset-note { margin: 4px 0; font-size: 13px; line-height: 1.65; }
body.is-ai-view .ai-focus-grid .codex-reset-evidence { margin-top: 6px; font-size: 13px; }
body.is-ai-view .ai-focus-grid .codex-reset-evidence summary { min-height: 30px; }
body.is-ai-view .ai-focus-grid .codex-reset-hero-source {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-height: 40px;
  margin-top: 7px;
  white-space: nowrap;
  font-size: 14px;
}
body.is-ai-view .ai-focus-grid .codex-reset-hero > .codex-reset-announcement,
body.is-ai-view .ai-focus-grid .codex-reset-hero > .codex-reset-confirmation:not(.codex-reset-secondary) { grid-column: 1; grid-row: 1; }
body.is-ai-view .ai-focus-grid .codex-reset-hero > .codex-reset-secondary { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--news-line); }
body.is-ai-view .ai-focus-grid .codex-reset-coverage { margin: 9px 0 0; font-size: 12px; }
body.is-ai-view .ai-focus-grid .codex-monitor-layout { grid-template-columns: minmax(0, 1fr); }
body.is-ai-view .ai-focus-grid .codex-monitor-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: 15px 0 18px;
  border: 0;
}
body.is-ai-view .ai-focus-grid .codex-monitor-status { margin: 0; font-size: 12px; }
body.is-ai-view .ai-focus-grid .codex-monitor-metrics {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.is-ai-view .ai-focus-grid .codex-monitor-metrics > div { display: flex; align-items: baseline; gap: 6px; }
body.is-ai-view .ai-focus-grid .codex-monitor-metric-value { color: var(--news-muted); font-size: 13px; font-weight: 550; }
body.is-ai-view .ai-focus-grid .codex-monitor-metric-label { font-size: 12px; }
body.is-ai-view .ai-focus-grid .codex-monitor-calendar-wrap { grid-column: 1 / -1; padding-top: 4px; }
body.is-ai-view .ai-focus-grid .codex-monitor-calendar,
body.is-ai-view .ai-focus-grid .codex-calendar-weekdays { gap: 7px; }
body.is-ai-view .ai-focus-grid .codex-calendar-toolbar { max-width: 360px; margin: 4px auto 8px; }
body.is-ai-view .ai-focus-grid .codex-calendar-day {
  min-height: 59px;
  padding: 9px 4px 7px;
  border: 1px solid var(--news-line);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
body.is-ai-view .ai-focus-grid .codex-calendar-day:not(:disabled):hover { border-color: var(--news-accent); background: var(--news-accent-soft); }
body.is-ai-view .ai-focus-grid .codex-calendar-day.has-reset-event {
  border-color: var(--news-accent);
  background: var(--news-accent-soft);
  color: var(--news-accent);
}
body.is-ai-view .ai-focus-grid .codex-calendar-day.has-card-event { border-color: #b17b36; background: rgba(177, 123, 54, 0.09); color: #a5732c; }
body.is-ai-view .ai-focus-grid .codex-calendar-day.has-reset-event .codex-calendar-date,
body.is-ai-view .ai-focus-grid .codex-calendar-day.has-card-event .codex-calendar-date { color: inherit; font-weight: 650; }
body.is-ai-view .ai-focus-grid .codex-calendar-count { font-size: 12px; }
body.is-ai-view .ai-focus-grid .codex-calendar-legend { font-size: 12px; }
body.is-ai-view .ai-focus-grid .codex-calendar-legend i.has-reset-event { background: var(--news-accent); }
body.is-ai-view .ai-focus-grid .codex-calendar-legend i.has-card-event { background: #b17b36; }
body.is-ai-view .ai-focus-grid .codex-monitor-feed { padding: 6px 0 10px; }
body.is-ai-view .ai-focus-grid .codex-monitor-posts { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 760px) {
  body.is-ai-view .ai-focus-grid .codex-reset-hero { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  body.is-ai-view .ai-focus-grid .codex-reset-hero-source { grid-column: 1; grid-row: auto; margin: 0; }
  body.is-ai-view .ai-focus-grid .codex-monitor-overview { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.is-ai-view .ai-focus-grid .codex-monitor-metrics { justify-content: flex-start; flex-wrap: wrap; gap: 5px 16px; }
  body.is-ai-view .ai-focus-grid .codex-calendar-day { min-height: 52px; padding: 7px 2px; }
  body.is-ai-view .ai-focus-grid .codex-monitor-calendar,
  body.is-ai-view .ai-focus-grid .codex-calendar-weekdays { gap: 4px; }
}
@media (max-width: 430px) {
  body.is-ai-view .ai-focus-grid .codex-reset-confirmation { grid-template-columns: minmax(0, 1fr); }
  body.is-ai-view .ai-focus-grid .codex-reset-confirmation > p.codex-reset-label { grid-column: 1; grid-row: 3; margin-top: 8px; }
  body.is-ai-view .ai-focus-grid .codex-reset-elapsed { grid-column: 1; grid-row: 4; margin-bottom: 5px; }
  body.is-ai-view .ai-focus-grid .codex-calendar-date,
  body.is-ai-view .ai-focus-grid .codex-calendar-count { font-size: 11px; }
}
