:root {
    --tp-ui-control-height: 44px;
    --tp-ui-control-height-compact: 40px;
    --tp-ui-radius-control: 10px;
    --tp-ui-radius-panel: 16px;
    --tp-ui-radius-hero: 18px;
    --tp-ui-panel-padding: 12px;
    --tp-ui-gap-xs: 6px;
    --tp-ui-gap-sm: 8px;
    --tp-ui-gap-md: 12px;
    --tp-ui-gap-lg: 16px;
    --tp-ui-motion-fast: 140ms;
    --tp-ui-motion-base: 180ms;
    --tp-ui-ease-standard: cubic-bezier(0.2, 0.65, 0.3, 1);
    --tp-ui-shadow-panel: var(--tp-shadow-sm);
    /* ── table tokens ── */
    --tp-table-cell-px: 0.64rem;
    --tp-table-cell-py: 0.72rem;
    --tp-table-cell-first-pl: 0.88rem;
    --tp-table-thead-bg: linear-gradient(180deg, var(--tp-color-surface-soft) 0%, var(--tp-color-surface-muted) 100%);
    --tp-table-thead-font: 0.84rem;
    --tp-table-thead-weight: 700;
    --tp-table-thead-color: var(--tp-color-text-secondary);
    --tp-table-row-border: 1px solid var(--tp-color-border-soft);
    --tp-table-sticky-z: 2;
}

.tp-ui-panel {
    border: 1px solid var(--tp-color-border-soft);
    border-radius: var(--tp-ui-radius-panel);
    background: var(--tp-color-surface);
    box-shadow: var(--tp-ui-shadow-panel);
    transition:
        border-color var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        transform var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-ui-toolbar {
    border: 1px solid var(--tp-color-border-soft);
    border-radius: var(--tp-ui-radius-panel);
    background: var(--tp-color-surface);
    padding: var(--tp-ui-panel-padding);
    box-shadow: var(--tp-ui-shadow-panel);
    transition:
        border-color var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard);
}

@media (hover: hover) and (pointer: fine) {
    .tp-ui-panel:hover,
    .tp-ui-toolbar:hover {
        border-color: var(--tp-color-brand-200);
        box-shadow: var(--tp-shadow-md);
    }
}

.tp-ui-toolbar-form {
    display: grid;
    gap: var(--tp-ui-gap-md);
    width: 100%;
    margin: 0;
}

.tp-ui-toolbar-row {
    display: flex;
    align-items: center;
    gap: var(--tp-ui-gap-sm);
    flex-wrap: wrap;
    width: 100%;
}

.tp-ui-toolbar-row--between {
    justify-content: space-between;
}

.tp-ui-group {
    display: flex;
    align-items: center;
    gap: var(--tp-ui-gap-sm);
    flex-wrap: wrap;
}

.tp-ui-control {
    min-height: var(--tp-ui-control-height);
}

.tp-ui-search {
    position: relative;
    min-width: min(300px, 100%);
    flex: 1 1 auto;
}

.tp-ui-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tp-ui-gap-sm);
}

.tp-ui-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--tp-color-border-strong);
    background: var(--tp-color-surface);
    color: var(--tp-color-text-muted);
    font-size: var(--tp-font-size-md);
    font-weight: 700;
    line-height: 1;
    padding: 0 10px;
}

.tp-ui-field {
    display: grid;
    gap: 5px;
}

.tp-ui-field-label {
    margin: 0;
    color: var(--tp-color-text-muted);
    font-size: var(--tp-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
}

.tp-ui-feedback {
    margin: 0;
    min-height: 1.2em;
    color: var(--tp-color-text-muted);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    line-height: 1.4;
}

.tp-ui-actions {
    margin-top: var(--tp-ui-gap-md);
    padding-top: var(--tp-ui-gap-md);
    border-top: 1px solid var(--tp-color-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: var(--tp-ui-gap-sm);
    justify-content: flex-end;
}

.tp-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-view-head-copy {
    min-width: 0;
    flex: 1 1 320px;
}

.tp-view-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.tp-view-export-link {
    align-self: flex-start;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--tp-color-border-strong);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    box-shadow: var(--tp-ui-shadow-panel);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    letter-spacing: 0;
    transition:
        border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        background var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard);
}

