/* SmartLegal realization of selected Topos.Web contracts. Topos supplies the typed
   interaction vocabulary; this file keeps every adopted control inside SLS's visual system. */

.sls-design-a-shell {
    --color-primary-50: rgba(117, 174, 238, 0.1);
    --color-primary-100: rgba(117, 174, 238, 0.16);
    --color-primary-300: #9bc6f5;
    --color-primary-400: #75aeee;
    --color-primary-500: #4e91df;
    --color-primary-600: #3279cb;
    --color-primary-700: #2564ae;
    --color-bg-elevated: var(--sls-panel-raised);
    --color-bg-subtle: rgba(5, 18, 38, 0.54);
    --color-border-default: var(--sls-border);
    --color-border-subtle: rgba(205, 216, 229, 0.1);
    --color-text-secondary: var(--sls-muted);
    --color-text-tertiary: var(--sls-faint);
    --radius-md: 6px;
    --text-sm: 12px;
}

.sls-design-a-shell .sls-topos-button.tbtn {
    min-height: 38px;
    padding: 8px 12px;
    gap: 7px;
    border-radius: 6px;
    border-color: var(--sls-border);
    background: rgba(7, 24, 49, 0.68);
    color: var(--sls-muted);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sls-design-a-shell .sls-topos-button.tbtn .tbtn__icon,
.sls-design-a-shell .sls-topos-button.tbtn .tbtn__icon2 {
    color: currentColor;
    font-size: 15px;
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="neutral"] {
    background: transparent;
    color: var(--sls-muted);
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="indigo"] {
    border-color: rgba(117, 174, 238, 0.35);
    background: rgba(50, 121, 203, 0.09);
    color: #c9def7;
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="primary"] {
    border-color: rgba(127, 187, 247, 0.64);
    background: linear-gradient(180deg, #4e91df 0%, #3279cb 100%);
    color: #f7fbff;
    box-shadow: 0 6px 18px rgba(18, 77, 145, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sls-design-a-shell .sls-topos-button.tbtn:is(:hover, [aria-expanded="true"]) {
    border-color: rgba(138, 184, 238, 0.6);
    background: rgba(117, 174, 238, 0.12);
    color: var(--sls-text);
    box-shadow: 0 5px 14px rgba(0, 6, 18, 0.16);
    transform: translateY(-1px);
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="primary"]:hover {
    border-color: #9bc6f5;
    background: linear-gradient(180deg, #63a2e8 0%, #397fce 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(18, 77, 145, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sls-design-a-shell .sls-topos-button.tbtn:focus-visible {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(117, 174, 238, 0.14);
}

.sls-design-a-shell .sls-topos-button.tbtn:active {
    transform: translateY(0) scale(0.985);
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-shape="icon-only"] {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-shape="icon-only"] .tbtn__icon {
    font-size: 16px;
}

.sls-design-a-shell .sls-topos-button .tbtn__count {
    min-width: 18px;
    height: 18px;
    margin-left: 1px;
    padding-inline: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(5, 18, 38, 0.48);
    color: #f2f7fd;
    font-size: 10px;
}

.sls-design-a-shell .sls-topos-button .tbtn__count[hidden] {
    display: none;
}

.sls-topos-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 8px;
}

.sls-topos-toolbar .sls-index-search {
    width: 100%;
    min-width: 0;
    margin: 0;
    flex-direction: row;
}

.sls-topos-toolbar .da-search-field {
    min-width: 240px;
}

.sls-search-shortcut {
    flex: none;
    min-width: 22px;
    height: 22px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(205, 216, 229, 0.13);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--sls-faint);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10px;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(205, 216, 229, 0.06);
}

.sls-topos-toolbar .sls-active-filters {
    grid-column: 1 / -1;
    min-height: 0;
}

.sls-topos-toolbar .sls-active-filters:empty {
    display: none;
}

.sls-filter-token.is-static,
.sls-filter-token.is-clear {
    cursor: default;
}

.sls-filter-token.is-clear {
    border-color: rgba(117, 174, 238, 0.28);
    color: var(--sls-accent-strong);
    text-decoration: none;
    cursor: pointer;
}

.sls-command-surface > form:not(.da-search-form) {
    display: contents;
}

.sls-collection-state {
    min-height: 126px;
    padding: 24px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: var(--sls-panel);
    color: var(--sls-muted);
    box-shadow: var(--sls-panel-shadow);
}

.sls-collection-state[hidden] {
    display: none;
}

.sls-collection-state__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.2);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.09);
    color: var(--sls-accent-strong);
    font-size: 19px;
}

.sls-collection-state__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sls-collection-state__copy strong {
    color: var(--sls-text);
    font-size: 13px;
    font-weight: 600;
}

