:where(shader-config) {
  .tab-container {
    max-width: 600px;
    margin: 16px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* Hide the radio buttons */
  .tab-container input[type="radio"] {
    display: none;
  }

  /* Style the tab labels */
  .tab-labels {
    display: flex;
    border-bottom: 2px solid #ddd;
  }

  .tab-labels label {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: none;
    transition: background-color 0.3s;
  }

  .tab-labels label:hover {
    background-color: #e8e8e8;
  }
  /* .tab-container input[type="radio"] + label { 
     margin-right: 16px; 
   } */

  /* Style active tab */
  .tab-container input[type="radio"]:checked + label {
    /* background-color: white; */
    font-weight: bold;
  }

  /* Hide all panels by default */
  .tab-panel {
    display: none;
    padding-top: 8px;
    border-top: none;
    /* background-color: white; */
  }

  /* Show panel when corresponding radio is checked */
  #tab1:checked ~ .tab-panels #panel1,
  #tab2:checked ~ .tab-panels #panel2,
  #tab3:checked ~ .tab-panels #panel3 {
    display: block;
  }

  nav {
    display: flex;
    justify-content: space-between;
  }

  slot {
    text-align: center;
  }

  .code-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel, #f5f5f5) 80%, transparent);
    font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow: auto;
    max-height: 320px;
  }

  .shader-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: color-mix(in srgb, var(--panel, #f5f5f5) 70%, transparent);
    color: var(--text, #1f1f1f);
    border: 1px solid color-mix(in srgb, var(--border, #d5d5d5) 60%, transparent);
  }

  .shader-size--small {
    background: #e6f4ea;
    color: #0f5132;
    border-color: #bcd8c5;
  }

  .shader-size--medium {
    background: #fff4d6;
    color: #7a4f00;
    border-color: #f3d19e;
  }

  .shader-size--large {
    background: #fde2e2;
    color: #8b1a1a;
    border-color: #f5b5b5;
  }
}
