:root {
  --run-focus: #67e8f9;
  --run-focus-shadow: rgba(34, 211, 238, 0.28);
  --run-panel-bg: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.032));
  --run-panel-border: rgba(255,255,255,0.15);
  --run-panel-text: rgba(255,255,255,0.78);
  --run-muted: rgba(255,255,255,0.58);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--run-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px var(--run-focus-shadow) !important;
}

.run-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2147483647;
  transform: translateY(-160%);
  border: 1px solid rgba(103, 232, 249, 0.55);
  border-radius: 8px;
  background: #04111f;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease;
}

.run-skip-link:focus,
.run-skip-link:focus-visible {
  transform: translateY(0);
}

.run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.run-btn:hover {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(34, 211, 238, 0.1);
}

.run-btn:active {
  transform: translateY(1px);
}

.run-btn-primary {
  border-color: rgba(103, 232, 249, 0.5);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(14, 165, 233, 0.78));
  color: #03131f;
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.22);
}

.run-btn-danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.48);
}

.run-field,
.run-select,
.run-textarea {
  width: 100%;
  min-height: clamp(44px, 10vw, 48px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(0.75rem, 2.5vw, 1rem);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.run-textarea {
  min-height: 116px;
  resize: vertical;
}

.run-field::placeholder,
.run-textarea::placeholder {
  color: rgba(255,255,255,0.4);
  opacity: 1;
}

input:not([type="button"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]):not([type="range"]):not([type="reset"]):not([type="submit"]):focus,
select:focus,
textarea:focus,
.input-field:focus,
.run-field:focus,
.run-select:focus,
.run-textarea:focus,
input:not([type="button"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]):not([type="range"]):not([type="reset"]):not([type="submit"]):focus-visible,
select:focus-visible,
textarea:focus-visible,
.input-field:focus-visible,
.run-field:focus-visible,
.run-select:focus-visible,
.run-textarea:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  border-color: #2ed1f4 !important;
  background: rgba(46, 209, 244, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 18px rgba(46, 209, 244, 0.32), 0 0 40px rgba(46, 209, 244, 0.18) !important;
}

select:focus,
select:focus-visible,
.run-select:focus,
.run-select:focus-visible {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(46,209,244,0.06), rgba(46,209,244,0.025)) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right clamp(0.75rem, 2.5vw, 1rem) center, 0 0 !important;
  background-size: 12px 12px, 100% 100% !important;
}

.run-field:focus,
.run-field:focus-visible,
.run-textarea:focus,
.run-textarea:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  border-color: #2ed1f4 !important;
  background: rgba(46, 209, 244, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 18px rgba(46, 209, 244, 0.32), 0 0 40px rgba(46, 209, 244, 0.18) !important;
}

.run-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 700;
}

.run-status-panel {
  position: relative;
  z-index: 10;
  margin: 0 0 32px;
  border: 1px solid var(--run-panel-border);
  border-radius: 12px;
  background: var(--run-panel-bg);
  box-shadow: 0 14px 44px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 18px;
  color: var(--run-panel-text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.run-status-panel h2,
.run-status-panel h3 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.run-status-panel h2::after,
.run-status-panel h3::after {
  display: none;
}

.run-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.run-status-meta {
  margin-top: 6px;
  color: var(--run-muted);
  font-size: 13px;
}

.run-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.run-feedback-backdrop,
.run-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(46, 209, 244, 0.12), rgba(46, 209, 244, 0) 34%),
    radial-gradient(circle at 22% 18%, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0) 28%),
    linear-gradient(180deg, rgba(0, 5, 16, 0.78), rgba(0, 5, 16, 0.93));
  padding: clamp(16px, 4vw, 32px);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.activity-shoe-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(46, 209, 244, 0.12), rgba(46, 209, 244, 0) 34%),
    radial-gradient(circle at 22% 18%, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0) 28%),
    linear-gradient(180deg, rgba(0, 5, 16, 0.78), rgba(0, 5, 16, 0.93));
  padding: clamp(16px, 4vw, 32px);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.activity-shoe-editor-backdrop.active {
  display: flex;
}

