/* Release introduction and history share the application material palette. */
.av-release{box-sizing:border-box;width:min(820px,calc(100vw - 28px));max-height:92dvh;margin:auto;padding:0;border:0;border-radius:28px;overflow:auto;overscroll-behavior:contain;background:var(--av-surface-1);color:var(--av-text-primary);box-shadow:var(--av-shadow-modal);font:400 14px/1.55 var(--av-font-sans)}
.av-release::backdrop{background:rgba(5,15,21,.64)}
.av-release *{box-sizing:border-box}

/* Major-update introduction. */
.avr-hero{position:relative;isolation:isolate;overflow:hidden;padding:38px 250px 38px 38px;min-height:300px;background:var(--av-well);box-shadow:var(--av-shadow-well)}
.avr-badge{display:inline-block;font-size:11px;font-weight:650;color:var(--av-accent);letter-spacing:.04em}
.avr-eyebrow{margin:26px 0 12px;font-size:10px;font-weight:650;letter-spacing:.1em;text-transform:uppercase;color:var(--av-text-secondary)}
.avr-hero h1{position:relative;margin:0;max-width:560px;font-size:clamp(34px,5vw,52px);font-weight:720;line-height:1.08;letter-spacing:-.045em;text-wrap:balance}
.avr-hero-lead{max-width:480px;margin:20px 0 0;font-size:14px;line-height:1.65;color:var(--av-text-secondary)}
.avr-role-art{position:absolute;right:38px;top:78px;width:170px;height:170px;border-radius:42px;display:grid;place-items:center;color:var(--av-accent);background:color-mix(in srgb,var(--av-surface-elevated) 72%,transparent);box-shadow:var(--av-shadow-control);transform:rotate(3deg);opacity:.92;pointer-events:none}
.avr-role-art::before{content:"";position:absolute;inset:14px;border-radius:32px;background:var(--av-well);box-shadow:var(--av-shadow-well)}
.avr-role-art svg{position:relative;z-index:1;width:96px;height:96px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.av-release[data-audience="student"] .avr-role-art{transform:rotate(-3deg)}
.av-release[data-audience="staff"] .avr-role-art{opacity:.78}
.avr-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:14px;background:var(--av-surface-elevated);color:var(--av-text-secondary);box-shadow:var(--av-shadow-control);cursor:pointer}
.avr-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.avr-features{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;padding:12px 38px}
.avr-features article{padding:22px 0;border-bottom:1px solid var(--av-divider)}
.avr-number{font-size:10px;color:var(--av-accent);font-weight:600}
.avr-features h2{margin:8px 0;font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.02em}
.avr-features p{margin:0;font-size:13px;line-height:1.6;color:var(--av-text-secondary)}
.avr-footer{display:flex;align-items:center;gap:12px;padding:24px 38px 32px}
.avr-footer button{border:0;border-radius:15px;min-height:50px;padding:13px 18px;font:600 13px/1.4 var(--av-font-sans);cursor:pointer}
.avr-continue{background:var(--av-accent-gradient);color:var(--av-accent-ink);box-shadow:var(--av-shadow-control)}
.avr-history-link{background:var(--av-surface-elevated);color:var(--av-text-secondary);box-shadow:var(--av-shadow-control)}
.avr-footer button:active,.avr-close:active{box-shadow:var(--av-shadow-pressed);transform:translateY(1px)}

/* Release history. The modal viewport scrolls as one surface; the card itself has no inner scrollbar. */
.av-release--history{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:clamp(14px,2.4vw,28px);border-radius:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:transparent;box-shadow:none;scrollbar-width:none}
.av-release--history::-webkit-scrollbar{width:0;height:0}
.avr-history-sheet{width:min(860px,100%);margin:0 auto;border-radius:28px;overflow:hidden;background:var(--av-surface-1);box-shadow:var(--av-shadow-modal)}
.avr-history-head{position:relative;z-index:1;padding:28px 34px 22px;background:var(--av-surface-1);border-bottom:1px solid var(--av-divider)}
.avr-history-head>div{padding-right:54px}
.avr-history-head .avr-eyebrow{margin:0 0 8px;color:var(--av-accent)}
.avr-history-head h2{font-size:32px;letter-spacing:-.045em;line-height:1.08;margin:0;font-weight:720}
.avr-history-head p{font-size:13px;line-height:1.55;color:var(--av-text-secondary);margin:10px 0 0}
.avr-history-head .avr-close{top:20px;right:24px}
.avr-history-content{padding:0 34px 34px}

