/* All frontend selectors are prefixed to avoid interfering with the active theme. */
.rem-wrap,.rem-auth{box-sizing:border-box;color:#151827;font-family:'Kanit',sans-serif;font-size:15px;line-height:1.6}
.rem-wrap *,.rem-auth *,.rem-admin *{box-sizing:border-box}
.rem-dashboard button,.rem-dashboard input,.rem-dashboard select,.rem-dashboard textarea{font-family:'Kanit',sans-serif}
.rem-wrap{width:100%;max-width:1280px;margin:36px auto;padding:0 24px}
.rem-auth{width:min(816px,calc(100% - 30px));margin:32px auto;padding:56px 36px 52px;border-radius:12px;background:#fbfbfd;min-height:520px}
.rem-auth-header{text-align:center;margin-bottom:34px}
.rem-auth-header h2{margin:0 0 6px;font-size:25px;line-height:1.35;color:#0b0b0c;font-weight:700}
.rem-auth-header p{margin:0;color:#555}
.rem-auth>.rem-form,.rem-auth>.rem-resend,.rem-auth>p{max-width:450px;margin-left:auto;margin-right:auto}
.rem-form label:not(.rem-check){display:block;color:#171923;margin:16px 0 7px;font-weight:600}
.rem-form input:not([type=checkbox]),.rem-form select{width:100%;height:43px;background:#fff;border:1px solid #d7d9df;border-radius:2px;padding:8px 12px;font:inherit;color:#1b2030;box-shadow:none;max-width:none}
.rem-form input:focus,.rem-form select:focus{border-color:#3c9bd3;outline:2px solid #3c9bd333}
.rem-form .rem-check{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:14px;font-weight:500;line-height:1.5;color:#5e6471}
.rem-form .rem-check input{flex:0 0 auto;width:17px;height:17px;margin:0}
.rem-form .rem-check a{color:#246caa}
.rem-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;text-decoration:none!important;border:0;border-radius:5px;background:#3698d0;color:#fff!important;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:filter .12s}
.rem-btn:hover{filter:brightness(.92)}
.rem-btn-light{background:#f2f3f5;color:#555!important;box-shadow:0 2px 4px #00000013}
.rem-btn-dark{background:#0d1437;border:1px solid #000;color:#fff!important}
.rem-btn-outline{background:#fff;border:1px solid #000;color:#0d1437!important}
.rem-actions{display:flex;gap:15px;margin-top:22px;align-items:center;flex-wrap:wrap}
.rem-auth a:not(.rem-btn){text-decoration:none}
.rem-back{display:block;text-align:center;margin:34px 0 0;font-weight:700;color:#222}
.rem-alert{background:#edf7ff;border-left:4px solid #2a96cc;border-radius:4px;padding:12px 16px;margin:12px auto 24px;max-width:100%;color:#173855}
.rem-dashboard .rem-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:32px}
.rem-head h2{margin:0;font-size:25px;color:#090b0c}
.rem-user{text-align:right;color:#272c36;overflow-wrap:anywhere}
.rem-user small{display:block;color:#69727e;margin:1px 0 18px;font-size:13px}
.rem-user .rem-btn{min-height:38px}
.rem-logout{font-size:13px;margin-left:12px;display:inline-block}
.rem-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}
.rem-stat{display:flex;align-items:center;gap:12px;min-width:0;padding:21px 18px;border:1px solid #e4e6ed;border-radius:12px;background:#fff}
.rem-stat small{color:#818794;display:block;font-size:13px}
.rem-stat strong{display:block;font-size:19px;line-height:1.2}
.rem-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;flex-shrink:0;font-size:19px}
.rem-blue{background:#e6f3ff}.rem-green{background:#e8f7ed}.rem-yellow{background:#fff2dd}
.rem-panel{border:1px solid #e5e7ec;border-radius:12px;background:#fafbfc;padding:25px;margin-bottom:55px}
.rem-panel h3,.rem-guide h3{font-size:19px;margin:0 0 9px;color:#090b0c}
.rem-panel>p{margin:0 0 14px}
.rem-add-grid{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:10px;align-items:end}
.rem-add-grid label{font-size:13px;margin:0 0 5px!important}
.rem-add-grid input,.rem-add-grid select{min-width:0}
.rem-add-grid button{min-width:112px;min-height:43px}
.rem-panel .rem-note{font-size:12px;color:#707886;margin:12px 0 0}
.rem-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:28px;align-items:start}
.rem-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #e5e7ec;border-radius:12px}
.rem-table{border-collapse:collapse;width:100%;background:#fff;font-size:14px;margin:0!important}
.rem-table th,.rem-table td{padding:12px 15px;text-align:left;border-bottom:1px solid #edf0f2;vertical-align:top}
.rem-table th{white-space:nowrap;background:#f9fafc;font-weight:700;color:#3b414b}
.rem-table tr:last-child td{border-bottom:0}
.rem-badge{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:30px}
.rem-badge.rem-pending{background:#fff1db;color:#8a5300}.rem-badge.rem-active{background:#e6f8ef;color:#086835}.rem-badge.rem-rejected{background:#ffeded;color:#ab2424}
.rem-reason{margin-top:6px;font-size:12px;overflow-wrap:anywhere;color:#ad2828}
.rem-resubmit{margin-top:5px}
.rem-mini{border:0;background:transparent;text-decoration:underline;color:#236cbb;cursor:pointer;padding:0;font:inherit;font-size:12px}
.rem-guide{border-radius:12px;background:#f9f9fb;padding:22px;overflow-wrap:anywhere}
.rem-guide h3{font-size:16px}.rem-guide p{font-size:14px;margin:11px 0;color:#464b54}
.rem-admin{max-width:1600px}.rem-admin .rem-table-scroll{background:#fff}
.rem-admin .rem-review{max-width:390px;min-width:240px}.rem-admin .rem-review label{margin:6px 0;font-size:12px}
.rem-admin .rem-review input:not([type=checkbox]){width:100%;min-width:160px;height:34px}
.rem-admin .rem-review .rem-actions{gap:5px;margin:10px 0 0}
.rem-admin .rem-table th,.rem-admin .rem-table td{padding:10px;white-space:normal}
.rem-admin>.rem-alert{margin:15px 0}
@media(max-width:960px){.rem-add-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rem-add-grid button{width:100%}.rem-main-grid{grid-template-columns:1fr}.rem-panel{margin-bottom:28px}}
@media(max-width:640px){.rem-auth{padding:30px 19px;min-height:unset;margin:15px auto}.rem-auth-header h2{font-size:21px}.rem-wrap{padding:0 13px;margin:20px auto}.rem-dashboard .rem-head{display:block}.rem-user{text-align:left;margin-top:10px}.rem-user small{margin-bottom:8px}.rem-stats{grid-template-columns:1fr;gap:8px}.rem-stat{padding:12px}.rem-panel{padding:15px}.rem-add-grid{grid-template-columns:1fr}.rem-main-grid{gap:15px}.rem-table{min-width:600px}}

.rem-guest{padding:22px;border:1px solid #e5e7ec;background:#fafbfc;border-radius:12px}.rem-guest p{margin:14px 0 0}
.rem-admin .rem-settings{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 20px}
.rem-admin .rem-settings input.regular-text{max-width:430px;width:100%;height:36px}

/* Admin approval UI can appear below the public member dashboard for administrators. */
.rem-approval-panel{margin:35px 0 24px;min-width:0}
.rem-approval-panel h2{font-size:22px;margin:0 0 10px}
.rem-filter-bar,.rem-pagination{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:15px 0}
.rem-filter{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid #d9deea;border-radius:6px;text-decoration:none!important;color:#0d1437;background:#fff}
.rem-filter.is-active{color:#fff!important;background:#0d1437;border-color:#000}
.rem-approval-front .rem-table{min-width:690px}
.rem-approval-panel .rem-review{max-width:350px;min-width:170px}
.rem-approval-panel .rem-review label{display:block;font-size:13px;margin:8px 0 5px}
.rem-approval-panel .rem-review input[type=number]{display:block;width:100%;min-width:100px;height:42px}
.rem-approval-panel .rem-review .rem-check{display:flex;gap:8px;align-items:flex-start;line-height:1.4;margin:9px 0}
.rem-approval-panel .rem-review .rem-check input{margin:4px 0 0;width:16px;height:16px;flex:none}
.rem-approval-panel .rem-review .rem-actions{gap:8px;margin:12px 0 0}
.rem-admin .rem-approval-panel .rem-review input[type=number]{height:34px}
@media(max-width:640px){.rem-approval-front .rem-table{min-width:690px}}

/* Accessible CTA specificity: the site theme used a white button override. */
.rem-wrap.rem-dashboard .rem-account-form .rem-add-grid button.rem-btn.rem-btn-dark,
.rem-wrap.rem-dashboard .rem-account-form .rem-add-grid button.rem-btn.rem-btn-dark:hover,
.rem-wrap.rem-dashboard .rem-account-form .rem-add-grid button.rem-btn.rem-btn-dark:focus {
    appearance:none;background:#0d1437!important;background-color:#0d1437!important;
    border:1px solid #000!important;color:#fff!important;-webkit-text-fill-color:#fff;
    opacity:1;font-family:'Kanit',sans-serif!important;font-weight:600!important;
    text-shadow:none!important;box-shadow:none!important;line-height:1.3;
}
.rem-wrap.rem-dashboard .rem-account-form .rem-add-grid button.rem-btn.rem-btn-dark:hover {filter:brightness(1.16)}
.rem-wrap.rem-dashboard .rem-account-form .rem-add-grid button.rem-btn.rem-btn-dark:focus-visible {outline:3px solid #519bff;outline-offset:2px}
.rem-badge.rem-revoked{background:#ededf1;color:#4e5362;border:1px solid #a4a9b4}
.rem-row-revoked .rem-revoked-number{text-decoration:line-through;text-decoration-thickness:2px;color:#777d87}
.rem-secondary-form{margin-top:12px;padding-top:10px;border-top:1px solid #e3e5eb}
.rem-btn-revoke{border-color:#ac3030!important;color:#9a2020!important;background:#fff!important}
.rem-btn-revoke:hover{background:#fff1f1!important}
.rem-admin .rem-btn-revoke{border-color:#ac3030;color:#9a2020}
