.updates-center{position:relative;display:flex;align-items:center}
.updates-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:var(--control-h);
  min-width:var(--control-h);
  height:var(--control-h);
  padding:0;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  background:#fff;
  color:var(--muted);
  cursor:pointer;
}
.updates-toggle:hover,.updates-toggle[aria-expanded="true"]{border-color:var(--sky);background:var(--sky-soft);color:var(--sky)}
.updates-toggle:focus-visible,.updates-close:focus-visible,.updates-retry:focus-visible{outline:2px solid var(--sky);outline-offset:3px}
.updates-toggle>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.updates-dot{
  position:absolute;
  top:5px;
  right:5px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--sky);
  box-shadow:0 0 0 2px #fff;
  pointer-events:none;
}
[data-updates-dot][hidden],[data-updates-panel][hidden],[data-notification-tab-panel][hidden]{display:none!important}
.updates-popover,.topbar-notification-center .unified-notification-panel{
  position:absolute;
  display:flex;
  flex-direction:column;
  top:calc(100% + 16px);
  right:0;
  z-index:80;
  width:min(420px,calc(100vw - 32px));
  max-height:calc(100vh - var(--header-h) - 24px);
  max-height:min(620px,calc(100dvh - var(--header-h) - 24px));
  overflow:hidden;
  overscroll-behavior:contain;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
}
.updates-popover-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;padding:0 0 10px}
.updates-popover-head strong{font-size:15px;color:var(--ink)}
.notification-center-tabs{display:flex;align-items:center;min-width:0;gap:6px}
.notification-center-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;min-width:76px;padding:7px 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:750;cursor:pointer}
.notification-center-tab:hover{background:var(--soft);color:var(--ink)}
.notification-center-tab[aria-selected="true"]{background:var(--sky-soft);color:var(--sky)}
.notification-center-tab:focus-visible{outline:2px solid var(--sky);outline-offset:2px}
.notification-center-tab .updates-dot{position:static;display:inline-block;flex:0 0 auto;box-shadow:none}
.notification-tab-panel{min-height:0;overflow:auto;overscroll-behavior:contain}
.notification-view-all{display:block;margin-top:12px;padding:10px 12px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:var(--sky);text-align:center;text-decoration:none;font-size:13px;font-weight:750;line-height:1.6}
.notification-view-all:hover,.notification-view-all:focus-visible{background:var(--sky-soft);outline:2px solid var(--sky);outline-offset:2px}
.notification-guest{padding:24px 12px;text-align:center}
.notification-guest p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.8}
.notification-guest .btn{min-height:38px}
.updates-period{margin:2px 4px 12px;color:var(--muted);font-size:12px;line-height:1.7}
.updates-refresh{display:block;width:calc(100% - 8px);min-height:36px;margin:0 4px 12px;padding:8px 10px;border:1px solid #c9ddf3;border-radius:6px;background:var(--sky-soft);color:var(--sky);font:inherit;font-size:12px;font-weight:700;line-height:1.6;text-align:left;cursor:pointer}
.updates-refresh:hover{border-color:var(--sky);background:#e2effe}
.updates-refresh:focus-visible{outline:2px solid var(--sky);outline-offset:2px}
.updates-refresh:disabled{cursor:wait;opacity:.65}
.updates-refresh[hidden]{display:none!important}
.updates-close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 auto;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.updates-close:hover{background:var(--soft);color:var(--ink)}
.updates-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.updates-list{list-style:none;padding:0 5px;margin:0}
.updates-row,.update-entry{--update-accent:#1769c2;--update-tint:#eef6ff;--update-label-border:#c4daf3}
.updates-row[data-update-severity="warning"],.update-entry[data-update-severity="warning"]{--update-accent:#a66517;--update-tint:#fff7e6;--update-label-border:#ead1a2}
.updates-row[data-update-severity="critical"],.update-entry[data-update-severity="critical"]{--update-accent:#c83c3c;--update-tint:#fff1f1;--update-label-border:#f0c2c2}
.update-severity-label{display:inline-flex;align-items:center;max-width:100%;padding:2px 7px;border:1px solid var(--update-label-border);border-radius:5px;background:var(--update-tint);color:var(--update-accent);font-size:10px;font-weight:750;line-height:1.6;overflow-wrap:anywhere}
.updates-row{position:relative;margin-left:4px;padding:0 0 20px 17px;border-left:1px solid var(--update-accent)}
.updates-row::before{content:"";position:absolute;top:19px;left:-4px;width:7px;height:7px;border-radius:50%;background:var(--update-accent)}
.updates-row-header{padding:10px 2px 6px;overflow-wrap:anywhere}
.updates-row-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px}
.updates-row-header time{display:block;font-size:11px;line-height:1.5;font-weight:650;color:var(--muted)}
.updates-row-header strong{display:block;margin-top:3px;font-size:14px;line-height:1.6;font-weight:750;color:var(--ink)}
.updates-row-body{padding:4px 2px;white-space:pre-wrap;overflow-wrap:anywhere;color:#405167;font-size:13px;line-height:1.85}
.updates-list-status{padding:18px 10px;text-align:center}
.updates-list-status p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.updates-retry{margin-top:10px;padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--sky);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.updates-layout{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.updates-layout>main{flex:1 0 auto;width:100%}
.updates-layout>.site-header,.updates-layout>.site-footer{flex-shrink:0}
.container.updates-page{width:100%;max-width:1040px;margin-inline:auto;padding:64px 32px 72px}
.updates-page-head{max-width:650px;margin-bottom:38px}
.updates-page-head p{line-height:1.8}
.updates-timeline{border-top:1px solid var(--line)}
.update-entry{position:relative;display:grid;grid-template-columns:160px minmax(0,1fr);gap:32px;margin-left:4px;padding:30px 0 30px 20px;border-left:1px solid var(--update-accent);border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--header-h) + 24px)}
.update-entry::before{content:"";position:absolute;top:41px;left:-4px;width:7px;height:7px;border-radius:50%;background:var(--update-accent)}
.update-entry-meta{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-top:5px;color:var(--muted);font-size:12px;line-height:1.7}
.update-entry-content{min-width:0}
.update-entry h2{margin:0 0 14px;font-size:21px;line-height:1.5;letter-spacing:-.02em;overflow-wrap:anywhere}
.update-entry h2 a{color:var(--ink);text-decoration:none}
.update-entry h2 a:hover{color:var(--sky)}
.update-entry-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#405167;font-size:14px;line-height:1.9}
.updates-empty-state{padding:40px 24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft);text-align:center}
.updates-empty-state h2{margin:0 0 8px;font-size:19px}
.updates-empty-state p{margin:0;color:var(--muted);font-size:14px;line-height:1.8}
@media(max-width:940px){
  .updates-popover,.topbar-notification-center .unified-notification-panel{position:fixed;top:calc(var(--header-h) + 8px);left:16px;right:16px;width:auto}
  .container.updates-page{padding:52px 24px 64px}
}
@media(max-width:620px){
  .container.updates-page{padding:38px 22px 48px}
  .updates-page-head{margin-bottom:26px}
  .update-entry{grid-template-columns:minmax(0,1fr);gap:9px;padding:23px 0 23px 16px}
  .update-entry::before{top:32px}
  .update-entry-meta{flex-direction:row;align-items:center;flex-wrap:wrap;padding-top:0;font-size:11px}
  .update-entry h2{font-size:19px;margin-bottom:10px}
  .update-entry-body{font-size:14px;line-height:1.85}
  .updates-close{width:40px;height:40px}
  .notification-center-tab{min-height:40px}
  .updates-row-header{padding-top:13px}
  .updates-row::before{top:22px}
}
@media(prefers-reduced-motion:no-preference){
  .updates-popover:not([hidden]){animation:updatesPanelIn .16s ease-out}
  .updates-toggle,.notification-center-tab,.updates-close,.updates-refresh,.updates-retry,.notification-view-all{
    transition:background-color .14s ease,border-color .14s ease,color .14s ease;
  }
  @keyframes updatesPanelIn{
    from{opacity:0;transform:translateY(-4px)}
    to{opacity:1;transform:none}
  }
}
