.rp-modal {
    /* colours */
    --rp-green: #39b54a;
    --rp-green-dark: #2fa13f;
    --rp-green-soft: #e8f2e6;
    --rp-green-zone: rgba(57, 181, 74, 0.1);
    --rp-ink: #1c251f;
    --rp-ink-2: #414e46;
    --rp-muted: #667169;
    --rp-line: #dadada;
    --rp-border: #dfe5de;
    --rp-grey: #6c757d;
    --rp-danger: #b42318;
    --rp-danger-soft: #fef3f2;
    --rp-danger-line: #fecdca;

    /* fonts */
    --rp-font-text: "IBM Plex Sans Arabic", "Roboto", sans-serif;
    --rp-font-ui: "Barlow", "IBM Plex Sans Arabic", sans-serif;
    --rp-font-head: "Roboto", "IBM Plex Sans Arabic", sans-serif;

    /* spacing scale (Figma: 4 / 8 / 12 / 16 / 24 / 40) */
    --rp-s1: 0.25rem;
    --rp-s2: 0.5rem;
    --rp-s3: 0.75rem;
    --rp-s4: 1rem;
    --rp-s6: 1.5rem;
    --rp-s10: 2.5rem;
    --rp-pad: var(--rp-s6); /* header / body / footer padding */
    --rp-gap: var(--rp-s6); /* gap between body blocks */

    /* radii */
    --rp-r-sm: 0.25rem;
    --rp-r-md: 0.75rem;
    --rp-r-lg: 1.125rem;
    --rp-r-xl: 1.5rem;

    /* control sizes */
    --rp-control: 2.75rem; /* square icon buttons */
    --rp-btn-h: 3rem;
    --rp-input-h: 2.5rem;
    --rp-modal-w: 41.5rem;
}

/* Arabic: the site's Arabic font (declared in style.css, used by rtl.css); Figma's fonts are the fallback */
[dir="rtl"] .rp-modal {
    --rp-font-text:
        "HelveticaNeueW23forSKY-Reg", "IBM Plex Sans Arabic", sans-serif;
    --rp-font-ui:
        "HelveticaNeueW23forSKY-Reg", "IBM Plex Sans Arabic", sans-serif;
    --rp-font-head:
        "HelveticaNeueW23forSKY-Reg", "IBM Plex Sans Arabic", sans-serif;
}

.rp [hidden] {
    display: none !important;
}
.rp p,
.rp h4,
.rp h5 {
    margin: 0;
}

/* ---------- modal shell ---------- */
/*
 * The reCAPTCHA checkbox is a cross-origin iframe. Chrome routes taps into it through a slower hit-test
 * path when an ancestor has pointer-events: none (Bootstrap's .modal-dialog) or a rounded overflow clip,
 * and with tablet touch input that path can drop the tap. So the dialog takes pointer events (the backdrop
 * is static, so nothing listens outside it) and .rp does not clip: nothing in it paints at the corners,
 * and the body / help screens scroll by themselves.
 */
.rp-modal .modal-dialog {
    max-width: var(--rp-modal-w);
    pointer-events: auto;
}
.rp {
    position: relative;
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
    border: 0;
    border-radius: var(--rp-r-xl);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
    background: #fff;
    color: var(--rp-ink);
    font-family: var(--rp-font-text);
}
/* Camera open: take the available height so the camera box can grow into it */
.rp.rp-is-live {
    height: min(calc(100vh - 3.5rem), 52rem);
    height: min(calc(100dvh - 3.5rem), 52rem);
}

/* Phones: full screen */
@media (max-width: 575.98px) {
    .rp-modal {
        --rp-pad: var(--rp-s4);
    }
    .rp-modal .modal-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
    }
    .rp {
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .rp.rp-is-live {
        height: 100vh;
        height: 100dvh;
    }
}

.rp-screen,
.rp-add-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