.sls-collection-state__copy span {
    max-width: 620px;
    color: var(--sls-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sls-primary-work-surface {
    position: relative;
}

/* Fields: Topos field algebra, realized in the quiet SLS work-surface language. */
.sls-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sls-topos-field {
    min-width: 0;
    display: grid;
    gap: 6px;
    color: var(--sls-muted);
    font-family: "IBM Plex Sans", sans-serif;
}

.sls-topos-field__label {
    color: var(--sls-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.sls-topos-field__label > span {
    color: var(--sls-red);
}

.sls-topos-field__control-wrap {
    position: relative;
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline: 10px;
    border: 1px solid var(--sls-border);
    border-radius: 6px;
    background: rgba(7, 24, 49, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.sls-topos-field__control-wrap:hover {
    border-color: rgba(138, 184, 238, 0.34);
    background: rgba(9, 29, 57, 0.68);
}

.sls-topos-field__control-wrap:focus-within {
    border-color: rgba(117, 174, 238, 0.62);
    background: rgba(9, 29, 57, 0.76);
    box-shadow: 0 0 0 3px rgba(117, 174, 238, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sls-topos-field__icon,
.sls-topos-field__chevron {
    flex: none;
    color: var(--sls-faint);
    font-size: 15px;
}

.sls-topos-field__chevron {
    font-size: 11px;
    pointer-events: none;
}

.sls-topos-field__control {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 0;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: var(--sls-text);
    font: inherit;
    font-size: 12.5px;
    line-height: 1.4;
}

textarea.sls-topos-field__control {
    min-height: 74px;
    resize: vertical;
}

.sls-topos-field__control::placeholder {
    color: var(--sls-faint);
    opacity: 1;
}

.sls-topos-field__control:disabled,
.sls-topos-field__control:read-only {
    cursor: not-allowed;
    color: var(--sls-faint);
}

.sls-topos-field__hint {
    color: var(--sls-faint);
    font-size: 10.5px;
    line-height: 1.4;
}

.sls-topos-field--compact {
    min-height: 32px;
    grid-template-columns: auto minmax(92px, 1fr);
    align-items: center;
    gap: 8px;
    padding-left: 9px;
    border: 1px solid var(--sls-border);
    border-radius: 6px;
    background: rgba(7, 24, 49, 0.42);
}

.sls-topos-field--compact .sls-topos-field__label {
    color: var(--sls-faint);
    font-size: 10px;
}

.sls-topos-field--compact .sls-topos-field__control-wrap {
    min-height: 30px;
    padding-inline: 7px;
    border: 0;
    border-left: 1px solid rgba(205, 216, 229, 0.1);
    border-radius: 0 5px 5px 0;
    background: transparent;
    box-shadow: none;
}

.sls-topos-field--compact .sls-topos-field__control {
    min-height: 28px;
    padding-block: 4px;
    font-size: 11px;
}

.sls-topos-field--toggle {
    min-height: 32px;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid var(--sls-border);
    border-radius: 6px;
    background: rgba(7, 24, 49, 0.42);
    cursor: pointer;
}

.sls-topos-field--toggle > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sls-topos-toggle-track {
    position: relative;
    width: 28px;
    height: 16px;
    display: inline-flex;
    border: 1px solid rgba(205, 216, 229, 0.2);
    border-radius: 8px;
    background: rgba(5, 18, 38, 0.78);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.sls-topos-toggle-track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: var(--sls-faint);
    transition: transform 160ms ease, background-color 160ms ease;
}

.sls-topos-field--toggle > input:checked + .sls-topos-toggle-track {
    border-color: rgba(117, 174, 238, 0.58);
    background: rgba(50, 121, 203, 0.42);
}

.sls-topos-field--toggle > input:checked + .sls-topos-toggle-track i {
    transform: translateX(12px);
    background: #dcecff;
}

.sls-topos-field--toggle > input:focus-visible + .sls-topos-toggle-track {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.sls-topos-toggle-label {
    color: var(--sls-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Mutually exclusive choices: one state vocabulary for calendar and workbench. */
.sls-topos-choice-group {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: "IBM Plex Sans", sans-serif;
}

.sls-topos-choice {
    min-width: 0;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--sls-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.sls-topos-choice:hover {
    color: var(--sls-text);
    background: rgba(255, 255, 255, 0.035);
}

.sls-topos-choice.is-active,
.sls-topos-choice[aria-pressed="true"] {
    border-color: rgba(117, 174, 238, 0.25);
    background: rgba(117, 174, 238, 0.11);
    color: #e6f1ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 4px 12px rgba(0, 6, 18, 0.12);
}

.sls-topos-choice:focus-visible {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 1px;
}

.sls-topos-choice-group--segmented {
    padding: 3px;
    border: 1px solid var(--sls-border);
    border-radius: 6px;
    background: rgba(5, 18, 38, 0.54);
}

.sls-topos-choice-group--filter {
    flex-wrap: wrap;
}

.sls-topos-choice-group--filter .sls-topos-choice {
    border-color: rgba(205, 216, 229, 0.08);
}

.sls-topos-choice__marker {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 3px;
    background: var(--sls-faint);
}

.sls-topos-choice.is-court .sls-topos-choice__marker { background: var(--cal-court, #78aef3); }
.sls-topos-choice.is-deadline .sls-topos-choice__marker { background: var(--cal-deadline, #ef7887); }
.sls-topos-choice.is-meeting .sls-topos-choice__marker { background: var(--cal-meeting, #72c7ae); }
.sls-topos-choice.is-sync .sls-topos-choice__marker { background: var(--cal-sync, #b19af2); }

.sls-topos-choice__compact-label {
    color: var(--sls-faint);
    font-size: 10px;
    font-weight: 600;
}

/* Structured status badges, backed by Topos CellData rather than freehand spans. */
.sls-topos-status {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(205, 216, 229, 0.11);
    border-radius: 6px;
    background: rgba(7, 24, 49, 0.46);
    color: var(--sls-muted);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
}

.sls-topos-status > i {
    color: var(--sls-accent-strong);
    font-size: 13px;
}

.sls-topos-status > small {
    color: var(--sls-faint);
    font-size: 10px;
    font-weight: 500;
}

.sls-topos-status.is-success {
    border-color: rgba(96, 202, 171, 0.23);
    background: rgba(29, 139, 113, 0.1);
    color: #b9eadc;
}

.sls-topos-status.is-warn {
    border-color: rgba(235, 184, 82, 0.28);
    background: rgba(181, 126, 24, 0.11);
    color: #f3d495;
}

.sls-topos-status.is-danger {
    border-color: rgba(231, 108, 124, 0.28);
    background: rgba(181, 56, 73, 0.11);
    color: #f3b3bd;
}

/* Shared modal chrome. */
.sls-dialog-head > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.sls-dialog-head > div > small {
    max-width: 620px;
    color: var(--sls-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.sls-dialog-head .sls-dialog-close {
    flex: none;
    align-self: start;
    border-color: transparent;
    background: transparent;
}

/* Page placement remains local; control anatomy remains shared. */
.da-search-line > .sls-topos-field,
.da-composer-box > .sls-topos-field {
    flex: 1 1 auto;
}

/* Context-rich row selection used by review and batch workflows. */
.sls-topos-selection-list {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(7, 21, 43, 0.36);
}

.sls-topos-selection-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sls-border);
    color: var(--sls-text);
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.sls-topos-selection-row:last-child {
    border-bottom: 0;
}

.sls-topos-selection-row:hover {
    background: rgba(117, 174, 238, 0.055);
}

.sls-topos-selection-row.is-selected {
    background: rgba(50, 121, 203, 0.09);
    box-shadow: inset 2px 0 0 rgba(117, 174, 238, 0.72);
}

.sls-topos-selection-row.is-disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.sls-topos-selection-row > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sls-topos-selection-check {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid rgba(138, 184, 238, 0.38);
    border-radius: 4px;
    background: rgba(5, 16, 34, 0.72);
    color: transparent;
    font-size: 11px;
}

.sls-topos-selection-row > input:checked + .sls-topos-selection-check {
    border-color: rgba(117, 174, 238, 0.8);
    background: rgba(50, 121, 203, 0.78);
    color: #f5f9ff;
}

.sls-topos-selection-row > input:focus-visible + .sls-topos-selection-check {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.sls-topos-selection-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(138, 184, 238, 0.14);
    border-radius: 6px;
    background: rgba(117, 174, 238, 0.07);
    color: #a9cdff;
    font-size: 16px;
}

.sls-topos-selection-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sls-topos-selection-title,
.sls-topos-selection-meta,
.sls-topos-selection-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-selection-title {
    font-size: 12.5px;
    font-weight: 620;
}

.sls-topos-selection-meta {
    color: var(--sls-muted);
    font-size: 10.5px;
}

.sls-topos-selection-description {
    color: var(--sls-faint);
    font: 10.5px/1.35 "IBM Plex Mono", monospace;
}

.sls-topos-selection-badge {
    padding: 3px 7px;
    border: 1px solid var(--sls-border);
    border-radius: 999px;
    color: var(--sls-muted);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.sls-topos-selection-badge.success {
    border-color: rgba(104, 201, 166, 0.3);
    color: #9de0c7;
}

.sls-topos-selection-badge.warn {
    border-color: rgba(224, 171, 99, 0.3);
    color: #e8c48f;
}

.sls-topos-selection-badge.danger {
    border-color: rgba(240, 143, 146, 0.3);
    color: #f0a7aa;
}

@media (max-width: 680px) {
    .sls-topos-selection-row {
        grid-template-columns: 18px 30px minmax(0, 1fr);
    }

    .sls-topos-selection-badge {
        grid-column: 3;
        justify-self: start;
    }
}

.sls-search-query .sls-topos-field__control-wrap {
    min-height: 44px;
    padding-inline: 13px;
    border-color: var(--sls-border-strong);
    background: rgba(7, 18, 42, 0.4);
}

.sls-history-search {
    width: 100%;
    flex: none;
}

.sls-history-search .sls-topos-field__control-wrap,
.sls-tree-search .sls-topos-field__control-wrap {
    min-height: 34px;
}

.sls-composer-field .sls-topos-field__control-wrap {
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sls-composer-field textarea.sls-topos-field__control {
    min-height: 42px;
    max-height: 120px;
    padding: 10px 8px;
    resize: none;
}

.sls-topos-field.da-calendar-search {
    display: flex;
    gap: 7px;
    padding-inline: 9px;
}

.sls-topos-field.da-calendar-search .sls-topos-field__control-wrap {
    flex: 1;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sls-topos-field.da-calendar-search .sls-topos-field__control {
    min-height: 30px;
    padding: 4px 0;
}

@media (max-width: 960px) {
    .sls-topos-field.da-calendar-search {
        display: none;
    }

    .da-calendar-frame.is-search-open .sls-topos-field.da-calendar-search {
        display: flex;
    }
}

.da-form-grid .sls-topos-field {
    min-width: 0;
}

.da-composer-suggestions .sls-prompt-suggestion {
    min-height: 28px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--sls-faint);
    box-shadow: none;
    font-size: 11px;
}

.da-composer-suggestions .sls-prompt-suggestion:hover {
    border: 0;
    background: transparent;
    color: var(--sls-accent-strong);
    box-shadow: none;
}

.da-scope-controls.sls-topos-choice-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.da-scope-controls .sls-topos-choice {
    width: 100%;
    min-height: 28px;
    gap: 4px;
    padding-inline: 5px;
    font-size: 9.5px;
}

.da-scope-controls .sls-topos-choice__compact-label {
    min-width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--sls-faint);
    font-size: 9px;
}

.da-toolbox .sls-topos-button,
.da-zoom .sls-topos-button {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.da-suggestion-actions .sls-topos-button {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10.5px;
}

.da-calendar-live.sls-topos-status > i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--cal-meeting, #72c7ae);
    font-size: 13px;
}

.da-form-grid .sls-topos-field[data-topos-field-kind="textarea"] {
    grid-column: 1 / -1;
}

.sls-command-search {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sls-command-query {
    width: 100%;
}

.sls-command-query .sls-topos-field__control-wrap {
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sls-command-query .sls-topos-field__icon {
    color: var(--sls-accent);
    font-size: 18px;
}

.sls-command-query .sls-topos-field__control {
    min-height: 42px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
}

.sls-matter-preview__actions .sls-topos-button[data-tb-tone="primary"],
.sls-inspector-actions .sls-topos-button[data-tb-tone="primary"] {
    margin-left: auto;
}

.cc-composer > .cc-composer__field {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
}

.cc-composer > .cc-composer__field .sls-topos-field__control-wrap {
    min-height: 58px;
    align-items: stretch;
    padding: 0;
    border-color: rgba(233, 233, 237, 0.11);
    background: rgba(7, 18, 42, 0.34);
}

.cc-composer > .cc-composer__field .cc-composer__input {
    min-height: 58px;
    max-height: 160px;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    resize: vertical;
}

.sls-design-a-shell .cc-composer .cc-composer__send.sls-topos-button[data-tb-shape="icon-only"] {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
}

.cc-composer__send .is-spinning {
    animation: sls-topos-spin 0.8s linear infinite;
}

.sls-collection-state--loading {
    position: absolute;
    inset: 0;
    z-index: 8;
    min-height: 180px;
    border: 0;
    border-radius: inherit;
    background: rgba(7, 22, 45, 0.88);
    backdrop-filter: blur(5px);
}

.sls-collection-state--loading .sls-collection-state__icon i {
    animation: sls-topos-spin 0.8s linear infinite;
}

@keyframes sls-topos-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
    .sls-topos-toolbar {
        grid-template-columns: 1fr;
    }

    .sls-topos-toolbar .da-toolbar-tools {
        justify-content: space-between;
    }

    .sls-topos-toolbar .da-search-field {
        min-width: 0;
    }

    .sls-search-shortcut {
        display: none;
    }

    .sls-collection-state {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 18px;
    }

    .sls-collection-state__action {
        grid-column: 2;
    }

    .da-search-route .da-search-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .da-search-route .da-search-line > .sls-topos-field {
        grid-column: 1 / -1;
        width: 100%;
    }

    .da-search-route #global-search-filters {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .da-search-route #global-search-submit {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .da-chat-route .da-composer-suggestions .sls-prompt-suggestion:last-child {
        display: inline-flex;
    }

    .sls-topos-field--compact {
        width: 100%;
    }

    .sls-topos-choice-group {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sls-topos-choice-group::-webkit-scrollbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sls-design-a-shell .sls-topos-button.tbtn,
    .sls-collection-state--loading .sls-collection-state__icon i {
        animation: none;
        transition: none;
    }
}

/* Product composition: one heading rhythm for registers, forms, and details. */
.sls-topos-page-header {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.sls-topos-page-header__copy {
    min-width: 0;
}

.sls-topos-page-header__actions {
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* The Topos stats contract, realized as SLS's lean evidence strip. */
.sls-design-a-shell .stats-grid.sls-topos-stats {
    width: min(1180px, 100%);
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border-block: 1px solid rgba(222, 232, 248, 0.09);
}

.sls-design-a-shell .sls-topos-stats .stat-card {
    min-width: 0;
    min-height: 62px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    border-left: 1px solid rgba(222, 232, 248, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sls-design-a-shell .sls-topos-stats .stat-card:first-child {
    border-left: 0;
}

.sls-design-a-shell .sls-topos-stats .stat-card:hover {
    background: rgba(209, 226, 250, 0.035);
    transform: none;
}

.sls-design-a-shell .sls-topos-stats .stat-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.17);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.08);
    color: var(--sls-accent-strong);
    font-size: 14px;
}

.sls-design-a-shell .sls-topos-stats .stat-icon.success {
    border-color: rgba(96, 202, 171, 0.2);
    background: rgba(29, 139, 113, 0.08);
    color: #9de0cd;
}

.sls-design-a-shell .sls-topos-stats .stat-icon.warning {
    border-color: rgba(235, 184, 82, 0.22);
    background: rgba(181, 126, 24, 0.09);
    color: #efcb82;
}

.sls-design-a-shell .sls-topos-stats .stat-content {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 7px;
}

.sls-design-a-shell .sls-topos-stats .stat-label {
    grid-column: 1 / -1;
    color: var(--sls-faint);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.sls-design-a-shell .sls-topos-stats .stat-value {
    color: var(--sls-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

/* Semantic data table: transparent enough to belong to the background, structured enough to scan. */
.sls-topos-table-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 18, 38, 0.44);
    box-shadow: var(--sls-panel-shadow);
    backdrop-filter: blur(16px) saturate(106%);
}

.sls-topos-table-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sls-topos-table {
    width: 100%;
    min-width: 680px;
    border: 0;
    border-collapse: collapse;
    color: var(--sls-muted);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sls-topos-table col.is-primary { width: 42%; }
.sls-topos-table col.is-flexible { width: auto; }
.sls-topos-table col.is-content { width: 180px; }
.sls-topos-table col.is-compact { width: 112px; }

.sls-topos-table thead {
    background: rgba(6, 18, 38, 0.34);
}

.sls-topos-table th {
    height: 38px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(222, 232, 248, 0.1);
    color: var(--sls-faint);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.sls-topos-table td {
    min-width: 0;
    height: 62px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(222, 232, 248, 0.075);
    color: var(--sls-muted);
    vertical-align: middle;
}

.sls-topos-table tbody tr:last-child td {
    border-bottom: 0;
}

.sls-topos-table tbody tr {
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.sls-topos-table tbody tr:hover {
    background: var(--da-row-hover);
    box-shadow: inset 2px 0 0 rgba(117, 174, 238, 0.46);
}

.sls-topos-table :is(th, td).is-numeric {
    text-align: right;
}

.sls-topos-table__cell-action {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sls-topos-table__cell-action:hover {
    color: var(--sls-text);
}

.sls-topos-table__cell-action:focus-visible {
    border-radius: 4px;
    outline: 2px solid rgba(117, 174, 238, 0.74);
    outline-offset: 4px;
}

.sls-topos-table__disclosure {
    color: var(--sls-faint);
    font-size: 14px;
    opacity: 0.42;
    transition: color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.sls-topos-table tbody tr:hover .sls-topos-table__disclosure,
.sls-topos-table__cell-action:focus-visible .sls-topos-table__disclosure {
    color: var(--sls-accent-strong);
    opacity: 1;
    transform: translateX(2px);
}

.sls-topos-table__secondary {
    max-width: 100%;
    margin-top: 3px;
    display: block;
    overflow: hidden;
    color: var(--sls-faint);
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-table .record-card-avatar {
    width: 30px !important;
    min-width: 30px;
    height: 30px !important;
    border: 1px solid rgba(117, 174, 238, 0.19);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.08);
    color: var(--sls-accent-strong);
    font-size: 10px !important;
    font-weight: 600;
}

.sls-topos-table .topos-cell-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.sls-topos-table .topos-cell-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(117, 174, 238, 0.2);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.1);
    color: var(--sls-accent-strong);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.sls-topos-table .topos-cell-identity__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.sls-topos-table .topos-cell-identity__primary {
    display: block;
    overflow: hidden;
    color: var(--sls-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-table .topos-cell-identity__secondary {
    display: block;
    overflow: hidden;
    color: var(--sls-faint);
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-table .topos-date-badge,
.sls-topos-table .topos-tag-badge,
.sls-topos-table .status-badge {
    border-radius: 5px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
}

.sls-topos-table__actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.sls-topos-table__actions .sls-topos-button.tbtn[data-tb-shape="icon-only"] {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
}

/* Shared form sections keep long professional forms linear and readable. */
.sls-topos-form-page {
    width: min(880px, 100%);
    margin-inline: auto;
}

.sls-topos-form-stack {
    display: grid;
    gap: 12px;
}

.sls-topos-form-section {
    overflow: hidden;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 18, 38, 0.44);
    box-shadow: var(--sls-panel-shadow);
}

.sls-topos-form-section__header {
    min-height: 58px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(222, 232, 248, 0.08);
    background: rgba(6, 18, 38, 0.28);
}

.sls-topos-form-section__header > i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.19);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.08);
    color: var(--sls-accent-strong);
    font-size: 15px;
}

.sls-topos-form-section__header h2 {
    margin: 0;
    color: var(--sls-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sls-topos-form-section__header p {
    margin: 2px 0 0;
    color: var(--sls-faint);
    font-size: 10.5px;
    line-height: 1.4;
}

.sls-topos-form-section__grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sls-topos-form-section.is-columns-1 .sls-topos-form-section__grid {
    grid-template-columns: 1fr;
}

.sls-topos-form-section.is-columns-3 .sls-topos-form-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sls-topos-form-actions {
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(222, 232, 248, 0.09);
}

.sls-topos-form-actions > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sls-topos-validation {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(231, 108, 124, 0.28);
    border-radius: 6px;
    background: rgba(181, 56, 73, 0.09);
    color: #f3b3bd;
    font-size: 11px;
}

.sls-topos-validation:empty,
.sls-topos-validation.validation-summary-valid {
    display: none;
}

.sls-topos-field__error {
    color: #f3a8b4;
    font-size: 10.5px;
    line-height: 1.35;
}

.sls-topos-field__error:empty {
    display: none;
}

/* Details use the same hierarchy, actions, stats, and section anatomy on every entity. */
.sls-topos-details {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.sls-topos-details__header {
    position: relative;
    min-height: 74px;
    margin-bottom: 12px;
    padding: 14px 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(222, 232, 248, 0.1);
}

.sls-topos-details__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sls-topos-details__icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.21);
    border-radius: 7px;
    background: rgba(50, 121, 203, 0.09);
    color: var(--sls-accent-strong);
    font-size: 18px;
}

.sls-topos-details__identity h1 {
    margin: 0;
    color: var(--sls-text);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: 0;
}

.sls-topos-details__subtitle {
    margin-top: 4px;
    color: var(--sls-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.sls-topos-details__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.sls-topos-details__status {
    position: absolute;
    left: 50px;
    bottom: -13px;
}

.sls-topos-tabs {
    min-height: 38px;
    margin: 20px 0 16px;
    padding-bottom: 1px;
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(222, 232, 248, 0.09);
    scrollbar-width: none;
}

.sls-topos-tab {
    min-height: 36px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    color: var(--sls-faint);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sls-topos-tab:hover {
    color: var(--sls-text);
    background: rgba(255, 255, 255, 0.025);
}

.sls-topos-tab.is-active,
.sls-topos-tab[aria-current="page"] {
    border-bottom-color: var(--sls-accent);
    color: #dcecff;
}

.sls-topos-detail-stats {
    margin-bottom: 16px !important;
}

.sls-topos-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sls-topos-detail-section {
    min-width: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(222, 232, 248, 0.09);
}

.sls-topos-detail-section > header {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sls-topos-detail-section > header > i {
    color: var(--sls-accent-strong);
    font-size: 15px;
}

.sls-topos-detail-section h2 {
    margin: 0;
    color: var(--sls-text);
    font-size: 12px;
    font-weight: 600;
}

.sls-topos-detail-section dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.sls-topos-detail-section dl > div.is-full {
    grid-column: 1 / -1;
}

.sls-topos-detail-section dt {
    margin-bottom: 3px;
    color: var(--sls-faint);
    font-size: 10px;
    font-weight: 600;
}

.sls-topos-detail-section dd {
    margin: 0;
    color: var(--sls-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sls-topos-detail-section dd a {
    color: var(--sls-accent-strong);
}

.sls-topos-detail-section > footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sls-topos-detail-section__empty {
    margin: 0;
    color: var(--sls-faint);
    font-size: 11.5px;
}

.sls-topos-activity {
    margin-top: 18px;
}

.sls-topos-activity ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sls-topos-activity li {
    position: relative;
    min-height: 48px;
    padding: 7px 0 9px 34px;
}

.sls-topos-activity li::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: -6px;
    left: 13px;
    width: 1px;
    background: rgba(222, 232, 248, 0.11);
}

.sls-topos-activity li:last-child::before {
    display: none;
}

.sls-topos-activity__node {
    position: absolute;
    top: 7px;
    left: 0;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.2);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.09);
    color: var(--sls-accent-strong);
    font-size: 13px;
}

.sls-topos-activity strong,
.sls-topos-activity small {
    display: block;
}

.sls-topos-activity strong {
    color: var(--sls-muted);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
}

.sls-topos-activity small {
    margin-top: 2px;
    color: var(--sls-faint);
    font-size: 10px;
}

/* Topos pager restyled into the same quiet command vocabulary. */
.sls-design-a-shell .pagination-wrapper {
    width: min(1180px, 100%);
    min-height: 48px;
    margin: 0 auto;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(222, 232, 248, 0.08);
    background: rgba(6, 18, 38, 0.25);
}

.sls-design-a-shell .pagination-info,
.sls-design-a-shell .page-size-selector,
.sls-design-a-shell .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sls-faint);
    font-size: 10.5px;
}

.sls-design-a-shell .pagination-info strong {
    color: var(--sls-muted);
    font-weight: 600;
}

.sls-design-a-shell .page-size-select {
    min-width: 58px;
    height: 30px;
    padding: 0 22px 0 8px;
    border: 1px solid var(--sls-border);
    border-radius: 5px;
    background: rgba(7, 24, 49, 0.56);
    color: var(--sls-muted);
    font: inherit;
}

.sls-design-a-shell .pagination-page {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--sls-faint);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
}

.sls-design-a-shell .pagination-page:hover {
    border-color: var(--sls-border);
    background: rgba(117, 174, 238, 0.08);
    color: var(--sls-text);
}

.sls-design-a-shell .pagination-page.active {
    border-color: rgba(117, 174, 238, 0.28);
    background: rgba(117, 174, 238, 0.12);
    color: #dcecff;
}

@media (max-width: 820px) {
    .sls-topos-page-header {
        align-items: flex-start;
    }

    .sls-topos-page-header__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sls-design-a-shell .stats-grid.sls-topos-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sls-design-a-shell .sls-topos-stats .stat-card:nth-child(odd) {
        border-left: 0;
    }

    .sls-design-a-shell .sls-topos-stats .stat-card:nth-child(n + 3) {
        border-top: 1px solid rgba(222, 232, 248, 0.08);
    }

    .sls-topos-table {
        min-width: 560px;
    }

    .sls-topos-table .is-compact-hidden {
        display: none;
    }

    .sls-topos-table col.is-primary { width: 58%; }
    .sls-topos-table col.is-content { width: 150px; }

    .sls-topos-form-section__grid,
    .sls-topos-form-section.is-columns-3 .sls-topos-form-section__grid,
    .sls-topos-details__grid,
    .sls-topos-detail-section dl {
        grid-template-columns: 1fr;
    }

    .sls-topos-detail-section dl > div.is-full {
        grid-column: auto;
    }

    .sls-topos-details__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sls-topos-details__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .sls-topos-details__status {
        position: static;
        grid-column: 1;
    }

    .sls-design-a-shell .pagination-wrapper {
        grid-template-columns: 1fr auto;
    }

    .sls-design-a-shell .pagination-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .sls-design-a-shell .stats-grid.sls-topos-stats {
        grid-template-columns: 1fr;
    }

    .sls-design-a-shell .sls-topos-stats .stat-card,
    .sls-design-a-shell .sls-topos-stats .stat-card:nth-child(odd) {
        border-left: 0;
        border-top: 1px solid rgba(222, 232, 248, 0.08);
    }

    .sls-design-a-shell .sls-topos-stats .stat-card:first-child {
        border-top: 0;
    }

    .sls-topos-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sls-topos-form-actions > div {
        width: 100%;
    }

    .sls-topos-form-actions .sls-topos-button {
        flex: 1;
    }

    .sls-design-a-shell .pagination-wrapper {
        grid-template-columns: 1fr;
    }

    .sls-design-a-shell .page-size-selector,
    .sls-design-a-shell .pagination {
        justify-content: space-between;
    }
}

/* Register composition shared by documents, citations, and legislation. */
.sls-topos-register-toolbar {
    width: min(1180px, 100%);
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(0, auto);
    align-items: end;
    gap: 8px;
}

.sls-topos-register-search {
    margin: 0;
}

.sls-topos-register-filters {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sls-topos-register-filters .sls-topos-button.tbtn {
    white-space: nowrap;
}

.sls-topos-register-frame {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.sls-topos-register-frame .sls-topos-table-shell {
    width: 100%;
    border-radius: 7px 7px 0 0;
}

.sls-topos-register-frame .pagination-wrapper {
    width: 100%;
    border: 1px solid var(--sls-border);
    border-top: 0;
    border-radius: 0 0 7px 7px;
}

.sls-topos-pager--fixed .page-size-selector {
    display: none;
}

.sls-topos-table--embedded {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.sls-topos-form-section__grid > .is-full {
    grid-column: 1 / -1;
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="danger"] {
    border-color: rgba(231, 108, 124, 0.25);
    background: rgba(181, 56, 73, 0.07);
    color: #efb0ba;
}

.sls-design-a-shell .sls-topos-button.tbtn[data-tb-tone="danger"]:hover {
    border-color: rgba(231, 108, 124, 0.46);
    background: rgba(181, 56, 73, 0.14);
    color: #ffd5dc;
}

.sls-topos-table .status-badge.success {
    border-color: rgba(96, 202, 171, 0.22);
    background: rgba(29, 139, 113, 0.1);
    color: #a8e4d3;
}

.sls-topos-table .status-badge.warning {
    border-color: rgba(235, 184, 82, 0.24);
    background: rgba(181, 126, 24, 0.1);
    color: #f2ce85;
}

.sls-topos-table .status-badge.danger {
    border-color: rgba(231, 108, 124, 0.24);
    background: rgba(181, 56, 73, 0.1);
    color: #f3b3bd;
}

.sls-topos-table .status-badge.indigo,
.sls-topos-table .status-badge.info {
    border-color: rgba(117, 174, 238, 0.24);
    background: rgba(50, 121, 203, 0.1);
    color: #c5def9;
}

.sls-design-a-shell .sls-topos-stats .stat-urgency-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sls-design-a-shell .sls-topos-stats .stat-urgency-badge {
    min-width: 18px;
    padding: 2px 5px;
    border: 1px solid rgba(222, 232, 248, 0.11);
    border-radius: 4px;
    color: var(--sls-faint);
    font-size: 9px;
    text-align: center;
}

/* Upload is a specialized field, but it uses the same restrained surface and state vocabulary. */
.sls-topos-upload-layout {
    width: min(760px, 100%);
    margin-inline: auto;
}

.sls-topos-upload-layout form {
    display: grid;
    gap: 12px;
}

.sls-topos-upload-zone {
    min-height: 244px;
    padding: 34px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed rgba(117, 174, 238, 0.34);
    border-radius: 7px;
    background: rgba(8, 18, 38, 0.4);
    box-shadow: var(--sls-panel-shadow);
    color: var(--sls-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.sls-topos-upload-zone:hover,
.sls-topos-upload-zone.is-dragover {
    border-color: rgba(155, 198, 245, 0.72);
    background: rgba(50, 121, 203, 0.09);
}

.sls-topos-upload-zone.is-dragover {
    transform: translateY(-1px);
}

.sls-topos-upload-zone:focus-within {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.sls-topos-upload-zone__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.22);
    border-radius: 7px;
    background: rgba(50, 121, 203, 0.1);
    color: var(--sls-accent-strong);
    font-size: 24px;
}

.sls-topos-upload-zone__title {
    color: var(--sls-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.sls-topos-upload-zone__meta {
    margin-top: 5px;
    color: var(--sls-faint);
    font-size: 10.5px;
}

.sls-topos-upload-zone__action {
    margin-top: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(117, 174, 238, 0.26);
    border-radius: 5px;
    background: rgba(50, 121, 203, 0.08);
    color: #c5def9;
    font-size: 11px;
    font-weight: 600;
}

.sls-topos-file-preview {
    min-height: 72px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 18, 38, 0.44);
    box-shadow: var(--sls-panel-shadow);
}

.sls-topos-file-preview[hidden],
.sls-topos-upload-progress[hidden],
.sls-topos-upload-zone[hidden] {
    display: none;
}

.sls-topos-file-preview__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 174, 238, 0.2);
    border-radius: 6px;
    background: rgba(50, 121, 203, 0.08);
    color: var(--sls-accent-strong);
    font-size: 20px;
}

.sls-topos-file-preview__details {
    min-width: 0;
}

.sls-topos-file-preview__details strong,
.sls-topos-file-preview__details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-file-preview__details strong {
    color: var(--sls-text);
    font-size: 12px;
    font-weight: 600;
}

.sls-topos-file-preview__details small {
    margin-top: 3px;
    color: var(--sls-faint);
    font-size: 10px;
}

.sls-topos-upload-progress {
    display: grid;
    gap: 7px;
    color: var(--sls-faint);
    font-size: 10px;
    text-align: center;
}

.sls-topos-upload-progress__track {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: rgba(222, 232, 248, 0.09);
    color: #4e91df;
    appearance: none;
}

.sls-topos-upload-progress__fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #4e91df;
    transition: width 180ms ease;
}

.sls-topos-upload-progress__track::-webkit-progress-bar {
    background: rgba(222, 232, 248, 0.09);
}

.sls-topos-upload-progress__track::-webkit-progress-value {
    background: currentColor;
}

.sls-topos-upload-progress__track::-moz-progress-bar {
    background: currentColor;
}

.sls-topos-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 9px;
    border: 1px solid var(--sls-border);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.45;
}

.sls-topos-alert p {
    margin: 0;
}

.sls-topos-alert--danger {
    border-color: rgba(231, 108, 124, 0.28);
    background: rgba(181, 56, 73, 0.09);
    color: #f3b3bd;
}

.sls-topos-spin {
    animation: sls-topos-spin 700ms linear infinite;
}

@keyframes sls-topos-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
    .sls-topos-register-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sls-topos-register-filters {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .sls-topos-register-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sls-topos-upload-zone {
        min-height: 210px;
        padding: 28px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sls-topos-spin {
        animation: none;
    }
}

/* Rich menu rows retain Topos command semantics while carrying enterprise-level context. */
.sls-topos-menu-item {
    width: 100%;
    min-height: 48px;
    text-align: left;
}

.sls-topos-menu-item .dropdown-item-text,
.sls-topos-menu-item .dropdown-item-title,
.sls-topos-menu-item .dropdown-item-desc {
    display: block;
}

.sls-topos-menu-item .dropdown-item-title {
    color: var(--sls-text);
    font-size: 11.5px;
    font-weight: 600;
}

.sls-topos-menu-item .dropdown-item-desc {
    margin-top: 2px;
    color: var(--sls-faint);
    font-size: 9.5px;
    font-weight: 400;
}

/* Document workspace: preserve its specialist reading tools inside the shared product frame. */
.da-document-detail-route .sls-document-workspace {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.da-document-detail-route .toolbar,
.da-document-detail-route .urgency-legend-bar,
.da-document-detail-route .table-container,
.da-document-detail-route .bulk-actions-bar {
    width: 100%;
}

.da-document-detail-route .toolbar {
    padding-inline: 12px;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 18, 38, 0.38);
    box-shadow: var(--sls-panel-shadow);
}

.da-document-detail-route .filter-pill i {
    margin-right: 4px;
}

.da-document-detail-route .toolbar-right,
.da-document-detail-route .view-controls,
.da-document-detail-route .bulk-actions,
.da-document-detail-route .panel-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.da-document-detail-route .panel-actions .sls-topos-button.tbtn {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 10.5px;
}

.da-document-detail-route .table-container {
    border-color: var(--sls-border);
    background: rgba(8, 18, 38, 0.4);
    box-shadow: var(--sls-panel-shadow);
}

.da-document-detail-route .content-panel,
.da-document-detail-route .sidebar-card {
    border-color: rgba(222, 232, 248, 0.1);
    background: rgba(7, 19, 39, 0.38);
    box-shadow: none;
}

.da-document-detail-route button.sidebar-card-header,
.da-document-detail-route button.ontology-item,
.da-document-detail-route button.concept-chip {
    color: inherit;
    font: inherit;
}

.da-document-detail-route button.sidebar-card-header {
    width: 100%;
    border: 0;
    text-align: left;
}

.da-document-detail-route button.ontology-item {
    width: 100%;
    border: 0;
    text-align: left;
}

.da-document-detail-route button.concept-chip {
    appearance: none;
}

.da-document-detail-route :is(button.sidebar-card-header, button.ontology-item, button.concept-chip):focus-visible {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.da-document-detail-route .sidebar-card-body > .sls-topos-button,
.da-document-detail-route .quick-actions-grid .sls-topos-button {
    width: 100%;
}

.da-document-detail-route .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.da-document-detail-route .quick-actions-grid .sls-topos-button.tbtn {
    min-height: 52px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 820px) {
    .da-document-detail-route .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .da-document-detail-route .toolbar-right {
        justify-content: space-between;
    }

    .da-document-detail-route .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .da-document-detail-route .panel-actions {
        width: 100%;
        overflow-x: auto;
    }
}

/* Client-rendered Topos controls share the server-rendered state vocabulary. */
.sls-design-a-shell .custom-modal-close.sls-topos-button.tbtn,
.sls-design-a-shell .toast-close.sls-topos-button.tbtn {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
}

.sls-design-a-shell .custom-modal-footer[hidden],
.sls-design-a-shell .reprocess-progress[hidden] {
    display: none;
}

.sls-design-a-shell .custom-modal-footer .sls-topos-button {
    min-width: 92px;
}

.sls-design-a-shell .model-option {
    cursor: pointer;
}

.sls-design-a-shell .model-option:focus-within {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.sls-design-a-shell .model-option.is-success .model-option-header > i { color: #8fd8c2; }
.sls-design-a-shell .model-option.is-primary .model-option-header > i { color: #9bc6f5; }
.sls-design-a-shell .model-option.is-indigo .model-option-header > i { color: #c4b5fd; }
.sls-design-a-shell .model-option.is-warning .model-option-header > i { color: #efcb82; }

.sls-design-a-shell .citations-modal-list.is-bounded {
    max-height: 400px;
}

.sls-design-a-shell button.citations-modal-item,
.sls-design-a-shell button.causal-event-compact,
.sls-design-a-shell button.concept-item,
.sls-design-a-shell button.causal-event-item,
.sls-design-a-shell button.term-chip,
.sls-design-a-shell button.saved-view-item-main {
    color: inherit;
    font: inherit;
    text-align: left;
}

.sls-design-a-shell button.citations-modal-item,
.sls-design-a-shell button.concept-item,
.sls-design-a-shell button.causal-event-item,
.sls-design-a-shell button.saved-view-item-main {
    width: 100%;
}

.sls-design-a-shell :is(button.citations-modal-item, button.causal-event-compact, button.concept-item, button.causal-event-item, button.term-chip, button.saved-view-item-main):focus-visible {
    outline: 2px solid var(--sls-accent-strong);
    outline-offset: 2px;
}

.sls-design-a-shell .causal-event-compact.is-danger .causal-type,
.sls-design-a-shell .causal-event-item.is-danger .causal-event-icon { color: #f3a8b4; }
.sls-design-a-shell .causal-event-compact.is-warning .causal-type,
.sls-design-a-shell .causal-event-item.is-warning .causal-event-icon { color: #efcb82; }
.sls-design-a-shell .causal-event-compact.is-info .causal-type,
.sls-design-a-shell .causal-event-item.is-info .causal-event-icon { color: #9bc6f5; }
.sls-design-a-shell .causal-event-compact.is-success .causal-type,
.sls-design-a-shell .causal-event-item.is-success .causal-event-icon { color: #9de0cd; }
.sls-design-a-shell .causal-event-compact.is-indigo .causal-type,
.sls-design-a-shell .causal-event-item.is-indigo .causal-event-icon { color: #c4b5fd; }

.sls-design-a-shell .causal-event-item.is-danger .causal-event-icon { background: rgba(181, 56, 73, 0.1); }
.sls-design-a-shell .causal-event-item.is-warning .causal-event-icon { background: rgba(181, 126, 24, 0.1); }
.sls-design-a-shell .causal-event-item.is-info .causal-event-icon { background: rgba(50, 121, 203, 0.1); }
.sls-design-a-shell .causal-event-item.is-success .causal-event-icon { background: rgba(29, 139, 113, 0.1); }
.sls-design-a-shell .causal-event-item.is-indigo .causal-event-icon { background: rgba(124, 92, 214, 0.1); }

.sls-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sls-shortcuts-group h4 {
    margin: 0 0 10px;
    color: var(--sls-text);
    font-size: 11.5px;
    font-weight: 600;
}

.sls-shortcuts-group.is-full {
    grid-column: 1 / -1;
    padding-top: 13px;
    border-top: 1px solid var(--sls-border);
}

.sls-shortcuts-list {
    display: grid;
    gap: 7px;
}

.sls-shortcuts-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sls-shortcuts-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sls-muted);
    font-size: 10.5px;
}

.sls-topos-upload-zone--compact {
    min-height: 190px;
    box-shadow: none;
}

.sls-design-a-shell .saved-view-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.sls-design-a-shell .saved-view-item-main {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
}

@media (max-width: 520px) {
    .sls-shortcuts-grid,
    .sls-shortcuts-list.is-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared operational panels for analytics, settings, and training routes. */
.sls-topos-form-stack {
    display: grid;
    gap: 12px;
}

.sls-topos-inline-action {
    display: flex;
    align-items: end;
    gap: 8px;
}

.sls-topos-inline-action__field {
    flex: 1 1 auto;
}

.sls-topos-danger-zone {
    border-color: rgba(240, 143, 146, 0.24);
}

.sls-topos-danger-zone .sls-topos-form-section__header > i,
.sls-topos-danger-zone .sls-topos-form-section__header h2 {
    color: #f0a7aa;
}

.sls-topos-maintenance-list {
    display: grid;
}

.sls-topos-maintenance-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--sls-border);
}

.sls-topos-maintenance-list > div:first-child {
    border-top: 0;
}

.sls-topos-maintenance-list span,
.sls-topos-maintenance-list strong,
.sls-topos-maintenance-list small {
    display: block;
}

.sls-topos-maintenance-list strong {
    color: var(--sls-text);
    font-size: 12.5px;
}

.sls-topos-maintenance-list small {
    margin-top: 3px;
    color: var(--sls-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.sls-topos-form-status {
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px solid rgba(104, 201, 166, 0.24);
    border-radius: 6px;
    background: rgba(104, 201, 166, 0.075);
    color: #9de0c7;
    font-size: 11.5px;
}

.sls-topos-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sls-topos-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 23, 46, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sls-topos-panel > header {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--sls-border);
    background: rgba(117, 174, 238, 0.035);
}

.sls-topos-panel > header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sls-topos-panel > header i {
    color: #a9cdff;
    font-size: 15px;
}

.sls-topos-panel > header strong {
    color: var(--sls-text);
    font-size: 12.5px;
    font-weight: 650;
}

.sls-topos-panel > header em {
    color: var(--sls-faint);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.sls-topos-panel--register {
    margin-top: 12px;
}

.sls-topos-panel--register .sls-topos-table-wrap {
    border: 0;
    border-radius: 0;
}

.sls-topos-metric-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 12px;
    list-style: none;
}

.sls-topos-metric-list li {
    display: grid;
    grid-template-columns: minmax(120px, 0.72fr) minmax(160px, 1.28fr);
    align-items: center;
    gap: 12px;
}

.sls-topos-metric-list li > span {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.sls-topos-metric-list strong {
    overflow: hidden;
    color: var(--sls-text);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sls-topos-metric-list em {
    color: var(--sls-faint);
    font-size: 9.5px;
    font-style: normal;
    white-space: nowrap;
}

.sls-topos-metric-list progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: rgba(205, 216, 229, 0.08);
    color: #75aeee;
}

.sls-topos-metric-list progress::-webkit-progress-bar {
    border-radius: 3px;
    background: rgba(205, 216, 229, 0.08);
}

.sls-topos-metric-list progress::-webkit-progress-value {
    border-radius: 3px;
    background: #75aeee;
}

.sls-topos-metric-list progress::-moz-progress-bar {
    border-radius: 3px;
    background: #75aeee;
}

.sls-topos-metric-list li.is-indigo progress::-webkit-progress-value { background: #a9a6f8; }
.sls-topos-metric-list li.is-indigo progress::-moz-progress-bar { background: #a9a6f8; }
.sls-topos-metric-list li.is-blue progress::-webkit-progress-value { background: #75aeee; }
.sls-topos-metric-list li.is-blue progress::-moz-progress-bar { background: #75aeee; }
.sls-topos-metric-list li.is-success progress::-webkit-progress-value { background: #68c9a6; }
.sls-topos-metric-list li.is-success progress::-moz-progress-bar { background: #68c9a6; }
.sls-topos-metric-list li.is-warn progress::-webkit-progress-value { background: #e0ab63; }
.sls-topos-metric-list li.is-warn progress::-moz-progress-bar { background: #e0ab63; }
.sls-topos-metric-list li.is-neutral progress::-webkit-progress-value { background: #8e9caf; }
.sls-topos-metric-list li.is-neutral progress::-moz-progress-bar { background: #8e9caf; }

.sls-topos-status-distribution {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 152px;
    padding: 12px;
    gap: 8px;
}

.sls-topos-status-distribution > span {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid var(--sls-border);
    border-top: 2px solid #8e9caf;
    border-radius: 5px;
    background: rgba(205, 216, 229, 0.025);
    text-align: center;
}

.sls-topos-status-distribution > span.success { border-top-color: #68c9a6; }
.sls-topos-status-distribution > span.indigo { border-top-color: #a9a6f8; }
.sls-topos-status-distribution > span.warn { border-top-color: #e0ab63; }
.sls-topos-status-distribution > span.blue { border-top-color: #75aeee; }

.sls-topos-status-distribution strong {
    color: var(--sls-text);
    font: 650 22px/1 "IBM Plex Sans", sans-serif;
}

.sls-topos-status-distribution em {
    color: var(--sls-muted);
    font-size: 9.5px;
    font-style: normal;
}

@media (max-width: 840px) {
    .sls-topos-analytics-grid {
        grid-template-columns: 1fr;
    }

    .sls-topos-inline-action,
    .sls-topos-maintenance-list > div {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .sls-topos-metric-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .sls-topos-status-distribution {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sls-topos-form-section > .sls-topos-inline-action,
.sls-topos-form-section > .sls-topos-maintenance-list {
    margin: 14px;
}

.sls-topos-section-header--actions > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.sls-topos-section-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.sls-topos-selection-list--scroll {
    max-height: 430px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
}

.sls-topos-selection-footer > span {
    color: var(--sls-muted);
    font-size: 11px;
}

.sls-topos-selection-footer > span strong {
    color: var(--sls-text);
    font: 650 13px/1 "IBM Plex Mono", monospace;
}

.sls-topos-code-field textarea {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
}

.sls-topos-format-contract {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--sls-border);
    border-radius: 7px;
    background: rgba(8, 23, 46, 0.5);
}

.sls-topos-format-contract > header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--sls-border);
}

.sls-topos-format-contract > header > i {
    color: #a9cdff;
    font-size: 17px;
}

.sls-topos-format-contract h2,
.sls-topos-format-contract p {
    margin: 0;
}

.sls-topos-format-contract h2 {
    color: var(--sls-text);
    font-size: 12.5px;
    font-weight: 650;
}

.sls-topos-format-contract p {
    margin-top: 2px;
    color: var(--sls-muted);
    font-size: 10.5px;
}

.sls-topos-format-contract pre {
    margin: 0;
    padding: 13px;
    overflow-x: auto;
    color: #b9d6f7;
    font: 10.5px/1.55 "IBM Plex Mono", monospace;
}

.sls-topos-training-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.65fr);
    align-items: start;
    gap: 12px;
    margin-top: 12px;
}

.sls-topos-training-dashboard .sls-topos-panel--register {
    margin-top: 0;
}

.sls-topos-training-side {
    display: grid;
    gap: 12px;
}

.sls-topos-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
}

.sls-topos-value-grid > span {
    display: grid;
    gap: 3px;
    padding: 10px 8px;
    border: 1px solid var(--sls-border);
    border-radius: 5px;
    background: rgba(205, 216, 229, 0.025);
    text-align: center;
}

.sls-topos-value-grid > span.is-total {
    border-color: rgba(117, 174, 238, 0.28);
    background: rgba(50, 121, 203, 0.08);
}

.sls-topos-value-grid strong {
    color: var(--sls-text);
    font: 650 15px/1.2 "IBM Plex Mono", monospace;
}

.sls-topos-value-grid em {
    color: var(--sls-faint);
    font-size: 9.5px;
    font-style: normal;
}

.sls-topos-savings-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 12px 12px;
    padding: 9px 10px;
    border: 1px solid rgba(104, 201, 166, 0.2);
    border-radius: 5px;
    background: rgba(104, 201, 166, 0.055);
    color: #9de0c7;
}

.sls-topos-savings-line > i {
    font-size: 17px;
}

.sls-topos-savings-line strong,
.sls-topos-savings-line small {
    display: block;
}

.sls-topos-savings-line strong {
    font-size: 11.5px;
}

.sls-topos-savings-line small {
    margin-top: 2px;
    color: var(--sls-muted);
    font-size: 9.5px;
}

.sls-topos-action-list {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.sls-topos-action-list .sls-topos-button {
    width: 100%;
    justify-content: flex-start;
}

.sls-topos-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    margin-top: 12px;
}

.sls-topos-register-toolbar--filters-only {
    justify-content: flex-start;
}

@media (max-width: 980px) {
    .sls-topos-training-dashboard,
    .sls-topos-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .sls-topos-section-header--actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .sls-topos-section-actions {
        width: 100%;
        margin-left: 41px;
    }

    .sls-topos-selection-footer > div,
    .sls-topos-section-actions {
        display: flex;
    }
}