.tp-view-export-link .tp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.tp-view-export-link .tp-btn-icon svg {
    width: 100%;
    height: 100%;
}

.tp-view-export-link:hover,
.tp-view-export-link:focus-visible {
    border-color: color-mix(in srgb, var(--tp-color-brand-800) 50%, transparent);
    color: var(--tp-color-brand-800);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-brand-050) 100%);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--tp-color-brand-800) 10%, transparent);
}

.tp-view-export-link:active {
    transform: translateY(1px);
    box-shadow: none;
}

.tp-ui-feedback.is-ok {
    color: var(--tp-state-finished-ink);
}

.tp-ui-feedback.is-error {
    color: var(--tp-color-danger-ink);
}

.tp-ui-search-row {
    display: flex;
    align-items: center;
    gap: var(--tp-ui-gap-sm);
    flex-wrap: wrap;
    width: 100%;
}

.tp-ui-search-input {
    min-width: min(300px, 100%);
    flex: 1 1 auto;
}

.tp-ui-search-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-ui-gap-sm);
    flex-wrap: wrap;
}

.tp-ui-search-actions .btn {
    white-space: nowrap;
}

.tp-focusable:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring);
}

.tp-focusable:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.tp-state-note {
    margin: 0;
    border: 1px dashed var(--tp-color-border);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    line-height: 1.45;
    padding: 12px 14px;
}

.tp-state-note--empty {
    border-color: var(--tp-color-border);
}

.tp-state-note--loading {
    border-style: solid;
    border-color: var(--tp-color-info-border);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-info-bg) 100%);
    color: var(--tp-color-info-ink);
}

.tp-state-note--error {
    border-style: solid;
    border-color: var(--tp-color-danger-border);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-danger-bg) 100%);
    color: var(--tp-color-danger-ink);
}

.tp-select {
    position: relative;
    width: 100%;
}

.tp-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
}

.tp-select-trigger {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: var(--tp-ui-control-height);
    border: 1px solid var(--view-accent-border, var(--tp-color-border-strong));
    border-radius: var(--tp-ui-radius-control);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 1px 2px rgba(20, 41, 56, 0.05);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-md);
    font-weight: 600;
    line-height: 1.2;
    padding: 0.48rem 2.2rem 0.48rem 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
    transition:
        border-color var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        background var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        transform var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-select-trigger:hover {
    border-color: var(--view-accent-border, var(--tp-color-brand-300));
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--view-accent-soft-2, var(--tp-color-brand-050)) 100%);
}

.tp-select-trigger:focus-visible {
    outline: none;
    border-color: var(--tp-color-brand-600);
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tp-select-trigger:active {
    transform: translateY(1px);
}

.tp-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-select.is-placeholder-value .tp-select-label {
    color: var(--tp-color-text-muted);
    font-weight: 600;
}

.tp-select .tp-select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    opacity: 0.82;
    transition: transform var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), opacity var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-select.is-open .tp-select-chevron {
    transform: translateY(-50%) rotate(-135deg);
    opacity: 0.9;
}

.tp-select.is-disabled .tp-select-trigger {
    color: var(--tp-color-text-soft);
    border-color: var(--tp-color-border-soft);
    background: linear-gradient(180deg, var(--tp-color-surface-soft) 0%, var(--tp-color-surface-muted) 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.tp-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 80;
    border: 1px solid var(--tp-color-border);
    border-radius: 10px;
    background: var(--tp-color-surface);
    box-shadow: var(--tp-shadow-lg);
    padding: 6px;
    display: grid;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.tp-select-group-label {
    font-size: var(--tp-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tp-color-text-muted);
    padding: 4px 8px 2px;
}

.tp-select-option {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    padding: 8px 34px 8px 10px;
    cursor: pointer;
    position: relative;
    transition: border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), box-shadow var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), transform var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-select-option:hover,
.tp-select-option:focus-visible {
    outline: none;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-panel) 100%);
    color: var(--tp-color-nav-800);
    border-color: var(--tp-color-brand-200);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 3px 10px rgba(18, 57, 71, 0.08);
    transform: translateY(-1px);
}