.run-feedback-card,
.run-modal-card,
.activity-shoe-editor-modal {
  position: relative;
  overflow: hidden;
  width: min(100%, 520px);
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 18, 34, 0.97), rgba(3, 8, 20, 0.98)) !important;
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.62),
    0 0 56px rgba(46, 209, 244, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff;
  padding: clamp(24px, 4vw, 34px);
}

.run-modal-card {
  text-align: center;
}

.run-feedback-card > *,
.run-modal-card > *,
.activity-shoe-editor-modal > * {
  position: relative;
  z-index: 1;
}

.run-feedback-card::before,
.run-modal-card::before,
.activity-shoe-editor-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(46, 209, 244, 0), rgba(103, 232, 249, 0.56), rgba(46, 209, 244, 0)) top / 100% 1px no-repeat,
    radial-gradient(circle at 50% 0%, rgba(46, 209, 244, 0.13), rgba(46, 209, 244, 0) 42%);
  pointer-events: none;
}

.run-feedback-card::after,
.run-modal-card::after,
.activity-shoe-editor-modal::after {
  content: "";
  position: absolute;
  top: clamp(22px, 4vw, 34px);
  bottom: clamp(22px, 4vw, 34px);
  left: 0;
  z-index: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(46, 209, 244, 0), rgba(103, 232, 249, 0.8), rgba(46, 209, 244, 0));
  box-shadow: 0 0 18px rgba(46, 209, 244, 0.44);
  pointer-events: none;
}

.run-feedback-title,
.run-modal-title,
.activity-shoe-editor-title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  position: relative;
  display: inline-block;
  text-align: center;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.run-feedback-title,
.run-modal-title {
  display: block;
  width: 100%;
}

.run-feedback-title::after,
.run-modal-title::after,
.activity-shoe-editor-title::after {
  display: none;
  content: none;
}

.activity-shoe-editor-header {
  position: static !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.activity-shoe-editor-title-row {
  display: block;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 56px;
  text-align: center;
}

.activity-shoe-editor-title-row > div:last-child {
  align-items: center;
  width: 100%;
}

.activity-shoe-editor-meta {
  color: rgba(255,255,255,0.58);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0;
  letter-spacing: 0;
}

.activity-shoe-editor-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.68);
  font-size: 18px !important;
  line-height: 1;
  cursor: pointer;
  transform: none !important;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.activity-shoe-editor-close:hover {
  border-color: rgba(46,209,244,0.42);
  background: rgba(46,209,244,0.1);
  box-shadow: 0 0 0 3px rgba(46,209,244,0.1);
  color: #fff;
}

.run-feedback-copy,
.run-modal-copy {
  max-width: 430px;
  margin: 0 auto 22px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  line-height: 1.58;
}

.run-modal-copy {
  text-align: center;
}

.run-modal-field-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.run-modal-field-group .run-field {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px !important;
  line-height: 1.35;
  background: rgba(255,255,255,0.055);
  box-shadow: none;
}

.run-modal-field-group .run-field:focus,
.run-modal-field-group .run-field:focus-visible {
  background: rgba(46, 209, 244, 0.055) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.48), 0 0 18px rgba(46, 209, 244, 0.32), 0 0 40px rgba(46, 209, 244, 0.18) !important;
}

.activity-shoe-editor-current-card,
.activity-shoe-editor-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.activity-shoe-editor-current-card {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(103, 232, 249, 0.14);
  color: rgba(255,255,255,0.66);
  font-size: 0.9rem;
  line-height: 1.55;
}

.activity-shoe-editor-current-card::before {
  content: none;
  display: none;
}

.activity-shoe-editor-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(176, 238, 249, 0.78);
  font-size: 0.76rem !important;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.activity-shoe-editor-select-wrap {
  position: relative;
}

