.trial-page {
    background: #f4f6f9;
    min-height: 100vh;
    padding: 20px 0 40px;
}

.trial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.trial-back-link {
    margin-bottom: 16px;
}

.trial-page-header,
.trial-card {
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.trial-page-header {
    padding: 20px;
    margin-bottom: 16px;
}

.trial-page-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    color: #101828;
}

.trial-page-subtitle {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.trial-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.trial-summary-item {
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    padding: 12px 14px;
}

.trial-summary-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #667085;
    margin-bottom: 4px;
}

.trial-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.trial-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}

.trial-alert-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.trial-alert-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.trial-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.trial-card {
    padding: 18px;
}

.trial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.trial-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #101828;
}

.trial-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.trial-overview-list,
.trial-info-stack,
.trial-action-stack,
.trial-participant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trial-overview-row,
.trial-info-box,
.trial-participant-row {
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.trial-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.trial-overview-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.trial-info-box {
    padding: 12px 14px;
}

.trial-info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #667085;
    margin-bottom: 4px;
}

.trial-info-value {
    font-size: 14px;
    color: #101828;
    font-weight: 600;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.trial-badge-success {
    background: #ecfdf3;
    color: #027a48;
}

.trial-badge-warning {
    background: #fff7ed;
    color: #b54708;
}

.trial-badge-neutral {
    background: #eef2f6;
    color: #475467;
}

.trial-badge-active {
    background: #eff8ff;
    color: #175cd3;
}

.trial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.trial-btn-primary {
    background: #175cd3;
    color: #ffffff;
    border-color: #175cd3;
}

.trial-btn-primary:hover {
    background: #1849a9;
    border-color: #1849a9;
}

.trial-btn-secondary {
    background: #ffffff;
    color: #344054;
    border-color: #d0d5dd;
}

.trial-btn-secondary:hover {
    background: #f9fafb;
}

.trial-btn-full {
    width: 100%;
}

.trial-inline-form {
    margin: 0;
}

.trial-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trial-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.trial-select {
    min-height: 40px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 10px;
    font-size: 14px;
    color: #101828;
    width: 100%;
    box-sizing: border-box;
}

.trial-empty-state {
    padding: 16px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #f9fafb;
    color: #667085;
    text-align: center;
    font-size: 14px;
}

.trial-muted-note {
    font-size: 13px;
    color: #667085;
    margin: 0;
}

.trial-participant-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.trial-participant-main {
    flex: 1;
    min-width: 0;
}

.trial-participant-name {
    font-size: 15px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 6px;
}

.trial-participant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.trial-weapon-text {
    font-size: 14px;
    color: #344054;
    margin: 0;
}

.trial-participant-actions {
    flex-shrink: 0;
    min-width: 240px;
}

@media (max-width: 980px) {
    .trial-grid {
        grid-template-columns: 1fr;
    }

    .trial-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .trial-page {
        padding-top: 16px;
    }

    .trial-page-header h1 {
        font-size: 22px;
    }

    .trial-overview-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-participant-row {
        flex-direction: column;
        align-items: stretch;
    }

    .trial-participant-actions {
        min-width: 0;
        width: 100%;
    }

    .trial-btn {
        width: 100%;
    }
}

.trial-card-span-2 {
    grid-column: span 2;
}

.trial-mt-12 {
    margin-top: 12px;
}

.trial-mt-16 {
    margin-top: 16px;
}

.trial-alert-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b54708;
}

.trial-input,
.trial-select,
.trial-textarea {
    min-height: 40px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 10px;
    font-size: 14px;
    color: #101828;
    width: 100%;
    box-sizing: border-box;
}

.trial-textarea {
    min-height: 120px;
    padding: 10px;
    resize: vertical;
}

.trial-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.trial-clickable-row {
    cursor: pointer;
}

.trial-inline-check {
    margin-right: 10px;
}

.trial-note-top {
    margin-top: 4px;
}

.trial-section-spacer {
    margin-top: 8px;
    margin-bottom: 0;
}

.trial-sticky-nav {
    position: sticky;
    top: 10px;
    z-index: 1000;
    margin-bottom: 20px;
}

.trial-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.trial-chip-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    text-decoration: none;
    color: #344054;
    background: #ffffff;
}

.trial-chip-link:hover {
    background: #f9fafb;
}

.trial-section {
    margin-bottom: 28px;
}

.trial-card-subtle {
    padding: 16px;
}

.trial-subtitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #101828;
}

.trial-link-muted {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #667085;
    text-decoration: none;
}

.trial-link-muted:hover {
    text-decoration: underline;
}

.trial-mb-16 {
    margin-bottom: 16px;
}

.trial-mt-12 {
    margin-top: 12px;
}

.trial-note-top {
    margin-top: 4px;
}

.trial-table-wrap {
    overflow-x: auto;
}

.trial-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d9dfe7;
    border-radius: 12px;
    overflow: hidden;
}

.trial-table th,
.trial-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.trial-table th {
    text-align: left;
    color: #374151;
    background: #f8fafc;
}

.trial-table-group-cell {
    min-width: 220px;
    font-weight: 700;
    vertical-align: top;
}

.trial-table-members {
    margin-top: 4px;
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
}

.trial-table-center {
    text-align: center;
}

.trial-progress-icon {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid transparent;
}

.trial-progress-icon--completed {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.trial-progress-icon--current {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.trial-progress-icon--pending {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.trial-area-section {
    scroll-margin-top: 100px;
}

.trial-badge.is-active {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.trial-badge.is-waiting {
    background: #eff8ff;
    color: #175cd3;
    border: 1px solid #b2ddff;
}

.trial-badge.is-completed {
    background: #f3f4f6;
    color: #475467;
    border: 1px solid #d0d5dd;
}

.trial-badge.is-draft {
    background: #fff7ed;
    color: #b54708;
    border: 1px solid #fed7aa;
}

.trial-badge.is-unknown {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

@media (max-width: 1024px) {
    .trial-chip-list {
        flex-direction: column;
    }

    .trial-chip-link,
    .trial-select,
    .trial-btn {
        width: 100%;
        box-sizing: border-box;
    }
}