/* Completed recognition: one clear next step, with quiet secondary actions.
   ID-scoped !important surfaces intentionally beat lst-theme.css's global
   dark-theme button overrides. Keep this sheet after studio.html's styles. */
#prog.ok .pa {
  gap: 10px 18px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #e6e8ec;
}

#prog.ok .pa #prog_edit {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 284px;
  max-width: 100%;
  min-height: 64px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 12px 16px;
  border: 1px solid #eab546 !important;
  border-radius: 12px;
  background: linear-gradient(115deg, #f8d582, #edbd56) !important;
  color: #322410 !important;
  text-align: left;
  box-shadow: 0 3px 9px rgb(103 68 12 / 14%), inset 0 1px 0 rgb(255 255 255 / 50%);
  cursor: pointer;
  animation: studio-edit-enter 280ms ease-out both;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#prog.ok .pa #prog_edit::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgb(255 255 255 / 28%) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: studio-edit-sweep 850ms ease-out 450ms 1 both;
}

#prog.ok .pa #prog_edit .edit-cta-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(69 46 8 / 14%);
  border-radius: 10px;
  background: rgb(255 255 255 / 19%);
}

#prog.ok .pa #prog_edit .edit-cta-icon svg { width: 22px; height: 22px; }
#prog.ok .pa #prog_edit .edit-cta-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
#prog.ok .pa #prog_edit .edit-cta-title { font: 750 18px/1.35 system-ui, "Microsoft YaHei", sans-serif; letter-spacing: .025em; }
#prog.ok .pa #prog_edit .edit-cta-subtitle { color: #5c451f; font: 500 11.5px/1.5 system-ui, "Microsoft YaHei", sans-serif; white-space: normal; }
#prog.ok .pa #prog_edit .edit-cta-arrow { flex: 0 0 20px; width: 20px; height: 20px; animation: studio-edit-arrow 1.6s ease-in-out 700ms 3; transition: transform 160ms ease; }

#prog.ok .pa #prog_edit:not(:disabled):not([aria-busy="true"]):hover {
  background: linear-gradient(115deg, #ffe2a0, #f2c566) !important;
  box-shadow: 0 5px 12px rgb(103 68 12 / 20%), inset 0 1px 0 rgb(255 255 255 / 60%);
  transform: translateY(-1px);
}
#prog.ok .pa #prog_edit:not(:disabled):hover .edit-cta-arrow { transform: translateX(3px); }
#prog.ok .pa #prog_edit:focus-visible { outline: 3px solid #9b6a14; outline-offset: 3px; }
#prog.ok .pa #prog_edit:not(:disabled):active { transform: translateY(0); box-shadow: inset 0 2px 4px rgb(103 68 12 / 15%); }
#prog.ok .pa #prog_edit:disabled,
#prog.ok .pa #prog_edit[aria-busy="true"] {
  background: #e3c78e !important;
  border-color: #c8ab70 !important;
  color: #5c4d31 !important;
  cursor: wait;
  box-shadow: none;
  transform: none;
  animation: none;
}
#prog.ok .pa #prog_edit:disabled::before,
#prog.ok .pa #prog_edit[aria-busy="true"]::before { display: none; }
#prog.ok .pa #prog_edit:disabled .edit-cta-arrow,
#prog.ok .pa #prog_edit[aria-busy="true"] .edit-cta-arrow { animation: none; opacity: .45; transform: none; }
#prog.ok .pa #prog_edit[aria-busy="true"] .edit-cta-icon svg { opacity: 0; }
#prog.ok .pa #prog_edit[aria-busy="true"] .edit-cta-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(92 69 31 / 24%);
  border-top-color: #5c451f;
  border-radius: 50%;
  animation: studio-edit-loading 750ms linear infinite;
}

#prog.ok .pa button.g {
  min-height: 40px;
  padding: 8px 0;
  border: 1px solid transparent !important;
  border-radius: 6px;
  background: transparent !important;
  color: #5b6472 !important;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: none;
}
#prog.ok .pa button.g:hover { background: transparent !important; color: #182333 !important; text-decoration: underline; text-underline-offset: 4px; }
#prog.ok .pa button.g:focus-visible { outline: 2px solid #64748b; outline-offset: 4px; }

html.dark #prog.ok .pa { border-top-color: #343b43; }
html.dark #prog.ok .pa #prog_edit { box-shadow: 0 3px 10px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 45%); }
html.dark #prog.ok .pa #prog_edit:not(:disabled):not([aria-busy="true"]):hover { box-shadow: 0 5px 14px rgb(0 0 0 / 25%), inset 0 1px 0 rgb(255 255 255 / 60%); }
html.dark #prog.ok .pa #prog_edit:focus-visible { outline-color: #ffe2a0; }
html.dark #prog.ok .pa button.g { color: #abb7c6 !important; }
html.dark #prog.ok .pa button.g:hover { color: #f1f5f9 !important; }

@keyframes studio-edit-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes studio-edit-sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes studio-edit-arrow { 0%, 75%, 100% { translate: 0; } 40% { translate: 4px; } }
@keyframes studio-edit-loading { to { rotate: 360deg; } }

@media (max-width: 600px) {
  #prog.ok .pa { gap: 8px 18px; }
  #prog.ok .pa #prog_edit { flex: 1 1 100%; width: 100%; min-height: 62px; }
  #prog.ok .pa button.g { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #prog.ok .pa #prog_edit,
  #prog.ok .pa #prog_edit::before,
  #prog.ok .pa #prog_edit .edit-cta-arrow,
  #prog.ok .pa #prog_edit .edit-cta-icon::after { animation: none !important; transition: none; }
  #prog.ok .pa #prog_edit::before { display: none; }
  #prog.ok .pa #prog_edit:not(:disabled):hover,
  #prog.ok .pa #prog_edit:not(:disabled):hover .edit-cta-arrow { transform: none; }
}