.tp-select-option.is-selected {
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-sage-050) 100%);
    color: var(--tp-color-nav-800);
    border-color: var(--tp-color-sage-500);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 4px 12px rgba(20, 41, 56, 0.1);
    font-weight: 700;
}

.tp-select-option.is-selected::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--tp-color-sage-700);
    border-bottom: 2px solid var(--tp-color-sage-700);
    transform: translateY(-60%) rotate(45deg);
    opacity: 0.95;
}

.tp-select-option.is-selected:hover,
.tp-select-option.is-selected:focus-visible {
    border-color: var(--tp-color-sage-700);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-sage-100) 100%);
    color: var(--tp-color-nav-800);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 14px rgba(20, 41, 56, 0.11);
    transform: translateY(-1px);
}

.tp-select-option:active {
    transform: translateY(0);
}

.tp-select-option.is-selected.is-placeholder-selected {
    border-color: var(--tp-color-border-soft);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.tp-select-option.is-selected.is-placeholder-selected::after {
    content: none;
}

.tp-select-option.is-selected.is-placeholder-selected:hover,
.tp-select-option.is-selected.is-placeholder-selected:focus-visible {
    border-color: var(--tp-color-brand-200);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-panel) 100%);
    color: var(--tp-color-nav-800);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 3px 10px rgba(18, 57, 71, 0.08);
    transform: translateY(-1px);
}

.tp-select-option[aria-disabled="true"] {
    color: var(--tp-color-text-soft);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
}

.tp-select.tp-select--sm .tp-select-trigger {
    min-height: var(--tp-ui-control-height-compact);
    font-size: var(--tp-font-size-sm);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.tp-select.tp-select--sm .tp-select-option {
    font-size: var(--tp-font-size-sm);
    padding-top: 6px;
    padding-bottom: 6px;
}

.tp-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tp-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tp-color-border-strong);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    padding: 4px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tp-chip--sm {
    font-size: var(--tp-font-size-xs);
    line-height: 1.2;
    padding: 3px 8px;
}

.tp-chip--md {
    font-size: var(--tp-font-size-sm);
    line-height: 1.3;
    padding: 4px 10px;
}

.tp-chip code {
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.92em;
    margin-left: 5px;
    padding: 0;
    color: var(--tp-color-rose-700);
    background: transparent;
    font-weight: 700;
}

.tp-chip--meta {
    border-color: var(--tp-color-border-strong);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
}