.activity-shoe-editor-select-wrap::after {
  content: '';
  position: absolute;
  right: clamp(0.75rem, 2.5vw, 1rem);
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255,255,255,0.58);
  border-bottom: 1.5px solid rgba(255,255,255,0.58);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.activity-shoe-editor-select {
  width: 100%;
  min-height: clamp(44px, 10vw, 48px);
  box-sizing: border-box;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.045);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(2rem, 6vw, 2.5rem) clamp(0.625rem, 2vw, 0.75rem) clamp(0.75rem, 2.5vw, 1rem);
  font-size: 16px !important;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 18px rgba(46, 209, 244, 0.12), 0 12px 30px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.activity-shoe-editor-select:focus {
  outline: none !important;
  border-color: #2ed1f4 !important;
  background: rgba(46, 209, 244, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 18px rgba(46, 209, 244, 0.32), 0 0 40px rgba(46, 209, 244, 0.18) !important;
}

.run-feedback-actions,
.run-modal-actions,
.activity-shoe-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.run-modal-actions {
  justify-content: center;
}

.run-feedback-actions .run-btn,
.run-modal-actions .run-btn,
.activity-shoe-editor-btn {
  --run-action-accent-rgb: 121, 241, 255;
  --run-action-accent-strong-rgb: 56, 230, 215;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  box-shadow: inset 0 -6px 15px rgba(56, 230, 215, 0.18), inset 0 6px 15px rgba(121, 241, 255, 0.16);
  color: rgba(255,255,255,0.72);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.22s ease, color 0.22s ease, transform .16s ease;
}

.run-feedback-actions .run-btn::before,
.run-feedback-actions .run-btn::after,
.run-modal-actions .run-btn::before,
.run-modal-actions .run-btn::after,
.activity-shoe-editor-btn::before,
.activity-shoe-editor-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.run-feedback-actions .run-btn::before,
.run-modal-actions .run-btn::before,
.activity-shoe-editor-btn::before {
  background: linear-gradient(90deg, rgba(var(--run-action-accent-rgb), 0.24) 0.01%, rgba(var(--run-action-accent-strong-rgb), 0.34) 50.01%, rgba(var(--run-action-accent-rgb), 0.24) 100%);
  background-size: 180% 100%;
  opacity: 0.75;
}

.run-feedback-actions .run-btn::after,
.run-modal-actions .run-btn::after,
.activity-shoe-editor-btn::after {
  background: linear-gradient(90deg, rgba(var(--run-action-accent-rgb), 0.78) 0.01%, rgba(var(--run-action-accent-strong-rgb), 0.84) 50.01%, rgba(var(--run-action-accent-rgb), 0.78) 100%);
  background-size: 180% 100%;
  opacity: 0;
}

.run-feedback-actions .run-btn:hover,
.run-modal-actions .run-btn:hover,
.activity-shoe-editor-btn:hover:not(:disabled) {
  box-shadow: inset 0 -6px 17px rgba(var(--run-action-accent-strong-rgb), 0.24), inset 0 6px 17px rgba(var(--run-action-accent-rgb), 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.run-feedback-actions .run-btn:hover::before,
.run-modal-actions .run-btn:hover::before,
.activity-shoe-editor-btn:hover:not(:disabled)::before {
  opacity: 0.28;
}

.run-feedback-actions .run-btn:hover::after,
.run-modal-actions .run-btn:hover::after,
.activity-shoe-editor-btn:hover:not(:disabled)::after {
  opacity: 0.9;
  animation: run-action-border-drift 1.4s ease-in-out infinite alternate;
}

.run-feedback-actions .run-btn:focus-visible,
.run-modal-actions .run-btn:focus-visible,
.activity-shoe-editor-btn:focus-visible {
  outline: 2px solid rgba(var(--run-action-accent-strong-rgb), 0.72) !important;
  outline-offset: 2px !important;
  box-shadow: inset 0 -6px 17px rgba(var(--run-action-accent-strong-rgb), 0.24), inset 0 6px 17px rgba(var(--run-action-accent-rgb), 0.2), 0 0 0 6px rgba(var(--run-action-accent-strong-rgb), 0.16) !important;
}

.run-feedback-actions .run-btn-primary,
.run-modal-actions .run-btn-primary,
.activity-shoe-editor-btn.primary {
  --run-action-accent-rgb: 121, 241, 255;
  --run-action-accent-strong-rgb: 56, 230, 215;
  color: #fff;
}

.run-feedback-actions .run-btn-danger,
.run-modal-actions .run-btn-danger,
.activity-shoe-editor-btn.ghost.destructive {
  --run-action-accent-rgb: 255, 77, 109;
  --run-action-accent-strong-rgb: 225, 29, 72;
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.18) 0%, rgba(190, 18, 60, 0.06) 100%);
  color: #fff;
}

.run-feedback-actions .run-btn-primary,
.run-feedback-actions .run-btn-danger,
.run-modal-actions .run-btn-primary,
.run-modal-actions .run-btn-danger,
.activity-shoe-editor-btn.primary,
.activity-shoe-editor-btn.ghost.destructive {
  box-shadow: inset 0 -6px 17px rgba(var(--run-action-accent-strong-rgb), 0.34), inset 0 6px 17px rgba(var(--run-action-accent-rgb), 0.28), 0 0 0 1px rgba(var(--run-action-accent-strong-rgb), 0.12);
}

.run-feedback-actions .run-btn-danger,
.run-modal-actions .run-btn-danger,
.activity-shoe-editor-btn.ghost.destructive {
  box-shadow: inset 0 -6px 17px rgba(225, 29, 72, 0.38), inset 0 6px 17px rgba(255, 77, 109, 0.3), 0 0 0 1px rgba(225, 29, 72, 0.24);
}

.run-feedback-actions .run-btn-danger:hover,
.run-modal-actions .run-btn-danger:hover,
.activity-shoe-editor-btn.ghost.destructive:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.24) 0%, rgba(190, 18, 60, 0.1) 100%);
  box-shadow: inset 0 -6px 17px rgba(225, 29, 72, 0.46), inset 0 6px 17px rgba(255, 77, 109, 0.34), 0 0 18px rgba(225, 29, 72, 0.26);
  color: #fff;
}

