/* === RS2048 Widget/Panel Styles (light theme) === */

.rsw-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0.75rem 0;
    color: #535353;
    font-size: 0.95rem;
}

.rsw-head,
.rsw-subhead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e3e8ef;
    color: #4184bf;
    background: #f9f9f9;
    border-radius: 10px 10px 0 0;
}

.rsw-subhead {
    margin: 0.25rem 0 0.5rem;
    border: none;
    padding-left: 0;
    background: transparent;
    font-size: 0.95rem;
}

.rsw-icon {
    color: #4184bf;
}

.rsw-body {
    padding: 0.75rem;
}

.rsw-muted {
    color: #757575;
    font-size: 0.9rem;
}

.rsw-table {
    width: 100%;
    border-collapse: collapse;
}

.rsw-table th,
.rsw-table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.rsw-table th {
    font-weight: 600;
    color: #4184bf;
    font-size: 0.9rem;
}

.rsw-table td strong,
.rsw-score {
    font-weight: 600;
    color: #4184bf;
}

.rsw-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsw-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #eaeaea;
}

.rsw-list li:last-child {
    border-bottom: none;
}

.rsw-name {
    color: #535353;
}

.rsw-time {
    font-size: 0.8rem;
    color: #757575;
    margin-left: 0.5;
}

  .rsw-flag {
      display: inline-block;
      min-width: 1.2em;
      text-align: center
  }

  .rsw-table td .rsw-flag {
      margin-right: .35rem
  }

  .rsw-list .rsw-flag {
      margin-right: .35rem
  }

  /* === Tabs (shared) === */
  .rsw-tabs {
      display: flex;
      gap: .4rem;
      margin-bottom: .6rem;
      flex-wrap: wrap;
  }

  .rsw-tab {
      border: 1px solid #e0e0e0;
      background: #fff;
      color: #535353;
      border-radius: 6px;
      padding: .25rem .5rem;
      font-weight: 500;
      cursor: pointer;
      font: inherit;
      line-height: 1;
  }

  .rsw-tab[aria-selected="true"] {
      border: 1px solid #4184bf;
      background: #f0f6fb;
      color: #4184bf;
      font-weight: 600;
  }

  /* === Device filter chips (match tabs) === */
  .rsw-device {
      display: flex;
      gap: .4rem;
      margin: .25rem 0 .5rem;
      flex-wrap: wrap;
      /* No extra left padding needed when inside .rsw-body */
  }

  .rsw-device .rsw-chip {
      border: 1px solid #e0e0e0;
      background: #fff;
      color: #535353;
      border-radius: 6px;
      padding: .25rem .5rem;
      font-weight: 500;
      cursor: pointer;
      font: inherit;
      line-height: 1;
  }

  .rsw-device .rsw-chip.is-active {
      border: 1px solid #4184bf;
      background: #f0f6fb;
      color: #4184bf;
      font-weight: 600;
  }

  .rsw-device .rsw-chip:focus {
      outline: 2px solid #4184bf;
      outline-offset: 1px;
  }