.avr-current{padding:30px 0 34px}
.avr-current-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px 12px;color:var(--av-text-secondary);font-size:11px}
.avr-version-pill{display:inline-flex;align-items:center;min-height:27px;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--av-accent) 12%,var(--av-surface-elevated));color:var(--av-accent);font-size:11px;font-weight:720;letter-spacing:.015em;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--av-accent) 18%,transparent)}
.avr-current-label{display:inline-flex;align-items:center;gap:6px;color:var(--av-text-secondary)}
.avr-current-label::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--av-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--av-accent) 10%,transparent)}
.avr-current h3{margin:15px 0 0;font-size:clamp(24px,4vw,32px);font-weight:720;line-height:1.15;letter-spacing:-.035em;text-wrap:balance}
.avr-current-intro{max-width:670px;margin:10px 0 0;color:var(--av-text-secondary);font-size:13px;line-height:1.6}

.avr-feature-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:34px;margin-top:24px;border-top:1px solid var(--av-divider)}
.avr-feature{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;padding:18px 0 19px;border-bottom:1px solid var(--av-divider);min-width:0}
.avr-feature-mark{width:15px;height:4px;margin-top:8px;border-radius:999px;background:var(--av-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--av-accent) 7%,transparent)}
.avr-feature h4{margin:0;font-size:14px;line-height:1.35;font-weight:680;letter-spacing:-.012em;color:var(--av-text-primary)}
.avr-feature p{margin:5px 0 0;font-size:12.5px;line-height:1.55;color:var(--av-text-secondary)}
.avr-fixes{display:grid;grid-template-columns:max-content 1fr;gap:12px 16px;align-items:start;margin-top:18px;padding:15px 17px;border-radius:16px;background:var(--av-well);box-shadow:var(--av-shadow-well)}
.avr-fixes-label{font-size:11px;font-weight:680;color:var(--av-text-primary)}
.avr-fixes p{margin:0;font-size:12px;line-height:1.5;color:var(--av-text-secondary)}

.avr-archive{margin-top:2px;padding-top:26px;border-top:1px solid var(--av-divider)}
.avr-archive-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 2px 12px}
.avr-archive-head>span{font-size:15px;font-weight:680;letter-spacing:-.015em}
.avr-archive-head small{font-size:11px;font-weight:500;color:var(--av-text-secondary)}
.avr-archive-list{overflow:hidden;border-radius:20px;background:var(--av-well);box-shadow:var(--av-shadow-well)}
.avr-archive-item{margin:0;background:transparent}
.avr-archive-item+ .avr-archive-item{border-top:1px solid var(--av-divider)}
.avr-archive-item summary{list-style:none;display:grid;grid-template-columns:62px minmax(0,1fr) max-content 24px;align-items:center;gap:12px;min-height:64px;padding:13px 16px;cursor:pointer;user-select:none;outline:none}
.avr-archive-item summary::-webkit-details-marker{display:none}
.avr-archive-item summary:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--av-accent) 55%,transparent)}
.avr-archive-version{font-size:11px;font-weight:720;color:var(--av-accent)}
.avr-archive-title{min-width:0;font-size:13px;font-weight:650;line-height:1.35;color:var(--av-text-primary)}
.avr-archive-item summary time{font-size:11px;color:var(--av-text-secondary);white-space:nowrap}
.avr-archive-chevron{display:grid;place-items:center;color:var(--av-text-secondary);transition:transform .2s ease}
.avr-archive-chevron svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.avr-archive-item[open]>summary{background:color-mix(in srgb,var(--av-surface-elevated) 54%,transparent)}
.avr-archive-item[open] .avr-archive-chevron{transform:rotate(90deg)}
.avr-archive-body{padding:4px 16px 18px;background:color-mix(in srgb,var(--av-surface-elevated) 36%,transparent)}
.avr-archive-intro{margin:4px 0 0;padding:0 0 14px;font-size:12.5px;line-height:1.55;color:var(--av-text-secondary)}
.avr-feature-grid--compact{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:4px}
.avr-feature-grid--compact .avr-feature{padding:15px 0 16px}
.avr-feature-grid--compact .avr-feature h4{font-size:13px}
.avr-feature-grid--compact .avr-feature p{font-size:12px}
.avr-archive-body .avr-fixes{margin-top:14px;background:var(--av-surface-1);box-shadow:none;border:1px solid var(--av-border-subtle)}

@media(hover:hover){
 .avr-archive-item summary:hover{background:color-mix(in srgb,var(--av-surface-elevated) 44%,transparent)}
 .avr-close:hover,.avr-footer button:hover{filter:brightness(1.015)}
}

