.mottion-web-shell {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 20px 24px;
  box-sizing: border-box;
  background: #edf2ef;
}
.mottion-web-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dce5df;
  border-radius: 20px;
  background: #f9fafb;
  box-shadow: 0 12px 48px #103b2310;
}
.mottion-web-shell[data-layout="detail"] .mottion-web-frame { max-width: 880px; }
.mottion-web-shell[data-layout="auth"] { padding: 0; background: #0d7a3c; }
.mottion-web-shell[data-layout="auth"] .mottion-web-frame { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.mottion-web-frame :is(a, button, [role="button"], input, textarea, select):focus-visible { outline: 2px solid #179e56; outline-offset: 3px; }
@media (max-width: 767px) {
  .mottion-web-shell { padding: 0; }
  .mottion-web-frame { border: 0; border-radius: 0; box-shadow: none; }
}

/* In-flow promotion stays visible without covering forms or mobile navigation. */
.mottion-install { flex-shrink: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #dce9df; background: #f4fbf6; color: #173d28; font: 14px/1.5 system-ui, sans-serif; }
.mottion-install-icon { border-radius: 10px; }
.mottion-install-copy strong { display: block; font-size: 16px; }
.mottion-install-copy p { margin: 2px 0 0; color: #4b6153; }
.mottion-install-actions { display: flex; gap: 8px; align-items: center; }
.mottion-install button { cursor: pointer; font: inherit; min-height: 40px; border-radius: 9px; }
.mottion-install-primary { border: 0; padding: 8px 18px; font-weight: 600 !important; background: #0d7a3c; color: white; }
.mottion-install button:disabled { cursor: progress; opacity: .65; }
.mottion-install-close { border: 0; width: 40px; font-size: 26px !important; background: transparent; color: #365542; }
.mottion-install-close:hover { background: #e3f1e7; }
.mottion-install-details { grid-column: 1 / -1; padding: 12px 0 2px; border-top: 1px solid #dce9df; max-height: min(40vh, 280px); overflow-y: auto; }
.mottion-install-details ol { margin: 10px 0 14px; padding-left: 22px; }
.mottion-install-details li { margin: 5px 0; }
.mottion-install-done { padding: 8px 18px; border: 1px solid #9ebba8; background: white; color: #173d28; }
@media (max-width: 540px) {
  .mottion-install { gap: 10px; padding: 12px 14px; grid-template-columns: 36px minmax(0, 1fr) auto; }
  .mottion-install-icon { width: 36px; height: 36px; }
  .mottion-install-copy p { font-size: 13px; }
  .mottion-install-actions { flex-direction: column-reverse; gap: 4px; }
  .mottion-install-primary { padding: 6px 12px; }
}