.activity-shoe-editor-btn.ghost.destructive.is-busy-remove:disabled {
  opacity: 0.92;
  color: #fff;
}

.activity-shoe-editor-btn.ghost.destructive .asme-spinner-sm--danger {
  border-color: rgba(255,255,255,0.28);
  border-top-color: #fff;
}

.run-feedback-actions .run-btn:disabled,
.run-modal-actions .run-btn:disabled {
  opacity: 0.58;
  cursor: default;
  transform: none !important;
  pointer-events: none;
}

.run-feedback-actions .run-btn.is-loading,
.run-modal-actions .run-btn.is-loading {
  color: #fff;
}

.run-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.24);
  border-top-color: currentColor;
  border-radius: 999px;
  flex: 0 0 14px;
  animation: run-spin .8s linear infinite;
}

.run-feedback-actions .run-btn-primary::before,
.run-feedback-actions .run-btn-danger::before,
.run-modal-actions .run-btn-primary::before,
.run-modal-actions .run-btn-danger::before,
.activity-shoe-editor-btn.primary::before,
.activity-shoe-editor-btn.ghost.destructive::before {
  opacity: 0.22;
}

.run-feedback-actions .run-btn-primary::after,
.run-feedback-actions .run-btn-danger::after,
.run-modal-actions .run-btn-primary::after,
.run-modal-actions .run-btn-danger::after,
.activity-shoe-editor-btn.primary::after,
.activity-shoe-editor-btn.ghost.destructive::after {
  opacity: 1;
}

.activity-shoe-editor-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none !important;
}

.activity-shoe-editor-hint {
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  margin-top: 16px;
  line-height: 1.5;
}

.activity-shoe-editor-hint a {
  color: rgba(103,232,249,0.95);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(103,232,249,0.36);
}