@media(max-width:600px){
 .av-release{width:calc(100vw - 20px);max-height:95dvh;border-radius:24px}
 .av-release--history{width:100vw;height:100dvh;max-height:none;padding:10px;border-radius:0}
 .avr-history-sheet{width:100%;border-radius:24px}
 .avr-hero{padding:28px 24px 30px;min-height:0}
 .avr-role-art{right:22px;top:74px;width:92px;height:92px;border-radius:26px;opacity:.36;box-shadow:none;background:transparent}
 .avr-role-art::before{display:none}
 .avr-role-art svg{width:66px;height:66px;stroke-width:2.6}
 .avr-hero h1{font-size:36px;max-width:calc(100% - 68px)}
 .avr-features{grid-template-columns:1fr;padding:0 24px}
 .avr-footer{padding:24px;flex-direction:column;align-items:stretch}
 .avr-hero-lead{font-size:13px}

 .avr-history-head{padding:24px 22px 18px}
 .avr-history-head>div{padding-right:52px}
 .avr-history-head h2{font-size:29px}
 .avr-history-head p{font-size:12px;margin-top:8px}
 .avr-history-head .avr-close{top:17px;right:17px}
 .avr-history-content{padding:0 22px 24px}
 .avr-current{padding:24px 0 28px}
 .avr-current-meta{gap:8px 10px}
 .avr-current-label{width:100%;margin-top:1px}
 .avr-current h3{font-size:26px;margin-top:13px}
 .avr-feature-grid,.avr-feature-grid--compact{grid-template-columns:1fr;column-gap:0}
 .avr-feature{grid-template-columns:17px minmax(0,1fr);gap:9px;padding:16px 0 17px}
 .avr-feature-mark{width:13px;height:4px;margin-top:7px}
 .avr-fixes{grid-template-columns:1fr;gap:4px;padding:14px 15px}
 .avr-archive{padding-top:22px}
 .avr-archive-item summary{grid-template-columns:52px minmax(0,1fr) 22px;gap:8px;min-height:62px;padding:12px 13px}
 .avr-archive-item summary time{grid-column:2;grid-row:2;margin-top:-4px;font-size:10.5px}
 .avr-archive-chevron{grid-column:3;grid-row:1 / span 2}
 .avr-archive-body{padding:3px 14px 16px}
}

/* User-written change history, grouped by what was added and improved. */
.avr-release-sections{margin-top:20px;display:grid;gap:20px}
.avr-release-section h4{font-size:12px;font-weight:720;letter-spacing:.015em;color:var(--av-text-primary);margin:0 0 10px}
.avr-release-section ul{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px;padding:0;margin:0}
.avr-release-section li{position:relative;padding:12px 4px 13px 23px;min-width:0;border-top:1px solid var(--av-divider);color:var(--av-text-secondary);font-size:12.5px;line-height:1.58;overflow-wrap:anywhere}
.avr-release-section li::before{content:"";position:absolute;top:21px;left:1px;width:11px;height:4px;border-radius:10px;background:var(--av-accent)}
.avr-archive-body .avr-release-sections{margin-top:10px;gap:16px}
.avr-archive-body .avr-release-section li{font-size:12px}
@media(max-width:600px){.avr-release-section ul{grid-template-columns:1fr}.avr-release-sections{gap:16px}}

