/* Projects > Deliverables > SAP: the plan list, the versions card and an opened plan's workspace. */

/* An opened plan's back link gets its own row above the title, as in CSR Authoring. */
.app-main-content .wc-structured-panel-header:has(> .sap-ws-back:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "back"
        "title"
        "desc"
        "actions";
}

.app-main-content .wc-structured-panel-header > .sap-ws-back {
    grid-area: back;
}

.sap-ws-back {
    align-self: flex-start;
    margin-bottom: 0.25rem;
}

.sap-ws-back[hidden],
.sap-authoring-versions[hidden],
.sap-authoring-workspace[hidden],
.sap-authoring-tab[hidden],
.sap-authoring-note[hidden] {
    display: none;
}

.sap-authoring-versions {
    margin-top: 1rem;
}

.sap-authoring-note,
.sap-authoring-wizard-note {
    color: var(--cai-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sap-authoring-workspace-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
    margin-bottom: 1.125rem;
}

.sap-authoring-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.875rem;
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

.sap-ws-tabs {
    --nwc-tabs-nav-gap: .125rem;
    --nwc-tabs-nav-overflow-x: auto;
    --nwc-tabs-nav-border: 0;
    --nwc-tabs-button-margin-block-end: 0;
    --nwc-tabs-padding: .625rem .875rem;
    --nwc-tabs-font-size: .84375rem;
    --nwc-tabs-font-weight: 600;
    --nwc-tabs-active-font-weight: 600;
    --nwc-tabs-color: var(--cai-muted);
    --nwc-tabs-hover-color: var(--cai-ink);
}

.sap-authoring-wizard-step {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* The Protocol & data tab: inputs, protocol facts with how each was found, copied tables, the CRF's visits. */
.sap-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.sap-inputs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.sap-inputs-title {
    margin: 0;
    font-size: 1.0625rem;
}

.sap-inputs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sap-inputs-actions [hidden] {
    display: none;
}

.sap-inputs-intro {
    margin: 0;
    max-width: 62.5rem;
    color: var(--cai-muted);
}

.sap-inputs-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-inputs-notice {
    padding: 0.625rem 0.875rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: var(--nwc-radius-md, 0.375rem);
}

.sap-inputs-notice p,
.sap-inputs-notice ul {
    margin: 0;
}

.sap-inputs-notice ul {
    padding-left: 1.25rem;
}

.sap-inputs-notice--changed {
    border-color: var(--cai-warn);
    color: var(--cai-warn);
}

.sap-inputs-muted {
    margin: 0;
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

.sap-inputs-mono {
    font-family: var(--nwc-font-mono, ui-monospace, monospace);
    font-size: 0.75rem;
    word-break: break-all;
}

/* The extracted text of a fact is the section as read; long sections scroll inside their cell. */
.sap-inputs-text {
    max-width: 32rem;
    max-height: 7.5rem;
    overflow-y: auto;
    white-space: pre-line;
}

/* The plan and version grids need a definite height, as CSR Authoring's do: without one their shells collapse to the
   pagination bar and every row is hidden. */
.sap-authoring-surface .app-grid-page-grid-shell {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: clamp(12rem, 30vh, 22rem);
    min-height: 12rem;
}

.sap-authoring-surface .app-grid-page-grid-shell > .wc-structured-panel,
.sap-authoring-surface .app-grid-page-grid-shell > .wc-structured-panel > .wc-structured-panel-content {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

/* Estimands & analyses tab (mockup #estimands): the estimand list beside the chosen estimand, then the testing order
   and the analysis sets. Model content is read-only text and small tables; edits go through dialogs. */
.sap-model {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sap-model-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.sap-model-head h2 {
    margin: 0;
    font-size: 1.0625rem;
}

.sap-model-spacer {
    flex: 1 1 auto;
}

.sap-model-muted {
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

.sap-model-mono {
    font-family: var(--cai-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 0.75rem;
}

.sap-model-lines {
    white-space: pre-line;
}

.sap-model-notice {
    color: var(--cai-muted);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.375rem;
}

.sap-model-estimands {
    display: grid;
    grid-template-columns: 18.75rem minmax(0, 1fr);
    gap: 1.125rem;
    align-items: start;
}

.sap-model-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1.125rem;
    align-items: start;
}

.sap-model-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.sap-model-group {
    padding: 0.625rem 0.875rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cai-muted);
}

.sap-model-item {
    display: flex;
    gap: 0.5625rem;
    align-items: flex-start;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    border-left: 0.1875rem solid transparent;
    font-size: 0.8125rem;
}

.sap-model-item:hover,
.sap-model-item:focus-visible {
    background: var(--cai-hover);
}

.sap-model-item.on {
    background: var(--nwc-accent-subtle);
    border-left-color: var(--nwc-accent);
}

.sap-model-item-id {
    min-width: 2.25rem;
    color: var(--cai-muted);
    padding-top: 0.0625rem;
}

.sap-model-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sap-model-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.3125rem;
    border-radius: 50%;
    background: var(--cai-warn);
}

.sap-model-attributes,
.sap-model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.sap-model-attributes td {
    padding: 0.5625rem 0.75rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
    vertical-align: top;
}

.sap-model-attributes td:first-child {
    width: 12.5rem;
    font-weight: 600;
}

.sap-model-attributes tr:last-child td,
.sap-model-table tr:last-child td {
    border-bottom: 0;
}

.sap-model-table th,
.sap-model-table td {
    padding: 0.3125rem 0.5rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
    text-align: left;
    vertical-align: top;
}

.sap-model-table th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cai-muted);
}

.sap-model-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.sap-model-issue-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sap-model-issue {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.8125rem;
}

.sap-model-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.sap-model-node {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}

.sap-model-arrow {
    align-self: center;
    color: var(--cai-muted);
}

.sap-model-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sap-model-form-heading {
    font-weight: 600;
    margin-top: 0.5rem;
}

.sap-model-form-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* One intercurrent event (or CRF field): its fields in pairs on a row like the dialog's other fields, with the
   remove button above them, so nothing runs off the dialog's edge. */
.sap-model-ice-row,
.sap-model-crf-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
}

.sap-model-ice-head {
    display: flex;
    justify-content: flex-end;
}

.sap-model-crf-visits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sap-model-crf-visit {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
}

.sap-model-form-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.sap-model-note {
    color: var(--cai-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Shells & traceability tab (mockup #shells): the matrix scrolls inside its own height so the preview and the ARS
   card below it stay on screen; the matrix is answered whole (bounded by the analysis model), not paged. */
.sap-shells {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-shells-matrix {
    max-height: clamp(16rem, 45vh, 32rem);
    overflow: auto;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
}

.sap-shells-matrix .sap-model-table th {
    position: sticky;
    top: 0;
    background: var(--cai-card);
}

.sap-shells-matrix tr.on td {
    background: var(--cai-hover);
}

.sap-shells-gap {
    color: var(--cai-err);
    font-size: 0.75rem;
}

.sap-shells-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.sap-shells-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sap-shells-box {
    font-family: var(--nwc-font-mono);
    font-size: 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.sap-shells-box-title {
    text-align: center;
    font-weight: 600;
}

.sap-shells-box-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.sap-shells-box-table th,
.sap-shells-box-table td {
    padding: 0.125rem 0.375rem;
    text-align: center;
}

.sap-shells-box-table th {
    border-top: 0.0625rem solid var(--cai-ink);
    border-bottom: 0.0625rem solid var(--cai-ink);
}

.sap-shells-box-table td.sap-shells-box-section,
.sap-shells-box-table td.sap-shells-box-indent {
    text-align: left;
}

.sap-shells-box-table td.sap-shells-box-indent {
    padding-left: 1.25rem;
}

.sap-shells-box-notes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sap-shells-box-model {
    background: color-mix(in srgb, var(--cai-warn) 12%, var(--cai-card));
}

@media (max-width: 75rem) {
    .sap-model-estimands,
    .sap-model-columns,
    .sap-shells-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Author tab (mockup #author): the shared section list (csr-toc, with the CSR rail's grid) beside the open section.
   The section scrolls with the page; the list is sticky as in CSR. */
.sap-author {
    min-height: 32rem;
}

.sap-author-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding-top: 0.75rem;
}

.sap-author-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0 1.25rem;
}

.sap-author-word {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.sap-author-word-note {
    max-width: 40rem;
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

/* In the Author tab's toolbar: the AI generation run's status line, then its actions, as CSR's title row. */
.sap-ai-run {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.sap-ai-run .csr-ai-run-status:empty {
    display: none;
}

.sap-ai-run-sections {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-height: 16rem;
    overflow-y: auto;
}

.sap-ai-run-sections[hidden] {
    display: none;
}

.sap-ai-run-sections-label {
    font-weight: 600;
}

.sap-author-workspace {
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.sap-author-workspace > .sap-author-canvas,
.sap-author-workspace > .sap-author-preview {
    flex: 1 1 0;
}

.sap-author-preview {
    max-height: calc(100vh - 18rem);
}

.sap-author-preview-state[hidden],
.sap-author-preview .csr-doc-preview-scroller[hidden],
.sap-author[data-view="edit"] .sap-author-preview,
.sap-author[data-view="preview"] .sap-author-canvas {
    display: none;
}

@media (max-width: 75rem) {
    .sap-author-workspace {
        flex-direction: column;
    }
}

.sap-author-canvas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 1.25rem;
}

.sap-author-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sap-author-title {
    margin: 0;
    color: var(--cai-ink);
    font-size: 1.125rem;
}

.sap-author-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.sap-author-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 0.0625rem solid var(--cai-warn);
    border-radius: 0.5rem;
    color: var(--cai-ink);
    font-size: 0.8125rem;
}

.sap-author-notice p {
    margin: 0;
}

.sap-author-block {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sap-author-chip {
    align-self: flex-start;
}

.sap-author-model {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
    background: var(--cai-card);
}

.sap-author-model-line {
    display: block;
}

.sap-author-model .sap-model-attributes caption {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    text-align: left;
}

.sap-author-model .sap-model-attributes th {
    width: 12.5rem;
    padding: 0.5625rem 0.75rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
    font-weight: 600;
    text-align: left;
    vertical-align: top;
}

.sap-author-pending {
    margin: 0;
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

.sap-author-editing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
    background: var(--cai-card);
}

.sap-author-editing[hidden] {
    display: none;
}

.sap-author-editing p {
    margin: 0;
}

/* The AI drafting pane beside the open section: what to ask, the section's text blocks, then its proposals, which
   take CSR's AI drafting classes. */
.sap-author-ai {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-author-ai-ask {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
}

.sap-author-ai-selection,
.sap-author-ai-finding {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.sap-author-ai[hidden],
.sap-author-ai [hidden] {
    display: none;
}

.sap-author-template-text {
    margin: 0 0 0.5rem;
    color: var(--cai-muted);
    font-size: 0.8125rem;
    white-space: pre-wrap;
}

/* Quality checks tab (mockup #qc): the run line and Run checks, the release gate, the open-finding tiles, the checks
   of the last run and the findings grid, paged by the server. The grids sit in a block container, where the page's
   flex sizing of grid shells collapses them to their pager, so each is given its own height. */
.sap-quality,
.sap-quality-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-quality-content[hidden],
.sap-quality-message[hidden] {
    display: none;
}

.sap-quality-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sap-quality-message,
.sap-quality-muted {
    font-size: 0.8125rem;
    color: var(--cai-muted);
}

.sap-quality-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sap-quality-filters > [hidden] {
    display: none;
}

.sap-quality-filter-select {
    min-width: 11rem;
}

.sap-quality-cell {
    padding: 0.25rem 0;
    line-height: 1.4;
    white-space: normal;
}

.sap-quality .sap-quality-checks-grid.app-grid-page-grid-shell {
    flex: none;
    height: clamp(12rem, 35vh, 24rem);
}

.sap-quality .sap-quality-grid.app-grid-page-grid-shell {
    flex: none;
    height: clamp(20rem, 60vh, 40rem);
}

.sap-review,
.sap-review-content,
.sap-lock,
.sap-lock-content,
.sap-word-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sap-review-content[hidden],
.sap-review-message[hidden],
.sap-lock-content[hidden],
.sap-lock-message[hidden] {
    display: none;
}

.sap-review-message,
.sap-review-muted,
.sap-lock-message,
.sap-lock-muted {
    font-size: 0.8125rem;
    color: var(--cai-muted);
}

.sap-review-note,
.sap-lock-note {
    font-size: 0.8125rem;
    color: var(--cai-warn);
}

.sap-review-table,
.sap-lock-table {
    width: 100%;
    border-collapse: collapse;
}

.sap-review-table th,
.sap-review-table td,
.sap-lock-table th,
.sap-lock-table td {
    padding: 0.375rem 0.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 0.0625rem solid var(--cai-rule);
}

.sap-review-table th,
.sap-lock-table th {
    font-size: 0.75rem;
    color: var(--cai-muted);
}

.sap-review-actions,
.sap-lock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sap-review-stages {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.sap-review-stage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sap-review-stage-name {
    font-weight: 600;
    color: var(--cai-ink);
}

.sap-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sap-lock-glyph {
    flex: none;
}

.sap-lock-glyph-passed {
    color: var(--cai-ok);
}

.sap-lock-glyph-open {
    color: var(--cai-warn);
}

.sap-review-checks,
.sap-lock-checks {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sap-review-check,
.sap-lock-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sap-review-check-label,
.sap-lock-check-label {
    color: var(--cai-ink);
}

.sap-review-check-open .sap-review-check-label,
.sap-lock-check-open .sap-lock-check-label {
    font-weight: 600;
}

.sap-review-sign-label {
    font-size: 0.75rem;
    color: var(--cai-muted);
}

.sap-review-sign-meaning {
    font-weight: 600;
    color: var(--cai-ink);
}

.sap-review-sign-content {
    padding: 0.5rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.25rem;
    background: var(--cai-card);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.sap-review-stage-form {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-bottom: 0.75rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
}

.sap-review-form-rows {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sap-review-form-row,
.sap-review-form-add {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.sap-review-form-name {
    min-width: 10rem;
    color: var(--cai-ink);
}

.sap-review-form-signer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sap-lock-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 0.75rem;
}

.sap-lock-does {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding-left: 1.125rem;
    font-size: 0.8125rem;
}

.sap-lock-filing-head {
    margin-bottom: 0.375rem;
}

.sap-lock-pending-slot[hidden] {
    display: none;
}

.sap-lock-pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sap-lock-pending-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid var(--cai-rule);
}

.sap-lock-pending-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sap-lock-adam {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 0.0625rem solid var(--cai-rule);
}

.sap-word-upload-problems {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--cai-err);
}

.sap-word-upload-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.375rem;
    background: var(--cai-card);
}

.sap-word-upload-row[data-held] {
    margin-left: 1.5rem;
}

.sap-word-upload-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    color: var(--cai-ink);
}

.sap-word-upload-detail {
    margin: 0;
    color: var(--cai-muted);
    font-size: 0.8125rem;
}

.sap-word-upload-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sap-render {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sap-render-message {
    color: var(--cai-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.sap-render-message[hidden] {
    display: none;
}

.sap-render-renditions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.sap-render-card-disabled {
    opacity: 0.6;
}

.sap-render-muted {
    color: var(--cai-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sap-render-problem {
    color: var(--cai-warn);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.sap-render-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
.sap-author-source-row,
.sap-author-judgement-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 0.0625rem solid var(--cai-rule);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}

.sap-author-judgement-text {
    padding: 0.125rem 0.5rem;
    border-left: 0.1875rem solid var(--cai-rule);
    color: var(--cai-muted);
    overflow-wrap: anywhere;
}
