/* 試着バー（テーマ×フォント切替）UI - たま台帳トーン */
#trybar {
  position: sticky;
  top: 0;
  z-index: 999999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #E3DDF5;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #4B3F72;
  box-shadow: 0 1px 4px rgba(107, 70, 193, 0.08);
}

#trybar .trybar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F5F2FC;
  border-radius: 999px;
  padding: 3px 10px 3px 12px;
}

#trybar label {
  font-weight: 600;
  color: #6B46C1;
  white-space: nowrap;
}

#trybar select {
  border: none;
  background: transparent;
  color: #4B3F72;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 4px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 46vw;
}

#trybar select:focus {
  outline: 2px solid #B39DDB;
  outline-offset: 1px;
}

#trybar button.trybar-reset {
  border: 1px solid #D8CCF0;
  background: #FFFFFF;
  color: #6B46C1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

#trybar button.trybar-reset:hover {
  background: #EDE7FB;
}

#trybar .trybar-label {
  font-weight: 700;
  color: #6B46C1;
  margin-right: 2px;
  white-space: nowrap;
}

#trybar .trybar-catalog {
  color: #6B46C1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  padding: 5px 10px;
}

#trybar .trybar-catalog:hover {
  text-decoration: underline;
}

#trybar-swatch {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 2px 0;
  font-size: 11px;
  color: #4B3F72;
  border-top: 1px dashed #E3DDF5;
  margin-top: 4px;
}

#trybar .trybar-chip {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid #D8CCF0;
  border-radius: 5px;
  vertical-align: middle;
  margin-right: 2px;
}

@media (max-width: 640px) {
  #trybar {
    padding: 6px 8px;
    gap: 6px;
    font-size: 11px;
  }
  #trybar select {
    max-width: 30vw;
    font-size: 11px;
  }
  #trybar .trybar-group {
    padding: 3px 8px;
  }
  #trybar-swatch {
    font-size: 10px;
  }
}
