/* The member keeps their place in AppHub while completing either sheet. */
.workflow-overlay:has(> .validation) {
  align-items: end;
  justify-items: center;
  justify-content: center;
  padding: 0;
}
.workflow-overlay .workflow-dialog.validation,
dialog.rating-issue-page[open] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  height: auto;
  max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: white;
  color: #172f48;
  box-shadow: 0 -8px 30px #152c401c;
  overflow: hidden;
}
.workflow-overlay .workflow-dialog.validation { align-self: end; margin: 0 auto; }
.workflow-dialog.validation::before,
.rating-issue-page::before {
  content: "";
  display: block;
  flex: none;
  width: 38px;
  height: 4px;
  margin: 9px auto 7px;
  border-radius: 4px;
  background: #c8d0d5;
}
.workflow-dialog.validation .panel-header,
.rating-issue-page .issue-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  min-height: 40px;
  border: 0;
  background: white;
  text-align: start;
}
.workflow-dialog.validation .panel-header .review-identity,
.rating-issue-page .issue-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.workflow-dialog.validation .review-app-icon,
.rating-issue-page .review-app-icon {
  width: 30px; height: 30px; flex: none; margin: 0; border-radius: 7px; overflow: hidden; font-size: 18px;
}
.rating-issue-page .review-app-icon img { width: 100%; height: 100%; object-fit: contain; }
.rating-issue-page .issue-brand strong { overflow-wrap: anywhere; }
.workflow-dialog.validation .panel-header .workflow-close,
.rating-issue-page .issue-header [data-close] {
  position: relative;
  inset: auto;
  transform: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #193349;
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.validation .workflow-close::after,.issue-header [data-close]::after,
.validation .review-issue-button::after { content: ""; position: absolute; inset: -5px; }
.workflow-dialog.validation .review-issue-button {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  width: auto; min-width: 0; min-height: 32px; height: auto; padding: 0 2px; margin: 0;
  border: 0; background: white; color: inherit; font: inherit; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.workflow-dialog.validation .review-issue-button svg { width: 13px; height: 13px; }
.workflow-dialog.validation .panel-scroll,
.rating-issue-page main {
  padding: 3px 20px 0;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.workflow-dialog.validation #workflow-title,.rating-issue-page h1 {
  margin: 5px 0 4px; font-size: 26px; line-height: 1.12; letter-spacing: -.02em;
}
.workflow-dialog.validation {
  --step-divider: #d5dbdf;
  --step-number: 24px;
  --step-icon: 25px;
  --step-gap: 8px;
}
.workflow-dialog.validation .review-steps > :is(#tryApp.try-app-card,.workflow-step) { padding-inline: 0; }
.workflow-dialog.validation .review-steps .number { width: 24px; height: 24px; font-size: 16px; }
.workflow-dialog.validation .submission-copy { border: 0; padding: 0; }
.workflow-dialog.validation #appFeedback {
  box-sizing: border-box; height: calc(106px - 1.3em); min-height: calc(106px - 1.3em); padding: 8px 10px;
  border: 1px solid #c9d1d7; border-radius: 9px; font-size: 16px; resize: vertical;
}
.workflow-dialog.validation .review-upload-slot { box-sizing: border-box; width: 100%; min-height: 38px; }
.workflow-dialog.validation .panel-actions,.rating-issue-page .issue-actions {
  flex: none; display: block; background: white;
  padding: 9px 20px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #dce1e4;
}
.workflow-dialog.validation .panel-actions .review-remaining { margin: 0 0 8px; }
body:has(.rating-issue-page[open]) .workflow-overlay { visibility: hidden; }
dialog.rating-issue-page[open] { max-width: 430px; position: fixed; inset: auto 0 0; margin: 0 auto; font-family: inherit; }
.rating-issue-page::backdrop { background: rgba(15,34,51,.64); }
.rating-issue-page main > p { margin: 5px 0 7px; color: #526177; font-size: 15px; line-height: 1.4; }
.rating-issue-page form { display: block; margin: 0; }
.rating-issue-page .issue-step { margin: 0; border: 0; padding: 10px 0; border-radius: 0; background: white; }
.rating-issue-page .issue-step + .issue-step { border-top: 1px solid #d5dbdf; }
.rating-issue-page .issue-heading,.issue-step > label:first-child {
  display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.2; font-weight: 700;
}
.issue-step b {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border-radius: 50%; background: #ec8a48; color: white; font-size: 16px;
}
.issue-choices { margin-top: 5px; }
.issue-choices label {
  display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 3px;
  box-sizing: border-box; font-size: 15px; line-height: 1.25; cursor: pointer;
}
.issue-choices label + label { border-top: 1px solid #e1e4e7; }
.issue-choices input[type=radio] { appearance: auto; flex: none; width: 16px; height: 16px; margin: 0; accent-color: #18344c; }
.issue-step textarea {
  box-sizing: border-box; display: block; width: 100%; min-height: 48px; height: 48px; resize: vertical;
  margin-top: 6px; padding: 7px 10px; font: inherit; font-size: 16px; color: inherit; background: white;
  border: 1px solid #c9d1d7; border-radius: 9px;
}
.issue-count { display: flex; justify-content: space-between; margin-top: 4px; color: #526177; font-size: 12px; }
.issue-hint { margin: 5px 0 6px 32px; color: #526177; font-size: 13px; }
.rating-issue-page .issue-drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 2px 8px; box-sizing: border-box; border: 1px dashed #8c9bb1; border-radius: 7px;
}
.issue-drop span { font-size: 24px; line-height: 1; }
.issue-drop small { overflow-wrap: anywhere; max-width: 75%; }
.issue-drop small:empty { display: none; }
.issue-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.issue-drop:focus-within { outline: 2px solid #387dc0; }
.rating-issue-page .issue-send {
  width: 100%; min-height: 44px; padding: 5px 12px; border: 0; border-radius: 9px;
  background: #ff9a45; color: inherit; font-family: inherit; font-weight: 700; font-size: 18px; cursor: pointer;
}
.rating-issue-page .issue-send:disabled { background: #f8cfae; color: #706976; opacity: 1; }
.rating-issue-page [role=alert] { margin: 2px 0 8px; color: #912f23; }
.rating-issue-page [role=alert]:empty { display: none; }
.rating-issue-page .issue-draft { margin: 5px 0 0; text-align: center; color: #526177; font-size: 13px; }

.workflow-dialog.validation .review-steps > .upload-step[hidden],
.workflow-dialog.validation .inline-feedback-context[hidden] { display: none; }
.workflow-dialog.validation .inline-feedback-context {
  margin: 4px 0 10px; color: #526177; font-size: 14px; line-height: 1.35;
}
.workflow-dialog.validation .inline-feedback-context p { margin: 2px 0; text-align: left; }
.workflow-dialog.validation .inline-feedback-context .developer-contact { overflow-wrap: anywhere; }
