.access-tabs,.runtime-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 18px;border-bottom:1px solid var(--crm-border);padding-bottom:10px}
.access-tabs button.active,.runtime-tabs button.active{background:var(--crm-blue);color:#fff;border-color:var(--crm-blue)}
.access-pane{min-width:0}.access-toolbar,.access-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}
.access-toolbar label{display:flex;flex-direction:column;gap:6px}.access-toolbar select{min-width:170px;max-width:280px}
.access-note{color:var(--muted);font-size:13px;line-height:1.7}.access-table select{min-width:90px}.access-table th{white-space:nowrap}.access-table td:first-child{min-width:210px;max-width:350px}.access-point-name{display:block}.access-point-id{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.access-group-row td{background:var(--crm-hover);font-weight:600}.access-effective{font-size:11px;display:block;margin-top:4px;color:var(--muted)}
.access-role-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(350px,1.5fr);gap:20px}.access-box{padding:18px;background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:8px}.access-box h4{margin:0 0 14px}.access-box label{margin:8px 0;display:flex;flex-direction:column;gap:6px}.access-box select[multiple]{min-height:150px}.access-box .inline-check{flex-direction:row;align-items:center}.access-box .inline-check input{width:auto}
.condition-row{display:grid;grid-template-columns:minmax(120px,1fr) 130px minmax(120px,1fr) 40px;gap:8px;margin:9px 0}.condition-preview{background:var(--crm-hover);padding:12px;white-space:pre-wrap;overflow-wrap:anywhere}.access-json{font-family:Consolas,monospace;min-height:160px;width:100%}
.resource-share-list{max-height:48vh;overflow:auto;display:grid;gap:6px}.resource-share-list label{display:flex;gap:8px;align-items:center;padding:8px;border-bottom:1px solid var(--crm-border)}.resource-share-list input{width:auto}.resource-history-dialog{width:min(1100px,94vw)}.resource-history-dialog .table-wrap{max-height:58vh}.resource-share-dialog{width:min(600px,94vw)}
.runtime-card{background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:8px;padding:18px;margin:12px 0}.runtime-card h4{margin:0 0 12px}.runtime-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0}.runtime-toolbar label{display:flex;flex-direction:column;gap:5px}.runtime-toolbar select{min-width:180px;max-width:300px}.runtime-chart{width:100%;height:auto;max-height:420px}.runtime-chart text{font-family:inherit;fill:var(--ink);font-size:13px}.runtime-reminder-summary{display:flex;gap:10px;flex-wrap:wrap}.runtime-reminder-summary button{display:flex;gap:14px;align-items:center;text-align:left;background:var(--crm-surface);border:1px solid var(--crm-border);padding:12px 16px}.runtime-reminder-summary strong{color:var(--crm-blue);font-size:20px}.runtime-results{max-height:60vh;overflow:auto}.runtime-status{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.runtime-advanced{margin:15px 0}.runtime-advanced summary{cursor:pointer}.runtime-preview-fields{white-space:pre-wrap;max-width:340px}.record-action-menu{position:relative}.record-action-menu select{max-width:220px}.home-runtime-reminders{grid-column:1/-1;margin-top:18px}.home-runtime-reminders h3{font-size:16px;margin:0 0 12px}
@media(max-width:800px){.access-role-grid{grid-template-columns:1fr}.condition-row{grid-template-columns:1fr 1fr}.access-toolbar label{max-width:100%}.access-toolbar select{max-width:100%}}
.browser-tools{flex-wrap:wrap}.browser-tools #runtimeRecordAction{max-width:190px}.runtime-print-frame{position:fixed;width:1px;height:1px;right:0;bottom:0;border:0}#runtimeActionContent input[type=number]{width:85px}#runtimeActionContent textarea{width:100%;min-height:130px}.runtime-chart [data-runtime-drill]{cursor:pointer}.runtime-chart [data-runtime-drill]:focus{outline:2px solid var(--crm-blue)}
.runtime-chart-scroll{max-width:100%;overflow:auto}.runtime-chart-scroll .runtime-chart{max-height:none}

/* Navigation help and relocated tools share the existing CRM colors. */
.module-knowledge-hint{position:fixed;z-index:150;padding:14px 16px;background:var(--crm-surface);border:1px solid var(--crm-border);border-radius:6px;box-shadow:0 5px 20px var(--crm-shadow);color:var(--ink);font-size:13px;line-height:1.7;max-height:calc(100dvh - 24px);overflow:auto}.module-knowledge-hint strong{color:var(--crm-blue-dark)}.module-knowledge-hint p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.module-knowledge-hint button{color:var(--crm-blue-dark);font:inherit;background:var(--crm-hover);border:1px solid var(--crm-border);padding:4px 8px;border-radius:3px}
.runtime-context-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.runtime-context-heading h3{margin:6px 0}.runtime-context-heading p{margin:5px 0;font-size:13px;color:var(--muted)}.runtime-context-heading>div:last-child{display:flex;gap:8px}.runtime-context-note{font-size:13px;color:var(--crm-blue-dark);padding:10px 12px;background:var(--crm-hover);border:1px solid var(--crm-border);margin:12px 0}.home-runtime-reminders .home-card-heading{margin-bottom:12px}.home-runtime-reminders h3{margin:0}.settings-dictionary-tools{margin-top:16px}.account-dropdown details summary{padding:10px 12px;cursor:pointer;font-size:13px;color:var(--crm-blue-dark)}.account-dropdown details button{padding-left:26px}.runtime-reminder-dialog{width:min(880px,94vw)}.runtime-reminder-dialog .runtime-advanced{margin:0}.runtime-reminder-dialog .runtime-advanced>summary{display:none}
