/* Phase Two reliability controls: quiet, explicit, and recoverable. */
html body .app-shell .memory-media-progress {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin: 2px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(19, 139, 126, 0.16);
  border-radius: 8px;
  background: rgba(243, 252, 248, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html body .app-shell .memory-media-progress[hidden] {
  display: none !important;
}

html body .app-shell .memory-media-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #174f56;
  font-size: 0.76rem;
}

html body .app-shell .memory-media-progress-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .app-shell .memory-media-progress-copy span {
  flex: 0 0 auto;
  color: #137b73;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

html body .app-shell .memory-media-progress-track {
  overflow: hidden;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 95, 98, 0.1);
}

html body .app-shell .memory-media-progress-track > span {
  display: block;
  width: var(--media-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ab486, #16aeb7 58%, #2f7bea);
  box-shadow: 0 0 12px rgba(22, 174, 183, 0.22);
  transition: width 180ms ease;
}

html body .account-delete-dialog {
  width: min(92vw, 460px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #0a3440;
  background: rgba(250, 253, 250, 0.98);
  box-shadow: 0 30px 90px rgba(2, 34, 43, 0.26);
}

html body .account-delete-dialog::backdrop {
  background: rgba(3, 27, 36, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html body .account-delete-dialog-card {
  display: grid;
  gap: 15px;
  padding: 26px;
}

html body .account-delete-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #a92832;
  background: #fff0f1;
}

html body .account-delete-heading {
  display: grid;
  gap: 6px;
}

html body .account-delete-heading > span {
  color: #a33a42;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

html body .account-delete-heading h2,
html body .account-delete-heading p {
  margin: 0;
}

html body .account-delete-heading h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
}

html body .account-delete-heading p {
  color: rgba(10, 52, 64, 0.67);
  font-size: 0.84rem;
  line-height: 1.55;
}

html body .account-delete-dialog-card > label:not(.account-delete-consent) {
  display: grid;
  gap: 7px;
  color: #315a62;
  font-size: 0.76rem;
  font-weight: 780;
}

html body .account-delete-dialog-card input[type="email"],
html body .account-delete-dialog-card input[type="password"] {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(8, 89, 91, 0.16);
  border-radius: 8px;
  color: #0a3440;
  font: inherit;
  background: #fff;
}

html body .account-delete-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #536d73;
  font-size: 0.76rem;
  line-height: 1.45;
}

html body .account-delete-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #b8333e;
}

html body .account-delete-status {
  min-height: 1.1em;
  margin: 0;
  color: #a32f39;
  font-size: 0.76rem;
  font-weight: 700;
}

html body .account-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

html body .account-delete-actions button {
  min-height: 46px;
  border-radius: 8px;
}

html body .account-delete-actions .danger-button {
  border: 1px solid #b72f3a;
  color: #fff;
  font-weight: 820;
  background: linear-gradient(135deg, #b72f3a, #92242d);
  cursor: pointer;
}

html body .account-delete-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 520px) {
  html body .account-delete-dialog-card {
    padding: 21px 18px;
  }

  html body .account-delete-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .memory-media-progress-track > span {
    transition: none;
  }
}

.memory-location-hint {
  display: block;
  margin-top: 3px;
  color: rgba(17, 83, 92, 0.58);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.35;
}
