/* 批TGWDEV503：只调整最新卡片/复制按钮/海报设置，历史号码颜色仍由原规则控制。 */
#numberLatestDraw { display: none !important; }
.latest-draw-card-v503 { container-type: inline-size; cursor: default; padding: 0 7px 8px; }
.latest-draw-card-v503 .history-latest-label { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 0 -7px 2px; padding: 5px 7px; white-space: nowrap; font-size: clamp(9px, 6.5cqw, 12px); }
.latest-draw-hide { flex: 0 0 18px; width: 18px; height: 22px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.latest-draw-copy-body { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.latest-draw-card-v503 .history-latest-heading { gap: 4px; white-space: nowrap; }
.latest-draw-card-v503 .history-latest-heading img { flex: 0 0 24px; width: 24px; height: 25px; }
.latest-draw-card-v503 .history-latest-heading strong { font-size: clamp(10px, 6.7cqw, 14px); overflow-wrap: normal; }
.latest-draw-meta { white-space: nowrap; font-size: clamp(10px, 7cqw, 13px); color: #586168; font-variant-numeric: tabular-nums; }
.latest-draw-number-label, .latest-draw-copy-hint { font-size: 10px; color: #586168; white-space: nowrap; }
.latest-draw-card-v503 .history-latest-ball { background: #b52c08 !important; }
.latest-draw-card-v503 .history-latest-ball.is-secondary-zone { background: #0063a4 !important; }
.latest-draw-card-v503[data-game="kl8"] .history-latest-numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.latest-draw-card-v503[data-game="kl8"] .history-latest-ball { width: min(27px, 100%); height: auto; aspect-ratio: 1; }
.latest-draw-reopen { width: 100%; padding: 7px 0; border: 1px solid #90534c; border-radius: 6px; background: #64272a; color: #fff; font-size: 11px; white-space: nowrap; cursor: pointer; }
/* 独立固定层避开历史滚动裁切和快捷指标；占位保留历史列表原来的顶部间距。 */
#historyLatestDraw.latest-draw-floating-v505 { position: fixed; z-index: 45; box-sizing: border-box; }
.latest-draw-anchor { width: 100%; pointer-events: none; }
.latest-draw-card-v503 .history-latest-label { cursor: grab; touch-action: none; user-select: none; }
.latest-draw-card-v503 .history-latest-label.is-dragging { cursor: grabbing; }
#numberToolbar #latestDrawCopyAll { order: 901 !important; grid-row: 2 !important; flex-shrink: 0; white-space: nowrap; }
@media(max-width:760px) { #historyLatestDraw.history-latest-wrap { display: block; } #historyLatestDraw[hidden] { display: none; } }
.latest-draw-settings { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 16px; border: 1px solid #50676c; border-radius: 12px; background: #15232b; color: #eef7fa; }
.latest-draw-settings::backdrop { background: #0009; }
.latest-draw-settings header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.latest-draw-settings form, .latest-draw-settings label { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.latest-draw-settings input, .latest-draw-settings select { width: 100%; box-sizing: border-box; padding: 9px; border: 1px solid #4a666e; border-radius: 5px; background: #0d171d; color: #fff; font-size: 14px; }
.latest-draw-settings input:disabled { opacity: .5; }
.latest-draw-settings button { padding: 8px 12px; border: 1px solid #4a8d72; border-radius: 5px; background: #146243; color: #fff; white-space: nowrap; cursor: pointer; }
.latest-draw-settings p { margin: 3px 0; font-size: 12px; line-height: 1.6; color: #b3c6cd; }
.latest-draw-settings-actions { display: flex; gap: 8px; }
.latest-draw-settings output { min-height: 20px; font-size: 13px; color: #ffd889; }
.latest-draw-poster-preview { display: block; width: min(100%, 360px); height: auto; margin: 8px auto 0; }
