.update-cache-card{grid-column:1/-1!important}.update-file-picker strong{display:flex;align-items:center;gap:10px}.update-file-picker-icon{color:#d8ffe8;text-shadow:0 0 10px rgba(100,255,171,.28)}
.site-update-page{background:#03080c;color:#eef8ff;min-height:100dvh}.update-wrap{padding-bottom:48px;max-width:760px!important}.update-header{padding-bottom:10px!important}.update-header h1{margin:.18rem 0!important}.update-header p{max-width:720px;margin:.25rem 0!important}.update-grid{display:grid;gap:9px}.update-grid .admin-control-card{padding:13px!important;border-color:rgba(99,255,176,.2)!important;background:linear-gradient(155deg,rgba(8,25,31,.96),rgba(3,10,15,.98))!important;box-shadow:0 10px 30px rgba(0,0,0,.25)}.update-grid h2{margin:.1rem 0 .25rem!important}.update-grid p{margin:.15rem 0!important}.update-grid small{display:block;color:#7894a2;margin-top:2px}.update-status-line,.update-preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.update-status-line strong{font-size:.9rem;overflow-wrap:anywhere}.update-advanced,.update-details,.update-two-cols details,.update-history-shell{margin-top:8px;border:1px solid rgba(132,204,233,.14);border-radius:12px;overflow:hidden;background:rgba(3,13,19,.48)}.update-advanced summary,.update-details summary,.update-two-cols summary,.update-history-shell>summary{cursor:pointer;padding:9px 10px;font-weight:800;font-size:.82rem}.update-history-shell>summary{display:flex;align-items:center;justify-content:space-between;list-style:none}.update-history-shell>summary::-webkit-details-marker{display:none}.update-history-shell>summary span small{font-weight:500}.update-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:0 9px 8px}.update-key-row input,.update-form-row input{width:100%;min-height:40px;border:1px solid rgba(125,207,238,.24);border-radius:12px;background:#06131b;color:#eef8ff;padding:0 12px;font:inherit}.update-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.update-actions.compact{padding:0 9px 8px}.update-actions.compact .btn{min-height:36px;padding:8px 12px}.update-message,.update-auto-note{margin-top:7px;color:#91a9b5;line-height:1.38;font-size:.84rem}.update-advanced .update-message{padding:0 9px 9px;margin:0}.update-message.is-error,.update-auto-note.is-error{color:#ffb8b8}.update-message.is-good,.update-auto-note.is-good{color:#baffd7}.compact-title{align-items:center}.update-file-picker{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;margin-top:8px;padding:12px 14px;border:1px dashed rgba(105,239,170,.55);border-radius:15px;background:rgba(7,30,27,.7);cursor:pointer}.update-file-picker strong{color:#caffdd;font-size:1rem}.update-file-picker span{color:#9fb5bf;text-align:right;overflow-wrap:anywhere;font-size:.82rem}.update-main-button{width:100%;min-height:50px;margin-top:10px;font-size:1rem;letter-spacing:.04em}.update-main-button:disabled{opacity:.45}.update-stagebar{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:9px}.update-stagebar>div{min-width:0;padding:6px 2px;border:1px solid rgba(126,193,221,.16);border-radius:10px;background:#06131a;text-align:center;color:#78919d;transition:.2s}.update-stagebar b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;margin-right:2px;background:#102630;font-size:.66rem}.update-stagebar span{font-size:.65rem}.update-stagebar .is-running{border-color:#75d8ff;color:#dff7ff;box-shadow:0 0 16px rgba(84,214,255,.13)}.update-stagebar .is-running b{animation:pulse-stage 1s infinite;background:#155273}.update-stagebar .is-done{border-color:rgba(83,239,163,.5);color:#baffd7}.update-stagebar .is-done b{background:#11633b}.update-stagebar .is-warn{border-color:rgba(255,196,91,.5);color:#ffe0a3}.update-stagebar .is-warn b{background:#684714}.update-stagebar .is-error{border-color:rgba(255,102,102,.55);color:#ffc0c0}.update-stagebar .is-skipped{opacity:.42}@keyframes pulse-stage{50%{box-shadow:0 0 0 5px rgba(83,214,255,.08)}}.update-preview-card{padding-top:10px!important;padding-bottom:10px!important}.update-preview-top>div:first-child{display:grid;gap:2px}.update-preview-top strong{font-size:.9rem}.update-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.update-metric{display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid rgba(132,204,233,.17);border-radius:999px;background:rgba(4,17,25,.82)}.update-metric strong{font-size:.88rem}.update-metric span{color:#9eb3be;font-size:.68rem}.update-path-group{padding:0 10px 8px}.update-path-group h3{margin:6px 0 3px;font-size:.78rem}.update-path-group code{display:block;padding:2px 0;color:#afc9d7;font-size:.72rem;overflow-wrap:anywhere}.update-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 8px 8px}.update-history,.update-log{display:grid;gap:5px;padding:0 7px 7px}.update-history-item,.update-log-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:7px 8px;border:1px solid rgba(133,204,233,.13);border-radius:10px;background:rgba(4,17,25,.72)}.update-history-item strong,.update-log-item strong{display:block;font-size:.76rem}.update-history-item small,.update-log-item small{display:block;margin-top:2px;color:#829ba7;font-size:.66rem}.update-history-item .btn{white-space:nowrap;min-height:31px;padding:6px 8px;font-size:.68rem}.update-log-item .log-dot{width:8px;height:8px;border-radius:50%;background:#56d99a}.update-log-item.is-warning .log-dot{background:#ffc65a}.update-log-item.is-error .log-dot{background:#ff7777}.update-setup-card pre{white-space:pre-wrap;padding:9px;border-radius:11px;background:#02080c;color:#bfffd8;overflow:auto;font-size:.75rem}.service-access-state.is-ready{color:#baffd7!important}.service-access-state.is-error{color:#ffb6b6!important}.service-access-state.is-warn{color:#ffe1a2!important}@media(max-width:760px){.update-two-cols{grid-template-columns:1fr}.update-file-picker{align-items:flex-start;flex-direction:column}.update-file-picker span{text-align:left}.update-preview-top{align-items:flex-start;flex-direction:column}.update-metrics{justify-content:flex-start}}@media(max-width:430px){.update-grid .admin-control-card{padding:11px!important}.update-stagebar span{display:block;margin-top:2px}.update-stagebar b{margin:0}.update-stagebar>div{padding:5px 1px}.update-stagebar span{font-size:.59rem}}@media(orientation:landscape) and (max-height:700px){.site-update-page .admin-header{padding-top:6px}.update-wrap{max-width:980px!important}.update-grid{grid-template-columns:1fr 1fr;gap:8px}.update-status-card,.update-result-card,.update-history-card,.update-setup-card{grid-column:1/-1!important}.update-upload-card,.update-preview-card{grid-column:auto}.update-two-cols{grid-template-columns:1fr 1fr}}


/* R104 HOTFIX — читаемый текст служебных кнопок */
#siteUpdateVerify,
#siteUpdateRefresh,
#siteUpdateBackupNow,
#siteUpdateRepoLink,
#siteUpdateHistoryRefresh,
#siteUpdateCheckDeploy,
.update-actions.compact .btn,
.update-key-row .btn {
  color:#eef8ff !important;
  -webkit-text-fill-color:#eef8ff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.72);
}
#siteUpdateVerify:disabled,
#siteUpdateRefresh:disabled,
#siteUpdateBackupNow:disabled,
.update-actions.compact .btn:disabled,
.update-key-row .btn:disabled {
  color:#b8c9d2 !important;
  -webkit-text-fill-color:#b8c9d2 !important;
}


/* R105 HOTFIX: единый читаемый текст на тёмных кнопках и оболочках */
body.site-update-page .btn:not(.btn-primary),
body.site-update-page button.btn:not(.btn-primary),
body.site-update-page a.btn:not(.btn-primary),
body.site-update-page details summary,
body.site-update-page .admin-empty,
body.site-update-page .update-history-shell button,
body.site-update-page .update-history-item button {
  color:#eef8ff !important;
  -webkit-text-fill-color:#eef8ff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.78) !important;
  opacity:1;
}

body.site-update-page .btn:not(.btn-primary):disabled,
body.site-update-page button.btn:not(.btn-primary):disabled,
body.site-update-page .update-history-shell button:disabled {
  color:#a9bdc8 !important;
  -webkit-text-fill-color:#a9bdc8 !important;
  opacity:.58 !important;
}

body.site-update-page .btn-primary {
  color:#041018 !important;
  -webkit-text-fill-color:#041018 !important;
  text-shadow:none !important;
}

body.site-update-page .update-history-shell > summary,
body.site-update-page .update-two-cols summary,
body.site-update-page .update-advanced summary,
body.site-update-page .update-details summary {
  color:#eef8ff !important;
  -webkit-text-fill-color:#eef8ff !important;
}

body.site-update-page .update-status-card,
body.site-update-page .update-history-card,
body.site-update-page .update-result-card {
  isolation:isolate;
}

body.site-update-page .update-status-line small {
  min-height:1.1em;
}


/* R106 — полноценная история версий и безопасный откат */
.update-history-layout{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:7px;
  padding:0 8px 8px;
}
.update-history-layout>details{
  margin-top:0;
  border:1px solid rgba(132,204,233,.14);
  border-radius:12px;
  overflow:hidden;
  background:rgba(3,13,19,.48);
}
.update-history-layout>details:first-child{grid-row:span 2}
.history-point{border-color:rgba(91,229,162,.2)}
.history-point.is-release{box-shadow:inset 3px 0 0 rgba(101,226,255,.68)}
.history-point.is-backup{box-shadow:inset 3px 0 0 rgba(255,194,91,.62)}
.history-point.is-stable{box-shadow:inset 3px 0 0 rgba(102,241,167,.58)}
.history-point .history-main{min-width:0}
.history-title-line{display:flex;align-items:center;gap:6px;min-width:0}
.history-title-line strong{overflow-wrap:anywhere}
.history-kind{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:2px 5px;
  border:1px solid rgba(117,216,255,.28);
  border-radius:999px;
  color:#bdefff!important;
  -webkit-text-fill-color:#bdefff!important;
  font-size:.52rem;
  letter-spacing:.07em;
  line-height:1.3;
}
.history-kind.is-backup{border-color:rgba(255,198,90,.35);color:#ffe0a3!important;-webkit-text-fill-color:#ffe0a3!important}
.history-kind.is-current{border-color:rgba(83,239,163,.45);color:#baffd7!important;-webkit-text-fill-color:#baffd7!important}
.history-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.history-link{
  color:#9bdfff!important;
  -webkit-text-fill-color:#9bdfff!important;
  font-size:.64rem;
  font-weight:800;
  text-decoration:none;
}
.history-rollback-button{
  min-width:78px;
  border-color:rgba(255,178,91,.42)!important;
  color:#ffe3b1!important;
  -webkit-text-fill-color:#ffe3b1!important;
  background:rgba(74,42,9,.33)!important;
}
.history-rollback-button:disabled{opacity:.45!important}
.technical-commit{opacity:.82}
.technical-commit .history-link{font-size:.9rem}
@media(max-width:760px){
  .update-history-layout{grid-template-columns:1fr}
  .update-history-layout>details:first-child{grid-row:auto}
}


/* R107 — post-deploy health check + automatic recovery */
.update-protection-card{
  padding:11px 14px!important;
  background:
    radial-gradient(circle at 92% 0,rgba(82,235,166,.08),transparent 36%),
    rgba(4,18,24,.82)!important;
}
.protection-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.protection-title{min-width:0}
.protection-title strong{
  display:block;
  color:#f2fbff;
  font-size:.93rem;
  line-height:1.2;
}
.protection-title small{
  display:block;
  color:#9db3bf;
  font-size:.67rem;
  margin-top:3px;
}
.protection-controls{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}
.protection-toggle{
  display:flex;
  align-items:center;
  gap:7px;
  flex:1 1 230px;
  min-height:38px;
  padding:7px 10px;
  border:1px solid rgba(91,229,162,.2);
  border-radius:12px;
  background:rgba(2,18,18,.55);
  color:#e9fbf3;
  font-size:.72rem;
  font-weight:800;
}
.protection-toggle input{
  width:18px;
  height:18px;
  accent-color:#55e6a0;
}
.protection-controls .btn{
  min-height:38px;
  padding:7px 12px!important;
  flex:0 0 auto;
}
.health-checks{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}
.health-chip{
  display:inline-flex;
  flex-direction:column;
  gap:1px;
  max-width:100%;
  padding:5px 7px;
  border:1px solid rgba(143,192,214,.18);
  border-radius:9px;
  background:rgba(2,10,15,.58);
}
.health-chip b{
  color:#eaf7fc;
  font-size:.61rem;
}
.health-chip small{
  color:#9db1bd;
  font-size:.55rem;
}
.health-chip.is-good{border-color:rgba(75,233,151,.28)}
.health-chip.is-warning{border-color:rgba(255,197,82,.3)}
.health-chip.is-error{border-color:rgba(255,102,114,.38)}
.update-stagebar{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
.update-stagebar>div span{font-size:.57rem}
@media(max-width:520px){
  .protection-row{align-items:flex-start}
  .protection-controls .btn{width:100%}
  .protection-toggle{flex-basis:100%}
  .update-stagebar>div span{font-size:.5rem}
}


/* R108 — centred update hero + compact cache controls */
body.site-update-page .update-header{
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}
body.site-update-page .update-header .eyeline,
body.site-update-page .update-header h1,
body.site-update-page .update-header p{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.site-update-page .update-header p{max-width:680px!important}
.update-cache-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-top:9px;
  padding:8px 10px;
  border:1px solid rgba(113,198,232,.16);
  border-radius:12px;
  background:rgba(3,13,19,.48);
}
.update-cache-row small{
  min-width:0;
  color:#9db3bf;
  font-size:.64rem;
  line-height:1.3;
}
.update-cache-row .btn{flex:0 0 auto;min-height:36px;padding:7px 11px!important;font-size:.68rem!important}
@media(max-width:520px){
  body.site-update-page .update-header h1{font-size:clamp(3rem,15vw,5rem)!important}
  .update-cache-row{align-items:stretch;flex-direction:column}
  .update-cache-row .btn{width:100%}
}


/* R115 — compact final polish */
body.site-update-page .update-header{padding-top:4px!important}
body.site-update-page .update-header h1{line-height:.92!important}
body.site-update-page .update-header p{font-size:clamp(.82rem,2.6vw,1rem)!important;line-height:1.48!important}

/* R163 — upload card order polish + archive icon in ZIP picker */
.update-file-picker strong{display:inline-flex;align-items:center;gap:10px}
.update-file-picker-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:10px;background:rgba(72,217,141,.16);border:1px solid rgba(105,239,170,.42);box-shadow:0 0 0 1px rgba(105,239,170,.08),0 0 14px rgba(80,228,149,.12) inset;font-size:1rem;line-height:1}

@media(orientation:landscape){
  .site-update-page .update-wrap{max-width:980px!important;padding-bottom:24px!important}
  .site-update-page .update-header{padding:2px 6px 6px!important;text-align:center!important}
  .site-update-page .update-header .eyeline{font-size:clamp(.68rem,1.2vw,.84rem)!important}
  .site-update-page .update-header h1{font-size:clamp(3.2rem,6.2vw,5.2rem)!important;line-height:.88!important;margin:0 0 4px!important}
  .site-update-page .update-header p{max-width:640px!important;margin:0 auto 2px!important;font-size:.76rem!important;line-height:1.28!important}
  .site-update-page .update-grid{grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:start!important}
  .site-update-page .update-status-card,.site-update-page .update-result-card,.site-update-page .update-history-card,.site-update-page .update-setup-card,.site-update-page .update-cache-card{grid-column:1/-1!important}
  .site-update-page .update-upload-card,.site-update-page .update-preview-card{grid-column:auto!important}
  .site-update-page .update-cache-card{order:99!important}
}

@media(orientation:landscape){
  .site-update-page .update-header h1{font-size:clamp(2.7rem,5.3vw,4.4rem)!important;line-height:.92!important}
}
