/* Team announcements and mandatory updates share the application's chrome,
   crimson accents and cut corners. The dialog uses the native top layer. */
.app-control-overlay {
  position: fixed;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 76px 26px 36px;
  border: 0;
  border-radius: 17px;
  color: var(--txt);
  background: radial-gradient(ellipse at 50% 24%, #3d101c70, transparent 57%), #070709f5;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-app-region: no-drag;
}
.app-control-overlay[open] { display: grid; place-items: safe center; }
.app-control-overlay::backdrop { background: #0505079e; backdrop-filter: blur(12px); }
body.window-expanded .app-control-overlay { border-radius: 0; }
body.app-control-open > .auth-screen,
body.app-control-open > .access-overlay,
body.app-control-open > .release-notes-overlay,
body.app-control-open > .splash { visibility: hidden; }
.app-control-window-controls { position: fixed; top: 21px; right: 21px; z-index: 2; }
.app-control-window-controls button { background: #121216; }
#app-control-close-window:hover { color: #ff8b9b; border-color: #ff254099; background: #ff254026; }
.app-control-card {
  width: min(564px, 100%);
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff25404a transparent;
  padding: 1px;
  background: linear-gradient(140deg, #ff25408f, #ffffff24 31%, #ffffff10 75%, #ff254066);
  filter: drop-shadow(0 26px 42px #0007);
  outline: none;
  animation: app-control-in .3s ease-out both;
}
.app-control-card-inner {
  position: relative;
  padding: 25px 30px 22px;
  background: radial-gradient(ellipse at 50% -18%, #36141f7a, transparent 60%), #111115;
}
.app-control-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 25px; }
.app-control-brand { color: #9d9daa; font: 600 10px var(--display); letter-spacing: 1.35px; }
.app-control-chip { padding: 7px 9px; border: 1px solid #ff254034; background: #ff254009; color: #ff7184; font: 600 8px var(--display); letter-spacing: .9px; white-space: nowrap; }
.app-control-rule { display: flex; align-items: center; gap: 7px; margin-top: 21px; }
.app-control-rule i { width: 4px; height: 4px; background: #ff25405e; transform: rotate(45deg); }
.app-control-rule span { height: 1px; flex: 1; background: linear-gradient(90deg, #ff254038, #ffffff0c 45%, #ff254038); }
.app-control-emblem { width: 64px; height: 64px; display: grid; place-items: center; margin: 24px auto 18px; color: #ff667b; background: linear-gradient(140deg, #ff254019, #ff254008); border: 1px solid #ff25404a; }
.app-control-emblem svg { width: 30px; height: 30px; stroke-width: 1.5; }
.app-control-eyebrow { margin: 0 0 9px; color: #b16876; font: 600 8px var(--display); letter-spacing: 1.6px; text-align: center; }
#app-control-title { margin: 0; color: #f2f1f5; font: 700 clamp(22px, 3.2vw, 29px)/1.25 var(--display); letter-spacing: -.7px; text-align: center; overflow-wrap: anywhere; }
.app-control-body { max-height: min(34vh, 290px); overflow: auto; margin: 17px 0 24px; padding-right: 3px; color: #a8a7b4; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; user-select: text; -webkit-user-select: text; }
.app-control-body::-webkit-scrollbar { width: 4px; }
.app-control-body::-webkit-scrollbar-thumb { background: #ff25404a; }
.app-control-action { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 49px; padding: 13px 18px; border: 1px solid #ff4b6252; background: linear-gradient(105deg, #ff2540, #d30a2d); color: #fff; font: 800 11px var(--display); letter-spacing: 1px; box-shadow: inset 0 1px 0 #ffffff10; transition: background .18s ease, filter .18s ease; }
.app-control-action svg { width: 17px; height: 17px; }
.app-control-action:hover:enabled { filter: brightness(1.1); }
.app-control-action:disabled { opacity: .65; cursor: wait; }
.app-control-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #ffffff0a; color: #777783; font-size: 11px; line-height: 1.5; }
#app-control-count { color: #a4a4b1; font: 500 9px var(--mono); white-space: nowrap; }
.app-control-update-panel { padding: 17px 17px 13px; margin-bottom: 18px; border: 1px solid #ffffff0b; background: #08080c5e; }
.app-control-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: #c2c1cb; font: 600 11px var(--display); }
#app-control-percent { color: #ff7f90; font: 500 10px var(--mono); }
.app-control-progress { height: 4px; overflow: hidden; background: #ffffff0a; }
.app-control-progress > i { display: block; height: 100%; background: linear-gradient(90deg, #c60e2b, #ff4d66); box-shadow: 0 0 10px #ff254040; transition: width .2s ease-out; }
.app-control-progress.indeterminate > i { width: 30% !important; animation: app-control-progress 1.7s ease-in-out infinite; }
#app-control-status { min-height: 34px; margin: 11px 0 17px; color: #858592; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.app-control-steps { display: flex; justify-content: space-between; gap: 7px; margin: 0; padding: 0; list-style: none; }
.app-control-steps li { display: flex; align-items: center; gap: 6px; color: #53535f; font: 500 8px var(--display); letter-spacing: .6px; }
.app-control-steps i { width: 4px; height: 4px; border: 1px solid currentColor; transform: rotate(45deg); }
.app-control-steps li.current { color: #e38c99; }
.app-control-steps li.done { color: #9f9fab; }
.app-control-steps li.done i { background: #9f9fab; }
.app-control-error { margin: 0 0 17px; padding: 11px 13px; color: #f1a7b1; border: 1px solid #ff25402a; background: #ff25400a; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.app-control-overlay[data-mode="update"] .app-control-body { max-height: min(19vh, 155px); margin-bottom: 20px; font-size: 13px; }
.app-control-overlay[data-status="error"] .app-control-progress > i,
.app-control-overlay[data-status="unsupported"] .app-control-progress > i { background: #b17751; }
@keyframes app-control-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes app-control-progress { from { transform: translateX(-110%); } to { transform: translateX(440%); } }
@media (max-height: 690px) {
  .app-control-overlay { padding: 58px 24px 20px; }
  .app-control-card-inner { padding: 21px 26px 17px; }
  .app-control-rule { margin-top: 15px; }
  .app-control-emblem { width: 49px; height: 49px; margin: 17px auto 13px; }
  .app-control-emblem svg { width: 26px; height: 26px; }
  #app-control-title { font-size: 24px; }
  .app-control-body { max-height: 27vh; margin: 13px 0 19px; font-size: 13px; }
  .app-control-update-panel { margin-bottom: 14px; padding: 13px 14px; }
  #app-control-status { margin-bottom: 12px; }
  .app-control-foot { margin-top: 13px; padding-top: 11px; }
}
@media (max-width: 520px) {
  .app-control-overlay { padding-right: 16px; padding-left: 16px; }
  .app-control-card-inner { padding-right: 19px; padding-left: 19px; }
  .app-control-head { align-items: flex-start; gap: 8px; }
  .app-control-chip { padding: 6px; font-size: 7px; letter-spacing: .2px; }
  .app-control-brand { font-size: 9px; }
  .app-control-foot { font-size: 10px; }
  .app-control-steps { gap: 4px; }
  .app-control-steps li { font-size: 7px; letter-spacing: .2px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-control-card { animation: none; }
  .app-control-progress > i { transition: none; }
  .app-control-progress.indeterminate > i { animation: none; width: 100% !important; opacity: .5; }
}