.tp-chip--warning {
    border-color: var(--tp-color-amber-200, #f0dca0);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-amber-50, #fdf8ec) 100%);
    color: var(--tp-color-amber-800, #8a6914);
    cursor: help;
}

.tp-chip--ec {
    border-color: var(--tp-color-brand-300, #a3c4aa);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-brand-50, #f0f6f1) 100%);
    color: var(--tp-color-brand-800, #2d5a3a);
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 0.74rem;
    text-decoration: none;
}

.tp-chip--go {
    border-color: var(--tp-color-sage-300, #b3c5bf);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-sage-50, #f2f5f4) 100%);
    color: var(--tp-color-sage-800, #3a5249);
    font-size: 0.74rem;
    text-decoration: none;
    gap: 4px;
}

.tp-chip--go .tp-chip-name,
.tp-chip--ec .tp-chip-name {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-weight: 500;
    color: var(--tp-color-text-muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.tp-chip--ec:hover,
a.tp-chip--go:hover {
    text-decoration: none;
    filter: brightness(0.97);
}

.tp-chip--count {
    border-color: var(--tp-color-border-strong);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-brand-900);
    font-size: var(--tp-font-size-xs);
    font-weight: 700;
    line-height: 1;
    padding: 4px 9px;
}

.tp-chip--count.tp-chip--sm {
    font-size: 0.72rem;
    line-height: 1;
    padding: 2px 7px;
}

.tp-chip--score {
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-accent) 0%, var(--tp-accent-contrast, var(--tp-color-rose-700)) 100%);
    color: var(--tp-color-on-accent);
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 700;
    min-width: 52px;
    justify-content: center;
    box-shadow: var(--tp-shadow-sm);
}

.tp-chip--filter {
    border-color: var(--tp-color-border-strong);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 4px 7px 4px 10px;
}

.tp-state-chip,
.tp-chip--state {
    border: 1px solid var(--tp-color-border-strong);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.tp-state-chip.running,
.tp-chip--state.running {
    color: var(--tp-state-running-ink);
    background: var(--tp-state-running-bg);
    border-color: var(--tp-state-running-border);
}

.tp-state-chip.running-other,
.tp-chip--state.running-other {
    color: var(--tp-color-text-secondary);
    background: var(--tp-color-selection);
    border-color: var(--tp-color-border-strong);
}

.tp-state-chip.finished,
.tp-chip--state.finished {
    color: var(--tp-state-finished-ink);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-info-bg) 100%);
    border-color: var(--tp-color-info-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tp-state-chip.failed,
.tp-chip--state.failed {
    color: var(--tp-color-danger-ink);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-danger-bg) 100%);
    border-color: var(--tp-color-danger-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tp-table--premium thead th {
    background: var(--tp-table-thead-bg);
    border-bottom: var(--tp-table-row-border);
    color: var(--tp-table-thead-color);
    font-size: var(--tp-table-thead-font);
    font-weight: var(--tp-table-thead-weight);
    letter-spacing: 0.15px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: var(--tp-table-sticky-z);
}

.tp-table--premium thead th,
.tp-table--premium tbody td {
    padding: var(--tp-table-cell-py) var(--tp-table-cell-px);
    vertical-align: middle;
}

.tp-table--premium thead th:first-child,
.tp-table--premium tbody td:first-child {
    padding-left: var(--tp-table-cell-first-pl);
}

.tp-table--premium tbody tr:nth-of-type(odd) {
    background: var(--tp-color-surface-panel);
}

.tp-table--premium tbody tr:nth-of-type(even) {
    background: var(--tp-color-surface);
}

.tp-table--premium tbody tr {
    transition: background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-table--premium tbody tr:hover {
    background: var(--tp-color-brand-050);
}

.tp-table--premium tbody td {
    border-top: var(--tp-table-row-border);
}

.tp-pagination {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tp-pagination .page-item {
    display: flex;
    align-items: center;
}

.tp-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    margin: 0;
    border: 1px solid var(--tp-color-border);
    color: var(--tp-color-text-secondary);
    min-width: 38px;
    min-height: 40px;
    height: 40px;
    padding: 0 0.72rem;
    line-height: 1;
    text-align: center;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    transition: border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), box-shadow var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-pagination .page-link:hover {
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-brand-050) 100%);
    border-color: var(--tp-color-brand-300);
    color: var(--tp-color-nav-800);
}

.tp-pagination .page-link:focus-visible {
    outline: none;
    border-color: var(--tp-color-brand-600);
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring);
}

.tp-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, var(--tp-color-brand-700) 0%, var(--tp-color-brand-800) 100%);
    border-color: var(--tp-color-brand-800);
    color: var(--tp-color-on-accent);
}

.tp-pagination .page-item.disabled .page-link {
    color: var(--tp-color-text-soft);
    background: var(--tp-color-idle-bg);
    border-color: var(--tp-color-border-soft);
}

.tp-pagination .page-link .tp-chevron,
.tp-pagination .page-link .tp-chevron-group {
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tp-state-chip.idle,
.tp-chip--state.idle {
    color: var(--tp-state-idle-ink);
    background: var(--tp-state-idle-bg);
    border-color: var(--tp-state-idle-border);
}

.tp-table--sortable tbody tr:nth-of-type(odd) {
    background: var(--tp-color-surface-panel);
}

.tp-table--sortable tbody tr:nth-of-type(even) {
    background: var(--tp-color-surface);
}

.tp-table--sortable tbody tr {
    transition: background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-table--sortable tbody tr:hover {
    background: var(--tp-color-brand-050);
}

.tp-table--plain thead th::after {
    display: none !important;
}

.tp-table--sortable tbody td,
.tp-table--plain tbody td {
    border-top: var(--tp-table-row-border);
}

.table-shell .table {
    margin-bottom: 0;
    background: var(--tp-color-surface);
}

.table-shell thead th {
    background: var(--tp-table-thead-bg);
    border-bottom-width: 1px;
    position: sticky;
    top: 0;
    z-index: var(--tp-table-sticky-z);
    font-size: var(--tp-table-thead-font);
    font-weight: var(--tp-table-thead-weight);
    color: var(--tp-table-thead-color);
    white-space: nowrap;
}

.tp-dt-wrapper,
.tp-table-shell .dataTables_wrapper,
.table-shell .dataTables_wrapper {
    padding: 12px;
}

.tp-table-shell.tp-table-shell--with-export {
    position: relative;
    padding-top: 52px;
    overflow: hidden;
}

.tp-table-shell--with-export::before {
    content: none;
}

.tp-table-shell__scroll {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--tp-color-brand-500) 58%, white) color-mix(in srgb, var(--tp-color-surface-muted) 88%, white);
}

.tp-table-shell__scroll::-webkit-scrollbar {
    height: 12px;
}

.tp-table-shell__scroll::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--tp-color-surface-muted) 88%, white);
    border-radius: 999px;
}

