:root {
  --rgm-orange: #ff5b36;
  --rgm-orange-soft: #fff1ea;
  --rgm-blue: #3578ed;
  --rgm-green: #25ad87;
  --rgm-text: #1d1d21;
  --rgm-muted: #8e9098;
  --rgm-line: #eef0f4;
  --rgm-canvas: #f7f8fb;
}

html:has(.rgm-page), body:has(.rgm-page), .rgm-page { scrollbar-width: none; }
html:has(.rgm-page)::-webkit-scrollbar, body:has(.rgm-page)::-webkit-scrollbar, .rgm-page::-webkit-scrollbar { display: none; }

.rgm-page {
  box-sizing: border-box;
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 16px;
  color: var(--rgm-text);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* The review-group flow owns its own phone navigation.  Keeping the global
   five-tab shell above it obscures the fixed submission and result actions. */
#app:has(.rgm-page) .app-shell { min-height: 100dvh; padding: 0; background: #fff; }
#app:has(.rgm-page) .main { min-width: 0; padding: 0; }
#app:has(.rgm-page) .mobile-nav,
#app:has(.rgm-page) .desktop-nav,
#app:has(.rgm-page) .topbar { display: none !important; }

.rgm-page *, .rgm-page *::before, .rgm-page *::after { box-sizing: border-box; }
.rgm-page button, .rgm-page input, .rgm-page textarea, .rgm-page select { font: inherit; }
.rgm-page button { cursor: pointer; }
.rgm-page button:disabled { cursor: not-allowed; opacity: .46; }
.rgm-page button:focus-visible, .rgm-page input:focus-visible, .rgm-page textarea:focus-visible, .rgm-page select:focus-visible { outline: 3px solid rgba(53,120,237,.25); outline-offset: 2px; }

.rgm-list-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; padding: max(20px, env(safe-area-inset-top)) 0 12px; }
.rgm-list-head h1, .rgm-header h1 { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.6px; }
.rgm-list-head button { border: 0; color: #25272d; background: transparent; font-size: 24px; }
.rgm-list-head .rgm-list-home { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f6f7f9; font-size: 27px; line-height: 1; }
.rgm-list-head .rgm-list-notifications { display: grid; width: 32px; height: 32px; place-items: center; padding: 7px; border-radius: 50%; }
.rgm-list-head .rgm-list-notifications svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rgm-list-tabs { display: flex; gap: 26px; height: 38px; border-bottom: 1px solid var(--rgm-line); }
.rgm-list-tabs button { position: relative; border: 0; padding: 0; color: #8c8f96; background: transparent; font-size: 13px; }
.rgm-list-tabs button.active { color: #25262b; font-weight: 700; }
.rgm-list-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 4px; background: var(--rgm-orange); content: ""; }
.rgm-group-list { padding: 10px 0 94px; }
.rgm-group-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; width: 100%; padding: 13px 3px; border: 0; border-bottom: 1px solid #f4f4f6; text-align: left; background: #fff; }
.rgm-group-avatar, .rgm-chat-avatar { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #d29a6d, #614437); font-weight: 800; }
.rgm-group-copy { min-width: 0; }
.rgm-group-copy b { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.rgm-group-copy small { display: block; overflow: hidden; margin-top: 5px; color: #9699a1; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.rgm-group-copy em { display: block; margin-top: 4px; color: #a0a3aa; font-size: 10px; font-style: normal; }
.rgm-group-meta { display: grid; justify-items: end; align-content: center; gap: 7px; }
.rgm-group-meta i { padding: 3px 7px; border-radius: 10px; color: #fff; background: var(--rgm-orange); font-size: 10px; font-style: normal; }
.rgm-group-meta i.rating { color: #e7811d; background: #fff3dd; }
.rgm-group-meta i.closed { color: #81838b; background: #f1f2f4; }
.rgm-group-meta i.waiting { color: #b8791c; background: #fff3dc; }
.rgm-group-meta strong { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; background: #ff4935; font-size: 10px; }
.rgm-list-actions, .rgm-screen-footer { position: fixed; z-index: 12; right: max(16px, calc((100vw - 430px) / 2 + 16px)); bottom: max(14px, env(safe-area-inset-bottom)); left: max(16px, calc((100vw - 430px) / 2 + 16px)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 0 0; }
.rgm-list-actions::before, .rgm-screen-footer::before { position: absolute; z-index: -1; inset: -34px -16px -16px; background: linear-gradient(transparent, rgba(255,255,255,.96) 37%); content: ""; pointer-events: none; }
.rgm-primary, .rgm-outline, .rgm-ghost { min-height: 44px; border: 0; border-radius: 12px; font-weight: 700; }
.rgm-primary { color: #fff; background: linear-gradient(90deg, #ff6741, #ff4f30); box-shadow: 0 8px 16px rgba(255,84,48,.22); }
.rgm-outline { border: 1px solid #e7e8ec; color: #35363b; background: #fff; }
.rgm-outline.full { width: 100%; }
.rgm-ghost { color: #53555c; background: #f6f7f9; }
.rgm-primary.compact { min-height: 36px; padding: 0 15px; font-size: 12px; }
.rgm-join-sheet { position: fixed; z-index: 30; right: max(0px, calc((100vw - 430px) / 2)); bottom: 0; left: max(0px, calc((100vw - 430px) / 2)); padding: 20px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -16px 48px rgba(34,37,44,.15); background: #fff; }
.rgm-list-page.joining { height: 100dvh; overflow: hidden; }
.rgm-list-page.joining::after { position: fixed; z-index: 20; inset: 0; background: rgba(22,24,31,.34); content: ""; }
.rgm-join-sheet header { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.rgm-join-sheet header button { border: 0; background: transparent; font-size: 25px; }
.rgm-join-sheet p { color: var(--rgm-muted); font-size: 12px; line-height: 1.6; }
.rgm-join-sheet input { width: 100%; height: 46px; margin: 7px 0 10px; padding: 0 14px; border: 1px solid #e5e7ec; border-radius: 12px; background: #fafbfc; }
.rgm-join-sheet .rgm-primary { width: 100%; }

.rgm-header { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; min-height: 62px; padding-top: env(safe-area-inset-top); }
.rgm-header p { margin: 4px 0 0; color: var(--rgm-muted); font-size: 11px; }
.rgm-back, .rgm-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #2e3036; background: #f6f7f9; font-size: 27px; line-height: 1; }
.rgm-close { font-size: 23px; }
.rgm-header-spacer { display: block; width: 34px; }
.rgm-create-page { padding-bottom: 80px; }
.rgm-form { display: grid; gap: 13px; padding: 12px 0 88px; }
.rgm-form fieldset { display: grid; gap: 11px; margin: 0; padding: 14px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-form legend { padding: 0 3px; color: #34363c; font-size: 13px; font-weight: 800; }
.rgm-form legend small { color: var(--rgm-muted); font-weight: 400; }
.rgm-form label { display: grid; gap: 6px; color: #53565e; font-size: 12px; }
.rgm-form input:not([type="checkbox"]):not([type="radio"]), .rgm-form textarea, .rgm-form select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #e9eaee; border-radius: 9px; color: #272930; background: #fafbfc; }
.rgm-form textarea { min-height: 78px; resize: vertical; }
.rgm-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rgm-choice-row label { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 9px; background: #f5f6f8; }
.rgm-inline-switch { grid-template-columns: 1fr auto; align-items: center; }
.rgm-sticky-submit { width: 100%; }

.rgm-group-page { padding: 0; overflow: hidden; background: #f8f9fb; }
.rgm-chat-screen { display: flex; flex-direction: column; height: 100dvh; background: #f8f9fb; }
.rgm-chat-head { display: grid; grid-template-columns: 34px 42px 1fr 35px; align-items: center; gap: 8px; padding: max(11px, env(safe-area-inset-top)) 16px 10px; background: #fff; }
.rgm-chat-head .rgm-back { background: transparent; }
.rgm-chat-head .rgm-chat-avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.rgm-chat-head b { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.rgm-chat-head small { color: #9598a1; font-size: 10px; }
.rgm-chat-head > button:last-child { border: 0; color: #35373d; background: transparent; font-weight: 800; letter-spacing: 1px; }
.rgm-task-card { margin: 10px 16px 0; padding: 13px 14px; border: 1px solid #ffe5d9; border-radius: 13px; background: linear-gradient(120deg, #fff8f3, #fff2e9); }
.rgm-task-state { display: flex; justify-content: space-between; color: var(--rgm-orange); font-size: 11px; }
.rgm-task-state button { border: 0; color: #ba9385; background: transparent; font-size: 17px; }
.rgm-task-card h2 { margin: 5px 0 3px; font-size: 15px; }
.rgm-task-card p, .rgm-task-card small { margin: 0; color: #77797f; font-size: 11px; line-height: 1.55; }
.rgm-task-card small { display: block; margin-top: 4px; color: #a6a0a0; }
.rgm-task-card > div:last-child { display: flex; gap: 8px; margin-top: 10px; }
.rgm-task-card .rgm-ghost { min-height: 36px; padding: 0 12px; font-size: 12px; }
.rgm-announcement-strip { display: grid; grid-template-columns: 42px 1fr 12px; gap: 8px; align-items: center; margin: 8px 16px 0; padding: 8px 10px; border: 0; border-radius: 8px; color: #6d6f76; background: #fff; text-align: left; }
.rgm-announcement-strip b { color: #4d73d8; font-size: 10px; }
.rgm-announcement-strip span { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.rgm-announcement-strip i { color: #afb0b5; font-style: normal; }
.rgm-messages { flex: 1; overflow-y: auto; padding: 15px 16px 218px; }
.rgm-system-message { display: flex; justify-content: center; gap: 5px; margin: 7px 0; color: #a5a7ad; font-size: 10px; }
.rgm-message { display: grid; grid-template-columns: 34px 1fr; gap: 7px; margin: 11px 0; }
.rgm-message.mine { grid-template-columns: 1fr 34px; }
.rgm-message.mine > .rgm-message-avatar { grid-column: 2; }
.rgm-message.mine > div { grid-column: 1; grid-row: 1; justify-self: end; }
.rgm-message-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: #90a6bd; font-size: 11px; font-weight: 800; }
.rgm-message.mine .rgm-message-avatar { background: #d89c7a; }
.rgm-message header { display: flex; gap: 6px; align-items: center; margin-bottom: 3px; color: #8e9097; font-size: 9px; }
.rgm-message header b { color: #666970; font-weight: 600; }
.rgm-message section { max-width: 265px; padding: 9px 11px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 2px 5px rgba(25,32,43,.04); }
.rgm-message.mine section { border-radius: 12px 4px 12px 12px; color: #fff; background: #5f8ff0; }
.rgm-message section p { margin: 0; font-size: 12px; line-height: 1.55; }
.rgm-message section small { display: block; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid rgba(0,0,0,.06); color: #92959d; font-size: 10px; }
.rgm-message.mine section small { color: #e5edff; border-color: rgba(255,255,255,.25); }
.rgm-message footer { display: flex; gap: 7px; margin-top: 3px; }
.rgm-message footer button { padding: 0; border: 0; color: #a1a4ab; background: transparent; font-size: 10px; }
.rgm-message-image { max-width: 188px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: transparent; }
.rgm-message-image img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.rgm-message-voice, .rgm-voice-card { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 8px 11px; border: 0; border-radius: 10px; color: #484b52; background: #f4f6fb; text-align: left; }
.rgm-message-voice i, .rgm-voice-card i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--rgm-orange); font-style: normal; font-size: 10px; }
.rgm-message-voice b, .rgm-voice-card em { margin-left: auto; color: #94979e; font-size: 10px; font-style: normal; }
.rgm-message.mine .rgm-message-voice { color: #fff; background: rgba(255,255,255,.16); }
.rgm-recalled { color: #9ea1a9; font-size: 11px; font-style: italic; }
.rgm-chat-empty, .rgm-empty { padding: 30px 18px; border: 1px dashed #dfe2e8; border-radius: 14px; color: #757881; background: #fff; text-align: center; }
.rgm-chat-empty b, .rgm-empty b { display: block; color: #45474d; font-size: 14px; }
.rgm-chat-empty p, .rgm-empty p { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
.rgm-empty button { min-height: 35px; margin-top: 12px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--rgm-orange); background: var(--rgm-orange-soft); }
.rgm-empty.compact { padding: 24px 14px; }
.rgm-chat-bottom { position: fixed; z-index: 11; right: max(0px, calc((100vw - 430px) / 2)); bottom: 0; left: max(0px, calc((100vw - 430px) / 2)); padding: 7px 16px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid #edf0f3; background: rgba(255,255,255,.97); }
.rgm-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px 4px; padding-bottom: 9px; }
.rgm-quick-grid, .rgm-messages, .rgm-screen-body { scrollbar-width: none; }
.rgm-quick-grid::-webkit-scrollbar, .rgm-messages::-webkit-scrollbar, .rgm-screen-body::-webkit-scrollbar { display: none; }
.rgm-quick-grid button { display: grid; justify-items: center; gap: 3px; min-width: 42px; padding: 0; border: 0; color: #6e7178; background: transparent; font-size: 9px; }
.rgm-quick-grid i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #ff8d4e, #ff5940); font-style: normal; font-size: 11px; }
.rgm-quick-grid button:nth-child(2) i, .rgm-quick-grid button:nth-child(6) i { background: linear-gradient(135deg, #697cf3, #49a4ea); }
.rgm-quick-grid button:nth-child(3) i, .rgm-quick-grid button:nth-child(7) i { background: linear-gradient(135deg, #41b9a6, #5ac991); }
.rgm-composer { display: grid; grid-template-columns: 29px 1fr 29px 41px; gap: 6px; align-items: center; }
.rgm-composer input { min-width: 0; height: 34px; padding: 0 11px; border: 1px solid #ecedf1; border-radius: 17px; background: #f8f9fa; font-size: 12px; }
.rgm-composer button { height: 32px; padding: 0; border: 0; border-radius: 8px; color: #62656c; background: transparent; }
.rgm-composer button[type="submit"] { color: #fff; background: var(--rgm-orange); font-size: 11px; }
.rgm-reply { display: flex; justify-content: space-between; padding: 3px 4px 6px; color: #8a8d94; font-size: 10px; }
.rgm-reply button { border: 0; background: transparent; }

.rgm-overlay-screen { position: fixed; z-index: 90; top: 0; right: max(0px, calc((100vw - 430px) / 2)); bottom: 0; left: max(0px, calc((100vw - 430px) / 2)); overflow: hidden; color: var(--rgm-text); background: #fff; }
.rgm-screen-body { height: calc(100dvh - 62px); overflow-y: auto; padding: 10px 16px 92px; background: #fff; }
.rgm-screen-footer { grid-template-columns: 1fr; }
.rgm-tip { margin-bottom: 10px; padding: 9px 11px; border-radius: 9px; color: #5d77c3; background: #eef4ff; font-size: 11px; line-height: 1.5; }
.rgm-tip.warning { color: #a96835; background: #fff4e9; }
.rgm-basic-form { padding-bottom: 0; }
.rgm-gender-pills { display: flex; gap: 8px; }
.rgm-gender-pills button { min-width: 72px; min-height: 35px; border: 1px solid #edf0f5; border-radius: 17px; color: #5d6067; background: #f8f9fb; }
.rgm-gender-pills button.active { border-color: #b9d5ff; color: #1e73e8; background: #eaf3ff; }
.rgm-unit-field { position: relative; display: block; }
.rgm-unit-field input { padding-right: 36px !important; }
.rgm-unit-field i { position: absolute; top: 12px; right: 12px; color: #999ca3; font-style: normal; font-size: 12px; }
.rgm-submission-status { display: grid; gap: 4px; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: var(--rgm-orange-soft); }
.rgm-submission-status b { color: var(--rgm-orange); font-size: 13px; }
.rgm-submission-status span, .rgm-submission-status p { margin: 0; color: #9a776f; font-size: 11px; }
.rgm-media-section { margin: 12px 0; padding: 14px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-media-section > header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.rgm-media-section header b { font-size: 13px; }
.rgm-media-section header small { color: var(--rgm-muted); font-size: 10px; font-weight: 400; }
.rgm-required-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.rgm-photo-slot { position: relative; display: grid; min-height: 116px; place-items: center; padding: 0; overflow: hidden; border: 1px dashed #dfe3e8; border-radius: 10px; color: #a6a9b0; background: #fafbfc; }
.rgm-photo-slot b { font-size: 22px; font-weight: 400; }
.rgm-photo-slot span { position: absolute; bottom: 8px; font-size: 10px; }
.rgm-photo-slot.filled { border-style: solid; }
.rgm-photo-slot img { width: 100%; height: 116px; object-fit: cover; }
.rgm-photo-slot i { position: absolute; top: 5px; right: 5px; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; background: rgba(0,0,0,.48); font-size: 13px; font-style: normal; }
.rgm-add-photo { width: 100%; min-height: 35px; margin-top: 10px; border: 1px solid #dce6f8; border-radius: 9px; color: #4a7de1; background: #f7faff; font-size: 11px; }
.rgm-life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rgm-life-photo { position: relative; padding: 0; overflow: hidden; aspect-ratio: 1; border: 0; border-radius: 9px; background: #f4f5f7; }
.rgm-life-photo img { width: 100%; height: 100%; object-fit: cover; }
.rgm-life-photo i { position: absolute; right: 4px; bottom: 4px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #fff; background: var(--rgm-blue); font-size: 12px; font-style: normal; }
.rgm-voice-placeholder { display: flex; align-items: center; gap: 9px; padding: 9px 0; color: #999ca3; font-size: 11px; }
.rgm-voice-placeholder i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--rgm-orange); background: var(--rgm-orange-soft); font-style: normal; }
.rgm-media-note { padding: 12px; border-radius: 11px; color: #747780; background: #f7f8fa; font-size: 11px; }
.rgm-media-note p { margin: 5px 0 0; line-height: 1.6; }
.rgm-muted { color: #a2a5ac; font-size: 11px; }

.rgm-status-tabs, .rgm-result-tabs { display: flex; gap: 20px; margin-bottom: 13px; border-bottom: 1px solid var(--rgm-line); }
.rgm-status-tabs button, .rgm-result-tabs button { position: relative; padding: 8px 0 10px; border: 0; color: #93969d; background: transparent; font-size: 12px; }
.rgm-status-tabs button.active, .rgm-result-tabs button.active { color: #27292e; font-weight: 800; }
.rgm-status-tabs button.active::after, .rgm-result-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--rgm-orange); content: ""; }
.rgm-status-tabs small { margin-left: 3px; color: var(--rgm-orange); }
.rgm-audit-list { display: grid; gap: 10px; }
.rgm-audit-card { padding: 11px; border: 1px solid #eff0f3; border-radius: 12px; background: #fff; }
.rgm-audit-card > div { display: grid; grid-template-columns: 46px 1fr; gap: 9px; }
.rgm-audit-card img, .rgm-audit-avatar { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.rgm-audit-avatar { display: grid; place-items: center; color: #fff; background: #a8b8c8; font-weight: 800; }
.rgm-audit-card b, .rgm-audit-card small, .rgm-audit-card em { display: block; }
.rgm-audit-card b { font-size: 13px; }
.rgm-audit-card small, .rgm-audit-card em, .rgm-audit-card p { margin: 3px 0 0; color: #9699a1; font-size: 10px; font-style: normal; }
.rgm-audit-card aside { display: flex; gap: 8px; margin-top: 10px; }
.rgm-audit-card aside button { flex: 1; min-height: 32px; border: 0; border-radius: 8px; font-size: 11px; }
.rgm-audit-card .approve { color: #fff; background: var(--rgm-green); }
.rgm-audit-card .reject { color: #f25a49; background: #fff0ed; }

.rgm-rating-progress { display: flex; justify-content: space-between; margin-bottom: 10px; color: #878a92; font-size: 11px; }
.rgm-rating-progress b { color: #3a3c42; }
.rgm-rating-subject { padding: 13px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-rating-subject header { display: flex; justify-content: space-between; }
.rgm-rating-subject header b { display: block; color: #3d70ce; font-size: 15px; }
.rgm-rating-subject header small { color: #858890; font-size: 11px; }
.rgm-rating-subject header em { color: #75a88d; font-size: 10px; font-style: normal; }
.rgm-rating-subject > p { margin: 10px 0; color: #686b72; font-size: 12px; line-height: 1.55; }
.rgm-rating-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; overflow: hidden; }
.rgm-rating-photos img { width: 100%; height: 140px; border-radius: 8px; object-fit: cover; }
.rgm-rating-photos img:only-child { grid-column: span 3; height: 230px; }
.rgm-voice-card.slim { margin-top: 9px; }
.rgm-score-box, .rgm-tag-box, .rgm-rating-comment { display: block; margin-top: 12px; padding: 13px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-score-box header, .rgm-tag-box header { display: flex; justify-content: space-between; color: #404249; font-size: 12px; }
.rgm-score-box header small, .rgm-tag-box header small { color: #999ca4; font-size: 10px; }
.rgm-score-control { display: grid; grid-template-columns: 42px 1fr 20px 42px; align-items: center; gap: 6px; margin: 12px 0 5px; text-align: center; }
.rgm-score-control button { height: 34px; border: 1px solid #e7e9ed; border-radius: 50%; color: var(--rgm-orange); background: #fff; font-size: 22px; line-height: 1; }
.rgm-score-control strong { color: var(--rgm-orange); font-size: 38px; letter-spacing: -1.5px; }
.rgm-score-control span { color: #999ca4; font-size: 12px; }
.rgm-score-box input[type="range"] { width: 100%; accent-color: var(--rgm-orange); }
.rgm-score-scale { display: flex; justify-content: space-between; color: #a4a7ae; font-size: 9px; }
.rgm-tag-box > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.rgm-tag-box button { min-height: 27px; padding: 0 9px; border: 1px solid #e9ebef; border-radius: 14px; color: #74777d; background: #f9fafb; font-size: 10px; }
.rgm-tag-box button.active { border-color: #ffc9b9; color: var(--rgm-orange); background: var(--rgm-orange-soft); }
.rgm-rating-comment { color: #45474d; font-size: 12px; }
.rgm-rating-comment small { color: #a0a3ab; }
.rgm-rating-comment textarea { width: 100%; min-height: 75px; margin-top: 8px; padding: 0; border: 0; color: #414349; background: transparent; resize: vertical; }
.rgm-edit-rating-list { margin-top: 12px; padding: 13px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-edit-rating-list > header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px; }
.rgm-edit-rating-list > header small { color: var(--rgm-muted); font-size: 10px; }
.rgm-edit-rating-row { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; align-items: center; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--rgm-line); color: #45474d; background: #fff; text-align: left; }
.rgm-edit-rating-row b { color: var(--rgm-orange); font-size: 12px; }
.rgm-edit-rating-row em { color: #8790a0; font-size: 10px; font-style: normal; }

.rgm-result-note { margin: 0 0 10px; color: #9598a0; font-size: 11px; }
.rgm-results-list { display: grid; gap: 7px; }
.rgm-result-row { display: grid; grid-template-columns: 21px 40px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 9px; border: 1px solid #f0f1f3; border-radius: 11px; color: #36383e; background: #fff; text-align: left; }
.rgm-result-row > span { color: var(--rgm-orange); font-size: 12px; font-weight: 800; text-align: center; }
.rgm-result-row img, .rgm-result-row i { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.rgm-result-row i { display: grid; place-items: center; color: #fff; background: #aabac9; font-style: normal; }
.rgm-result-row b, .rgm-result-row small { display: block; }
.rgm-result-row b { font-size: 13px; }
.rgm-result-row small { margin-top: 3px; color: #979aa2; font-size: 10px; }
.rgm-result-row strong { color: var(--rgm-orange); font-size: 21px; }
.rgm-result-row strong small { display: inline; margin-left: 2px; color: #a3a5ac; font-size: 9px; }
.rgm-result-person { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 12px; border-radius: 13px; background: #f8f9fb; }
.rgm-result-person img { width: 58px; height: 58px; border-radius: 13px; object-fit: cover; }
.rgm-result-person b, .rgm-result-person small { display: block; }
.rgm-result-person b { font-size: 16px; }
.rgm-result-person small { margin-top: 5px; color: #9699a1; font-size: 11px; }
.rgm-result-score-card { display: grid; justify-items: center; gap: 5px; margin: 14px 0; padding: 18px; border-radius: 14px; background: linear-gradient(145deg, #f8fbff, #f0f5ff); }
.rgm-result-score-card span, .rgm-result-score-card small, .rgm-result-score-card em { color: #7d8490; font-size: 11px; font-style: normal; }
.rgm-result-score-card strong { color: #3c7ce6; font-size: 48px; letter-spacing: -2px; }
.rgm-result-score-card strong i { margin-left: 4px; color: #9096a1; font-size: 13px; font-style: normal; }
.rgm-result-section { margin-top: 13px; padding: 14px; border: 1px solid var(--rgm-line); border-radius: 13px; }
.rgm-result-section header { margin-bottom: 10px; font-size: 13px; }
.rgm-result-section header small { color: #a0a3ab; font-size: 10px; font-weight: 400; }
.rgm-result-section > div:not(.rgm-result-tags):not(.rgm-result-comments) { display: grid; grid-template-columns: 37px 1fr 23px; gap: 8px; align-items: center; margin: 8px 0; color: #8d9097; font-size: 10px; }
.rgm-result-section > div i { height: 7px; overflow: hidden; border-radius: 4px; background: #edf1f8; }
.rgm-result-section > div i b { display: block; height: 100%; border-radius: inherit; background: #73a5f7; }
.rgm-result-section > div em { color: #9fa2aa; font-size: 9px; font-style: normal; text-align: right; }
.rgm-result-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rgm-result-tags span { padding: 6px 8px; border-radius: 11px; color: #e36544; background: #fff2ed; font-size: 10px; }
.rgm-result-tags b { font-size: 9px; }
.rgm-result-comments { display: grid; gap: 7px; }
.rgm-result-comments p { margin: 0; padding: 9px 10px; border-radius: 8px; color: #63666d; background: #f8f9fb; font-size: 11px; line-height: 1.55; }

.rgm-members-list { display: grid; gap: 4px; }
.rgm-pending-members { margin-bottom: 14px; padding: 12px; border: 1px solid #ffe1d8; border-radius: 13px; background: #fff9f6; }
.rgm-pending-members > header { display: flex; justify-content: space-between; color: #6f625d; font-size: 12px; }
.rgm-pending-members > header small { color: var(--rgm-orange); }
.rgm-member-row.pending { border-color: #f7e5de; }
.rgm-member-row aside button.approve { color: #188c6c; background: #eaf8f3; }
.rgm-members-locked { margin: 0 0 9px; padding: 9px 11px; border-radius: 9px; color: #8b7a73; background: #f8f4f2; font-size: 10px; }
.rgm-member-row { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid #f1f2f4; }
.rgm-member-row > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #fff; background: #afbbc9; font-size: 12px; font-weight: 800; }
.rgm-member-row > span.owner { background: #ff9250; }
.rgm-member-row > span.admin { background: #5f91e8; }
.rgm-member-row b, .rgm-member-row small { display: block; }
.rgm-member-row b { font-size: 13px; }
.rgm-member-row small { margin-top: 3px; color: #979aa2; font-size: 10px; }
.rgm-member-row aside { display: flex; gap: 5px; }
.rgm-member-row aside button { min-height: 27px; padding: 0 7px; border: 0; border-radius: 7px; color: #5d77ab; background: #eef4ff; font-size: 9px; }
.rgm-member-row aside button.danger { color: #ed6455; background: #fff0ed; }
.rgm-announcement-card { padding: 16px; border-radius: 14px; background: linear-gradient(145deg, #fff8f3, #fff1e9); }
.rgm-announcement-card b { color: #4b4541; font-size: 15px; }
.rgm-announcement-card p { color: #6f6662; font-size: 13px; line-height: 1.75; }
.rgm-announcement-card div { display: flex; flex-wrap: wrap; gap: 6px; }
.rgm-announcement-card span { padding: 5px 7px; border-radius: 7px; color: #9d7b70; background: rgba(255,255,255,.65); font-size: 10px; }
.rgm-invite-card { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 11px; background: #f7f8fa; }
.rgm-invite-card span { color: #8f9299; font-size: 11px; }
.rgm-invite-card b { margin-right: auto; color: #3c3f45; letter-spacing: 1px; }
.rgm-invite-card button { border: 0; color: #4f7edb; background: transparent; font-size: 11px; }
.rgm-progress-card, .rgm-safety-card { padding: 15px; border: 1px solid var(--rgm-line); border-radius: 14px; }
.rgm-progress-card header, .rgm-safety-card header { display: flex; justify-content: space-between; }
.rgm-progress-card header b, .rgm-safety-card header b { font-size: 14px; }
.rgm-progress-card header small { color: var(--rgm-orange); font-size: 11px; }
.rgm-progress-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
.rgm-progress-card span { display: grid; gap: 3px; padding: 10px; border-radius: 9px; color: #9699a1; background: #f8f9fb; font-size: 10px; }
.rgm-progress-card b { color: #42444a; font-size: 17px; }
.rgm-progress-card p { margin: 0; color: #8a8d94; font-size: 11px; }
.rgm-safety-card { margin-top: 12px; }
.rgm-safety-card ul { display: grid; gap: 8px; padding: 0; color: #70737b; font-size: 12px; list-style: none; }
.rgm-safety-card li::before { margin-right: 7px; color: #628ce0; content: "◉"; }
.rgm-safety-card button { width: 100%; min-height: 38px; border: 1px solid #ffd5cd; border-radius: 9px; color: #e36050; background: #fff7f5; }
.rgm-loading { display: grid; justify-items: center; gap: 10px; padding: 62px 0; color: #888b93; font-size: 12px; }
.rgm-loading i { width: 24px; height: 24px; border: 3px solid #eef0f4; border-top-color: var(--rgm-orange); border-radius: 50%; animation: rgm-spin .8s linear infinite; }
.rgm-loading-page { padding: 0 16px; }
.rgm-loading-page .rgm-empty { margin-top: 30px; }
.rgm-voice-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22,24,31,.48); }
.rgm-voice-modal > section { width: min(100%, 350px); padding: 18px; border-radius: 18px; background: #fff; }
.rgm-voice-modal header { display: flex; justify-content: space-between; align-items: flex-start; }
.rgm-voice-modal header span { color: #8e93a1; font-size: 10px; letter-spacing: 1px; }
.rgm-voice-modal h2 { margin: 4px 0 0; font-size: 17px; }
.rgm-voice-modal header button { border: 0; background: transparent; font-size: 24px; }
.rgm-voice-modal button:focus-visible { outline: 3px solid rgba(53,120,237,.25); outline-offset: 2px; }
.rgm-decision-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(22,24,31,.52); }
.rgm-decision-modal > section { width: min(100%, 350px); padding: 19px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(27,31,40,.2); }
.rgm-decision-modal h2 { margin: 0; color: #292b31; font-size: 18px; }
.rgm-decision-modal p { margin: 9px 0 14px; color: #777b84; font-size: 12px; line-height: 1.65; }
.rgm-decision-modal label { display: block; margin: 12px 0 7px; color: #4b4e55; font-size: 12px; font-weight: 700; }
.rgm-decision-modal textarea { box-sizing: border-box; width: 100%; min-height: 88px; padding: 11px; border: 1px solid #e2e5eb; border-radius: 11px; color: #373940; background: #fafbfc; font: inherit; resize: vertical; }
.rgm-decision-modal textarea:focus { border-color: #ff8b67; outline: 3px solid rgba(255,101,68,.12); }
.rgm-decision-modal small { display: block; min-height: 17px; margin-top: 5px; color: #e35245; font-size: 10px; }
.rgm-decision-modal footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.rgm-decision-modal footer button { min-height: 42px; border-radius: 11px; }
.rgm-decision-modal .rgm-primary.danger { background: #ff5d45; }
.rgm-decision-modal button:focus-visible { outline: 3px solid rgba(53,120,237,.25); outline-offset: 2px; }
.rgm-recorder { display: grid; justify-items: center; gap: 9px; padding-top: 20px; }
.rgm-recorder > i { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; color: var(--rgm-orange); background: var(--rgm-orange-soft); font-size: 28px; font-style: normal; }
.rgm-recorder strong { font-size: 25px; letter-spacing: 1px; }
.rgm-recorder p { margin: 0; color: #91949c; font-size: 11px; }
.rgm-recorder > div { display: flex; gap: 8px; margin-top: 10px; }
.rgm-recorder button { min-width: 112px; }
@keyframes rgm-spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .rgm-page { box-shadow: 0 0 0 1px #e8eaf0, 0 16px 45px rgba(39,46,61,.08); }
  .rgm-list-actions, .rgm-screen-footer { right: calc((100vw - 430px) / 2 + 16px); left: calc((100vw - 430px) / 2 + 16px); }
}
