/* Scoped to the shared review surfaces; Feed and profile cards retain their layouts. */
@media(max-width:760px){
 .gg-reviews{min-width:0;margin-top:20px}
 .gg-reviews-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px}
 .cg .gg-reviews-heading h2{font:600 18px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.025em;margin:0}
 .cg .gg-review-summary{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;line-height:1.5;color:#53692b}
 .gg-review-summary strong{font-weight:600}.gg-review-summary .gallery-review-total{color:#68705f}.gg-review-summary .gallery-stars{--star-size:13px}
 .gg-review .gallery-stars{--star-size:14px}.gg-review .gallery-stars,.gg-review-summary .gallery-stars{display:inline-flex;align-items:center;gap:1px;height:var(--star-size);color:#53692b;vertical-align:middle}
 .gg-review .gallery-star,.gg-review-summary .gallery-star{position:relative;display:block;flex:none;width:var(--star-size);height:var(--star-size)}
 .gg-review .gallery-star svg,.gg-review-summary .gallery-star svg{display:block;width:var(--star-size);height:var(--star-size);max-width:none}
 .gg-review .gallery-star-fill,.gg-review-summary .gallery-star-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;height:var(--star-size)}
 .gg-review .gallery-star-fill svg,.gg-review-summary .gallery-star-fill svg{fill:currentColor}
 .cg .gg-review{min-width:0;padding:10px 0;margin:0;border:0;border-bottom:1px solid #e1e5db;background:transparent;border-radius:0}
 .cg .gg-review:first-of-type{padding-top:0}.cg .gg-review:last-of-type{border-bottom:0}
 .cg .gg-review .gg-review-author{display:flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:0;margin:0 0 3px;background:none;border:0;border-radius:0;text-align:left;color:#53692b;font:400 13px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
 .gg-review-username{overflow-wrap:anywhere;min-width:0}.gg-review-you{font-size:11px;color:#68705f}
 .gg-review-avatar{position:relative;display:block;flex:none;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#e9ede3;color:#77806a}
 .gg-review-avatar>svg,.gg-review-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 .gg-review-author:focus-visible{outline:2px solid #53692b;outline-offset:3px}
 .gg-review>.gallery-stars{margin:0 0 6px}.cg .gg-review .review-quotation{margin:0;font:400 17px/1.5 Georgia,serif;overflow-wrap:anywhere}
 .cg .gg-review .review-expand{min-height:0;padding:6px 0 0;margin:0;line-height:1.4}
 .gg-review-return{margin-bottom:12px}
}

@media(max-width:760px){.gallery-review-content>.gg-reviews{margin-top:0}}

/* A shared mobile writing surface, with the original publication flows intact. */
@media(max-width:760px){
 dialog.cg-review-editor{box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#fafbf7}
 .cg-review-editor>.cg{height:100%;min-height:0;display:flex;flex-direction:column;padding:0}
 .cg-review-editor>.cg>.cg-primary-nav,.cg-review-editor .cg-top,.cg-review-editor .cg-tabs,.cg-review-editor .cg-dialog-intro{display:none}
 .cg-review-editor .review-editor-page{padding:0;margin:0;min-height:0;flex:1;overflow:auto;max-width:none;overscroll-behavior:contain}
 .cg .review-editor-header{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:3;min-height:56px;padding:6px 12px;box-sizing:border-box;background:#fafbf7f5;backdrop-filter:blur(12px);border-bottom:1px solid #e0e4da}
 .cg .review-editor-header h1{font:600 20px/1.25 system-ui,sans-serif;margin:0}
 .cg .review-editor-back{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:10px;background:none;border:0;border-radius:50%;color:#536b30}
 .review-editor-back svg{width:23px;height:23px}
 .review-editor-content{padding:20px 20px max(24px,env(safe-area-inset-bottom))}
 .review-editor-show{display:flex;gap:12px;align-items:center;padding:0 0 20px;border-bottom:1px solid #e0e4da;margin-bottom:20px;min-width:0}
 .review-editor-show img{width:58px;height:70px;object-fit:cover;flex:none;border-radius:7px}
 .review-editor-show>div{min-width:0;display:grid;gap:3px}
 .review-editor-show strong{font:600 17px/1.25 system-ui,sans-serif;overflow-wrap:anywhere}
 .review-editor-show span{font:14px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
 .review-editor-gallery{color:#6a735f}
 .cg .review-editor-form{margin:0;max-width:none;display:block}
 .cg .review-stars-picker{border:0;padding:0;margin:0 0 18px;min-width:0}
 .cg .review-stars-picker legend{font:600 15px/1.3 system-ui,sans-serif;width:100%;padding:0;display:flex;justify-content:space-between;align-items:baseline;margin:0 0 6px}
 .review-field-hint{font:400 13px/1.3 system-ui,sans-serif;color:#6a735f}
 .review-stars-track{position:relative;width:100%;max-width:300px;height:48px}
 .review-stars-art{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));pointer-events:none;color:#536b30}
 .review-input-star{position:relative;display:block;align-self:center;justify-self:center;width:36px;height:36px}
 .review-input-star>svg,.review-input-star-fill svg{width:36px;height:36px;display:block}
 .review-input-star-fill{position:absolute;top:0;left:0;height:36px;overflow:hidden;pointer-events:none}
 .review-input-star-fill svg{fill:currentColor}
 .review-stars-choices{position:relative;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));height:48px}
 .cg .review-stars-choices label{position:relative;margin:0;padding:0;height:48px;min-width:0;cursor:pointer}
 .cg .review-stars-choices input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;min-height:0}
 .review-stars-choices label:has(input:focus-visible){outline:2px solid #6e854e;outline-offset:1px;border-radius:4px}
 .review-stars-bottom{display:flex;align-items:center;justify-content:space-between;max-width:300px;height:32px}
 .review-stars-value{font:13px/1.4 system-ui,sans-serif;color:#6a735f}
 .cg .review-clear-rating{border:0;background:none;color:#536b30;font-size:13px;padding:6px 0;min-height:32px}
 .cg .review-clear-rating[hidden]{display:none}
 .cg .review-editor-form>.review-writing-field{display:block;font:600 15px/1.3 system-ui,sans-serif;margin:0 0 18px}
 .cg .review-editor-form textarea{box-sizing:border-box;width:100%;min-height:168px;max-height:50dvh;resize:vertical;border:1px solid #d8ddcf;border-radius:10px;background:#fffdf955;color:#2b3027;font:400 17px/1.5 Georgia,serif;padding:12px 14px;margin:9px 0 0}
 .cg .review-editor-form textarea::placeholder{font:400 16px/1.5 system-ui,sans-serif;color:#848a7d}
 .cg .review-editor-form>.review-consent{display:flex;align-items:flex-start;gap:10px;font:400 14px/1.4 system-ui,sans-serif;padding:7px 0;margin:0;min-height:30px}
 .cg .review-consent input{flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:1px 0 0;accent-color:#536b30}
 .cg .review-visibility{font:13px/1.45 system-ui,sans-serif;margin:0 0 12px 28px;color:#6a735f}
 .review-visibility summary{cursor:pointer;min-height:30px;display:list-item;align-content:center;color:#536b30}
 .cg .review-visibility p{font:13px/1.5 system-ui,sans-serif;margin:6px 0 12px}
 .cg .review-editor-submit{width:100%;min-height:46px;margin:0;padding:10px 18px;border-radius:24px;font:600 16px/1.4 system-ui,sans-serif}
 .cg .review-editor-error,.cg .review-form-error{font:14px/1.4 system-ui,sans-serif;color:#8a3528;margin:10px 0}
 .review-editor-error:empty,.review-form-error:empty,.review-draft-note:empty{display:none}
 .cg .review-publication-note,.cg .review-draft-note{font:12px/1.4 system-ui,sans-serif;color:#6a735f;text-align:center;margin:8px 0 0}
 .cg .review-submission-status{border-top:1px solid #d8ddcf;padding-top:16px;margin-top:20px;font:14px/1.4 system-ui,sans-serif}
 .cg .review-submission-status p{font:14px/1.4 system-ui,sans-serif;margin:6px 0}
 .review-submission-status summary{padding:10px 0;color:#536b30;cursor:pointer}
 .cg-review-editor .cg-status:empty{display:none}
 .cg-review-editor .cg-status:not(:empty){position:static;font:13px/1.4 system-ui,sans-serif;padding:10px 20px;margin:0;background:#edf1e6;flex:none}
 .cg .review-editor-form .review-submit-actions{display:flex;gap:10px;margin:14px 0 0}
 .cg .review-editor-form .review-submit-actions button{min-height:44px;font-size:14px;padding:8px 12px;flex:1}
 .cg .review-editor-content>.cg-muted{font:13px/1.5 system-ui,sans-serif}
}
@media(max-width:360px){.review-editor-content{padding:18px}.review-editor-show{margin-bottom:16px;padding-bottom:16px}.cg .review-editor-form textarea{min-height:150px}}
@media(max-width:760px){.cg .review-visibility{padding:0;border:0;border-radius:0;background:none}.cg .review-visibility summary{padding:0}.cg .review-visibility[open]{padding:0}}
@media(max-width:760px){
 .review-stars-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
 .cg .review-whole-star{min-width:44px;min-height:48px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none}
 .cg .review-whole-star:hover,.cg .review-whole-star[aria-pressed=true]{background:transparent}
 .cg .review-whole-star:focus-visible{outline:2px solid #6e854e;outline-offset:1px}
 .review-stars-bottom{height:48px;gap:8px}
 .review-stars-value{margin-right:auto;white-space:nowrap}
 .review-half-steps{display:flex;gap:6px}
 .review-half-steps[hidden]{display:none}
 .cg .review-half-step{min-width:48px;height:44px;padding:4px 8px;border:1px solid #d8ddcf;border-radius:22px;background:transparent;color:#536b30;font:16px/1.2 system-ui,sans-serif}
 .cg .review-half-step:disabled{opacity:.35}
 .cg .review-clear-rating{min-width:44px;min-height:44px;padding:6px 0}
}