.tp-table-shell__scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tp-color-brand-400) 82%, white) 0%, color-mix(in srgb, var(--tp-color-brand-600) 72%, white) 100%);
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--tp-color-surface-muted) 88%, white);
}

.tp-table-shell__scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tp-color-brand-500) 86%, white) 0%, color-mix(in srgb, var(--tp-color-brand-700) 76%, white) 100%);
}

.tp-table-shell--with-export > .table,
.tp-table-shell--with-export > .tp-dt-wrapper,
.tp-table-shell--with-export > .dataTables_wrapper,
.tp-table-shell--with-export > .tp-table-shell__scroll {
    margin-top: 0;
}

.tp-table-export-bar {
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 52px;
    padding: 9px 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(180deg, var(--tp-color-surface-soft) 0%, var(--tp-color-surface-panel) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--tp-color-border-soft) 78%, white);
    pointer-events: none;
}

.tp-table-export-bar > * {
    pointer-events: auto;
}

.tp-table-shell {
    position: relative;
}

.tp-table-shell.is-h-scrollable:not(.is-h-scroll-end)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, color-mix(in srgb, var(--tp-color-surface) 94%, white) 86%);
    pointer-events: none;
    z-index: 2;
}

.tp-table-shell.tp-table-shell--with-export.is-h-scrollable:not(.is-h-scroll-end)::after {
    top: 52px;
}

.tp-table-scroll-hint {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 3;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--tp-color-border-strong) 88%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tp-color-surface) 90%, white);
    box-shadow: var(--tp-shadow-md);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        transform var(--tp-ui-motion-base) var(--tp-ui-ease-standard);
}

.tp-table-scroll-hint::before {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.72;
}

.tp-table-shell.is-h-scrollable:not(.is-h-scroll-end) > .tp-table-scroll-hint {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    .tp-table-scroll-hint {
        right: 10px;
        bottom: 10px;
        padding: 6px 9px;
    }
}

.tp-table-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--tp-color-border-strong) 72%, white);
    border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tp-color-surface) 88%, white) 0%, color-mix(in srgb, var(--tp-color-surface-soft) 70%, white) 100%);
    color: var(--tp-color-text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--tp-shadow-sm);
    transition:
        border-color var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        background var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        transform var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-table-export-btn:hover {
    color: var(--tp-color-brand-900);
    text-decoration: none;
    border-color: var(--tp-color-brand-300);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tp-color-surface) 94%, white) 0%, color-mix(in srgb, var(--tp-color-brand-050) 48%, white) 100%);
    box-shadow: var(--tp-shadow-md);
}

