.updates-page { max-width: 900px; margin: 0 auto; }
.updates-page .panel { overflow: hidden; margin-bottom: 18px; }
.updates-status { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.updates-status-symbol { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; color: var(--orange); font-weight: 700; }
.updates-status.is-ready .updates-status-symbol { color: #398362; }
.updates-status > div { min-width: 0; }
.updates-status h2 { margin: 1px 0 7px; color: var(--text); font-size: 15px; line-height: 1.5; }
.updates-status p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.updates-status small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.updates-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0; margin: 0 0 22px; list-style: none; }
.updates-flow li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.updates-flow li > span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); font-size: 11px; font-weight: 650; }
.updates-upload form { padding: 0 26px 26px; }
.updates-upload .panel-heading { padding: 26px; }
.updates-file-drop { border: 1px dashed var(--border-strong); border-radius: 14px; padding: 24px; margin-bottom: 22px; background: var(--surface-soft); }
.updates-file-drop label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 14px; }
.updates-file-drop input { display: block; width: 100%; max-width: 100%; min-width: 0; background: var(--surface); color: var(--text); font-size: 13px; }
.updates-file-drop small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 12px; }
.updates-credentials { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 18px; margin-bottom: 22px; }
.updates-credentials .field { min-width: 0; margin-bottom: 0; }
.updates-credentials input { width: 100%; min-width: 0; }
.updates-submit-hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 14px 0 0; }
.updates-notice { margin: 0 26px 22px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.7; }
.updates-progress { padding: 18px 22px; margin-bottom: 20px; border: 1px solid var(--primary); border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); line-height: 1.8; font-size: 13px; }
.updates-alert { padding: 17px 21px; margin-bottom: 20px; border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 12px; background: var(--surface-soft); color: var(--text); line-height: 1.8; font-size: 13px; overflow-wrap: anywhere; }
.updates-success { padding: 17px 21px; margin-bottom: 20px; border: 1px solid var(--border); border-left: 4px solid #398362; border-radius: 12px; background: var(--surface-soft); color: var(--text); line-height: 1.8; font-size: 13px; overflow-wrap: anywhere; }
.updates-error:not(:empty) { margin: 14px 0; line-height: 1.7; }
.updates-details > summary { padding: 19px 24px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--text); }
.updates-details > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.updates-details[open] > summary { border-bottom: 1px solid var(--border); }
.updates-details-body { padding: 22px 24px; }
.updates-details-body p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.updates-details-body p:last-child { margin-bottom: 0; }
.updates-readiness { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin-bottom: 22px; }
.updates-readiness > div { display: grid; grid-template-columns: 8px 1fr; gap: 5px 9px; align-items: center; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); font-size: 11px; color: var(--muted); }
.updates-readiness strong { grid-column: 2; color: var(--text); font-size: 11px; font-weight: 600; }
.updates-fixes { padding-left: 19px; margin: 0 0 20px; color: var(--text); font-size: 12px; line-height: 1.8; }
.updates-fixes li + li { margin-top: 14px; }
.updates-fixes li p { margin: 4px 0 0; }
.updates-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.updates-dot.ready { background: #398362; }
.updates-session { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
#updates-countdown { font-variant-numeric: tabular-nums; color: var(--text); }
.updates-security .field { margin-bottom: 18px; }
.updates-security .field-hint, .updates-credentials .field-hint { display: block; line-height: 1.7; margin-top: 7px; }
.updates-secret { font-family: ui-monospace,Consolas,monospace; font-size: 13px; letter-spacing: .6px; width: 100%; min-width: 0; }
#updates-code { letter-spacing: 6px; max-width: 230px; }
.updates-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.updates-maintenance { padding: 26px; }
.updates-maintenance h2 { font-size: 19px; margin: 0 0 12px; }
.updates-maintenance p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 22px; overflow-wrap: anywhere; }
.updates-history-empty { padding: 22px 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.updates-history code { font-size: 11px; overflow-wrap: anywhere; }
@media(max-width:760px) {
  .updates-upload .panel-heading, .updates-maintenance { padding: 21px; }
  .updates-upload form { padding: 0 20px 20px; }
  .updates-notice { margin-left: 20px; margin-right: 20px; }
  .updates-page input { font-size: 16px; }
  .updates-file-drop { padding: 17px; }
  .updates-credentials { grid-template-columns: 1fr; }
  .updates-upload form > .btn, .updates-maintenance form > .btn, .updates-buttons .btn { width: 100%; }
  .updates-details > summary, .updates-details-body { padding: 19px 20px; }
  .updates-secret { font-size: 12px !important; }
}
@media(max-width:480px) {
  .updates-status { padding: 17px; gap: 11px; }
  .updates-flow { grid-template-columns: 1fr; gap: 8px; }
}
