/* W104: both profile doors and the moderator's one-question reply. */
.gm-profile-signin { width: 100%; color: var(--cream); border-color: var(--cream-3); }
[data-signout] { color: var(--cream); border-color: var(--cream-3); box-shadow: none; }
.gm-profile-join:has(.gm-account) .gm-join-gets, .gm-profile-join:has(.gm-account) .gm-join-skip { display: none; }
.gm-signed-in { margin: 12px 0; color: var(--cream-2); }
.gm-welcome { max-width: 640px; padding: 14px 16px; background: var(--ink-2); border: 2px solid var(--ink-3); border-radius: 16px; }
.gm-account .gm-signin-link-error { color: var(--orange-ink); }
.gm-one-item-notice { max-width: 640px; padding: 16px; background: var(--ink-2); border: 2px solid var(--ink-3); border-radius: 20px; scroll-margin-top: 90px; }
.gm-one-item-notice > p { margin: 8px 0 14px; }
.gm-one-item-notice .gm-h2 { margin: 0 0 10px; font-size: 30px; }
.gm-one-item-notice .gm-go { width: 100%; min-height: 52px; height: 52px; }
.gm-one-item-notice .gm-textlink { color: var(--cream); }
.gm-one-post { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gm-one-post img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.gm-one-post h3 { font: 900 23px/1 var(--cond); text-transform: uppercase; }
.gm-one-post p { margin: 6px 0 0; color: var(--cream-2); }
.gm-one-post .gm-money { white-space: nowrap; }
.gm-one-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.gm-one-options .gm-chip { max-width: 100%; white-space: nowrap; }
.gm-one-card { display: flex; gap: 8px; min-width: 0; }
.gm-one-card > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.gm-one-card > span:last-child { flex: none; white-space: nowrap; }
[data-one-answer-form] { display: grid; gap: 10px; }
[data-one-answer-form] .gm-lbl { margin: 0; gap: 4px; }
[data-one-answer-form] .gm-text, [data-one-answer-form] .gm-price-box { height: 48px; min-height: 48px; }
[data-one-answer-form] .gm-field-error:empty { display: none; }
[data-one-answer-form] .gm-lbl .gm-field-error { font: 700 15px/1.3 var(--text); text-transform: none; letter-spacing: normal; padding: 0; }
body.gm [data-one-answer-form] .gm-text[aria-invalid="true"], body.gm [data-one-answer-form] .gm-price-box:has([aria-invalid="true"]) { border-color: var(--orange); }
.gm-one-units { display: flex; align-items: center; gap: 8px; }
.gm-one-units .gm-chip { flex: 1; white-space: nowrap; }
.gm-one-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }
.gm-one-success { border-color: var(--lime); }
.gm-one-compact { padding: 0; border: 0; }
/* The page already clears the fixed header with scroll-padding-top. */
.gm-one-compact.gm-one-answer { padding: 16px; scroll-margin-top: 0; }
.gm-return:has(.gm-return-one-item) { padding: 0; border: 0; background: var(--ink-2); }
.gm-return-one-item .gm-one-item-notice { margin: 0; max-width: none; }
body:has(.gm-view:not([hidden]) .gm-one-item-notice) .gm-add { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: none; }
body[data-view="home"]:has(.gm-return-one-item .gm-one-item-notice:not(.gm-one-success)) .gm-intro .gm-go { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }

#gm-me .gm-level-profile h2 { text-transform: uppercase; }

.gm-one-item-notice .gm-chip { background: transparent; color: var(--cream); border: 2px solid var(--cream-3); border-radius: 999px; min-height: 44px; padding: 8px 12px; font: 900 16px/1 var(--cond); text-transform: uppercase; }
.gm-one-item-notice .gm-chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.gm-one-item-notice .gm-chip:hover { border-color: var(--cream); }
.gm-one-progress { font: 900 20px/1.2 var(--cond); text-transform: uppercase; }
.gm-mine:has(.gm-one-compact) .gm-status, .gm-one-mine > .gm-status { color: var(--cream-2); border-color: var(--ink-3); font: 900 16px/1 var(--cond); text-transform: uppercase; }