.tp-table-export-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring);
}

.tp-table-export-btn:active {
    transform: translateY(1px);
}

.tp-table-export-btn[disabled],
.tp-table-export-btn.is-disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.tp-table-export-btn__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: inherit;
}

.tp-table-export-btn__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-table-export-btn__label {
    white-space: nowrap;
}

.tp-dt-wrapper .tp-dt-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tp-dt-wrapper .tp-dt-length .dataTables_length,
.tp-dt-wrapper .tp-dt-search .dataTables_filter,
.tp-dt-wrapper .tp-dt-info .dataTables_info,
.tp-dt-wrapper .tp-dt-pager .dataTables_paginate {
    margin: 0 !important;
    padding: 0 !important;
}

.tp-dt-wrapper .dataTables_length,
.tp-dt-wrapper .dataTables_filter,
.tp-dt-wrapper .dataTables_info,
.tp-dt-wrapper .dataTables_paginate {
    float: none !important;
    font-size: 0.86rem;
    color: var(--tp-color-text-muted);
}

.tp-dt-wrapper .dataTables_length label,
.tp-dt-wrapper .dataTables_filter label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tp-color-text-muted);
    font-size: var(--tp-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tp-dt-wrapper .dataTables_length select,
.tp-dt-wrapper .dataTables_filter input {
    border: 1px solid var(--tp-color-border-strong);
    border-radius: var(--tp-ui-radius-control);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    min-height: var(--tp-ui-control-height-compact);
    box-shadow: var(--tp-shadow-xs);
}

.tp-dt-wrapper .dataTables_length select {
    min-width: 78px;
    font-weight: 700;
    padding: 0 32px 0 10px;
}

.tp-dt-wrapper .dataTables_filter input {
    width: min(380px, 100%);
    margin-left: 0 !important;
    padding: 0 12px;
}

.tp-dt-wrapper .dataTables_filter label {
    width: 100%;
    justify-content: flex-end;
}

.tp-dt-wrapper .dataTables_filter input:focus,
.tp-dt-wrapper .dataTables_filter input:focus-visible,
.tp-dt-wrapper .dataTables_length select:focus,
.tp-dt-wrapper .dataTables_length select:focus-visible {
    outline: none;
    border-color: var(--tp-color-brand-600);
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring);
}

.tp-dt-wrapper .tp-dt-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tp-color-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-dt-wrapper .dataTables_info {
    font-size: var(--tp-font-size-md);
    color: var(--tp-color-text-muted);
    font-weight: 600;
}

.tp-dt-wrapper .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tp-dt-wrapper .dataTables_paginate .paginate_button,
.tp-dt-wrapper .dataTables_paginate .paginate_button.disabled,
.tp-dt-wrapper .dataTables_paginate .paginate_button.current {
    float: none !important;
    margin: 0 !important;
    border-radius: var(--tp-ui-radius-control) !important;
    border: 1px solid var(--tp-color-border) !important;
    color: var(--tp-color-text-secondary) !important;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%) !important;
    min-width: 40px;
    min-height: 40px;
    padding: 0 0.72rem !important;
    line-height: 1 !important;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard), box-shadow var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
    box-shadow: var(--tp-shadow-xs);
}

.tp-dt-wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--tp-color-brand-300) !important;
    color: var(--tp-color-nav-800) !important;
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-brand-050) 100%) !important;
}

.tp-dt-wrapper .dataTables_paginate .paginate_button:focus-visible {
    outline: none !important;
    border-color: var(--tp-color-brand-600) !important;
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring) !important;
}

.tp-dt-wrapper .dataTables_paginate .paginate_button.current,
.tp-dt-wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--tp-color-brand-800) !important;
    color: var(--tp-color-on-accent) !important;
    background: linear-gradient(180deg, var(--tp-color-brand-700) 0%, var(--tp-color-brand-800) 100%) !important;
    box-shadow: none !important;
}

