/* agenda.css — 全局日程 (agenda) 局部微调. 骨架 (global-feature-* / topview-*) 由 site.css 提供. */

/* 窗口总览: 三个读数 + 关键事件清单 */
.ag-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-2, 12px);
  margin: 6px 0 10px;
}
.ag-summary-stats > div {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}
.ag-summary-stats b {
  display: block;
  font-size: var(--fs-h2, 20px);
  color: var(--accent, #c4615e);
}
.ag-summary-stats span {
  font-size: var(--fs-meta, 12px);
  color: var(--text-3);
}

.ag-hl-title {
  font-weight: 600;
  font-size: var(--fs-meta, 12px);
  color: var(--text-2);
  margin: 4px 0 4px;
}
.ag-hl-item {
  font-size: var(--fs-meta, 12px);
  color: var(--text-1);
  padding: 3px 0 3px 14px;
  position: relative;
}
.ag-hl-item::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--accent, #c4615e);
}

/* 日卡片: 当日高亮 */
.ag-day-card.ag-day-today {
  border-color: var(--accent, #c4615e);
  box-shadow: 0 0 0 1px var(--accent, #c4615e) inset;
}
.ag-day-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ag-today {
  font-size: var(--fs-meta, 12px);
  color: var(--accent, #c4615e);
  border: 1px solid var(--accent, #c4615e);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 1.5;
}

/* 单条日程 */
.ag-event {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.ag-event:last-child { border-bottom: none; }
.ag-event-none {
  color: var(--text-3);
  font-size: var(--fs-meta, 12px);
}
.ag-event-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ag-event-name { color: var(--text-1); }
.ag-event-note {
  margin-top: 2px;
  padding-left: 4px;
  font-size: var(--fs-meta, 12px);
  color: var(--text-3);
}
.ag-note { color: var(--text-3); }

/* 地区 chip */
.ag-region {
  display: inline-block;
  font-size: var(--fs-meta, 12px);
  line-height: 1.4;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  white-space: nowrap;
}
.ag-rg-cn { color: #c4615e; border-color: rgba(198, 106, 100, 0.45); }
.ag-rg-us { color: #648cc8; border-color: rgba(100, 140, 200, 0.45); }
.ag-rg-eu { color: #6b9472; border-color: rgba(107, 148, 114, 0.5); }
.ag-rg-jp { color: #a08cb4; border-color: rgba(160, 140, 180, 0.5); }
.ag-rg-uk { color: #d4824a; border-color: rgba(212, 130, 74, 0.5); }
.ag-rg-other { color: var(--text-3); }

/* 重要度星标 */
.ag-stars { letter-spacing: 2px; font-size: var(--fs-meta, 12px); }
.ag-stars-3 { color: var(--accent, #c4615e); font-weight: 700; }
.ag-stars-2 { color: #d4824a; }
.ag-stars-1 { color: var(--text-3); }

/* 显式空态 (与 topview-empty 同语义, 本 tab 自有壳) */
.ag-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-3);
}
.ag-empty b { color: var(--text-1); }

/* 过期日历 (2026-09-15, build_site 判 state='stale'): 横幅必须一眼可见, 已过去的日子压暗 */
.ag-stale {
  border-color: var(--accent-orange, #d4824a);
  box-shadow: 0 0 0 1px var(--accent-orange, #d4824a) inset;
}
.ag-stale-head {
  font-weight: 700;
  color: var(--accent-orange, #d4824a);
  margin-bottom: 4px;
}
.ag-stale-body {
  font-size: var(--fs-meta, 12px);
  color: var(--text-2);
  margin-top: 2px;
}
.ag-day-card.ag-day-past { opacity: 0.6; }
.ag-past {
  font-size: var(--fs-meta, 12px);
  color: var(--text-3);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 1.5;
}

/* ───────── 新股上市预告 (2026-09-23): 卡片列表, 窄屏单列 ───────── */
.global-feature-card.ag-ipo { padding: var(--sp-4, 14px) var(--sp-5, 18px); }
.ag-ipo-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 8px;
  font-weight: 600;
  color: var(--text-1);
}
.ag-ipo-group em {
  font-style: normal;
  font-size: var(--fs-meta, 12px);
  color: var(--text-3);
}
.ag-ipo-lead {
  font-size: var(--fs-meta, 12px);
  color: var(--text-2);
  margin: 2px 0 10px;
  line-height: 1.6;
}
.ag-ipo-stale { margin-bottom: 8px; color: var(--accent-orange, #d4824a); }
.global-feature-card.ag-ipo-stalecard {
  border-color: var(--accent-orange, #d4824a);
  box-shadow: 0 0 0 1px var(--accent-orange, #d4824a) inset;
}
.ag-ipo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: var(--gap-2, 12px);
}
.ag-ipo-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ag-ipo-st-today-card {
  border-color: var(--accent, #c4615e);
  box-shadow: 0 0 0 1px var(--accent, #c4615e) inset;
}
.ag-ipo-st-past-card { opacity: 0.75; }
.ag-ipo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ag-ipo-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 2px 6px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  line-height: 1.25;
}
.ag-ipo-date b { font-size: var(--fs-body, 14px); color: var(--text-1); }
.ag-ipo-date span { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.ag-ipo-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.ag-ipo-title b { font-size: var(--fs-body, 14px); color: var(--text-1); }
.ag-ipo-scode {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.ag-ipo-status {
  font-size: var(--fs-meta, 12px);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 1.6;
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  white-space: nowrap;
}
.ag-ipo-status.ag-ipo-st-today { color: var(--accent, #c4615e); border-color: var(--accent, #c4615e); }
.ag-ipo-status.ag-ipo-st-soon { color: #648cc8; border-color: rgba(100, 140, 200, 0.5); }
.ag-ipo-status.ag-ipo-st-past { color: var(--text-3); }
.ag-ipo-one { color: var(--text-1); font-size: var(--fs-meta, 12px); }
.ag-ipo-tier {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  color: var(--text-1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 8px;
  white-space: nowrap;
}
.ag-ipo-tier em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--text-3); }
.ag-ipo-kv {
  font-size: var(--fs-meta, 12px);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.ag-ipo-kv b { color: var(--text-1); }
.ag-ipo-conflict {
  font-size: var(--fs-meta, 12px);
  color: var(--accent-orange, #d4824a);
}
.ag-ipo-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: var(--fs-meta, 12px);
  min-width: 0;
}
.ag-ipo-lab {
  flex: 0 0 auto;
  min-width: 56px;
  color: var(--text-3);
}
.ag-ipo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}
.ag-ipo-mixitem {
  color: var(--text-2);
  border-bottom: 1px dotted var(--border-soft);
}
.ag-ipo-mixitem b { color: var(--text-1); font-weight: 600; }
.ag-ipo-stock {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1px 6px;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ag-ipo-stock:hover, .ag-ipo-stock:focus-visible {
  border-color: var(--accent, #c4615e);
  outline: none;
}
.ag-ipo-stock b { color: var(--text-1); font-weight: 600; }
.ag-ipo-tag {
  margin-left: 4px;
  color: var(--text-3);
  font-size: 11px;
}
.ag-ipo-cited { color: var(--text-3); font-size: 11px; }
.ag-ipo-plain { color: var(--text-2); overflow-wrap: anywhere; }
.ag-ipo-feat {
  margin: 0;
  padding-left: 18px;
  font-size: var(--fs-meta, 12px);
  color: var(--text-1);
  line-height: 1.6;
}
.ag-ipo-angle {
  font-size: var(--fs-meta, 12px);
  color: var(--text-1);
  border-left: 2px solid var(--accent, #c4615e);
  padding-left: 8px;
  display: flex;
  gap: 8px;
}
.ag-ipo-angle b { flex: 0 0 auto; color: var(--accent, #c4615e); font-weight: 600; }
.ag-ipo-quote { font-size: 11px; color: var(--text-3); }
.ag-ipo-quote summary { cursor: pointer; }
.ag-ipo-quote div { margin-top: 4px; line-height: 1.6; }
.ag-ipo-hint { font-size: 11px; color: var(--text-3); margin-left: 6px; }
@media (max-width: 520px) {
  .global-feature-card.ag-ipo { padding: 12px; }
  .ag-ipo-row { flex-direction: column; gap: 2px; }
  .ag-ipo-status { margin-left: auto; }
}
