#app-loading {
  place-items: center;
  align-content: center;
  background: radial-gradient(ellipse at bottom right, #ffe7cf, transparent 32%), #fffaf3;
  font-weight: 600;
}
#app-loading::before, #app-loading::after { content: none; }
#app-loading img { width: 76px; height: 76px; }
#app-loading strong { font-size: 28px; }
#app-loading em, .ks-brand em { color: #b55218; font-style: normal; }
.ks-spinner {
  display: block;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  margin: 8px auto;
  border: 4px solid #18384e;
  border-left-color: #ef832f;
  border-top-color: #ef832f;
  border-radius: 50%;
  animation: ks-turn .85s linear infinite;
}
@keyframes ks-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ks-spinner { animation: none; } }
#appTiles .discovery-loading { min-height: 0; padding: 4px 0 8px; gap: 5px; display: grid; justify-items: center; }
#appTiles .ks-placeholder { display: grid; align-content: center; justify-items: center; gap: 7px; pointer-events: none; }
.ks-placeholder i, .ks-placeholder b { background: #e6e7e8; border-radius: 7px; }
.ks-placeholder i { width: 38px; height: 38px; }
.ks-placeholder b { width: 60%; height: 6px; }
#more { padding-top: 16px; }
#more .support-heading { display: block; min-height: 0; margin: 0 0 12px; }
#more .support-heading .more-title { max-width: none; }
.ks-brand { display: flex; align-items: center; gap: .28em; margin-bottom: 10px; font-weight: 700; }
.ks-brand img { width: 30px; height: 30px; margin-right: 5px; }
#more .more-menu { display: grid; gap: 0; margin: 0; padding-inline: 16px; background: white; border: 1px solid #dfddd8; border-radius: 16px; }
#more .more-menu > button, #more .ks-contact { text-align: left; padding: 14px 0; background: white; border: 0; box-shadow: none; border-bottom: 1px solid #e9e6e1; border-radius: 0; }
#more .more-menu > button {
  min-height: 46px;
  padding: 9px 28px 9px 0 !important;
}
#more .more-menu > button::after { right: 0; top: 50%; transform: translateY(-50%); }
#more .ks-contact { border-bottom: none; padding: 10px 0 3px; }
#more .ks-contact span, #more .ks-contact a { display: block; }
#more .ks-contact a { min-height: 44px; margin: 0; padding: 8px 0 !important; font-size: 16px; box-shadow: none; background: none; border: 0; overflow-wrap: anywhere; text-decoration: underline; }
#boostApp, #moreLogout {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  margin: 12px 0;
  background: #ff913e;
  color: #102e45;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
}
#boostApp:active { background: #f48530; }
.account-tools { display: grid; gap: 10px; text-align: center; }
.workflow-dialog.feature-check:has(.ks-spinner), .workflow-dialog.review-progress { text-align: center; }
.workflow-dialog.review-progress .panel-scroll { padding: 22px; }
.workflow-dialog.review-progress .panel-scroll h2 { margin: 8px 0; }
.workflow-dialog.validation .screenshot-reference-art { display: none; }
.workflow-dialog.validation .screenshot-reference-picker { min-height: 58px; }
.workflow-overlay .workflow-dialog[hidden] { display: none !important; }
.workflow-dialog.review-progress { position: relative; padding-top: 20px; }
.workflow-dialog.review-progress > .workflow-close { position: absolute; top: 12px; right: 12px; }
.workflow-dialog.review-progress .panel-scroll { padding-top: 30px; }
/* Keep the selectable part of the bar above the home indicator. */
body .footer {
  --tab-bar-height: 56px;
  box-sizing: border-box;
  bottom: 0 !important;
  height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0px)) !important;
  padding: 0 4px env(safe-area-inset-bottom, 0px) !important;
  background: #102e45 !important;
  border-radius: 0 !important;
}
body .footer::after { content: none; }
body .shell { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important; }
body .footer button, body .footer button.active {
  height: 46px !important;
  min-height: 44px;
  padding: 0;
  gap: 2px;
  background: transparent !important;
  color: #d9e3eb !important;
}
body .footer button.active { color: #fff !important; }
body .footer button > svg {
  display: block;
  box-sizing: content-box;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 2px 8px;
  border-radius: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
body .footer button.active > svg { color: #102e45; background: #ffab73; stroke-width: 2.25; }
body .footer button > span { font-size: 12px !important; line-height: 1.1 !important; }
body .footer button.active > span { font-weight: 700; }
body .footer button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.workflow-overlay:has(.review-progress), .workflow-overlay:has(.feature-check .ks-spinner) {
  align-items: center; justify-content: center; padding: 22px;
}
.workflow-overlay .workflow-dialog.review-progress, .workflow-overlay .workflow-dialog.feature-check:has(.ks-spinner) {
  height: auto; min-height: 0; max-height: calc(100dvh - 44px); max-width: 390px; margin: auto;
  padding: 30px 22px; border-radius: 22px; align-self: center;
}
.workflow-dialog.review-progress .panel-scroll, .workflow-dialog.feature-check:has(.ks-spinner) .panel-scroll {
  height: auto; min-height: 0; flex: none; padding: 4px;
}
.workflow-dialog.feature-check:has(.ks-spinner) { display: grid; justify-items: center; }
.workflow-dialog.feature-check:has(.ks-spinner) .panel-header, .workflow-dialog.feature-check:has(.ks-spinner) .panel-scroll { display: contents; }
.workflow-dialog.feature-check:has(.ks-spinner) .ks-spinner { order: -1; }
.workflow-dialog.feature-check:has(.ks-spinner) .workflow-close { position: absolute; inset: 8px 8px auto auto; }
.workflow-dialog.feature-check:has(.ks-spinner) h2, .workflow-dialog.review-progress h2 { font-size: 25px; text-align: center; padding: 0; margin: 12px 8px 4px; }
.workflow-dialog.feature-check:has(.ks-spinner) p, .workflow-dialog.review-progress p { margin: 8px 0; }
/* Reserve the loading line when sizing cards so all nine keep their final dimensions. */
#appTiles { --discovery-status-space: 78px; }
#appTiles .discovery-loading { height: 68px; box-sizing: border-box; align-content: center; }
#appTiles .discovery-loading .ks-spinner { width: 27px; height: 27px; margin: 0; }
#more .ks-contact a::after { content: none; }


#moreLogout { margin: 0; background: #102e45; color: #fff; }
.profile-back { display:inline-flex; align-items:center; min-height:44px; border:0; background:transparent; padding:0 8px 0 0; color:#15364d; font:inherit; font-weight:650; }
#history .reviewed-app-icon { flex:0 0 42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:11px; background:#fff4e9; color:#15364d; font-weight:700; }
#history .reviewed-app-icon img { width:100%;height:100%;object-fit:contain; }
#more .account-tools { width:100%; margin:0; padding:0; }
.workflow-dialog.intro .workflow-logo { width:64px; height:64px; object-fit:contain; margin:8px auto; }

.validation label.upload-step { position:relative; display:flex; flex-wrap:nowrap; align-items:center; gap:12px; min-height:64px; padding:10px 13px; border:1px solid #dedbd8; border-radius:16px; }
.validation label.upload-step.ready { background:#fff5ed; border-color:#f5ad80; box-shadow:0 0 0 3px #ff9b581c,0 3px 14px #f5784033; cursor:pointer; }
.validation label.upload-step input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:inherit; }
.validation label.upload-step:focus-within { outline:2px solid #17384e; }
.validation .upload-step strong,.validation .upload-step small { display:block; }
.validation .upload-step:not(.ready) .try-chevron { visibility:hidden; }
.validation #fileStatus:empty,.validation #reviewError:empty { display:none; }
@media(max-height:850px){
 .workflow-dialog.validation .panel-scroll { padding:8px 16px; }
 .workflow-dialog.validation .workflow-step,.workflow-dialog.validation #tryApp.try-app-card { margin:6px 0; min-height:64px; padding:8px 12px; }
 .workflow-dialog.validation .review-app-icon { width:42px;height:42px; margin:0 auto; }
 .workflow-dialog.validation .workflow-step p { margin:2px 0; }
}

.submission-app-icon { width:56px;height:56px;border-radius:13px;overflow:hidden;margin:0 auto 8px; }
.validation .upload-step .content strong,.validation .upload-step .content small { grid-column:2;text-align:left; }
@media(max-height:760px) {
 .workflow-dialog.validation #workflow-title { margin:6px 0; font-size:24px; }
 .workflow-dialog.validation .panel-scroll>p { margin:2px auto 6px; }
 .workflow-dialog.validation .workflow-step .content { grid-template-columns:36px minmax(0,1fr); gap:2px 8px; }
 .workflow-dialog.validation .step-icon { width:36px;height:40px; }
 .workflow-dialog.validation .step-icon img { max-width:32px;max-height:32px; }
 .workflow-dialog.validation .panel-scroll .workflow-step { align-items:center; }
 .workflow-dialog.validation #fileStatus { font-size:12px; }
}

@media(max-height:620px) {
 .workflow-dialog.validation #workflow-title + p { display:none; }
 .workflow-dialog.validation .panel-scroll { padding:4px 10px; }
 .workflow-dialog.validation .review-app-icon { width:32px;height:32px; }
 .workflow-dialog.validation .panel-scroll .workflow-step,
 .workflow-dialog.validation #tryApp.try-app-card { margin:4px 0; padding:5px 8px; gap:6px; min-height:54px; }
 .workflow-dialog.validation .workflow-step .content { display:block; }
 .workflow-dialog.validation .workflow-step .step-icon { display:none; }
 .workflow-dialog.validation .workflow-step p { font-size:13px;line-height:1.25; }
}

.workflow-dialog.validation .review-steps {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-auto-rows:1fr;
  gap:6px;
}
.workflow-dialog.validation .review-steps > .workflow-step,
.workflow-dialog.validation .review-steps > #tryApp.try-app-card {
  box-sizing:border-box;
  grid-column:1;
  width:100%;
  margin:0;
  align-items:center;
}
.workflow-dialog.validation .review-steps > :is(#tryApp.store-opened, .workflow-step:not(.try-app-card,.upload-step)) {
  background:linear-gradient(110deg,#fff4ee,#fff8f5);
  border-color:transparent;
  box-shadow:none;
}
.workflow-dialog.validation .review-steps > #tryApp.store-opened .try-chevron { visibility:hidden; }
.workflow-dialog.validation .review-steps .content { min-width:0; }
.workflow-dialog.validation .upload-step .content strong {
  font-size:17px;
  margin:0 0 5px;
}
.workflow-dialog.validation .upload-step .content small {
  color:#626e7d;
  font-size:14px;
  line-height:1.4;
}
@media(max-height:620px) {
  .workflow-dialog.validation .review-steps { gap:4px; }
  .workflow-dialog.validation .upload-step .content small { font-size:13px;line-height:1.25; }
}

#history .submitted-review-row {
  width:100%;
  border:1px solid #ede7e1;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
#history .submitted-review-row:focus-visible { outline:2px solid #17384e; outline-offset:2px; }
#history .submitted-review-row strong { overflow-wrap:anywhere; }
#history .review-row-chevron { flex:none; color:#b95526; font-size:23px; line-height:1; }
.submitted-review .submitted-review-summary { text-align:center; margin:0 0 12px; }
.workflow-dialog.validation #fileStatus:not(:empty) {
  width:fit-content;
  margin:8px auto;
  border-radius:9px;
  padding:6px 12px;
  background:#153850;
  color:white;
  font-size:13px;
  font-weight:650;
}
@media (max-height:700px) {
  .workflow-dialog.validation .review-steps { gap:4px; }
  .workflow-dialog.validation #fileStatus:not(:empty) { margin-block:4px; padding-block:4px; }
}

#toast.show {
  left:50%; top:50%; bottom:auto; transform:translate(-50%,-50%);
  width:max-content; max-width:min(86vw,360px); box-sizing:border-box; pointer-events:none;
}
.workflow-dialog.validation .panel-scroll { display:flex; flex-direction:column; }
.workflow-dialog.validation .panel-scroll > * { flex:none; }
.workflow-dialog.validation .panel-scroll > #fileStatus:not(:empty) {
  margin:auto; align-self:center;
}
.workflow-dialog.validation .review-steps { margin-bottom:4px; }
.proof-area .workflow-image[hidden] { display:none; }
:is(#incomingReviews,#betaInbox,#betaHistory) .review-row {
  display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px;
}
:is(#incomingReviews,#betaInbox,#betaHistory) .own-app-icon {
  width:42px; height:42px; display:grid; place-items:center; border-radius:11px;
  overflow:hidden; background:#fff4e9; color:#15364d; font-weight:700;
}
:is(#incomingReviews,#betaInbox,#betaHistory) .incoming-review-copy { min-width:0; overflow-wrap:anywhere; }
:is(#incomingReviews,#betaInbox,#betaHistory) .review-row button { max-width:100%; }
@media(max-width:350px) {
  :is(#incomingReviews,#betaInbox,#betaHistory) .review-row { grid-template-columns:36px minmax(0,1fr) minmax(66px,28%); gap:7px; }
  :is(#incomingReviews,#betaInbox,#betaHistory) .own-app-icon { width:36px; height:36px; }
}

.workflow-dialog.validation .review-steps {grid-auto-rows:auto}
.validation .review-inputs {grid-column:1/-1;min-width:0;width:100%;text-align:left;font-size:14px}
.review-inputs fieldset {border:0;margin:0 0 6px;padding:0;min-width:0}
.review-inputs legend,.review-inputs>label {font-weight:700}
.rating-options {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.rating-options label {position:relative;cursor:pointer}
.rating-options input {position:absolute;opacity:0}
.rating-options span {display:grid;place-content:center;text-align:center;min-height:44px;background:white;border:1px solid #dacfc6;border-radius:9px;font-weight:700}
.rating-options small {color:#ac571c;font:clamp(8px,2.7vw,13px)/1.1 sans-serif}
.rating-options input:checked+span {background:#ffebdc;border-color:#d67536}
.rating-options input:focus-visible+span {outline:2px solid #16344f}
.review-inputs textarea {display:block;box-sizing:border-box;width:100%;padding:8px;font:inherit;font-size:16px;border:1px solid #dacfc6;border-radius:9px;resize:vertical}
.rating-count {display:flex;justify-content:space-between;color:#566778;font-size:12px;margin-top:3px}

.validation .workflow-step:has(.review-inputs) {flex-wrap:wrap}
.validation .review-inputs {flex:0 0 100%}

.developer-feedback {box-sizing:border-box;width:min(94vw,480px);max-height:94dvh;overflow:auto;margin:auto;padding:clamp(16px,5vw,26px);color:#17344e;border:0;border-radius:22px;background:white;font:inherit;text-align:left}
.developer-feedback::backdrop {background:#132e45a8}
.developer-feedback header {display:flex;gap:12px;align-items:center;padding-right:38px}
.developer-icon,.developer-icon img {width:50px;height:50px;border-radius:10px;object-fit:cover}
.developer-feedback header strong {font-size:20px}
.developer-stars {color:#a35326}
.developer-feedback h2 {font-size:clamp(22px,6vw,28px);margin:16px 0 8px}
.developer-feedback p {line-height:1.45}
.developer-contact {padding:11px 13px;background:#fff4eb;border:1px solid #f0ddcf;border-radius:12px}
.developer-contact b {display:block;overflow-wrap:anywhere}
.developer-feedback form {margin-top:13px}
.developer-feedback label {font-weight:700}
.developer-feedback textarea {width:100%;box-sizing:border-box;display:block;margin:6px 0;padding:12px;border-radius:12px;border:1px solid #d9cfc7;font:inherit;font-size:16px;resize:vertical}
.developer-feedback [role=status]:empty {display:none}
.developer-feedback .workflow-button {border-radius:999px}

#toast.show.member-success,
.workflow-dialog.validation .panel-scroll > #fileStatus.member-success:not(:empty) {
  display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:12px;
  width:min(86vw,360px); max-width:100%; box-sizing:border-box;
  background:#fff; color:#18344a; border:1px solid #e6ae83; border-radius:16px;
  padding:14px; text-align:left; font:650 15px/1.4 Outfit,Arial,sans-serif;
  box-shadow:0 4px 18px #17384e12; overflow-wrap:anywhere;
}
.member-success::before {
  content:""; display:block; width:30px; height:30px; border-radius:50%;
  background:#fcf4eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-12' fill='none' stroke='%2397582c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat;
}

.workflow-overlay:has(.review-progress) {
 background:rgba(16,39,58,.66); padding:clamp(12px,5.5vw,22px);
}
.workflow-overlay .workflow-dialog.review-progress {
 box-sizing:border-box; width:100%; max-width:390px; min-height:min(300px,calc(100dvh - 44px));
 background:#fff; border:2px solid #17344d; border-radius:22px; color:#142e48;
 display:flex; justify-content:center; padding:28px 18px;
}
.workflow-dialog.review-progress .panel-scroll {
 display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:4px;
}
.workflow-dialog.review-progress .submission-app-icon {
 width:84px; height:84px; max-width:100%; margin:0; border:0; box-shadow:none;
 border-radius:18px; display:grid; place-items:center; font-size:32px; font-weight:700;
}
.workflow-dialog.review-progress .ks-spinner { width:19px; height:19px; margin:0; }
.workflow-dialog.review-progress .panel-scroll h2 { margin:4px 0 0; font-size:clamp(23px,7vw,28px); line-height:1.12; text-wrap:balance; }
.workflow-dialog.review-progress .panel-scroll p { margin:0; max-width:28ch; font-size:16px; line-height:1.45; color:#596779; text-wrap:balance; }
.workflow-dialog.review-progress > .workflow-close { inset:8px 8px auto auto; z-index:1; }

.workflow-dialog.review-progress .panel-scroll .install-reminder {
 display:block;
 margin-top:.25em; max-width:35ch; font-size:14px; line-height:1.4;
 color:#18344a; text-align:center; text-wrap:balance;
}
.install-reminder .clock-icon {
 display:block; position:relative; margin:0 auto .4em;
 width:1em; height:1em; box-sizing:border-box;
 border:1.5px solid #ce7339; border-radius:50%;
}
.install-reminder .clock-icon::after {
 content:""; position:absolute; left:45%; top:17%; height:36%; width:26%;
 border-left:1px solid #ce7339; border-bottom:1px solid #ce7339;
}