/* ---------- header / body / footer ---------- */
.rp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rp-s4);
    padding: var(--rp-pad);
    border-bottom: 1px solid var(--rp-line);
}
.rp-title {
    font: 700 1.625rem/1.25 var(--rp-font-head);
    letter-spacing: -0.026rem;
    color: var(--rp-ink);
}
.rp-sub {
    font: 400 1rem/1.25 var(--rp-font-ui);
    color: var(--rp-muted);
}
.rp-head-actions {
    display: flex;
    flex: none;
    gap: 0.625rem;
}
.rp-icon-btn,
.rp-icon-spacer {
    flex: none;
    width: var(--rp-control);
    aspect-ratio: 1;
}
.rp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-r-md);
}
.rp-icon-btn:hover {
    background: #f6f8f6;
}
.rp-back {
    display: inline-flex;
    align-items: center;
    gap: var(--rp-s2);
    padding: 0;
    background: none;
    border: 0;
    font: 600 1rem/1.25 var(--rp-font-ui);
    color: var(--rp-ink-2);
}
[dir="rtl"] .rp-flip {
    transform: scaleX(-1);
}

.rp-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: var(--rp-gap);
    min-height: 0;
    padding: var(--rp-pad);
    overflow-y: auto;
}
.rp-body > * {
    flex-shrink: 0; /* never squash (and clip) a block; the body scrolls instead */
}
.rp-foot {
    display: flex;
    justify-content: flex-end;
    gap: var(--rp-s3);
    padding: var(--rp-s4) var(--rp-pad)
        calc(var(--rp-s4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rp-line);
}

/* ---------- buttons ---------- */
.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rp-s2);
    width: fit-content;
    min-height: var(--rp-btn-h);
    padding: var(--rp-s2) var(--rp-s4);
    border: 1px solid transparent;
    border-radius: var(--rp-r-md);
    font: 600 1rem/1.25 var(--rp-font-ui);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.rp-btn:hover {
    text-decoration: none;
}
.rp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.rp-btn-primary {
    background: var(--rp-green);
    color: #fff;
    font: 700 1rem/1.25 var(--rp-font-head);
}
.rp-btn-primary:hover,
.rp-btn-primary:focus {
    background: var(--rp-green-dark);
    color: #fff;
}
.rp-btn-grey {
    min-width: 6rem;
    background: var(--rp-grey);
    border-color: var(--rp-grey);
    color: #fff;
}
.rp-btn-grey:hover {
    background: #5a6268;
    color: #fff;
}
.rp-btn-outline {
    background: #fff;
    border-color: var(--rp-ink-2);
    color: var(--rp-ink);
}
.rp-btn-outline:hover {
    background: #f6f8f6;
}
.rp-btn-soft {
    background: var(--rp-green-soft);
    border-color: var(--rp-green);
    color: var(--rp-green);
}
.rp-btn-soft:hover {
    background: #dcebd9;
}
.rp-btn-sm {
    min-height: auto;
    padding-block: var(--rp-s2);
    font-size: 0.875rem;
}
.rp :focus-visible {
    outline: 2px solid var(--rp-green);
    outline-offset: 2px;
}

