/* Scoped additions; existing screens and theme tokens remain authoritative. */
.rm-layer{position:fixed;inset:0;background:#0008;z-index:12000;display:flex;align-items:flex-end;justify-content:center;font-family:Arial,sans-serif;color:#121212}
.rm-sheet{background:#fff;width:min(100%,460px);max-height:90dvh;overflow:auto;border-radius:22px 22px 0 0;box-shadow:0 -8px 50px #0002;padding:22px 20px max(22px,env(safe-area-inset-bottom));box-sizing:border-box}
.rm-sheet *{box-sizing:border-box}.rm-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eee;margin:-4px -20px 22px;padding:0 20px 18px}.rm-sheet h2{font-size:18px;margin:0}.rm-sheet h3{font-size:23px;margin:14px 0}.rm-sheet p{line-height:1.45}.rm-sheet button,.rm-sheet a{cursor:pointer}.rm-sheet button{font:inherit;border:0;background:#f2f2f2;color:#111;border-radius:10px;padding:13px 16px;min-height:44px}.rm-sheet header button{background:none;padding:8px}.rm-sheet .rm-primary{background:#060606;color:#fff;width:100%;font-weight:600;margin-top:18px}.rm-sheet button:disabled{opacity:.45;cursor:default}.rm-sheet .rm-danger{color:#b42318;background:#fff0ee}.rm-sheet label{display:grid;gap:8px;margin:16px 0}.rm-sheet input,.rm-sheet select,.rm-sheet textarea{width:100%;font:inherit;padding:12px;border:1px solid #d7d7d7;border-radius:9px;background:#fafafa;color:#111}.rm-sheet textarea{min-height:80px;resize:vertical}.rm-sheet [role=status]{font-size:14px;color:#a32c22}.rm-reasons{display:grid}.rm-reasons button{display:flex;text-align:left;align-items:center;gap:20px;padding:18px 10px;background:none;border-bottom:1px solid #e8e8e8;border-radius:0;line-height:1.25}.rm-reasons svg{flex:none;width:24px;height:24px}.rm-reasons button[aria-pressed=true]{background:#fff9d9}.rm-fee{padding:12px;background:#fff5d6;border-radius:10px;font-size:14px}.rm-rating{text-align:center}.rm-stars{display:flex;justify-content:center;gap:8px;margin:22px 0}.rm-stars button{padding:2px;background:none;width:52px;height:56px}.rm-stars svg{width:100%;height:100%;fill:#aaa}.rm-stars button[aria-checked=true] svg,.rm-stars button.rm-filled svg{fill:#efba28}.rm-block{display:flex!important;align-items:center;justify-content:space-between;padding:18px 0;border-top:1px solid #eee;text-align:left}.rm-block input{width:24px;height:24px}.rm-route{text-align:left;border-left:3px solid #111;margin:20px 12px;padding:0 20px;display:grid;gap:20px}.rm-contact{display:flex;gap:12px;flex-wrap:wrap;font-size:14px}.rm-contact a{color:inherit;border:1px solid #ddd;border-radius:9px;padding:10px;text-decoration:none}.rm-vehicle{padding:18px 0;border-bottom:1px solid #ddd}.rm-vehicle small{display:block;margin:8px 0;color:#666}.rm-profile{display:grid;gap:10px;margin-top:16px}.rm-profile button{display:flex;align-items:center;gap:10px}.rm-profile svg{width:20px;height:20px}.rm-help{position:fixed;right:16px;bottom:18px;width:min(390px,calc(100vw - 32px));height:min(570px,80dvh);z-index:14000;background:#fff;color:#111;border-radius:18px;box-shadow:0 8px 60px #0005;display:flex;flex-direction:column;overflow:hidden}.rm-help header{display:flex;justify-content:space-between;align-items:center;padding:14px;background:#111;color:#fff}.rm-help header button{background:transparent;color:white;border:0;padding:8px;cursor:pointer}.rm-help main{flex:1;overflow:auto;padding:16px}.rm-help article{background:#f0f0f0;padding:10px 13px;border-radius:12px;margin:10px 26px 10px 0;overflow-wrap:anywhere}.rm-help article.mine{background:#fff3a3;margin:10px 0 10px 26px}.rm-help small{color:#666}.rm-help form{display:flex;gap:8px;padding:12px;border-top:1px solid #ddd}.rm-help textarea{min-width:0;flex:1;border:1px solid #ddd;border-radius:9px;padding:10px;color:#111;background:#fff}.rm-help form button{background:#111;color:#fff;border-radius:9px;padding:10px}.rm-help.rm-minimized{height:auto;width:230px}.rm-help.rm-minimized main,.rm-help.rm-minimized form,.rm-help.rm-minimized [role=status]{display:none}.rm-help [role=status]{padding:0 12px;color:#a32c22}.rm-help-thread{display:block;width:100%;padding:15px;text-align:left;border:0;border-bottom:1px solid #ddd;background:#fff;color:#111}
#rotas-ride-chat.rm-minimized{inset:auto 16px 18px auto;width:230px;background:none}#rotas-ride-chat.rm-minimized .rotas-chat-card{height:auto;min-height:0}#rotas-ride-chat.rm-minimized main,#rotas-ride-chat.rm-minimized form{display:none}
.mobile-map-frame #rotas-danger-hold{position:absolute!important;top:100px!important;right:10px!important;bottom:auto!important;left:auto!important;z-index:12!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:7px!important;border:0!important;border-radius:5px!important;background:#fff!important;color:#555!important;box-shadow:0 1px 5px #0004!important;touch-action:none;user-select:none}.mobile-map-frame #rotas-danger-hold span{display:none!important}.mobile-map-frame #rotas-danger-hold.is-holding{background:#fff3ab!important}.mobile-map-frame #rotas-danger-hold.is-alert{color:#3f8e20!important;background:#ecffd7!important;box-shadow:0 0 10px #94d653!important}.mobile-map-frame #rotas-danger-hold svg{width:20px;height:20px}
[data-app-theme=dark] .rm-sheet{background:#17191c;color:#f5f5f5}[data-app-theme=dark] .rm-sheet input,[data-app-theme=dark] .rm-sheet textarea,[data-app-theme=dark] .rm-sheet select{background:#26292e;color:#fff;border-color:#444}[data-app-theme=dark] .rm-reasons button{color:#fff;border-color:#333}[data-app-theme=dark] .rm-reasons button[aria-pressed=true]{background:#393622}[data-app-theme=dark] .rm-sheet header button{color:#fff}[data-app-theme=dark] .rm-fee{background:#3d341c}[data-app-theme=dark] .rm-sheet .rm-primary{background:#f5f5f5;color:#111}
@media(min-width:650px){.rm-layer{align-items:center}.rm-sheet{border-radius:22px}}

.rm-arrival-countdown{padding:12px 16px;margin:12px 0;border-radius:12px;background:#fff2ae;color:#181818;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}