/* RC2 · the big welcome (staged as in the lab) and the compact patch sheet; both windows move themselves */
html body dialog#avera-release-dialog.avr-stage{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;color:#f2fbfb;box-shadow:none;animation:none}
html body dialog#avera-release-dialog.avr-stage::backdrop{background:transparent}
.avr-stage .wl-bg{position:absolute;inset:0;background:linear-gradient(150deg,#0a6f73,#0d4f5c 60%,#0b3a47)}
html[data-theme="dark"] .avr-stage .wl-bg{background:linear-gradient(150deg,#0f4b51,#0b3038 60%,#08202a)}
.avr-stage .wl-tiles{position:absolute;right:-30px;top:calc(96px + env(safe-area-inset-top));display:grid;grid-template-columns:repeat(2,64px);gap:12px;opacity:.9;pointer-events:none}
.avr-stage .wl-tiles i{width:64px;height:64px;border-radius:18px;background:#ffffff1a;box-shadow:inset 0 0 0 1px #ffffff24;display:block}
.avr-stage .wl-tiles i.g{background:#7df5d24d;box-shadow:inset 0 0 0 1px #b8ffef80,0 0 34px #6ff0cf66}
html body dialog#avera-release-dialog.avr-stage .wl-x{position:absolute;top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));left:auto;z-index:3;background:#ffffff1f;color:#fff;box-shadow:none;border:1px solid #ffffff33}
.avr-stage .wl-scroll{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:calc(84px + env(safe-area-inset-top)) 22px calc(170px + env(safe-area-inset-bottom));box-sizing:border-box}
.avr-stage .wl-scroll::-webkit-scrollbar{display:none}
.avr-stage .wl-scroll>*{max-width:560px;margin-left:auto;margin-right:auto}
.avr-stage .wl-eyebrow{margin-top:0;margin-bottom:0;font-size:11px;font-weight:760;letter-spacing:.12em;text-transform:uppercase;color:#9ff0e4}
.avr-stage .wl-num{display:flex;font-size:116px;font-weight:200;letter-spacing:-.06em;line-height:.85;margin:6px auto 4px;font-variant-numeric:tabular-nums}
.avr-stage .wl-num span{display:block}
.avr-stage h1{margin:6px auto;font-size:28px;font-weight:760;letter-spacing:-.025em;line-height:1.1;text-wrap:balance;color:#f2fbfb}
.avr-stage .wl-lead{margin:0 auto 18px;color:#d6eeee;font-size:14px;line-height:1.5}
.avr-stage .avr-features{display:grid;gap:10px}
.avr-stage .wl-fc{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:14px;border-radius:18px;background:#ffffff12;box-shadow:inset 0 0 0 1px #ffffff1c}
.avr-stage .wl-fc i{width:34px;height:34px;border-radius:11px;background:#9ff0e426;display:grid;place-items:center}
.avr-stage .wl-fc svg{width:18px;height:18px;fill:none;stroke:#bdf7ec;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.avr-stage .wl-fc h2{margin:0;font-size:15px;font-weight:700;color:#f2fbfb;letter-spacing:0}
.avr-stage .wl-fc p{margin:3px 0 0;font-size:13px;color:#cfe5e6;line-height:1.45}
.avr-stage .avr-also{font-size:12.5px;color:#cfe5e6;margin:12px auto 0}
html body dialog#avera-release-dialog.avr-stage .wl-cta{position:absolute;left:0;right:0;bottom:0;display:grid;gap:8px;padding:16px 22px calc(22px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#0b3a47 40%);z-index:2;border:0;margin:0}
html[data-theme="dark"] body dialog#avera-release-dialog.avr-stage .wl-cta{background:linear-gradient(transparent,#08202a 40%)}
html body dialog#avera-release-dialog.avr-stage .wl-cta .avr-continue{border:0;border-radius:16px;padding:15px;font:750 15px var(--av-font-sans);background:#e9fffb;color:#0a4d55;cursor:pointer;width:100%;max-width:560px;justify-self:center;min-height:50px}
html body dialog#avera-release-dialog.avr-stage .wl-cta .avr-history-link{border:0;background:transparent;color:#cfe9ea;font:600 13px var(--av-font-sans);cursor:pointer;padding:6px;justify-self:center}
html body dialog#avera-release-dialog.avr-sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:640px;max-height:80dvh;border:0;border-radius:26px 26px 0 0;padding:0 0 env(safe-area-inset-bottom);box-shadow:var(--av-shadow-modal);background:var(--av-surface-elevated);overflow:auto;animation:none}
html body dialog#avera-release-dialog.avr-sheet::backdrop{background:rgba(6,20,26,.4)}
html body dialog#avera-release-dialog.avr-sheet .avr-footer{position:sticky;bottom:0;display:grid;gap:6px;padding:12px 18px 18px;background:var(--av-surface-elevated)}
html body dialog#avera-release-dialog.avr-sheet .avr-continue{border:0;border-radius:15px;padding:14px;font:750 14.5px var(--av-font-sans);background:var(--av-accent-strong);color:#fff;cursor:pointer;min-height:48px}
html body dialog#avera-release-dialog.avr-sheet .avr-history-link{border:0;background:transparent;color:var(--av-text-secondary);font:600 13px var(--av-font-sans);cursor:pointer;padding:4px}
/* RC2 · the previous welcome window styled .avr-features/.avr-close/.avr-history-link with !important; reset inside the stage */
html body dialog#avera-release-dialog.avr-stage .avr-features{display:grid!important;gap:10px!important;margin:0 auto!important;padding:0!important;width:auto!important;max-width:560px!important;grid-template-columns:1fr!important;background:transparent!important;box-shadow:none!important;border:0!important}
html body dialog#avera-release-dialog.avr-stage .avr-features>.wl-fc{margin:0!important;width:auto!important;min-height:0!important}
html body dialog#avera-release-dialog.avr-stage .wl-x{background:#ffffff1f!important;color:#fff!important;border:1px solid #ffffff33!important;box-shadow:none!important}
html body dialog#avera-release-dialog.avr-stage .wl-cta .avr-history-link{border:0!important;background:transparent!important;box-shadow:none!important;color:#cfe9ea!important;min-height:0!important;width:auto!important}
html body dialog#avera-release-dialog.avr-stage .wl-cta .avr-continue{background:#e9fffb!important;color:#0a4d55!important;border:0!important;box-shadow:none!important}

/* RC3 · QA-просмотр на тестовом стенде: заметная пометка, что это черновик текстов, а не публикация */
.avr-qa-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:6px 0 4px;padding:4px 10px;border-radius:999px;background:var(--av-warning-soft,rgba(214,150,40,.16));color:var(--av-warning,#9a5b00);font-size:11.5px;font-weight:750;line-height:1.3}