/* ---------- plant part tabs (a tab shows its photo once it has one) ---------- */
.rp-organs {
    display: flex;
    gap: var(--rp-s4);
    width: 100%;
}
.rp-organ {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}
.rp-organ-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    padding: var(--rp-s3) var(--rp-s1);
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--rp-border);
    border-radius: 0.875rem;
    color: var(--rp-ink-2);
}
.rp-organ-btn[aria-checked="true"] {
    background: var(--rp-green-soft);
    border-color: var(--rp-green);
    color: var(--rp-green);
}
.rp-organ-label {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    font: 600 1rem/1.25 var(--rp-font-ui);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-organ-icon {
    position: relative;
    width: 1.25rem;
    aspect-ratio: 1;
    background: currentColor;
    -webkit-mask: var(--rp-ico) center / contain no-repeat;
    mask: var(--rp-ico) center / contain no-repeat;
}
.rp-ico-auto {
    --rp-ico: url("images/recognize-plant/scan%20outline.svg");
}
.rp-ico-leaf {
    --rp-ico: url("images/recognize-plant/leaf%20outline.svg");
}
.rp-ico-flower {
    --rp-ico: url("images/recognize-plant/flower%20outline.svg");
}
.rp-ico-fruit {
    --rp-ico: url("images/recognize-plant/fruit%20outline.svg");
}
.rp-ico-bark {
    --rp-ico: url("images/recognize-plant/trunk%20outline.svg");
}
.rp-organ-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rp-organ.has-photo .rp-organ-btn {
    color: #fff;
}
.rp-organ.has-photo .rp-organ-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%);
}
.rp-organ.has-photo .rp-organ-icon {
    visibility: hidden; /* keeps the tile height, shows the whole photo */
}
.rp-organ.has-photo .rp-organ-label {
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.rp-organ-x {
    position: absolute;
    top: calc(var(--rp-s2) * -1);
    inset-inline-end: calc(var(--rp-s2) * -1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
}

/* ---------- photo zone: drop area / live camera / camera blocked ---------- */
.rp-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: var(--rp-green-zone);
    border-radius: var(--rp-r-lg);
}
.rp-is-live .rp-zone {
    flex: 1 1 auto; /* camera box grows into the modal height */
    min-height: 13.75rem;
}
.rp-zone.rp-dragging {
    outline: 2px dashed var(--rp-green);
    outline-offset: -2px;
}
.rp-drop,
.rp-perm,
.rp-zone-static {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rp-s4);
    padding: var(--rp-s10) var(--rp-s6);
    text-align: center;
}
.rp-zone-title {
    font: 500 1.25rem/1.25 var(--rp-font-head);
    letter-spacing: -0.0175rem;
    color: var(--rp-ink);
}
.rp-zone-text {
    margin-top: 0.125rem !important;
    font: 400 0.9375rem/1.33 var(--rp-font-ui);
    color: var(--rp-muted);
}
.rp-zone-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}
.rp-steps {
    margin: 0;
    padding-inline-start: 1.3em;
    font: 400 0.9375rem/1.6 var(--rp-font-text);
    color: var(--rp-ink-2);
    text-align: start;
}

/* Live camera: the video fills the box; the UI on top is a flex column (frame area grows, then hint, then shutter) */
.rp-live {
    position: relative;
    flex: 1 1 auto;
    min-height: 13.75rem;
    background: #111;
    container: rp-live / size;
}
.rp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rp-video.rp-mirror {
    transform: scaleX(-1);
}
.rp-live.rp-flash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0.7;
}
.rp-cam-bar {
    position: absolute;
    inset: var(--rp-s3) var(--rp-s3) auto;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}
