/* PHASE7: карточка обновления приложения в чате «Администрация» */
.bubble.upd { padding: 0; overflow: hidden; max-width: min(360px, 86vw); width: 100%; }
.bubble.upd > .foot { padding: 0 14px 8px; }
.upd-card { white-space: normal; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.upd-top { display: flex; gap: 12px; align-items: center; }
.upd-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22c55e, #0ea5e9); box-shadow: 0 6px 18px rgba(14, 165, 233, .28);
}
.upd-title { font-weight: 650; font-size: 15.5px; }
.upd-sub { font-size: 12.5px; opacity: .72; margin-top: 2px; }
.upd-text { font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.upd-notes { font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.upd-nt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 4px; }
.upd-act { display: flex; flex-direction: column; gap: 8px; }
.upd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  min-height: 42px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 6px 16px rgba(34, 197, 94, .28);
  transition: transform .12s ease, filter .15s ease; -webkit-tap-highlight-color: transparent;
}
.upd-btn:active { transform: scale(.97); filter: brightness(.95); }
.upd-btn.sm { min-height: 36px; font-size: 14px; padding: 0 14px; }
.upd-link { border: 0; background: none; color: inherit; opacity: .75; font: inherit; font-size: 13.5px; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.upd-hint { font-size: 12.5px; opacity: .7; line-height: 1.35; }
.upd-ok { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #4ade80; }
.upd-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, .15); font-size: 13px; }
.upd-err { font-size: 13.5px; color: #f87171; line-height: 1.35; }
.upd-prog { display: flex; flex-direction: column; gap: 8px; }
.upd-steps { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.upd-step { opacity: .45; transition: opacity .25s, color .25s; white-space: nowrap; }
.upd-step.on { opacity: 1; color: #4ade80; font-weight: 650; }
.upd-step.done { opacity: .8; }
.upd-step.done::before { content: "✓ "; color: #4ade80; }
.upd-sep { flex: 1; height: 1px; min-width: 8px; background: rgba(255,255,255,.14); }
.upd-bar { position: relative; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); }
.upd-bar > i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #38bdf8); transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.upd-bar > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); background-size: 60% 100%; background-repeat: no-repeat;
  animation: upd-shine 1.3s linear infinite;
}
.upd-bar.ind > i { width: 38% !important; animation: upd-ind 1.15s ease-in-out infinite; }
.upd-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; opacity: .85; font-variant-numeric: tabular-nums; }
.upd-pct { font-weight: 700; }
.upd-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@keyframes upd-shine { from { background-position: -100% 0; } to { background-position: 220% 0; } }
@keyframes upd-ind { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
@media (prefers-reduced-motion: no-preference) {
  .upd-card { animation: upd-in .45s cubic-bezier(.2,.8,.2,1) both; }
  .upd-ico { animation: upd-bob 2.6s ease-in-out .5s infinite; }
  .upd-prog { animation: upd-fade .25s ease both; }
}
@keyframes upd-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes upd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes upd-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .upd-bar > i::after, .upd-bar.ind > i { animation: none; } }