.activity-shoe-editor-message {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.activity-shoe-editor-message.show {
  display: block;
}

.activity-shoe-editor-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.activity-shoe-editor-message.success {
  background: rgba(46,209,244,0.07);
  border: 1px solid rgba(46,209,244,0.22);
  color: #67e8f9;
}

@media (prefers-reduced-motion: reduce) {
  .run-feedback-actions .run-btn:hover::after,
  .run-modal-actions .run-btn:hover::after,
  .activity-shoe-editor-btn:hover:not(:disabled)::after {
    animation: none;
  }
}

body.run-pro-upgrade-open {
  overflow: hidden;
}

body.run-pro-upgrade-open > *:not(.run-pro-upgrade-backdrop):not(script):not(style):not(link) {
  filter: blur(4px) saturate(0.78) brightness(0.66);
  transition: filter 0.18s ease;
}

.run-pro-upgrade-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(46, 209, 244, 0.13), transparent 38%),
    rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(24px) saturate(0.78) brightness(0.7);
  -webkit-backdrop-filter: blur(24px) saturate(0.78) brightness(0.7);
}

.run-pro-upgrade-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 590px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: clamp(1.15rem, 2.6vw, 1.55rem);
  border-radius: 22px;
  color: #fff;
  border: 1px solid rgba(46, 209, 244, 0.5);
  background:
    radial-gradient(circle at 72% 16%, rgba(46, 209, 244, 0.2), transparent 36%),
    linear-gradient(150deg, rgba(46, 209, 244, 0.1), rgba(255,255,255,0.03) 46%, rgba(8, 13, 30, 0.92));
  box-shadow:
    0 26px 72px rgba(0,0,0,0.44),
    0 0 48px rgba(46, 209, 244, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.run-pro-upgrade-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background: radial-gradient(circle at 50% 16%, rgba(46, 209, 244, 0.14), transparent 42%);
}

.run-pro-upgrade-card > * {
  position: relative;
  z-index: 1;
}

.run-pro-upgrade-head {
  min-height: 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 2.55rem;
}

.run-pro-upgrade-logo {
  width: min(15.25rem, 58vw);
  height: clamp(3.15rem, 5.2vw, 3.85rem);
  overflow: hidden;
  background: url('/images/prologo.png') center / 145% auto no-repeat;
  filter: drop-shadow(0 0 15px rgba(46, 209, 244, 0.18));
}

.run-pro-upgrade-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

.run-pro-upgrade-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.82rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  color: #b9f8ff;
  background: rgba(2, 19, 26, 0.58);
  border: 1px solid rgba(103, 232, 249, 0.42);
  box-shadow: 0 0 22px rgba(46, 209, 244, 0.18), inset 0 1px 0 rgba(255,255,255,0.16);
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.run-pro-upgrade-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.72);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.run-pro-upgrade-close:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 209, 244, 0.4);
  background: rgba(46, 209, 244, 0.1);
  color: #fff;
}

.run-pro-upgrade-title {
  margin: 1.15rem 0 0.55rem 0;
  color: #fff !important;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.run-pro-upgrade-title::after {
  display: none !important;
}

.run-pro-upgrade-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.72rem;
  color: #fff;
  flex-wrap: wrap;
}

.run-pro-upgrade-price strong {
  font-size: clamp(2.05rem, 7vw, 3.05rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.run-pro-upgrade-price span {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 750;
}

.run-pro-upgrade-copy {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
  line-height: 1.58;
}

.run-pro-upgrade-benefits {
  display: grid;
  gap: 0.62rem;
  margin: 1.15rem 0 0 0;
  padding: 0;
  list-style: none;
}

.run-pro-upgrade-benefits li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: start;
  gap: 0.58rem;
  color: rgba(255,255,255,0.79);
  font-size: 0.88rem;
  line-height: 1.45;
}

.run-pro-upgrade-benefits svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.06rem;
  color: #2ed1f4;
  filter: drop-shadow(0 0 8px rgba(46, 209, 244, 0.22));
}

.run-pro-upgrade-benefits strong {
  color: #fff;
  font-weight: 850;
}