.tp-dt-wrapper .dataTables_paginate .paginate_button.disabled,
.tp-dt-wrapper .dataTables_paginate .paginate_button.disabled:hover {
    border-color: var(--tp-color-border-soft) !important;
    color: var(--tp-color-text-soft) !important;
    background: var(--tp-color-idle-bg) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.tp-dt-wrapper .dataTables_paginate .ellipsis {
    color: var(--tp-color-text-muted);
    font-weight: 700;
    padding: 0 4px;
}

.tp-dt-wrapper.tp-dt-variant-compact .dataTables_paginate .paginate_button {
    min-width: 36px;
    min-height: 36px;
    border-radius: 9px !important;
    padding: 0 0.64rem !important;
}

.tp-dt-wrapper.tp-dt-no-search .tp-dt-search,
.tp-dt-wrapper.tp-dt-no-length .tp-dt-length,
.tp-dt-wrapper.tp-dt-no-paging .tp-dt-pager {
    display: none;
}

.tp-dt-wrapper.tp-dt-no-search.tp-dt-no-length .tp-dt-toolbar {
    display: none;
}

.tp-dt-wrapper.tp-dt-no-paging .tp-dt-footer {
    justify-content: flex-start;
}

.tp-dt-wrapper table.dataTable thead .sorting,
.tp-dt-wrapper table.dataTable thead .sorting_asc,
.tp-dt-wrapper table.dataTable thead .sorting_desc,
.tp-dt-wrapper table.dataTable thead .sorting_asc_disabled,
.tp-dt-wrapper table.dataTable thead .sorting_desc_disabled {
    background-image: none !important;
    position: relative;
    padding-right: 1.6rem !important;
}

.tp-dt-wrapper table.dataTable thead .sorting::after,
.tp-dt-wrapper table.dataTable thead .sorting_asc::after,
.tp-dt-wrapper table.dataTable thead .sorting_desc::after,
.tp-dt-wrapper table.dataTable thead .sorting_asc_disabled::after,
.tp-dt-wrapper table.dataTable thead .sorting_desc_disabled::after {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
}

.tp-dt-wrapper table.dataTable thead .sorting::after {
    content: "↕";
    color: var(--tp-color-text-soft);
}

.tp-dt-wrapper table.dataTable thead .sorting_asc::after {
    content: "↑";
    color: var(--tp-color-brand-800);
}

.tp-dt-wrapper table.dataTable thead .sorting_desc::after {
    content: "↓";
    color: var(--tp-color-brand-800);
}

.tp-page-eyebrow {
    margin: 0;
    color: var(--tp-color-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-page-title {
    margin: 0;
    color: var(--tp-color-nav-800);
    font-size: clamp(1.8rem, 2.7vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: 0.12px;
}

.tp-section-title {
    margin: 0;
    color: var(--tp-color-nav-800);
    font-size: 1.26rem;
    line-height: 1.15;
    letter-spacing: 0.12px;
}

.tp-section-subtitle {
    margin: 6px 0 0;
    color: var(--tp-color-text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.tp-breadcrumb {
    margin: 0 0 var(--tp-ui-gap-sm);
    max-width: 100%;
}

.tp-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tp-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.tp-breadcrumb-item + .tp-breadcrumb-item::before {
    content: "/";
    color: var(--tp-color-text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.95;
    margin: 0 1px;
}

.tp-breadcrumb-link,
.tp-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    font-size: var(--tp-font-size-sm);
    line-height: 1.2;
    padding: 0 9px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-breadcrumb-link {
    border: 1px solid transparent;
    background: transparent;
    color: var(--tp-color-text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.tp-breadcrumb-link:hover,
.tp-breadcrumb-link:focus-visible {
    border-color: var(--view-accent-border, var(--tp-color-brand-300));
    background: linear-gradient(180deg, var(--view-accent-soft-2, var(--tp-color-brand-050)) 0%, var(--tp-accent-contrast-soft, var(--tp-color-rose-050)) 100%);
    color: var(--view-accent-ink, var(--tp-color-brand-900));
    text-decoration: none;
    outline: none;
}

.tp-breadcrumb-current {
    border: 1px solid var(--view-accent-border, var(--tp-color-brand-300));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--view-accent-soft-2, var(--tp-color-brand-050)) 62%, var(--tp-accent-contrast-soft, var(--tp-color-rose-050)) 100%);
    color: var(--view-accent-ink, var(--tp-color-brand-900));
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
    .tp-breadcrumb-list {
        border-radius: 0;
    }

    .tp-breadcrumb-link,
    .tp-breadcrumb-current {
        min-height: 22px;
        font-size: var(--tp-font-size-xs);
        padding: 0 8px;
    }

    .tp-dt-wrapper .tp-dt-toolbar,
    .tp-dt-wrapper .tp-dt-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-dt-wrapper .tp-dt-search .dataTables_filter label {
        justify-content: flex-start;
    }

    .tp-dt-wrapper .dataTables_filter input {
        width: 100%;
    }

    .tp-dt-wrapper .dataTables_paginate {
        justify-content: flex-start;
    }
}

@media (max-width: 940px) {
    .tp-ui-toolbar-row--stack-sm {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── tp-card ─────────────────────────────────────────────── */
.tp-card {
    border: 1px solid var(--tp-color-border-soft);
    border-radius: var(--tp-ui-radius-panel);
    background: var(--tp-color-surface);
    box-shadow: var(--tp-shadow-sm);
    padding: var(--tp-ui-panel-padding);
    transition:
        border-color var(--tp-ui-motion-base) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-base) var(--tp-ui-ease-standard);
}

.tp-card--elevated {
    border-color: transparent;
    box-shadow: var(--tp-shadow-md);
}

.tp-card--flat {
    box-shadow: none;
    border-color: var(--tp-color-border-soft);
}

.tp-card--flush {
    padding: 0;
}

@media (hover: hover) and (pointer: fine) {
    .tp-card:hover {
        border-color: var(--tp-color-brand-200);
        box-shadow: var(--tp-shadow-md);
    }
    .tp-card--elevated:hover {
        box-shadow: var(--tp-shadow-lg);
    }
    .tp-card--flat:hover {
        box-shadow: none;
    }
}

/* ── tp-file-input ────────────────────────────────────────── */
.tp-file-input {
    display: block;
    width: 100%;
    min-height: var(--tp-ui-control-height);
    border: 1px solid var(--tp-color-border-strong);
    border-radius: var(--tp-ui-radius-control);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--tp-color-surface-soft) 100%);
    color: var(--tp-color-text-secondary);
    font-size: var(--tp-font-size-sm);
    font-weight: 600;
    padding: 8px 10px;
    transition:
        border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        box-shadow var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-file-input::file-selector-button {
    border: 1px solid var(--view-accent-border, var(--tp-color-border-strong));
    border-radius: var(--tp-ui-radius-control);
    background: linear-gradient(180deg, var(--tp-color-surface) 0%, var(--view-accent-soft-2, var(--tp-color-brand-050)) 100%);
    color: var(--view-accent-ink, var(--tp-color-brand-800));
    font-size: var(--tp-font-size-sm);
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.74rem;
    margin-right: 10px;
    cursor: pointer;
    transition:
        border-color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        background var(--tp-ui-motion-fast) var(--tp-ui-ease-standard),
        color var(--tp-ui-motion-fast) var(--tp-ui-ease-standard);
}

.tp-file-input:hover {
    border-color: var(--view-accent-border, var(--tp-color-brand-300));
}

.tp-file-input::file-selector-button:hover {
    border-color: var(--view-accent, var(--tp-color-brand-600));
    background: var(--view-accent-soft, var(--tp-color-brand-100));
    color: var(--tp-color-link-hover);
}

.tp-file-input:focus-visible {
    outline: none;
    border-color: var(--tp-color-brand-600);
    box-shadow: 0 0 0 0.2rem var(--tp-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
    .tp-ui-panel,
    .tp-ui-toolbar,
    .tp-card,
    .tp-file-input,
    .tp-select-trigger,
    .tp-select-option,
    .tp-pagination .page-link {
        transition: none !important;
    }
}
