/* R27 — premium adaptive CRM, opt-in UI only */
.r27-title{margin-bottom:17px}.r27-title h3{font:500 clamp(25px,3vw,42px) Georgia,serif;color:#344638;margin:10px 0}.r27-top-card{background:#fcfbf9;border:1px solid #dfE5db;border-radius:20px;padding:clamp(16px,3vw,30px)}
.r27-heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.r27-heading-row h3{margin-bottom:4px}.r27-heading-row p{color:#718071}
.r27-top-card label,.r27-field{display:grid;gap:7px;color:#4a5b4e;font-weight:600;font-size:13px;letter-spacing:0.01em}
.r27-top-card input,.r27-top-card select,.r27-field input,.r27-field select,.r27-field textarea{background:#fff;border:1px solid #d2ddd2;border-radius:11px;min-height:46px;padding:11px 14px;color:#344638;font:inherit;width:100%;max-width:100%;box-sizing:border-box}
.r27-field b{color:#a34d24}.r27-collection,.r27-tx-cards{display:grid;gap:12px;margin-top:16px}
.r27-person,.r27-tx-card,.r27-method{background:#fff;border:1px solid #e0e6dd;border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:12px;align-items:center;box-shadow:0 4px 16px rgba(40,62,41,.025)}
.r27-person h4,.r27-tx-card h4{font:600 20px Georgia,serif;color:#354839;margin:0 0 6px}.r27-person p,.r27-tx-card p{margin:0 0 7px;color:#586e5f}.r27-person small,.r27-method small{font-size:12px;color:#758475;display:block}
.r27-person-actions{display:flex;gap:7px;flex-shrink:0;align-items:center}
.r27-legacy-admin{margin:24px 0 0;border:1px solid #cfd9ce;padding:15px;border-radius:14px}.r27-legacy-admin summary{cursor:pointer;font-weight:650;color:#48614d}
.r27-filter-top{display:grid;grid-template-columns:minmax(155px,.6fr) minmax(200px,1.4fr);gap:13px;margin-top:20px}.r27-filterrow{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin-top:13px}
.r27-multi{min-width:180px;max-width:100%;position:relative;border:1px solid #d3ddd2;border-radius:11px;background:#fff;flex:0 1 auto;font-size:13px}
.r27-multi>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:13px 15px;min-height:44px;align-items:center;color:#415843;font-weight:600;user-select:none}
.r27-multi>summary::-webkit-details-marker{display:none}.r27-multi[open]{box-shadow:0 8px 25px rgba(48,65,48,.09);z-index:15}
.r27-multi-options{position:absolute;top:100%;left:0;width:max(240px,100%);min-width:240px;max-width:min(350px,calc(100vw - 48px));max-height:250px;overflow-y:auto;background:white;border:1px solid #d6dfd2;border-radius:0 0 12px 12px;box-shadow:0 14px 25px rgba(33,51,39,.14);padding:7px;overscroll-behavior:contain}
.r27-multi-options label{display:flex;align-items:center;gap:10px;font-weight:450;line-height:1.3;padding:10px;border-radius:7px;cursor:pointer}
.r27-multi-options label:hover{background:#eef3ec}.r27-multi-options input{width:17px;height:17px;min-height:17px;margin:0;accent-color:#3e5b48}
.r27-actions-lite{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}.r27-actions-lite small{color:#72816f}
.r27-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:22px}.r27-stat{background:#edf2ea;padding:17px;border-radius:14px;display:flex;flex-direction:column;gap:8px}.r27-stat span{font-size:12px;color:#58705b}.r27-stat strong{font-size:clamp(16px,2vw,22px);color:#334a3a;overflow-wrap:anywhere}
.r27-tx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.r27-tx-card{display:flex;flex-direction:column;align-items:stretch;padding:18px;gap:12px}.r27-card-top,.r27-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;color:#637667;font-size:12px}.r27-tag{font-size:10px;letter-spacing:0.08em;font-weight:800;color:#405f48;border-radius:999px;background:#e6f0e5;padding:7px 11px}.r27-tag.r27-internal{background:#f7ece0;color:#9a602c}.r27-card-center strong{font-size:22px;color:#405747}.r27-card-center p{font-size:13px;word-break:break-word}.r27-pages{display:flex;align-items:center;justify-content:space-between;margin:18px 0;gap:8px;color:#6a796b}
.r27-counter{display:inline-flex;margin-left:6px;min-width:22px;height:22px;padding:1px 7px;align-items:center;justify-content:center;border-radius:999px;background:#c33b3b;color:white;font:700 12px system-ui}
.r27-priority{background:#f2f5ef;border-left:4px solid #79947c;border-radius:12px;padding:16px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 14px}.r27-priority strong{color:#405747}.r27-priority small{color:#697968}
.r27-method{margin-top:9px;flex-wrap:wrap}.r27-method>div{flex:1;min-width:150px}.r27-method strong{display:block;margin-bottom:5px}
.r27-modal{position:fixed;border:1px solid #d7e1d7;border-radius:22px;padding:0;max-width:min(650px,calc(100vw - 20px));width:650px;max-height:min(90dvh,800px);overflow:auto;background:#f9faf6;color:#394c3c;box-shadow:0 30px 90px rgba(21,39,25,.3)}.r27-modal::backdrop{background:rgba(15,32,20,.65);backdrop-filter:blur(3px)}.r27-wide{width:770px;max-width:min(770px,calc(100vw - 20px))}
.r27-modal-head{padding:24px 25px 18px;border-bottom:1px solid #e4eade;position:relative;padding-right:60px}.r27-modal-head h2{font:500 clamp(23px,3vw,34px) Georgia,serif;margin:6px 0;color:#354938}.r27-modal-head p{font-size:13px;line-height:1.6;color:#798679;margin:0}.r27-close{position:absolute;right:16px;top:18px;border:1px solid #cbd7cb;background:white;border-radius:50%;height:37px;width:37px;font-size:22px;cursor:pointer}
.r27-step-status{background:#ebf1e8;color:#49614e;padding:12px 24px;font-size:12px;font-weight:800;letter-spacing:.06em}.r27-form{padding:20px 25px 24px}.r27-field-list{display:grid;gap:14px;max-height:53dvh;overflow-y:auto}.r27-meaning{background:#edf3e9;border-radius:12px;padding:14px;margin:0}.r27-review-item{display:grid;grid-template-columns:40% 1fr;gap:12px;padding:11px 0;border-bottom:1px solid #e1e8dd;color:#748475}.r27-review-item strong{color:#394d3f;overflow-wrap:anywhere;font-size:13px}.r27-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.r27-actions button{flex:1;min-height:49px}
.r27-history{max-height:64dvh;overflow-y:auto;padding:12px 24px 22px}.r27-history>h3{margin:19px 0 10px}.r27-history-row{display:grid;gap:4px;border-bottom:1px solid #e5e8e0;padding:13px 0}.r27-history-row span,.r27-history-row small{color:#7b897a}.r27-scan video{display:block;width:calc(100% - 36px);margin:18px auto;border-radius:16px;max-height:56vh;background:#101510}.r27-scan #r27ScanStatus{padding:12px 18px}.r27-scancancel{margin:5px 18px 20px}
.r27-error{color:#b05d4a}.r27-none{color:#728573;padding:22px}
@media(max-width:700px){.r27-filter-top{grid-template-columns:1fr}.r27-tx-cards{grid-template-columns:1fr}.r27-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.r27-person{flex-direction:column;align-items:stretch}.r27-person-actions{justify-content:flex-start}.r27-filterrow>*{flex:1 1 calc(50% - 8px);min-width:0}.r27-multi-options{max-width:calc(100vw - 44px)}.r27-top-card{padding:15px}.r27-modal{border-radius:20px 20px 0 0;max-width:100%;width:100%;max-height:94dvh;min-height:55vh;margin:auto 0 0;inset: auto 0 0 0}.r27-modal-head{padding:19px 57px 16px 18px}.r27-form{padding:16px 17px 25px}.r27-field-list{max-height:61dvh}.r27-history{max-height:65dvh;padding:14px 18px}.r27-review-item{grid-template-columns:1fr;gap:5px}.r27-actions{position:sticky;bottom:0;background:#f9faf6;padding:12px 0 calc(8px + env(safe-area-inset-bottom));margin:10px 0 0}}
@media(max-width:370px){.r27-filterrow>*{flex-basis:100%}.r27-stats{grid-template-columns:1fr 1fr}.r27-actions button{font-size:12px}}

/* R28: make action links and operator insight readable on small screens */
.r28-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.r28-promo-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.r28-promo-columns p{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e6e9e4;padding:8px 0;margin:0}
.r28-promo-columns p b{font-weight:700;white-space:nowrap}
.r27-counter{display:inline-block;min-width:21px;text-align:center;border-radius:99px;padding:1px 6px;background:#b91c1c;color:white;font-size:11px;font-weight:700}
@media(max-width:640px){.r28-promo-columns{grid-template-columns:1fr}.r28-card-actions{flex-direction:column;align-items:stretch}.r28-card-actions button{min-height:44px}}

.r28-manual-scan{display:grid;margin:12px 18px}.r28-manual-confirm{margin:4px 18px 12px;min-height:44px}
