/* Activation editor only: compact rows and deliberately distinct preset actions. */
.oa-rate-card .auto-rate-presets{display:grid;grid-template-columns:1fr;gap:6px}
.auto-rate-profile-row{display:flex;align-items:center;gap:5px;min-width:0}
.auto-rate-profile-row :is(select,input){flex:1;min-width:0;width:0}
.oa-shell .auto-rate-profile-row .auto-rate-icon-action{flex:none;display:grid;place-items:center;width:37px;min-height:37px;padding:4px;font-size:1.12rem;font-weight:700}
.oa-rate-card .auto-rate-profile-target{font-size:.73rem;color:#52685f;overflow-wrap:anywhere}
.auto-rate-confirm{padding:9px;border:1px solid #c7a656;border-radius:8px;background:#fff9e7;display:flex;flex-wrap:wrap;gap:6px}
.auto-rate-confirm p{width:100%;font-weight:650}
.oa-shell .auto-rate-confirm button{font-size:.8rem;min-height:34px}
.oa-rate-card .auto-rate-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.auto-rate-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:.82rem}
.auto-rate-table th{position:sticky;top:0;background:#edf5f0;color:#395d4c;z-index:1;font-size:.73rem;font-weight:650;padding:7px 5px;text-align:left;border-bottom:1px solid #cfdfd5}
.auto-rate-table th:nth-child(2){width:92px;text-align:center}
.auto-rate-table th:nth-child(3){width:62px;text-align:center;white-space:nowrap}
.auto-rate-table td{padding:4px 5px;border-bottom:1px solid #e3ece6;vertical-align:middle}
.auto-rate-table td:nth-child(2),.auto-rate-table td:nth-child(3){text-align:center}
.oa-shell .auto-rate-table .auto-rate-name{border:0;border-radius:4px;background:transparent;box-shadow:none;padding:6px 2px;min-height:34px;width:100%;text-align:left;font-size:.82rem;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.oa-shell .auto-rate-table .auto-rate-name:hover,.oa-shell .auto-rate-table .auto-rate-name[aria-expanded=true]{color:#176651;background:#edf6f0}
.auto-rate-value{display:flex;justify-content:center;align-items:center;gap:3px;margin:2px 0;font-size:.74rem}
.oa-shell .auto-rate-table .auto-rate-value input{width:57px;min-width:0;min-height:31px;padding:4px 5px;font-size:.81rem;text-align:right}
.oa-shell .auto-rate-table input[type=checkbox]{width:18px;height:18px;min-width:0;min-height:0;margin:0;vertical-align:middle;cursor:pointer}
.auto-rate-always{color:#7a8b82}
.auto-rate-detail-row td{background:#f4f8f5;text-align:left!important;padding:9px}
.auto-rate-description{display:grid;gap:7px}
.auto-rate-description p{white-space:pre-line;line-height:1.5}
.auto-rate-description label{display:flex;align-items:center;gap:6px;font-size:.76rem}
.oa-shell .auto-rate-description input{width:55px;min-height:31px;padding:4px}
@media(max-width:420px){.auto-rate-table th:nth-child(2){width:83px}.auto-rate-table th:nth-child(3){width:59px}.oa-shell .auto-rate-table .auto-rate-name{font-size:.77rem}.auto-rate-table td{padding:3px 4px}.oa-shell .auto-rate-profile-row .auto-rate-icon-action{width:34px;min-height:34px}.auto-rate-profile-row{gap:4px}}
/* Activation descriptions follow the simulator's compact Lv/effect popup. */
.auto-rate-popup{position:fixed;z-index:3000;box-sizing:border-box;max-height:min(520px,calc(100dvh - 20px));overflow:auto;overscroll-behavior:contain;padding:14px;border:1px solid #b8ad9d;border-radius:10px;color:#292622;background:#fff;box-shadow:0 14px 35px rgb(30 26 22 / 24%);font:12px/1.5 system-ui,sans-serif;touch-action:pan-y}
.auto-rate-popup[hidden]{display:none!important}
.auto-rate-popup header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 30px 0 0;margin:0;background:none}
.auto-rate-popup header strong{color:#24563f;font-size:14px}
.auto-rate-popup header>span{flex:none;padding:2px 6px;border-radius:999px;background:#ece9e2;font-size:9px;font-weight:800}
.auto-rate-popup-close{position:absolute;top:5px;right:5px;display:grid;width:30px;height:30px;padding:0;place-items:center;border:0;border-radius:50%;color:#675f56;background:#eeeae4;font-size:20px;cursor:pointer}
.auto-rate-popup-close:focus-visible{outline:2px solid #b56a22;outline-offset:2px}
.auto-rate-popup-summary{margin:10px 0;padding:9px;border-radius:6px;background:#f5f2eb;white-space:pre-wrap}
.auto-rate-popup-table{width:100%;margin:10px 0 0;border-collapse:separate;border-spacing:0 4px;table-layout:fixed;font:inherit}
.auto-rate-popup-table th,.auto-rate-popup-table td{padding:5px 7px;vertical-align:top;background:#f6f5f1;border:0;text-align:left;overflow-wrap:anywhere}
.auto-rate-popup-table th{width:38px;color:#9b611b;border-radius:5px 0 0 5px;white-space:nowrap;box-sizing:content-box}
.auto-rate-popup-table td{border-radius:0 5px 5px 0}
.auto-rate-effect-number{color:#bd520b;font-weight:700}
.auto-rate-popup-hint{margin:8px 0 0;text-align:right;color:#766f66;font-size:10px}
.auto-rate-popup-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.auto-rate-popup{font-size:11px}.auto-rate-popup header strong{font-size:13px}.auto-rate-popup-close{width:32px;height:32px}}

.auto-rate-stack{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin-top:4px;font-size:10px}.auto-rate-stack input{width:44px!important;min-width:0}
