/* 共用站点主题、字体和按钮；只复用现有封面，不增加媒体包体。 */
#site-dialog[data-panel=updates]{padding:0;width:1000px;width:min(1000px,calc(100vw - 48px));height:740px;height:min(740px,calc(100vh - 48px));max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);overflow:hidden;border:1px solid var(--rt-line);border-radius:18px;background:var(--rt-surface);color:var(--rt-text)}
#site-dialog[data-panel=updates]>.dialog-close{position:absolute;top:23px;right:24px;float:none;margin:0;width:42px;height:42px;min-width:42px;min-height:42px;z-index:2}
.update-notice-root,.update-notice{height:100%;min-height:0}
.update-notice{display:flex;flex-direction:column;display:grid;grid-template-rows:auto minmax(0,1fr) auto;font-family:var(--font-ui)}
.update-heading{flex-shrink:0;padding:24px 34px 20px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--rt-line)}
.update-heading #dialog-title{font-size:30px;line-height:1.3;margin:4px 0 0;letter-spacing:2px}
.update-eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--rt-muted);margin:0 0 8px}
.update-heading-mark{color:var(--rt-accent);font-size:30px;margin-right:60px;margin-left:auto}
.update-layout{display:flex;flex:1;display:grid;grid-template-columns:176px minmax(0,1fr);min-height:0}
.update-archive{flex:0 0 176px;padding:22px 12px;border-right:1px solid var(--rt-line);overflow-y:auto}
.update-archive button{display:block;width:100%;min-height:86px;padding:15px 12px;text-align:left;border:1px solid transparent;border-radius:8px;background:none;color:var(--rt-muted);margin:0 0 10px;line-height:1.6;box-shadow:none}
.update-archive button[aria-pressed=true]{border-color:var(--rt-line);background:var(--rt-surface-soft);color:var(--rt-text)}
.update-archive time{display:block;font-size:11px;letter-spacing:1px;opacity:.8}
.update-archive button>span{display:block;font-size:14px;margin-top:5px}
.update-archive small{display:inline-block;font-size:10px;color:var(--rt-accent);margin-top:5px}
.update-scroll{flex:1;overflow:auto;overscroll-behavior:contain;min-width:0;min-height:0;scrollbar-width:thin;scrollbar-color:var(--rt-accent) transparent}
.update-hero{position:relative;isolation:isolate;min-height:194px;padding:30px 32px 25px;overflow:hidden;background:var(--rt-surface-soft);border-bottom:1px solid var(--rt-line)}
.update-hero>img{position:absolute;z-index:-2;right:0;top:0;height:100%;width:70%;object-fit:cover;object-position:50% 40%;opacity:.42}
.update-hero:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:linear-gradient(90deg,var(--rt-surface-soft) 10%,transparent 150%)}
.update-hero>div{position:relative}
#site-dialog .update-hero h3{font-size:27px;line-height:1.4;letter-spacing:1px;margin:12px 0}
.update-hero p:not(.update-eyebrow){font-size:13px;line-height:1.85;margin:0;max-width:390px}
.update-highlights{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:18px;color:var(--rt-text);font-size:12px}
.update-highlights span:before{content:"✦";color:var(--rt-accent);margin-right:7px}
.update-copy{padding:5px 32px 20px}
.update-section{padding:22px 0;border-bottom:1px solid var(--rt-line)}
#site-dialog .update-section h3{font-size:18px;margin:0 0 12px;line-height:1.5;color:var(--rt-text)}
.update-section>p,.update-section li{font-size:13px;line-height:1.9;color:var(--rt-muted);margin:0}
.update-section ul{padding-left:19px;margin:8px 0 0}.update-section li+li{margin-top:4px}
.update-charts{width:100%;border-collapse:collapse;margin-top:15px;table-layout:fixed;text-align:left;font-size:12px}
.update-charts th,.update-charts td{padding:10px 8px;border-bottom:1px solid var(--rt-line);font-weight:400}
.update-charts thead{color:var(--rt-muted);font-size:11px}.update-charts th:first-child{width:42%;padding-left:0}
.update-charts th:last-child,.update-charts td:last-child{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;padding-right:0}
.update-charts tbody tr:last-child>*{border-bottom:0}
.update-signature{font-size:11px;text-align:center;color:var(--rt-muted);margin:25px 0 4px;letter-spacing:1px}
.update-footer{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 28px;border-top:1px solid var(--rt-line);background:var(--rt-surface)}
.update-footer p{font-size:11px;color:var(--rt-muted);line-height:1.7;margin:0}
#site-dialog .update-footer .primary{font-size:14px;min-width:190px;min-height:48px;padding:10px 22px;border-radius:28px;white-space:nowrap}
.update-entry-background{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(rgba(16,43,58,0.4),rgba(16,43,58,0.6)),url('../assets/opening/cg-day.webp') center/cover no-repeat;background:linear-gradient(#102b3a66,#102b3a99),url('../assets/opening/cg-day.webp') center/cover no-repeat}
[data-theme=dark] .update-entry-background{background-image:linear-gradient(rgba(10,21,43,0.33333),rgba(10,21,43,0.66667)),url('../assets/opening/cg-night.webp');background-image:linear-gradient(#0a152b55,#0a152baa),url('../assets/opening/cg-night.webp')}
.update-notice button:focus-visible,.update-scroll:focus-visible{outline:2px solid var(--rt-accent);outline-offset:-3px}
@media(max-width:680px){
 #site-dialog[data-panel=updates]{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100vh - 32px);max-height:calc(100vh - 32px);border-radius:14px}
 #site-dialog[data-panel=updates]>.dialog-close{width:36px;height:36px;min-width:36px;min-height:36px;top:18px;right:17px}
 .update-heading{flex-shrink:0;padding:21px 22px 17px}.update-heading #dialog-title{font-size:26px}.update-heading-mark{display:none}
 .update-layout{display:flex;flex-direction:column}.update-archive{display:flex;flex:none;gap:8px;overflow-x:auto;padding:12px 16px;border-right:0;border-bottom:1px solid var(--rt-line)}
 .update-archive button{flex:0 0 auto;width:auto;min-height:54px;margin:0;padding:8px 12px}.update-archive button>span{font-size:12px;margin:1px 0 0}.update-archive time{font-size:9px}.update-archive small{display:none}
 .update-scroll{flex:1}.update-hero{min-height:178px;padding:24px 22px 22px}#site-dialog .update-hero h3{font-size:23px}.update-hero p:not(.update-eyebrow){font-size:12px;max-width:290px}
 .update-highlights{gap:8px 12px;font-size:11px;margin-top:15px}.update-copy{padding:0 22px 16px}.update-section{padding:20px 0}#site-dialog .update-section h3{font-size:17px}
 .update-section>p,.update-section li{font-size:12px}.update-charts{font-size:11px}.update-charts th,.update-charts td{padding:10px 3px}.update-charts th:first-child{width:43%}
 .update-footer{padding:14px 18px;flex-direction:column;gap:9px}.update-footer p{font-size:10px}#site-dialog .update-footer .primary{width:100%;min-height:46px}
}
@media(max-height:520px) and (min-width:681px){
 #site-dialog[data-panel=updates]{height:calc(100vh - 20px);max-height:calc(100vh - 20px)}
 .update-heading{flex-shrink:0;padding:13px 26px}.update-heading .update-eyebrow{display:none}.update-heading #dialog-title{font-size:24px}#site-dialog[data-panel=updates]>.dialog-close{top:10px}
 .update-footer{padding:10px 24px}#site-dialog .update-footer .primary{min-height:42px}.update-hero{padding:23px 26px}
}