/* Closed requests use the same shared rows as neighboring Profile cards. */
.gm-one-mine > .gm-h2 { grid-row: 2; margin: 8px 0; align-self: start; }
.gm-one-mine:has(.gm-one-compact.gm-one-answer:not(.gm-one-success)) > .gm-h2 { display: none; }
.gm-one-mine > .gm-one-compact, .gm-one-mine > .gm-one-done { grid-row: 3; align-self: start; margin: 0; }
.gm-one-done { min-height: 44px; display: flex; align-items: center; }
.gm-mine:has(.gm-one-compact.gm-one-answer) { grid-column: 1 / -1; grid-row: auto; display: block; }
/* Keep one primary action when more than one moderator request is open. */
.gm-view:has(.gm-one-active) .gm-one-item-notice:not(.gm-one-active) .gm-go { background: transparent; color: var(--cream); border-color: var(--cream-3); outline: none; box-shadow: none; }

/* Review outcomes sit beside open requests, with one next action. */
.gm-notices li { background: var(--ink-2); color: var(--cream); border: 2px solid var(--ink-3); font: 400 16px/1.4 var(--text); }
.gm-notices a { color: inherit; }
.gm-notices li:is([data-notice="approved"],[data-notice="price_approved"],[data-notice="price_line"],[data-notice="group_plan"]) { border-color: var(--lime); }
.gm-notices li > p { margin: 0; }
.gm-notices [data-primary] > .gm-go { margin-top: 12px; color: var(--ink); white-space: nowrap; }
body:has(.gm-notices-primary) .gm-add { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: none; }
.gm-return-one-item > .gm-return-lines { padding: 0 16px 12px; margin-top: 0; }
.gm-return-one-item > .gm-return-lines li + li { border-color: var(--ink-3); }
.gm-return-one-item > .gm-return-lines p { margin: 8px 0 0; font: 400 16px/1.4 var(--text); }
.gm-return-one-item > .gm-return-lines .gm-textlink { display: inline-flex; text-decoration: underline; }
.gm-mine > .gm-status { font: 900 16px/1 var(--cond); text-transform: uppercase; }

