/* What's new (AC67, docs/SCREEN_RULES.md → What's new). A plain Settings-style
   dialog: title, build pager, then New / Fixed / Changed groups. At most eight
   short bullets per build. Longer history pages scroll inside the safe modal;
   the title, pager and dismissal actions always stay in view. */
#modal:has(.whats-new-panel){width:min(410px,calc(100vw - 28px));padding:16px;max-height:min(90dvh,calc(100dvh - var(--safe-top,env(safe-area-inset-top,0px)) - var(--safe-bottom,env(safe-area-inset-bottom,0px)) - 24px));overflow:hidden}
#modal[open]:has(.whats-new-panel){display:flex;flex-direction:column}
.whats-new-panel{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;outline:none}
.whats-new-panel>h1,.whats-new-build{flex:none}
.whats-new-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.whats-new-panel>h1{margin:0 0 6px}
.whats-new-build{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 8px}
.whats-new-build>span{min-width:104px;padding:3px 12px;border-radius:999px;background:#2c3a52;color:var(--paper);font:800 13px/1.4 system-ui;text-align:center;letter-spacing:.02em}
#modal .whats-new-page{position:relative;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:none;box-shadow:none;color:#2c3a52;cursor:pointer}
#modal .whats-new-page:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#efe0bd;box-shadow:inset 0 0 0 2px #bca578}
#modal .whats-new-page>span{position:relative;font:900 22px/1 system-ui;transform:translateY(-1px)}
#modal .whats-new-page:disabled{opacity:.35;cursor:default}
.whats-new-list{display:flex;flex-direction:column;gap:8px;text-align:left}
.whats-new-section h2{margin:0 0 4px;font-size:0;line-height:0}
.whats-new-section h2>span{display:inline-block;padding:2px 10px;border-radius:8px;color:#fff;font:800 12px/1.45 system-ui;letter-spacing:.04em;text-transform:uppercase}
.whats-new-section[data-section=new] h2>span{background:#2f8a4e}
.whats-new-section[data-section=fixed] h2>span{background:#3168a8}
.whats-new-section[data-section=changed] h2>span{background:#b8731c}
.whats-new-section ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.whats-new-section li{position:relative;padding-left:16px;color:#2c3445;font:14px/1.32 system-ui;overflow-wrap:anywhere}
.whats-new-section li:before{content:"";position:absolute;left:4px;top:.5em;width:6px;height:6px;border-radius:50%;background:#bd9a5d}
#modal:has(.whats-new-panel)>button,#modal:has(.whats-new-panel)>.equipment-actions{flex:none;margin-top:12px}
@media(max-height:700px){
 #modal:has(.whats-new-panel){padding:12px 14px}
 .whats-new-panel>h1{margin-bottom:2px;font-size:26px}
 .whats-new-build{margin-bottom:4px}
 .whats-new-list{gap:6px}
 #modal:has(.whats-new-panel)>button,#modal:has(.whats-new-panel)>.equipment-actions{margin-top:8px}
}