.rp-cam-close {
    margin-inline-start: auto; /* stays at the end when the switch button is hidden */
}
.rp-cam-btn {
    width: var(--rp-s10);
    aspect-ratio: 1;
    border: 0;
    border-radius: var(--rp-r-md);
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.rp-cam-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rp-s2);
    padding: var(--rp-s3) 15%; /* 15% sides: the frame is at most 70% of the camera width */
    pointer-events: none; /* taps go through to the video (tap-to-focus) */
}
.rp-frame-area {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    container-type: size;
}
.rp-frame {
    position: relative;
    width: min(100cqw, 100cqh); /* largest square that fits the area */
    aspect-ratio: 1;
}
.rp-frame i {
    position: absolute;
    width: 34%;
    aspect-ratio: 1;
    border: 3px solid #fff;
}
.rp-frame i:nth-child(1) {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: var(--rp-r-xl);
}
.rp-frame i:nth-child(2) {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0;
    border-top-right-radius: var(--rp-r-xl);
}
.rp-frame i:nth-child(3) {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom-left-radius: var(--rp-r-xl);
}
.rp-frame i:nth-child(4) {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: var(--rp-r-xl);
}
.rp-hint {
    width: calc(
        100cqw - 2rem
    ); /* full camera width (less a margin), not just the 70% column */
    max-width: max-content;
    overflow: hidden;
    color: #fff;
    font: 500 0.875rem/1.43 var(--rp-font-ui);
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}
/* Short camera box (small laptops, landscape phones): drop the hint so the frame keeps its size */
@container rp-live (max-height: 20rem) {
    .rp-hint {
        display: none;
    }
}
.rp-shutter {
    flex: none;
    width: 3.5rem;
    aspect-ratio: 1;
    padding: 0.3rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: auto;
}
.rp-shutter span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rp-green);
}
.rp-shutter:active span {
    transform: scale(0.92);
}
.rp-focus {
    position: absolute;
    width: 4rem;
    aspect-ratio: 1;
    border: 2px solid #ffeb3b;
    border-radius: 50%;
    pointer-events: none;
    animation: rp-focus 0.8s ease-out forwards;
}
@keyframes rp-focus {
    from {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.rp-captcha {
    position: relative;
    z-index: 1;
    min-height: 4.875rem; /* reCAPTCHA widget height, so the layout doesn't jump when it loads */
    touch-action: manipulation; /* no double-tap-zoom wait before the tap reaches the iframe */
}
.rp-captcha:empty {
    min-height: 0;
}

/* ---------- instructions ---------- */
.rp-help {
    display: flex;
    flex-direction: column;
    gap: var(--rp-s6);
    padding: 1.25rem var(--rp-pad) var(--rp-pad);
    overflow-y: auto;
}
.rp-help-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.rp-help-title {
    flex: 1;
    font: 700 1.5rem/1.33 var(--rp-font-text);
    color: #1f2a37;
    text-align: center;
}
.rp-help-art {
    display: flex;
    justify-content: center;
    padding: 1.25rem;
    background: #f3f4f6;
    border-radius: var(--rp-s4);
}
.rp-help-phone {
    position: relative;
    width: fit-content;
}
.rp-help-phone img {
    display: block;
    width: auto;
    max-width: 100%;
    height: min(26rem, 50dvh);
}
.rp-help-check {
    position: absolute;
    right: 2%;
    bottom: 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    aspect-ratio: 1;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--rp-green);
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.25rem;
}
.rp-help-text {
    font: 500 1.125rem/1.55 var(--rp-font-text);
    color: #4b5563;
}

/* ---------- results ---------- */
.rp-name {
    font: 700 2.25rem/1.22 var(--rp-font-text);
    letter-spacing: -0.045rem;
    color: #1b241e;
}
.rp-latin {
    margin-top: 0.125rem !important;
    font: 500 1.25rem/1.5 var(--rp-font-text);
    color: #657169;
}
.rp-photo {
    display: block;
    width: min(100%, 20rem);
    aspect-ratio: 321 / 276; /* Figma photo proportions */
    object-fit: cover;
    border-radius: var(--rp-r-lg);
    background: #eee;
}
.rp-lead {
    font: 500 1.125rem/1.55 var(--rp-font-text);
    color: #657169;
}
.rp-center {
    text-align: center;
}
/* Photo + tag + text column: one width (the photo's), text wraps inside it */
.rp-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rp-s3);
    width: min(100%, 20rem);
}
.rp-stack .rp-photo {
    width: 100%;
    margin-bottom: var(--rp-s3);
}
.rp-stack .rp-lead {
    align-self: stretch;
}
.rp-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--rp-s1);
    width: fit-content;
    min-height: 2rem;
    padding: 0 var(--rp-s3);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--rp-r-sm);
    font: 500 1rem/1.5 var(--rp-font-text);
    color: #1f2a37;
}
.rp-tag-success {
    margin-top: 0.625rem;
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}
/* Thanks: same look as the app (ringed check, green title) */
.rp-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rp-s4);
    width: 100%;
    padding-block: var(--rp-s6);
    text-align: center;
}
.rp-done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    aspect-ratio: 1;
    border: 3px solid var(--rp-green);
    border-radius: 50%;
    background: var(--rp-green-soft);
    color: var(--rp-green);
    font-size: 2.25rem;
}
.rp-thanks-title {
    margin: 0;
    font: 700 1.75rem/1.3 var(--rp-font-head);
    color: var(--rp-green);
}