.gm-find:has(#gm-correct) .gm-next .gm-go { background: transparent; color: var(--cream); border-color: var(--cream-3); box-shadow: none; }
body:has(#gm-correct) .gm-add { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: none; }
#gm-me .gm-profile-edit > summary h3 { font: 900 18px/1.2 var(--cond); text-transform: uppercase; }
.gm-return:has(.gm-return-review) { background: var(--ink-2); color: var(--cream); border-color: var(--ink-3); box-shadow: none; }
.gm-return:has(.gm-return-review.is-earned) { border-color: var(--lime); }
.gm-return .gm-return-review { grid-template-columns: minmax(0,1fr); }
.gm-return-review + .gm-return-lines { font: 400 16px/1.4 var(--text); }
.gm-return-review + .gm-return-lines a { text-decoration: underline; }
.gm-return:has(.gm-return-review) :focus-visible { outline-color: var(--cream); }
.gm-return-review + .gm-return-lines [data-primary] { padding-bottom: 12px; }
.gm-return-review + .gm-return-lines [data-primary] > p { margin: 0 0 12px; }
.gm-return-review + .gm-return-lines .gm-go { justify-content: center; padding: 12px 16px; white-space: nowrap; text-decoration: none; }
body[data-view="home"]:has(.gm-return:not([hidden]) .gm-return-review.is-open) .gm-intro .gm-go { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
body[data-view="home"]:has(.gm-return:not([hidden]) .gm-return-review.is-open) .gm-add { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: none; }

#gm-correct .gm-correct-fields { display: grid; gap: 16px; }
#gm-correct .gm-lbl { line-height: 1.3; gap: 8px; }
#gm-correct .gm-go { white-space: nowrap; }
.gm-mine .gm-card-price .gm-money { white-space: nowrap; overflow-wrap: normal; }
.gm-mine .gm-card .gm-card-pricerow { flex-wrap: wrap; }
.gm-mine .gm-card .gm-card-pricerow .gm-evidence { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; overflow: visible; }
.gm-mine .gm-card .gm-ev { white-space: nowrap; }

/* W107: the correction is the first task, with each hint directly under its field. */
#gm-correct { scroll-margin-top: var(--gm-fix-context, 120px); }
.gm-fix-panel { margin: 12px 0 18px; padding: 16px; }
.gm-fix-panel h2 { font: 900 30px/1 var(--cond); text-transform: uppercase; margin: 0 0 12px; }
.gm-fix-panel .gm-fix-note, .gm-fix-panel .gm-fix-once, .gm-withdraw p { font: 400 15px/1.35 var(--text); margin: 8px 0; }
#gm-correct .gm-correct-fields { gap: 12px; }
.gm-fix-field { min-width: 0; }
#gm-correct .gm-fix-field .gm-lbl { margin-bottom: 8px; }
.gm-fix-field .gm-text { width: 100%; }
.gm-fix-field.is-flagged .gm-text, .gm-fix-field.is-flagged .gm-own-photo { border-color: var(--orange); }
.gm-fix-field .gm-fix-help { font: 600 14px/1.3 var(--text); margin: 6px 0 0; color: var(--cream-2); }
.gm-fix-field.is-flagged:not(.has-error) .gm-fix-help { color: var(--orange); }
.gm-fix-field .gm-field-error { margin: 6px 0 0; padding: 0; }
.gm-fix-other { margin: 4px 0; }
.gm-fix-other summary { cursor: pointer; min-height: 44px; }
.gm-withdraw { margin-top: 8px; }
.gm-withdraw .gm-textlink { color: inherit; }
.gm-withdraw-actions { display: flex; gap: 24px; align-items: center; }
#gm-correct .gm-ready, #gm-correct .gm-own-photo > span { display: none; }
#gm-correct .gm-own-photo { min-height: 64px; padding: 12px; }
#gm-correct .gm-own-photo-done { margin: 0; }
#gm-correct .gm-field-error:empty { display: none; }
.gm-return-review + .gm-return-lines { margin-bottom: 0; }
.gm-return-review + .gm-return-lines [data-primary]:last-child { padding-bottom: 0; }
.gm-return:has(.gm-return-review) { padding-bottom: 16px; }
.gm-find:has(.gm-fix-panel) .gm-find-visual { align-self: start; }
.gm-fix-panel { gap: 8px; }
.gm-fix-panel h2 { margin-bottom: 4px; }
.gm-fix-panel .gm-fix-note { margin: 4px 0; }
.gm-fix-panel .gm-fix-once { margin: 0; }
/* The page scrolls; Send stays above the tab bar only within its panel. */
.gm-fix-send { position: sticky; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 6; display: grid; gap: 8px; padding: 12px 0 4px; background: var(--ink-2); border-top: 2px solid var(--cream-3); }
@media (min-width: 960px) { .gm-fix-send { bottom: 16px; } }
.gm-fix-field { scroll-margin-bottom: 230px; }
/* Script focus on "Keep it" is not a selection: the post about to be removed never takes the lime ring. */
body.gm .gm-card:has(.gm-withdraw :focus):not(:has(:focus-visible)) { outline: none; }
.gm-own-photo.gm-cap { background: transparent; border-color: var(--cream-3); color: var(--cream); }
.gm-own-photo.gm-cap > span { color: var(--cream-2); }
.gm-own-photo.gm-cap:hover { border-color: var(--cream); }
.gm-own-photo-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.gm-mine .gm-card-foot { flex-wrap: wrap; }
.gm-mine .gm-card-foot > .gm-withdraw { flex-basis: 100%; border-top: 2px solid var(--cream-2); padding-top: 8px; margin-top: 8px; }