.run-pro-upgrade-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.run-pro-upgrade-action {
  min-height: 4.2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
  border-radius: 13px;
  padding: 0.82rem 0.95rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.run-pro-upgrade-action-primary {
  border: 1px solid rgba(46, 209, 244, 0.52);
  background: linear-gradient(180deg, rgba(51, 255, 255, 0.24), rgba(0, 188, 212, 0.14));
  box-shadow: 0 0 26px rgba(46, 209, 244, 0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}

.run-pro-upgrade-action-secondary {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.045);
}

.run-pro-upgrade-action:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(46, 209, 244, 0.72);
  box-shadow: 0 0 28px rgba(46, 209, 244, 0.18);
}

.run-pro-upgrade-action:disabled {
  cursor: default;
  opacity: 0.62;
}

.run-pro-upgrade-action-title {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
}

.run-pro-upgrade-action-subtitle {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.run-pro-upgrade-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.42rem;
  width: 100%;
  margin: 0.72rem 0 0;
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  transition: background 0.18s ease, color 0.18s ease;
}

.run-pro-upgrade-dismiss:hover {
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.86);
}

.run-pro-upgrade-dismiss-title {
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1.3;
}

.run-pro-upgrade-dismiss-subtitle {
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255,255,255,0.44);
}

.run-pro-upgrade-note {
  margin: 0.82rem 0 0 0;
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  line-height: 1.45;
}

.run-toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483640;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.run-toast {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 42px rgba(0,0,0,0.34);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  pointer-events: auto;
}

.run-toast[data-kind="success"] {
  border-color: rgba(34, 197, 94, 0.34);
}

.run-toast[data-kind="error"] {
  border-color: rgba(248, 113, 113, 0.42);
}

.run-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.72);
}

.run-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: #67e8f9;
  border-radius: 999px;
  animation: run-spin .8s linear infinite;
}

@keyframes run-spin {
  to { transform: rotate(360deg); }
}

@keyframes run-action-border-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 640px) {
  .run-status-grid {
    grid-template-columns: 1fr;
  }

  .run-status-actions {
    justify-content: stretch;
  }

  .run-status-actions .run-btn {
    width: 100%;
  }

  .run-feedback-actions,
  .run-modal-actions {
    flex-direction: column-reverse;
  }

  .run-feedback-actions .run-btn,
  .run-modal-actions .run-btn {
    width: 100%;
  }

  .run-feedback-card,
  .run-modal-card,
  .activity-shoe-editor-modal {
    border-radius: 16px;
    padding: 1.25rem;
  }

  .run-feedback-copy,
  .run-modal-copy {
    padding: 0 0 1rem;
  }

  .activity-shoe-editor-current-card {
    padding: 0 0 1rem;
  }

  .activity-shoe-editor-section {
    padding: 0;
  }

  .activity-shoe-editor-actions {
    flex-direction: column;
  }

  .activity-shoe-editor-btn {
    width: 100%;
  }

  .run-pro-upgrade-backdrop {
    --run-pro-mobile-header-clearance: calc(8.75rem + env(safe-area-inset-top, 0px));
    --run-pro-mobile-bottom-clearance: calc(112px + env(safe-area-inset-bottom, 0px));
    inset: 0;
    box-sizing: border-box;
    place-items: start center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--run-pro-mobile-header-clearance) + 12px) 12px calc(var(--run-pro-mobile-bottom-clearance) + 12px);
  }

  .run-pro-upgrade-card {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - var(--run-pro-mobile-header-clearance) - var(--run-pro-mobile-bottom-clearance) - 24px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 19px;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  @supports (height: 100dvh) {
    .run-pro-upgrade-card {
      max-height: calc(100dvh - var(--run-pro-mobile-header-clearance) - var(--run-pro-mobile-bottom-clearance) - 24px);
    }
  }

  .run-pro-upgrade-head {
    padding-right: 2.4rem;
  }

  .run-pro-upgrade-logo {
    width: min(14.75rem, 61vw);
    height: 3.35rem;
  }

  .run-pro-upgrade-status {
    padding-inline: 0.58rem;
    font-size: 0.66rem;
  }

  .run-pro-upgrade-benefits li {
    font-size: 0.84rem;
  }

  .run-pro-upgrade-actions {
    grid-template-columns: 1fr;
  }
}
