.trials { color: #172b3a; line-height: 1.55; }
.trials h1 { font-size: 1.8rem; font-weight: 700; margin: 1rem 0 .5rem; }
.trials h2 { font-size: 1.1rem; font-weight: 650; margin: 0 0 .75rem; }
.trials p { margin: .75rem 0; }
.trials a { color: #036b65; text-decoration: underline; text-underline-offset: 3px; }
.trial-navigation, .trial-inline { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.trial-panel { background: #f5f8f8; border: 1px solid #d9e3e2; border-radius: 12px; padding: 1.25rem; margin: 1rem 0; }
.trial-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.trial-metrics strong { font-size: 1.9rem; display: block; }
.trial-metrics span, .trials small { display: block; font-size: .8rem; color: #586d78; }
.trial-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.trials label { display: block; font-size: .9rem; margin-top: .75rem; }
.trials input:not([type=checkbox]):not([type=submit]), .trials textarea, .trials select { display: block; width: 100%; color: #172b3a; background: white; border: 1px solid #b6c8c6; border-radius: 6px; padding: .6rem; margin: .25rem 0 .75rem; }
.trials button, .trials input[type=submit] { background: #08665e; color: white; padding: .5rem .8rem; border-radius: 6px; cursor: pointer; font-size: .9rem; margin: .25rem 0; }
.trials :disabled { opacity: .45; cursor: not-allowed; }
.trial-table-wrap { overflow-x: auto; }
.trials table { width: 100%; text-align: left; border-collapse: collapse; margin: 1rem 0; }
.trials td, .trials th { padding: .85rem; border-bottom: 1px solid #d9e3e2; }
.trial-transcript { max-height: 600px; overflow-y: auto; margin: 1rem 0; }
.trial-message { background: white; border: 1px solid #d9e3e2; border-radius: 10px; padding: .8rem; margin: .75rem 2rem .75rem 0; }
.trial-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.trial-outbound { background: #e2f0ec; margin: .75rem 0 .75rem 2rem; }
.trial-alert { background: #fff2d4; border-radius: 8px; padding: 1rem; }
.trial-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; align-items: end; }
.dark .trials { color: #e4eceb; }
.dark .trial-panel { background: #132322; border-color: #354a46; }
.dark .trials a { color: #75d8c4; }
.dark .trial-message { background: #1d3330; border-color: #354a46; }
.dark .trial-outbound { background: #23493e; }
.dark .trials small, .dark .trial-metrics span { color: #a7bdb7; }
.dark .trial-alert { background: #513d18; }
@media (max-width: 800px) { .trial-columns { grid-template-columns: 1fr; } }
