.pst-wrapper {
    --pst-bg-color: #1a1e1a00;
    --pst-text-color: #e2e8e2; /* Higher contrast text */
    --pst-label-color: #a0b0a0; /* Muted label */
    --pst-accent-color: #4caf7d;
    --pst-tab-bg: #2124211b; /* Slightly lighter than bg */
    --pst-tab-active-bg: #333d3a;
    --pst-border-color: #4a554a; /* Much lighter border for visibility */
    --pst-pill-bg: #707b7027;
    --pst-pill-text: #ffffff;
    --pst-border-radius: 8px;
    --pst-transition: all 0.2s ease-out;
}

.pst-wrapper {
    color: var(--pst-text-color);
    border-radius: var(--pst-border-radius);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 20px 0;
    max-width: 100%;
    position: relative;
}

.pst-wrapper,
.pst-wrapper * {
    box-sizing: border-box;
}

.pst-empty-state {
    padding: 24px;
    color: var(--pst-label-color);
    text-align: center;
}

.pst-wrapper.pst-empty {
    background-color: var(--pst-bg-color);
    border: 1px solid var(--pst-border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pst-header {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}

.pst-header > * {
    min-width: 0;
}

.pst-header-label,
.pst-selector-toggle,
.pst-selector-static {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(53, 59, 54, 0.98), rgba(41, 46, 42, 0.98));
    border: 1px solid var(--pst-border-color);
    border-radius: var(--pst-border-radius);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pst-header-label {
    flex: 0 0 clamp(120px, 18%, 220px);
    color: var(--pst-label-color);
}

.pst-selector {
    display: flex;
    flex: 1 1 0;
    width: 0;
    max-width: 100%;
    position: relative;
    min-width: 0;
}

.pst-selector-static {
    flex: 1 1 auto;
}

.pst-selector-toggle {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    color: var(--pst-pill-text);
    cursor: pointer;
    text-align: center;
    text-transform: var(--pst-tab-text-transform, none);
    transition: var(--pst-transition);
}

.pst-selector-toggle:hover,
.pst-selector-toggle:focus-visible {
    border-color: var(--pst-accent-color);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.pst-selector-toggle[aria-expanded="true"] {
    border-color: var(--pst-accent-color);
}

.pst-selector-static {
    color: var(--pst-pill-text);
    justify-content: center;
    min-width: 0;
    text-align: center;
    text-transform: var(--pst-tab-text-transform, none);
}

.pst-selector-value {
    display: block;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.pst-selector-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

.pst-selector-toggle[aria-expanded="true"] .pst-selector-icon {
    transform: translateY(2px) rotate(-135deg);
}

.pst-selector-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px;
    background: rgba(28, 31, 29, 0.98);
    border: 1px solid var(--pst-border-color);
    border-radius: calc(var(--pst-border-radius) + 2px);
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.pst-selector-option {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: calc(var(--pst-border-radius) - 2px);
    background: transparent;
    color: var(--pst-label-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-transform: var(--pst-tab-text-transform, none);
    transition: var(--pst-transition);
}

.pst-selector-option:hover,
.pst-selector-option:focus-visible,
.pst-selector-option.active {
    color: var(--pst-pill-text);
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--pst-tab-active-bg);
}

@media (max-width: 860px) {
    .pst-header {
        flex-direction: column;
        gap: 10px;
    }

    .pst-selector {
        flex: 1 1 auto;
        width: 100%;
    }

    .pst-header-label,
    .pst-selector-toggle,
    .pst-selector-static {
        width: 100%;
    }

    .pst-header-label {
        flex-basis: auto;
    }
}

.pst-table-shell {
    background-color: var(--pst-bg-color);
    border: 1px solid var(--pst-border-color);
    border-radius: var(--pst-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pst-content {
    padding: 0;
}

.pst-panel {
    display: none;
    width: 100%;
}

.pst-panel.active {
    display: block;
    animation: pstSlideIn 0.3s ease-out;
}

@keyframes pstSlideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.pst-specs-list {
    display: flex;
    flex-direction: column;
}

.pst-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--pst-border-color);
}

.pst-row > * {
    min-width: 0;
}

.pst-row:last-child {
    border-bottom: none;
}

.pst-row:hover {
    background-color: rgba(255,255,255, 0.02);
}

/* Column 1: Label */
.pst-col-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--pst-label-color);
}

/* Column 2: Value */
.pst-col-value {
    flex: 1;
    min-width: 0;
    text-align: center; /* User requested centered text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.pst-value-pill {
    background-color: transparent;
    color: var(--pst-pill-text);
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    border: none;
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

/* Responsive */
@media (max-width: 600px) {
    .pst-header {
        flex-direction: column;
        gap: 10px;
    }

    .pst-selector {
        flex: 1 1 auto;
        width: 100%;
    }

    .pst-header-label,
    .pst-selector-toggle,
    .pst-selector-static {
        width: 100%;
        min-height: 48px;
    }

    .pst-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }

    .pst-col-label {
        text-align: center;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .pst-header-label,
    .pst-selector-value {
        font-size: 12px;
    }

    .pst-selector-toggle,
    .pst-selector-static {
        padding: 12px 16px;
    }
}
