x-tab-panel {
    display: block;
    border: 1px solid var(--border-color);
}

x-tab-panel div[role=tablist] {
    display: block;
    border-bottom: 1px dotted var(--border-color);
}

x-tab-panel div[role=tablist] button[role=tab] {
    font-family: var(--font-system);
    font-size: 100%;
    color: inherit;
    background-color: transparent;
    background-image: none;
    border: none;
    padding: 0.5em;
    padding-top: 0.6em;
    margin-left: 0.5em;
    border-bottom: 2px solid transparent;
}

x-tab-panel div[role=tablist] button[role=tab][aria-selected=true] {
    font-weight: bold;
    border-bottom: 2px solid var(--border-color);
}

x-tab-panel > x-tab {
    display: none;
}

x-tab-panel > x-tab[active] {
    display: block !important;
}
