/* V135 additions scoped to evidence/plan surfaces; existing map layout unchanged. */
.controlled-contract { border: 1px solid var(--border-color, #64748b); border-radius: .75rem; padding: 1rem; margin-block: 1rem; }
.controlled-contract h3 { font-size: 1rem; font-weight: 700; }
.controlled-contract p, .controlled-contract li, #nextSessionPlanContent > p { font-size: .9375rem; line-height: 1.5; }
.controlled-contract ul { padding-left: 1.25rem; list-style: disc; }
#nextSessionPlanContent caption { text-align: left; font-weight: 700; padding: .75rem 0; }
#nextSessionPlanContent th, #nextSessionPlanContent td { font-size: .875rem; }
#nextSessionPlanContent summary { cursor: pointer; min-height: 44px; padding: .75rem 0; }
#nextSessionPlanContent pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8125rem; }
#nextSessionPlanContent button, #controlledPlanIntent, #controlledInterventionMode, #controlledRepeatSource { min-height: 44px; font-size: .875rem; }
#controlledCorrectionFields input { min-height: 44px; width: 100%; }
@media (max-width: 600px) {
 .controlled-contract { padding: .75rem; }
 #nextSessionPlanContent .next-session-plan-actions { display: grid; grid-template-columns: 1fr; }
 #nextSessionPlanContent .next-session-plan-table-wrap { max-width: 100%; overflow-x: auto; }
 #nextSessionPlanContent .next-session-plan-table { min-width: 560px; }
}

/* History entry uses its own visible native button treatment. */
.history-controlled-test-action { min-height:44px; padding:8px 12px; border:1px solid var(--teal, #4cd7c9); border-radius:7px; color:var(--copy-teal, #9ff7ed); background:rgba(76,215,201,.12); font-size:.875rem; font-weight:750; line-height:1.35; cursor:pointer; }
.history-controlled-test-action:hover { background:rgba(76,215,201,.22); }
.history-controlled-test-action:focus-visible { outline:3px solid var(--teal, #4cd7c9); outline-offset:3px; }
.history-controlled-test-action[aria-busy="true"] { cursor:progress; }
.history-controlled-test-action:disabled { cursor:not-allowed; opacity:.6; }

/* Same native History actions and identity; consistent visible treatment. */
.history-row-actions [data-history-action="cross-session"],
.history-row-actions [data-history-action="controlled-evidence"] { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid var(--border-strong,#64748b); border-radius:7px; color:var(--copy-teal,#9ff7ed); background:var(--surface-3,#182331); font-size:.875rem; font-weight:750; line-height:1.35; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
.history-row-actions [data-history-action="cross-session"]:hover,
.history-row-actions [data-history-action="controlled-evidence"]:hover { border-color:var(--teal,#4cd7c9); }
.history-row-actions [data-history-action="cross-session"]:focus-visible,
.history-row-actions [data-history-action="controlled-evidence"]:focus-visible { outline:3px solid var(--teal,#4cd7c9); outline-offset:3px; }

/* Existing-plan index: scoped to the additional retrieval surface. */
.test-plans-panel { padding:20px; }
.test-plans-panel h2 { font-size:1.25rem; font-weight:800; }
.test-plans-panel p { margin-block:10px; font-size:1rem; }
.test-plan-filters,.test-plan-actions { display:flex; flex-wrap:wrap; gap:8px; }
.test-plan-filters button,.test-plan-actions button { min-height:44px; padding:8px 12px; font-size:.875rem; border:1px solid var(--border-strong,#64748b); border-radius:8px; background:var(--surface-3,#182331); color:var(--text,#fff); cursor:pointer; }
.test-plan-filters button[aria-pressed="true"] { border-color:var(--teal,#4cd7c9); color:var(--copy-teal,#9ff7ed); }
.test-plan-filters button:focus-visible,.test-plan-actions button:focus-visible { outline:3px solid var(--teal,#4cd7c9); outline-offset:2px; }
.test-plan-card { padding:18px; margin-block:16px; border:1px solid var(--border-strong,#64748b); border-radius:12px; overflow-wrap:anywhere; }
.test-plan-card header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.test-plan-card h3 { font-size:1.125rem; font-weight:750; }
.test-plan-card dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.test-plan-card dt { font-size:.875rem; color:var(--muted,#cbd5e1); }
.test-plan-card dd { margin:0; font-size:1rem; }
@media(max-width:600px) { .test-plan-actions { display:grid; grid-template-columns:1fr; } .test-plans-panel,.test-plan-card { padding:12px; } }

/* V162 administration: retain the standard plan action row inside disclosure. */
#nextSessionPlanContent .next-session-plan-actions { min-width:0; }
#nextSessionPlanContent .next-session-plan-actions button { min-width:0; max-width:100%; padding:10px 12px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
#nextSessionPlanContent .next-session-plan-actions button:not(:disabled) { cursor:pointer; }
#nextSessionPlanContent .next-session-plan-actions button:hover:not(:disabled) { box-shadow:inset 0 0 0 1px currentColor; }
#nextSessionPlanContent .next-session-plan-administration { margin-top:12px; }
#nextSessionPlanContent .next-session-plan-administration > .next-session-plan-actions { margin-top:0; padding-top:8px; border-top:0; }
#nextSessionPlanContent .plan-caution-action { color:var(--copy-warning,var(--amber)); border-color:var(--amber); }
@media(max-width:600px) {
 #nextSessionPlanContent .next-session-plan-administration > .next-session-plan-actions { grid-template-columns:minmax(0,1fr); }
}