/* ---------- add plant ---------- */
.rp-field {
    display: flex;
    flex-direction: column;
    gap: var(--rp-s2);
    width: 100%;
}
.rp-label {
    display: flex;
    gap: var(--rp-s1);
    margin: 0;
    font: 400 0.875rem/1.43 var(--rp-font-text);
    color: #161616;
}
.rp-req {
    color: var(--rp-danger);
}
.rp-location {
    position: relative;
    display: flex;
    align-items: center;
}
.rp-input {
    flex: 1;
    min-width: 0;
    min-height: var(--rp-input-h);
    padding-inline: var(--rp-s2) var(--rp-s10); /* end space for the spinner (logical: flips in Arabic) */
    border: 1px solid #9da4ae;
    border-radius: var(--rp-r-sm);
    background: #fff;
    font: 400 1rem/1.5 var(--rp-font-text);
    color: #384250;
    text-align: start;
}
.rp-input:focus {
    outline: 0;
    border-color: var(--rp-green);
}
.rp-spinner {
    position: absolute;
    inset-inline-end: var(--rp-s3);
    width: 1.125rem;
    aspect-ratio: 1;
    border: 2px solid #ccc;
    border-top-color: #666;
    border-radius: 50%;
    animation: rp-spin 0.8s linear infinite;
}
@keyframes rp-spin {
    to {
        transform: rotate(360deg);
    }
}
.rp-loc-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rp-s2);
    padding: var(--rp-s3) var(--rp-s4);
    background: var(--rp-danger-soft);
    border: 1px solid var(--rp-danger-line);
    border-radius: var(--rp-s2);
}
.rp-loc-msg {
    font: 500 0.875rem/1.43 var(--rp-font-text);
    color: var(--rp-danger);
}
.rp-loc-error .rp-steps {
    font-size: 0.875rem;
}
.rp-radio {
    display: flex;
    align-items: center;
    gap: var(--rp-s2);
    margin: 0;
    font: 500 1rem/1.5 var(--rp-font-text);
    color: #1f2a37;
    cursor: pointer;
}
.rp-radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.rp-radio-mark {
    flex: none;
    width: 2rem;
    aspect-ratio: 1;
    padding: var(--rp-s1);
}
.rp-radio-mark::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #6c737f;
    border-radius: 50%;
    background: #fff;
}
.rp-radio input:checked + .rp-radio-mark::before {
    border-color: var(--rp-green);
    box-shadow: inset 0 0 0 0.3rem var(--rp-green);
}
.rp-radio input:focus-visible + .rp-radio-mark::before {
    outline: 2px solid var(--rp-green);
    outline-offset: 2px;
}

/* ---------- overlays + inline errors ---------- */
.rp-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rp-s3);
    background: rgba(255, 255, 255, 0.92);
    font: 600 1rem/1.25 var(--rp-font-ui);
}
.rp-pulse {
    color: var(--rp-green);
    animation: rp-pulse 1.2s ease-in-out infinite;
}
@keyframes rp-pulse {
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rp-pulse,
    .rp-spinner,
    .rp-focus {
        animation: none;
    }
}
.rp-error {
    display: flex;
    align-items: flex-start;
    gap: var(--rp-s2);
    width: 100%;
    padding: 0.625rem var(--rp-s3);
    background: var(--rp-danger-soft);
    border: 1px solid var(--rp-danger-line);
    border-radius: var(--rp-s2);
    color: var(--rp-danger);
    font: 500 0.875rem/1.43 var(--rp-font-text);
}
.rp-error:not(:first-child) {
    margin-top: calc(
        var(--rp-gap) / -2
    ); /* sit close to the field it belongs to */
}
.rp-error i {
    margin-top: 0.2rem;
}

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
    .rp-foot {
        padding-block: var(--rp-s3)
            calc(var(--rp-s3) + env(safe-area-inset-bottom));
    }
    .rp-title {
        font-size: 1.375rem;
    }
    .rp-organs {
        gap: var(--rp-s2);
    }
    .rp-organ-btn {
        gap: var(--rp-s1);
        padding: 0.625rem 0.125rem;
    }
    .rp-organ-label {
        font-size: 0.8125rem;
    }
    .rp-drop,
    .rp-perm,
    .rp-zone-static {
        padding: 1.75rem var(--rp-s4);
    }
    .rp-zone-title {
        font-size: 1.125rem;
    }
    .rp-name {
        font-size: 1.75rem;
    }
    .rp-photo,
    .rp-stack {
        width: 100%;
    }
    .rp-help {
        gap: var(--rp-s4);
    }
    .rp-help-phone img {
        height: min(22.5rem, 45dvh);
    }
}
